Function Fitting

Grade 11 · algebra · 100 practice problems · read aloud

🔊 Listen to this explanation

Function Fitting: Modeling the Real World

Function fitting (or regression) is the process of finding a mathematical function that best models a set of data points. It's incredibly useful for making predictions, identifying trends in real-world data (like population growth or projectile motion), and simplifying complex relationships into a usable formula. 🔍

Step-by-Step Guide

  1. Examine the Data: Plot the points and look for a pattern (linear, quadratic, exponential).
  2. Choose a Model: Based on the shape, decide on a general function type (e.g., y = mx + b, y = ax² + bx + c).
  3. Use Technology: Input your data into a graphing calculator or software (like Desmos) to calculate the line or curve of best fit.
  4. Write the Equation: The tool will give you the specific equation with calculated coefficients.
  5. Interpret & Predict: Use your equation to make predictions by substituting new x-values.

Worked Examples

Example 1: Linear Fit

Data: (1, 2), (2, 3.1), (3, 3.9), (4, 5.1)

Step 1: Plotting shows a roughly straight line. Step 2: Choose a linear model: y = mx + b. Step 3: Using a calculator, the line of best fit is approximately y = 1.03x + 0.95. Step 4: To predict y when x=5, calculate y = 1.03(5) + 0.95 = 6.1.

Example 2: Quadratic Fit

Data: (-2, 4), (-1, 1), (0, 0), (1, 1), (2, 4)

Step 1: The data forms a perfect "U" shape. Step 2: Choose a quadratic model: y = ax² + bx + c. Step 3: Technology gives the exact equation: y = 1.0x² + 0x + 0, or simply y = x².

Common Mistakes

  • Forcing a Linear Model: Not all data is linear! Look at the plot's shape first.
  • Misinterpreting Correlation: A strong fit does not always mean one variable causes the other.
  • Over-Extrapolating: Predictions far outside your data range can be highly unreliable.
  • Rounding Too Early: Wait until the final answer to round coefficients, or your predictions will be off.

Tips & Tricks

  • Shape Guide: Straight line → Linear. Parabola → Quadratic. Rapid growth/decay → Exponential.
  • R² Value: Use the correlation coefficient (R²). Closer to 1 means a better fit.
  • Residuals: Check the residual plot (the differences between actual and predicted values). A random scatter confirms a good model choice.

Practice Suggestions

To master this, try these activities:

  • Collect your own data (e.g., time vs. phone battery percentage) and find the best-fit function.
  • Use online applets like Desmos to drag points and watch the line of best fit change in real-time.
  • Practice identifying the function type just by looking at scatter plots.
  • Work on problems that ask you to interpret the meaning of the slope and y-intercept in your fitted equation.

Practice problems

6 of the 100, worked through step by step — try them before opening the answer.

1 Mere records the following data: (1, 12), (2, 36), (3, 108), (4, 324). Which type of function (linear, quadratic, or exponential) best models this data? Estimate the value when x = 5.

Hint: Look at the ratios between consecutive y-values. If the ratio is constant, the data is exponential. If the first differences are constant, it is linear. If the second differences are constant, it is quadratic.

Show the answer

Answer: exponential; 972

  1. Check first differences: 36 - 12 = 24, 108 - 36 = 72, 324 - 108 = 216. Not constant, so not linear.
  2. Check second differences: 72 - 24 = 48, 216 - 72 = 144. Not constant, so not quadratic.
  3. Check ratios: 36/12 = 3, 108/36 = 3, 324/108 = 3. Constant ratio of 3, so exponential.
  4. The function is y = 12 * 3^(x-1). For x = 5: y = 12 * 3^4 = 12 * 81 = 972.

The answer is exponential; 972.

2 Isabella records the following data: (1, 9), (2, 27), (3, 81), (4, 243). Determine which function type best fits the data (linear, quadratic, or exponential) and estimate the value when x = 5.

Hint: Look at the ratio of consecutive y-values. If the ratio is constant, the data is exponential. If the first differences are constant, it is linear. If the second differences are constant, it is quadratic.

Show the answer

Answer: exponential; 729

  1. Check first differences: 27 - 9 = 18, 81 - 27 = 54, 243 - 81 = 162. Not constant, so not linear.
  2. Check second differences: 54 - 18 = 36, 162 - 54 = 108. Not constant, so not quadratic.
  3. Check ratios of consecutive y-values: 27/9 = 3, 81/27 = 3, 243/81 = 3. Constant ratio of 3, so the data is exponential.
  4. The exponential model is y = 9 * 3^(x-1). For x = 5: y = 9 * 3^4 = 9 * 81 = 729.

The answer is exponential; 729.

3 Hana records the following data: (1, 24), (2, 12), (3, 6), (4, 3), (5, 1.5). Which type of function best models this data: linear, quadratic, or exponential? Estimate the value of y when x = 6.

Hint: Look at the ratios between consecutive y-values. If they are constant, the data is exponential. If the first differences are constant, it is linear. If the second differences are constant, it is quadratic.

Show the answer

Answer: Exponential; y ≈ 0.75

  1. Check first differences: 12 - 24 = -12, 6 - 12 = -6, 3 - 6 = -3, 1.5 - 3 = -1.5. Not constant, so not linear.
  2. Check second differences: -6 - (-12) = 6, -3 - (-6) = 3, -1.5 - (-3) = 1.5. Not constant, so not quadratic.
  3. Check ratios: 12/24 = 0.5, 6/12 = 0.5, 3/6 = 0.5, 1.5/3 = 0.5. Constant ratio of 0.5, so exponential.
  4. The function is y = 24 * (0.5)^(x-1). For x = 6, y = 24 * (0.5)^5 = 24 * 1/32 = 24/32 = 3/4 = 0.75.

The answer is exponential; y ≈ 0.75.

4 Liam records the following data: (1, 7), (2, 21), (3, 63), (4, 189). Which type of function (linear, quadratic, or exponential) best fits this data? Write the estimated equation of the function.

Hint: Look at the ratios between consecutive y-values. If the ratio is constant, the data is exponential. If the first differences are constant, it is linear. If the second differences are constant, it is quadratic.

Show the answer

Answer: exponential, y = 7 * 3^(x-1) or y = (7/3) * 3^x

  1. Check first differences: 21 - 7 = 14, 63 - 21 = 42, 189 - 63 = 126. Not constant, so not linear.
  2. Check second differences: 42 - 14 = 28, 126 - 42 = 84. Not constant, so not quadratic.
  3. Check ratios: 21/7 = 3, 63/21 = 3, 189/63 = 3. Constant ratio of 3, so the data is exponential.
  4. The general form is y = a * b^x. Using point (1, 7): 7 = a * b^1. Using point (2, 21): 21 = a * b^2. Divide: 21/7 = (a*b^2)/(a*b) => 3 = b. So b = 3.
  5. Substitute b = 3 into 7 = a * 3^1 => 7 = 3a => a = 7/3.
  6. Equation: y = (7/3) * 3^x. Alternatively, y = 7 * 3^(x-1).

The answer is exponential, y = 7 * 3^(x-1) or y = (7/3) * 3^x.

5 Mason records the following data: (1, 12), (2, 36), (3, 108), (4, 324). Determine which function type (linear, quadratic, or exponential) best fits the data, and write the equation of the model.

Hint: Look at the ratios between consecutive y-values. If the ratio is constant, the data is exponential. If the first differences are constant, it is linear. If the second differences are constant, it is quadratic.

Show the answer

Answer: Exponential; y = 4 * 3^x

  1. Check first differences: 36 - 12 = 24, 108 - 36 = 72, 324 - 108 = 216. Not constant, so not linear.
  2. Check second differences: 72 - 24 = 48, 216 - 72 = 144. Not constant, so not quadratic.
  3. Check ratios: 36/12 = 3, 108/36 = 3, 324/108 = 3. The ratio is constant (3), so the data is exponential.
  4. Exponential form is y = a * b^x. Using point (1, 12): 12 = a * b^1. Using point (2, 36): 36 = a * b^2. Divide second equation by first: (36)/(12) = (a * b^2)/(a * b) => 3 = b. Then 12 = a * 3 => a = 4. So the equation is y = 4 * 3^x.

The answer is exponential; y = 4 * 3^x.

6 Noah records the following data: (1, 6), (2, 11), (3, 16), (4, 21). Determine which type of function (linear, quadratic, or exponential) best fits the data, and write the equation of the function.

Hint: Calculate the first differences between consecutive y-values. If they are constant, the data is linear. Then use the slope-intercept form to find the equation.

Show the answer

Answer: Linear; y = 5x + 1

  1. Calculate first differences: 11 - 6 = 5, 16 - 11 = 5, 21 - 16 = 5. The first differences are constant (5), so the data is linear.
  2. The slope m = 5. Using point (1, 6): 6 = 5(1) + b => b = 1.
  3. Equation is y = 5x + 1.

The answer is linear; y = 5x + 1.

Practise this topic — 10 free problems, no signup →