Evaluate a rational function
Practice problem
The function is defined by
where . What is the value of ?
g(-1).Why this matters on the SAT
SAT function questions usually give you one side, an input or an output, and ask for the other. So before any algebra, ask: which way is this question going? Then keep every answer that fits the original conditions.
Solution to the example
You're given the output, , so set the rule equal to :
Subtract and you get . Two numbers square to , so or . That gives or . The question also says , which rules out . So , and the answer is A.
This question runs backward through the function: you know the output and need the input. Solving gave you two possible inputs, and the condition picked the one that works.
Keeping only after taking the square root. It’s an easy slip, because is the square root most people think of first. But has two real solutions, and . Write both down before you apply any restriction. Stopping at leads straight to choice C, the trap.
SAT example
The function is defined by
If and , what is the value of ?
Function notation links an input to an output, and each symbol has its own job.
Look for function notation with a known input or a known output. If the question gives , you know the input, so go forward to the output. If it gives , you know the output, so go backward to every input that works. A nested expression like makes the same forward-or-backward choice, one layer at a time.
What each symbol in function notation means
| Symbol | Job | Read it as |
|---|---|---|
| Function name | The rule you apply | |
| Input | A stand-in for any allowed number you put into the rule | |
| Output | What comes out after goes through the rule | |
| Input and output together | Put in , get out |
The wording tells you which way to go:
Ask what the question gives you and what it wants.
You know and an input such as . Replace every with and simplify.
The input is known. The output is what you find.
You know . Set the function rule equal to and solve for every possible .
The output is known. One input may work, or several may.
Whatever sits inside the parentheses is the input, all of it: in , the input is , not . At the end, keep only the solutions the original function and the question's conditions allow.
Evaluating is substitution: means "put into the rule and see what comes out." Replace every copy of the variable with the input, put the input in parentheses if it's negative or a fraction, and then follow the usual order of operations.
It works the same way for every family of functions:
One evaluation in each function family
| Family and rule | Input | Evaluation |
|---|---|---|
| Polynomial: | ||
| Exponential: | ||
| Radical: | ||
| Rational: |
Why the parentheses matter. Take from the table. With parentheses, starts as , which is . Without them, you'd write and get . The turned into , and the turned into , so both products became subtractions.
If , what is ?
For one short substitution like these, hand work is usually faster, and you see any domain problem, like a zero denominator, as you go.
When you'll use the same rule more than once, Desmos saves you work. Define the rule once instead of typing the formula again:
p(x)=x^2-1
p(-2)
p(p(-2))
Desmos gives , then feeds that output back in as the next input:
The nested parentheses keep the inside-out order for you. Defining once helps most when the input is negative or a fraction, the rule is long, you need several outputs, or one function sits inside another. Keep the definition on its own line, where you can check it, and ask for each value on a new line below it. Every value then comes from the same rule, so you only have to type it correctly once.
When you're given an output, turn the function statement into an equation. In the opening, became : the rule, with in place of , set equal to the output. In general:
Watch the word every. A nonlinear function can send two or more inputs to the same output. You saw this in the opening: and both give .
Here's the move for each family:
Working backward in each function family
| Family | Equation | Exact solution |
|---|---|---|
| Polynomial | , so or | |
| Exponential | , so | |
| Radical | , so . That's allowed, since the domain is | |
| Rational | , so . That's allowed, since only is ruled out |
Found only one input? Go back to the line where you squared, factored, or took a root, and look for the branch you skipped. Found an extra one? Go back to the original denominator, the radical, and any conditions in the question. Your final answers have to pass both checks.
The function is defined by . If , what is the sum of all possible values of ?
Worked example
The function is defined by
for . What is the sum of all values of for which ?
Start with Desmos, so you know how many solutions to look for. Enter the function with its restriction, and the target:
r(x)=x+6/(x+1){x>0}
y=5
Select both intersections. Their -coordinates are about and . So the equation has two positive solutions, and you know not to stop after one.
The graph tells you how many solutions there are and roughly where. Algebra gives the exact values:
Since , the denominator can't be zero, so it's safe to multiply both sides by :
Expand and collect everything on one side:
This doesn't factor nicely, so complete the square. Move the over, then add to both sides:
Take the square root and keep both signs, as in the opening: or . So
Both values are positive, so both count. Their sum is
Read the graph and the algebra together. The two intersections kept you from stopping after one solution. But the decimals aren't the final answer: the exact values are radicals, and the parts cancel when you add them.
This is a hybrid problem: Desmos and algebra each did a job. Remember the split: the graph counts, the algebra finishes. The algebra is also where you check the domain, as when told you that couldn't be zero.
Sometimes you already know the function's form, like
where , , and , and your job is to find the numbers , , and . These fixed numbers are the function's parameters, and each one does a different job:
That last point is the key. Since is added to every output, it cancels when you subtract one output from the next.
Here's an example. Suppose you know three outputs:
Three outputs of
Find the first two changes, from each output to the next:
and
Why does this help? From the form, , , and . Subtracting cancels the each time:
So is times , and dividing by leaves :
Now gives , so . Last, gives . The exact function is
Check it against the last row: , which matches.
It can try, with a regression that fits the form to the table. But a regression can return decimal estimates, and a decimal won’t always tell you whether is exactly or only close to it. Subtracting outputs takes less setup, gives you , then , then as exact numbers, and leaves you a table to check them against.
In , the output of the inner becomes the input of the outer . A function inside a function like this is called a composite.
Going forward takes one step per layer. To evaluate a composite at one number when the arithmetic is quick, work from the inside out by hand, in the same order Desmos followed for above.
Working backward to find every input is where answers go missing. The outer equation can have more than one solution, and each of those can come from more than one inner input. That's a lot of branches to track by hand, so let Desmos do the counting. For the same function,
here's how to find every with :
p(x)=x^2-1
p(p(x))=0
Desmos shows , , and . Seeing all three at once keeps you from losing a branch hidden in the inner function.
Those decimals are enough when they tell the answer choices apart. If the question wants exact values, like instead of , or you need to show where each root comes from, finish with algebra. Give the inner output a temporary name, :
Now send both values of back to the inner function:
and
So the complete set of real solutions is
Why would solving only miss a valid input in the example above?
Reading a graph's features, building models from word problems, and shifting graphs come later, in nonlinear graph features, exponential models, and nonlinear function transformations.
Ask what the question needs most: every solution, an exact value, or an input the function allows. A graph makes it hard to miss a solution. Algebra keeps values exact and shows you the domain check.
the substitution is short, like for . That's usually faster than typing in the rule.
you can see a shortcut, like the common base in , a factorization, or outputs one step apart that you can subtract.
the graph has found the solutions and you need their exact values, like instead of .
simplifying could hide an input the function doesn't allow. simplifies to , but is still ruled out.
a line like may cross the graph more than once, as in the rational example. The graph shows you how many solutions to find.
the rule is long, the input is awkward, or you need the same rule again and again, as in . Define it once and reuse its name.
you're working backward through a composite, like , where one output can lead back to several inputs.
decimals are enough to tell the answer choices apart. If only one choice is close to , you don't need to show it's .
Either way, check every answer against the original function and the question's conditions before you pick a choice.
These run from a direct evaluation to a restricted input, exact parameters, and a function inside a function. Before each one, decide: by hand, Desmos, or both?
Practice problem
The function is defined by
where . What is the value of ?
g(-1).Practice problem
The function is defined by
where . What is the sum of all real values of for which ?
Practice problem
The function is defined by , where , , and . Some values of and are shown.
What is the value of ?
Practice problem
The function is defined by
What is the sum of all distinct real solutions to ?
p(p(x))=0 as in the composite example, and count every root before you add.Finish the lesson
Finish the remaining questions correctly to complete this lesson.
Next lesson
Interpret intercepts, extrema, symmetry, and end behavior from nonlinear graphs.
Start next lessonPractice
484 SAT questions use what this lesson teaches. Practice a few in a study session at the difficulty you choose.
Start practice