Skip to ContentGo to accessibility page
Algebra 1

8.12.2 Finding the Curve of Best Fit

Algebra 18.12.2 Finding the Curve of Best Fit

8.12.2 Finding the Curve of Best Fit

8.12.2 • Finding the Curve of Best Fit

Activity

In a previous lesson, you learned how to find the line of best fit. A line of best fit is a line on a graph that best approximates the equation of the points in a data set or scatter plot.

In this activity, we will learn how to find the curve of best fit, which is the curve modeled by the equation that best approximates the points in a data set or scatter plot. Since our data set is based on a quadratic function, we must use a curve instead of a line. This process, called quadratic regression, is the process of determining the equation of a parabola that best fits a data set.

1.

Examine the data set and graph given in the Desmos graphing tool below.

2.

Examine the data. Do they appear to you to form a line or a curve?

3.

We will use graphing technology to find a curve of best fit. Click the pointer below the table into entry box #2 to enter a new function. The cursor should start blinking. Enter the equation:

y 1 ~ a x 1 2 + b x 1 + c y 1 ~ a x 1 2 + b x 1 + c

  • Notice that when you type the 1 after y y or x x , Desmos automatically places it as subscript.
  • Also notice that we are not using an equal sign. The symbol ~ means approximately and tells Desmos to approximate a line or curve of best fit. It should be in the top-left corner of your keyboard, and you might press it using the Shift button. If you are using the Desmos on-screen keyboard, it will be on the ABC keyboard.
  • After pressing the subscript 1 after the y y and the first x x , use the ^ symbol to tell Desmos you would like to enter an exponent.
4.
  1. Once you have entered the curve of best fit, you can press Enter. The curve of best fit will appear. Your screen will look like this:

Look in the lower-left corner of the screen. We will use the a a , b b , and c c values to construct the equation for our curve of best fit.

5.

Enter the value of a a .

What is the value of a a rounded to the nearest hundredth?

6.

Enter the value of b b .

What is the value of b b rounded to the nearest hundredth?

7.

Enter the value of c c .

What is the value of c c rounded to the nearest hundredth?

8.

Write an equation in the form y = a x 2 + b x + c y = a x 2 + b x + c for the curve of best fit using the values you found.

You may notice the R 2 R 2 value. The closer this value is to 1, the better your curve of best fit matches the data set. The R 2 R 2 value for this data set is 0.9972. Since this value is relatively close to 1, this curve of best fit is a reasonably accurate match to the data set.

Self Check

Find the equation of the curve of best fit. Round each coefficient to the nearest hundredth.

Which is the equation of the curve of best fit?

  1. y = − 0.91 x 2 + 2.23 x + 16.42
  2. y = − 0.94 x 2 + 4.51 x + 16.96
  3. y = − 0.97 x 2 + 7.62 x + 19.34
  4. y = − 0.92 x 2 + 4.25 x + 8.36

Additional Resources

Finding the Curve of Best Fit

Let's find the curve of best fit for a given data set.

Use the Desmos graphing tool to determine the equation.

Step 1 - Click the + symbol in the top left and select a table.

Enter the data set as shown. Press Enter.

x 1 x 1 y 1 y 1
1 99.7
2 130
3 149
4 172
9 175
11 140

The data set will populate the graph as shown here.

Step 2 - On the left side, click in box #2 for a new item. Enter the instruction line below to generate a curve of best fit.

y 1 ~ a x 1 2 + b x 1 + c y 1 ~ a x 1 2 + b x 1 + c

  • Remember from the activity that Desmos will automatically place the 1 as subscript after an x x or y y .
  • Don't forget to use the symbol ~ that means approximately.
  • Use the ^ symbol to enter an exponent.

As soon as you enter the instruction line, Desmos will generate the curve of best fit.

Step 3 - Use the coefficients generated to write the equation for the curve of best fit.

Round each coefficient to the nearest hundredth.

The curve of best fit is y = − 2.76 x 2 + 37.04 x + 65.66 y = − 2.76 x 2 + 37.04 x + 65.66 .

Try it

Finding the Curve of Best Fit

Find the equation of the curve of best fit. Round each coefficient to the nearest hundredth.

Citation/Attribution
Reuse and redistribution of this content in digital or print format:
  • This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

  • If you are redistributing all or part of this book in a noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

Citation information

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Apr 23, 2026 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.