Desmos tables, regressions and sliders
Fit a linear or exponential model to a table in Desmos and read its constants, and use a slider to find an unknown constant that gives a graph a stated feature.
It opens on
The café sold these cups on eight days from 62°F to 90°F. On a 95°F day, will it sell about 60, about 90 or about 120 cups?
Why it matters
SAT data and modelling questions print a table or a scatterplot, and some Advanced Math questions hide a constant; Desmos's table, its fit line y₁ ~ mx₁ + b and its sliders answer them in a few keystrokes.
Good to know first
- Solving with the Desmos graphing calculator: typing y = … and clicking crossings and zeros
- slope and intercept of a line
- growth by a constant percent as repeated multiplication
Step by step
A table and a line of best fit
Type a table into Desmos, fit y₁ ~ mx₁ + b, interpret the slope and intercept, and predict from the line.
Desmos gives m ≈ 1.53 and b ≈ −56.26, so the line of best fit is y = 1.53x − 56.26.
m ≈ 1.53, b ≈ −56.26, y = 1.53x − 56.26
A common mix-up
The line of best fit passes through every data point.
In fact: It passes near them; the 74°F day sold 58 cups and the line gives about 57.
An exponential fit, solved by graphing
Fit y₁ ~ a·bˣ¹ to a table, read the growth rate from b, and solve an equation with the model by graphing.
Desmos returns a = 1024 and b = 1.25, so the model is y = 1024(1.25)ˣ.
a = 1024, b = 1.25
A common mix-up
A table that rises steadily is linear.
In fact: From 1,024 to 1,280 is 256 more, but from 2,000 to 2,500 is 500 more; equal ratios of 1.25, not equal differences, mean exponential.
A slider for an unknown constant
Use a Desmos slider to find the constant that makes a graph touch the x-axis once, and check it with the discriminant.
The algebra check is the discriminant. −40x² + 320x − k = 0 has exactly one solution when 320² − 4(−40)(−k) = 0, so 102,400 − 160k = 0 and k = 640.
320² − 4(−40)(−k) = 0, 102,400 = 160k, k = 640
A common mix-up
A bigger fixed cost changes the best price.
In fact: Every curve in the family has its top at x = 4; k only slides the curve up or down.
Try it
A table of a linear function f gives f(2) = 11, f(5) = 20 and f(9) = 32. Use a fit to find f(x).Answer
f(x) = 3x + 5 (hint: x₁ = 2, 5, 9 and y₁ = 11, 20, 32, then y₁ ~ mx₁ + b).
A table gives y = 50, 60, 72 and 86.4 for x = 0, 1, 2 and 3. Fit an exponential. By what percent does y grow each step?Answer
20 percent (the fit is y = 50(1.2)ˣ) (hint: type y₁ ~ a·bˣ¹ and read b).
The graphs of y = x² + k and y = 2x meet at exactly one point. Use a slider for k to find k.Answer
k = 1, the parabola touching the line at (1, 2) (hint: slide k until the parabola just touches the line).
What does the slope, 1.53, mean for the café?Answer
About 1.5 more cups sold for each degree warmer
b is 1.25. By what percent do the followers grow each month?Answer
25 percent, since each month is 1.25 times the month before
