Aniko

Custom regression for one unknown parameter

Lesson progressPractice problems 0/5

Learn to use one fact about a function and a custom Desmos regression to find one unknown constant in a linear or nonlinear function model.

Difficulty
Advanced
Estimated time
40 minutes

What you’ll learn

  1. Find one unknown constant in a function from one fact about it, like f(4)=16f(4)=16.
  2. Decide quickly whether to plug in by hand or let Desmos do the algebra.
  3. Type the fact into Desmos with a tilde, ∼\sim, keeping the function exactly as given.
  4. Use the value Desmos finds to answer the real question, then check it.

Why this matters on the SAT

Let Desmos find the missing constant

Some SAT questions give you a function with one missing number, plus one fact about the function, like f(4)=16f(4)=16. Find the missing number, and the rest of the question falls into place.

That missing number is called a parameter: a constant that shapes the function, like its slope, stretch or shift. You could solve for it by hand. Or you could type the fact into Desmos with a tilde, ∼\sim, where the equals sign would go, and let Desmos find the value that makes it true. Typing a fact this way is called custom regression, or a regression for short. You give Desmos your exact function and one fact, and it finds the missing number.

Here it is on a typical SAT question.

SAT example

The linear function ff is defined by

f(x)=(p−3)x+(2p+4),f(x)=(p-3)x+(2p+4),

where pp is a constant. If f(4)=16f(4)=16, what is the value of f(9)f(9)?

Fast Desmos solution

Put 44 in for xx, put 1616 on the other side, and use a tilde where the equals sign would go:

16~(p-3)*4+(2p+4)

Desmos finds p=4p=4. Now type the function, f(x)=(p-3)x+(2p+4), and then f(9). Desmos fills in p=4p=4 for you and shows 21\boxed{21}.

Why not solve it by hand? Plugging in gives 4(p−3)+(2p+4)=164(p-3)+(2p+4)=16, with pp in two places. You'd distribute, combine like terms and then solve, and every step is a chance to drop a sign. With the tilde, you type the function exactly as it's printed and skip all of that.

Swap == for ∼\sim, and Desmos does the algebra. It isn't always the fastest move, though. Sometimes plugging in finishes the job in one step.

Calculator loads as you approach
The first line finds p. The function then uses that value, so f(9) shows 21.

When should you use this method?

Look for questions that give you the function's form, exactly one unknown constant and one fact about the function, like f(6)=11f(6)=11 or a point on its graph. The constant shouldn't be squared, under a root, in a denominator or in an exponent.

Before you open Desmos, plug the fact in by hand and look at what's left. It takes a few seconds, and it tells you which way to go. Use a regression only when typing the function as given is faster or safer than finishing by hand.

More than one step? Use a regression when…

  • the constant appears more than once, like pp in (p−3)x+(2p+4)(p-3)x+(2p+4)

  • the function is built from another one, like f(2x+1)+4f(2x+1)+4, and rewriting it by hand invites mistakes

  • the fact comes as a point, graph or table that's quicker to type than to solve

Skip the regression when…

  • One step finishes it, like 3k=123k=12. Solve it by hand, even if the function looks complicated.

  • You need to see it on the graph, like a line that touches a curve at exactly one point. That's a job for a slider. Confirm the value exactly afterward.

One unknown needs one fact. With two or more unknown constants, one point usually can't pin them all down.

Check your understanding:

The function f(x)=3x+kf(x)=3x+k satisfies f(5)=19f(5)=19. Would you start by plugging in, with a regression or with a slider?

Check your understanding:

A function has the form f(x)=ax2+bx+cf(x)=ax^2+bx+c, where aa, bb and cc are all unknown, and you know only one point on its graph. Can one regression pin down the function?

Turn the fact into a regression

When a regression is the right call, writing one takes three moves: put the known input into the function, put the known output on the other side, and use ∼\sim in place of ==.

The tilde is what makes this work. An equals sign tells Desmos to graph something or define it. It doesn't ask Desmos to find the unknown.

Here's how common facts translate:

  • f(c)=df(c)=d, or a point (c,d)(c,d) on the graph: type d~ and then the function with cc in place of xx.
  • An xx-intercept at x=cx=c: the input is cc and the output is 00.
  • A yy-intercept of dd: the input is 00 and the output is dd.
  • A maximum or minimum at (c,d)(c,d): the input is cc and the output is dd. But a regression only puts (c,d)(c,d) on the graph. It can't make that point the peak or the valley, so check that part yourself.

Say

q(x)=a(x−2)2−5q(x)=a(x-2)^2-5

and the graph passes through (6,11)(6,11). Type:

11~a(6-2)^2-5

Desmos finds a=1a=1.

One catch: the fact has to tell you something new about aa. Try the point (2,−5)(2,-5) instead. Plugging in x=2x=2 gives a(2−2)2−5a(2-2)^2-5, which is −5-5 no matter what aa is. Every parabola in this family passes through (2,−5)(2,-5), so that point can't tell them apart. The point (6,11)(6,11) can.

Common mistake:

Swapping the input and the output. For the point (6,11)(6,11), the 66 goes inside the function and the 1111 goes on the other side: 11~a(6-2)^2-5, not 6~a(11-2)^2-5.

Check your understanding:

The graph of rr has an xx-intercept at x=−3x=-3. How would you write this fact as a regression, or as a table row?

Calculator loads as you approach
The fact q(6) = 11 finds a, and q(0) then uses that a.

Use a table when it's clearer

A table holds the same fact as a point. Put the input in x_1 and the output in y_1. Then write the function with three swaps:

  • x_1 in place of the input variable;
  • y_1 in place of the output;
  • ∼\sim in place of ==.

For

q(x)=a(x−2)2−5,q(x)=a(x-2)^2-5,

that's:

y_1~a(x_1-2)^2-5

One point and one unknown, so Desmos finds the same a=1a=1.

Try it yourself:

Change the table output from 1111 to 2727. Predict how aa and q(0)q(0) will change, then check in the calculator. Reset the example when you're done.

With a table in front of you, you might reach for Desmos's built-in quadratic regression:

y1∼ax12+bx1+c.y_1\sim ax_1^2+bx_1+c.

It's a natural move, but it won't work: that form has three unknowns, and you have one fact. The problem already told you the function's exact form, so use it.

Check your understanding:

The graph of r(x)=cx+1+2cr(x)=\frac{c}{x+1}+2c passes through (3,21)(3,21). Which method should you lead with? Write the entry and say what value Desmos should find.

Calculator loads as you approach
The table version keeps the vertex at (2, -5) and finds only a.

Give Desmos only one letter to find

This check takes a second and saves a lot of confusion. Before you run a regression, make sure the only letter without a value is the one you want Desmos to find.

In

f(x)=a(x−3)2−2,f(x)=a(x-3)^2-2,

xx is the input, aa is the unknown, and 33 and −2-2 are fixed numbers. In a table version, x_1 and y_1 hold the known inputs and outputs, and aa gets no value, so Desmos is free to find it.

Here's how that goes wrong. Say you made a slider a=2 earlier while exploring. Desmos now treats aa as fixed, so the regression won't find it. Delete that line or switch to a fresh letter.

Don't worry about subscripts on the unknown: a and a_1 both work, as long as you use the same name everywhere. The names that must match exactly are the table's. If the columns are labeled x_1 and y_1, your regression has to say x_1 and y_1 too.

Example: Find the constant in a composed model

This one has two functions, one built from the other, and that's where it's easy to slip. Go one step at a time, and keep asking which function the point belongs to.

Worked example

The functions ff and

gg are defined by

f(x)=a(x−3)2−2f(x)=a(x-3)^2-2

and

g(x)=f(2x+1)+4,g(x)=f(2x+1)+4,

where aa is a constant. The graph of gg passes through (2,22)(2,22)

. What is the value of f(0)f(0)?

Step 1

Count unknowns and facts

There's one unknown, aa, and one fact, the point (2,22)(2,22). One unknown, one fact, so one regression can find aa. The tricky part is which function that point belongs to.

Step 2

Build g from f

The point is on the graph of gg, not ff, so the regression has to describe gg. Put 2x+12x+1 in place of xx in ff, then add 44:

g(x)=a((2x+1)−3)2−2+4.g(x)=a\big((2x+1)-3\big)^2-2+4.

There's no need to simplify. Desmos handles the nested version fine.

Step 3

Let Desmos find a

Put in the point: 22 for xx, and 2222 on the other side.

22~a((2*2+1)-3)^2-2+4

Desmos finds a=5a=5.

Calculator loads as you approach
The point is on g, so the regression uses all of g.

Step 4

Answer the question asked

Careful here: the question asks for f(0)f(0), not aa and not g(0)g(0). Go back to ff with a=5a=5:

f(0)=5(0−3)2−2=5(9)−2=43.\begin{aligned} f(0) &=5(0-3)^2-2\\[1.4em] &=5(9)-2\\[1.4em] &=\boxed{43}. \end{aligned}

Now check a=5a=5 against the fact you were given. Inside gg, (2x+1)−3=2x−2(2x+1)-3=2x-2 and −2+4=2-2+4=2, so

g(2)=5(2⋅2−2)2+2=5(4)+2=22.g(2)=5(2\cdot2-2)^2+2=5(4)+2=22.

It matches, so the answer is 4343.

The algebra was never the hard part here. The hard part was seeing that the point belongs to gg. Once you had that, one regression did the rest.

Common mistake:

Plugging (2,22)(2,22) into ff instead of gg. That gives a−2=22a-2=22, so a=24a=24 and f(0)=214f(0)=214, nowhere near 4343. The point is on gg, so the regression needs all of gg: the 2x+12x+1 inside and the +4+4 outside.

Use the value, then check it

Desmos remembers the value it finds. So after it finds aa, type the original function with aa in it, and Desmos fills in the value for you. You never have to retype a rounded decimal.

When the unknown is only multiplied or divided by known numbers or expressions, or added, like the aa in a⋅3xa\cdot3^x or ax−2\frac{a}{x-2}, Desmos solves for it directly, with no guessing. Those are the questions this lesson covers, and the value is still worth checking against the fact. If the unknown is squared, under a root, in a denominator like 1x−a\frac{1}{x-a}, or in an exponent like 3ax3^{ax}, Desmos has to search for it, and the search can miss. That's beyond this lesson. If you try it, plug the result back in, and a later lesson covers what can go wrong.

What Desmos shows is a decimal, and it may be rounded, so the digits alone can't prove an exact fraction. When a decimal looks like a familiar fraction, the answer choices or a quick conversion can point you to it, the way 9.3339.333 pointed to 283\frac{28}{3} for rr. Then plug the fraction into the original fact to confirm it.

Last, before you answer, take a few seconds for four checks. Each one catches a common slip:

  1. Does the value make the given fact true?
  2. Did you use the right function, including any shift or stretch? In the example, the point was on gg, not ff.
  3. Are you answering what's asked? There, it was f(0)f(0), not aa.
  4. Did you avoid inputs xx can't take, like one that makes a denominator 00?

Finish the solution

The regression and the function hh are already in the calculator, and Desmos has found kk. Your job is the last step: use kk to find the value the question asks for.

Finish the solution

The function hh is defined by

h(x)=kx2−1+2k,h(x)=\frac{k}{x^2-1}+2k,

where kk is a constant and x≠−1,1x\ne-1,1. If h(2)=21h(2)=21, what is the value of

h(12)?h\left(\frac12\right)?

First steps

  1. Put 22 in for xx and 2121 on the other side.
  2. Type it with a tilde: 21~k/(2^2-1)+2k.
  3. Desmos finds k=9k=9.

Finish it

Calculator loads as you approach
Desmos has found k. Add h(1/2) on a new line to finish.

Practice problems

These four don't all want Desmos. Plug each fact in first. If one step finishes it, solve by hand; otherwise use a regression when it's faster or safer.

Practice problem

The function ff is defined by

f(x)=a⋅3x−1−5,f(x)=a\cdot3^{x-1}-5,

where aa is a constant. If f(1)=4f(1)=4, what is the value of f(0)f(0)?

Calculator loads as you approach
Plugging in by hand wins here. Use the calculator only if you want to check f(0)f(0).

Practice problem

The linear function gg is defined by

g(x)=(p−2)x+(3p−1),g(x)=(p-2)x+(3p-1),

where pp is a constant. If g(4)=19g(4)=19, what is the value of g(9)g(9)?

Answer choices
Calculator loads as you approach
Type the fact with a tilde, keep both p terms, and then evaluate g(9).

Practice problem

The quadratic function qq is defined by

q(x)=a(x+1)(x−7),q(x)=a(x+1)(x-7),

where aa is a constant. The maximum value of qq is 88, and it occurs at x=3x=3. What is the value of q(0)q(0)?

Answer choices
Calculator loads as you approach
Plug in the maximum point (3,8)(3,8) by hand. Use the calculator only if you want to check q(0)q(0).

Practice problem

The functions ff and gg are defined by

f(x)=ax−2+1f(x)=\frac{a}{x-2}+1

and

g(x)=2f(x+1)−3,g(x)=2f(x+1)-3,

where aa is a constant. If g(4)=7g(4)=7, what is the value of f(−1)f(-1)?

Calculator loads as you approach
Write out all of g, find a from g(4) = 7, then evaluate f(-1).

Finish the lesson

5 practice examples left

Finish the remaining questions correctly to complete this lesson.

Quick recap

  • Spot it: a function with one unknown constant, plus one fact that pins it down.
  • Choose: plug in first. One step? Finish by hand. More than that? Use a regression when it saves time or prevents mistakes.
  • Type it: enter the function exactly as given, with ∼\sim in place of ==, and make sure the unknown is the only letter without a value.
  • Finish: let Desmos reuse the value, answer the question that's asked, and check it against the original fact and any limits on xx.

Next lesson

Custom regression with multiple conditions

Combine several exact conditions in one matched-list or table-based custom regression.

Start next lesson

Practice

Practice this lesson

132 SAT questions use what this lesson teaches. Practice a few in a study session at the difficulty you choose.

Start practice

Free practice set

SAT Desmos Regression Practice

Practice Desmos regression on 68 SAT questions, from fitting a table to custom regression, circle regression and equivalent expressions. Every question has a step-by-step Desmos solution.

Practice the set