We want to see how changing an equation moves or reshapes its graph, and how to write the new equation when a graph moves, without plotting points from scratch.
1
Changes outside f(x)
First, we want to know what happens to a graph when we add, subtract, or multiply outside f(x), as in f(x)+3 or −2f(x)+3.
Changes outside f(x)
Since f(x) is the height of the curve at x, anything written outside f(x) works right on that height, in the usual order of operations. If there's both multiplying and adding outside, multiply first, then add, just like ordinary arithmetic:
y=−2f(x)+3⟶multiply each height by −2,then add 3
In y=a⋅f(x), every height gets multiplied by a, so the valley and peak move to (−2,−2a) and (0,4a). When a>1, points below the x-axis get pulled further down. When a<0, peaks and valleys flip across the x-axis. And the x-intercept (6,0) stays at height 0 for every value of a.
Multiplying a function by a number multiplies every height by that number, so x-intercepts like (6, 0) stay put on the x-axis no matter what the number is.
2
Changes inside f(x)
Outside numbers change heights after f is done. Now we want to see where points move sideways when we change what's inside the parentheses, as in f(x−3),f(2x), or f(2x−6).
Changes inside f(x)
In y=f(b⋅x), a bigger b makes the curve narrower, not wider. That's because b⋅x reaches the inside values −2 and 6 at smaller x-values, so those points move to (−b2,−2) and (b6,0). The point (0,4) on the y-axis stays put.
The bigger b gets, the less x has to travel to reach the same inside values, so the curve gets narrower, but the point on the y-axis never moves.
When an inside expression combines multiplication and subtraction, you don't have to guess the order of transformations. On our curve f(x) with a peak at (0,4) and an x-intercept at (6,0), we can find where both points move on y=f(2x−6) directly.
Text solution
Set the inside equal to 0 for the peakThe peak still happens when the number inside f equals 0, which tells us the new x-coordinate.
2x−62xx=0=6=3
Set the inside equal to 6 for the x-interceptSetting the inside equal to the old intercept 6 shows that the curve's span narrows from [0,6] (width 6) to [3,6] (width 3).
2x−62xx=6=12=6
3
Transformations in Desmos
When a problem gives an actual formula for f(x) and asks for a vertex or intercept of a transformed graph, we can read it straight off Desmos instead of expanding the algebra by hand.
Transformations in Desmos
Desmos understands function notation, so you can type `f(x) = ...` on line 1, a transformation like `g(x) = -2f(x - 3) + 5` on line 2, and click the vertex or intercepts of `g(x)` to read their coordinates. Skip Desmos when f has no formula (say you only get a single point, two curves without equations, or a table of values), when the answer choices are written in terms of f, or when setting the inside equal to the old x is quicker than typing.
4
Reading standard functions
Many questions leave out f(x) notation and ask for the vertex, corner, starting point, or asymptote of a standard parabola, absolute value, square root, or exponential equation.
Reading standard functions
The inside is whatever wraps right around x: the squared part, the absolute value bars, the square root, or the exponent. Set that inside to 0 to find where the point that used to be at (0,0) ends up:
yyy=−(x−4)2+5⟶vertex at (4,5), opens down=2∣x+3∣−1⟶corner at (−3,−1), twice as steep=x−2+3⟶starts at (2,3)
Take an exponential like y=2x−3+4. The base graph y=2x flattens out above its horizontal asymptote y=0, so adding 4 to every height moves the asymptote up to y=4. For the y-intercept, you still plug in x=0 instead of reading it off the shift numbers:
y=20−3+4=2−3+4=481
In y=2x−h+4, sliding the curve sideways keeps the horizontal asymptote at y=4. But the y-intercept (0,2−h+4) moves up and down the y-axis, because a different part of the curve now crosses x=0.
Slide the curve left or right and its asymptote stays put, but a different part of the curve crosses the y-axis.
5
Tracking points and reading graphs
Some questions give no formula for f(x), only a few points or two curves on a grid. Then we track where those points move, or work backward from the two graphs to write g(x) in terms of f(x).
Tracking points and reading graphs
minimum of f at (−4,6)
y=−3f(x+2)+5
extremum=?
minimum or maximum?
Example 1: The graph of y=f(x) has a minimum at (−4,6). Find the coordinates of the corresponding extremum on y=−3f(x+2)+5, and state whether it is a minimum or a maximum.
Text solution
Set the inside equal to −4The function f hits that minimum only when its input equals −4.
x+2x=−4=−6
Apply the outside operations to height 6At x=−6,f(x+2) equals the old height 6, and multiplying heights by −3 flips the valley into a peak, giving a maximum at (−6,−13).
y=−3(6)+5=−18+5=−13
Now suppose we are tracking x-intercepts through a transformation with no vertical shift.
Example 2: Function f has x-intercepts at x=−2 and x=8. Find the x-intercepts of g(x)=4f(2x−6).
Text solution
Check that height 0 stays at 0Because there is no vertical shift at the end, multiplying height 0 by 4 keeps the x-intercepts on the x-axis wherever f(2x−6)=0.
4⋅0=0
Set the inside equal to −2 and 8Solving for the x-values that make the inside equal −2 and 8 gives the new x-intercepts 2 and 7.
2x−62xx=−2=4=22x−62xx=8=14=7
Finally, suppose both curves are drawn on the same grid and we need the equation for g(x).
Example 3: On the grid below, f(x) has a valley at (1,0) and a peak at (3,2), while g(x) has the corresponding valley at (−4,1) and peak at (−2,7). Write the equation for g(x) in terms of f(x).
x
y
f(x)
(1,0)
(3,2)
g(x)
(−4,1)
(−2,7)
2
2
2
6
Text solution
Compare horizontal widths and find the shiftBoth curves span width 2 from valley to peak, so there is no horizontal stretch, and the valley moves 5 units left from x=1 to x=−4 to give f(x+5).
3−1−2−(−4)=2=2
Divide the vertical rises for the stretchFrom valley to peak, f rises by 2 while g rises by 6 without flipping upside down, multiplying the heights by 3 to give 3f(x+5).
(2−0)6÷2⟶(7−1)=3
Plug in one point for the vertical shiftPlugging x=−4 into 3f(x+5) gives height 0, so we add 1 to match the valley's height at (−4,1), giving g(x)=3f(x+5)+1.
3f(−4+5)⟶g(x)=3f(1)=3(0)=0=3f(x+5)+1
6
Shifting a given formula
Other questions give a formula for f(x), describe a shift in words, and ask for the simplified equation of g(x) or one of its features.
Shifting a given formula
f(x)=4x−7
5left,2down
g(x)=?
Example 1: For f(x)=4x−7, the graph of g is the result of shifting the graph of f5 units to the left and 2 units down. Find the equation of g(x).
Text solution
Write the shift in function notationShifting left 5 and down 2 writes g(x) directly in terms of f.
g(x)=f(x+5)−2
Substitute (x+5) in parentheses for x and simplifyWrapping x+5 in parentheses makes sure the 4 multiplies the entire (x+5), giving g(x)=4x+11.
g(x)=4(x+5)−7−2=4x+20−9=4x+11
Now try an exponential formula that already has numbers around x.
Example 2: The function f is defined by f(x)=3(2)x+1−5. The graph of g is obtained by shifting the graph of f4 units to the right and 7 units up. Find the equation for g(x) and its y-intercept.
Text solution
Write function notation and replace x with (x−4)Putting (x−4) in place of x in the exponent and adding 7 outside gives the simplified equation for g(x) and lifts the horizontal asymptote to y=2.
g(x)=f(x−4)+7=3(2)(x−4)+1−5+7=3(2)x−3+2
Plug in x=0 for the y-interceptPlugging x=0 into the equation gives a y-intercept at (0,819).
g(0)=3(2)−3+2=3(81)+2=819
If a question asks only for the y-intercept g(0) and not the simplified formula, you can skip the algebra and plug x=0 straight into g(x)=f(x−4)+7 to get f(−4)+7.
7
Reading shifts from a table
Finally, a problem may give neither a graph nor a formula, only a table of x,f(x), and g(x) values, and ask for the equation defining g in terms of f.
Reading shifts from a table
x
f(x)
g(x)
12345
107−1416
29107−1
g(x)=?
In g(x)=f(x−h), a positive h shifts the curve right on the grid, and in the table it moves the matching outputs down to rows with larger x. So sliding down the rows of a table is a horizontal shift in x, not a vertical shift in height.
Slide the curve right and every height stays the same, but those same outputs move down the table to rows with larger x.
When a vertical shift is mixed in as well, the run of outputs from f no longer shows up in the g(x) column, because each of those outputs changed by the same amount.
Example: In a table for x=1,2,3,4,5, the column for f(x) reads 10,7,−1,4,16, and at x=3,4,5 the column for g(x) reads 15,12,4. Write the equation for g(x) in terms of f(x).
Text solution
Match the jumps between consecutive outputsIn f(x) at x=1,2,3, the outputs drop by 3 and then drop by 8, and that exact jump pattern appears in g(x) at x=3,4,5.
f(x) at x=1,2,3:10−37−8−1g(x) at x=3,4,5:15−312−84
Read the x-shift and height change, then check one rowMoving from x=1,2,3 to x=3,4,5 shifts x right by 2 while raising each output by 5, giving g(x)=f(x−2)+5, which matches the table at x=4.
g(4)=f(4−2)+5=f(2)+5=7+5=12
With any table question, always plug in one x-value from the table at the end to make sure your horizontal sign isn't reversed.
Key concepts
Every graph transformation comes down to one question: does it happen after f or before f? Numbers outside f(…) work on the output heights, in the usual order of operations. On y=−3f(x+2)+5, an old height of 6 becomes −3(6)+5=−13, and the negative multiplier flips a minimum into a maximum. Things inside f(…) change the input before f sees it, so to find where a point moves, set the whole inside equal to its old x-coordinate. On y=f(2x−6), an old peak at x=0 moves to where 2x−6=0, so x=3. On standard functions, the inside is whatever wraps right around x, like (x−4) in y=−(x−4)2+5 or the exponent in y=2x−3+4. In that exponential, horizontal shifts never move the horizontal asymptote y=4.
Pick your method from what the problem gives you. If f(x) is a formula and the shift is described in words, write function notation first, like g(x)=f(x+5)−2, then put (x+5), in parentheses, in place of every x. If you only need a y-intercept, skip simplifying and just plug in x=0, as in g(0)=f(−4)+7. If the formula has a messy transformation and you just need one point, like an intercept or vertex, type `f(x)` and `g(x)` into Desmos and read it off. Skip Desmos when f has no formula or the choices are written in terms of f. For two graphs without equations, or a table of values, compare spans or the jumps between consecutive outputs first, because shifts never change sizes. Then plug in one point at the end to check your equation.
8
Practice
1
The graph of y=∣x∣ in the xy-plane is shifted 4 units to the right, stretched vertically by a factor of 3, and then shifted 2 units down. Which equation represents the resulting graph?
Where does the corner (0,0) of y=∣x∣ land after shifting right 4 and down 2, and what expression inside the bars equals 0 at that x?
Start with y=∣x∣, whose corner sits at (0,0). For the corner to move 4 units right to x=4, the inside of the absolute value bars must equal 0 when x=4, which gives ∣x−4∣. Writing ∣x+4∣ (Choice B) is a common slip that moves the corner left to x=−4 instead. Stretching vertically by a factor of 3 multiplies the height outside the bars to give 3∣x−4∣, and shifting 2 units down subtracts 2 at the end:
y=3∣x−4∣−2
In Desmos, you could graph each choice and check which one puts the corner at (4,−2) with slopes ±3, though reading the inside and outside changes directly is faster on the test.
Answer: A) y=3∣x−4∣−2
2
The function f is defined by f(x)=5x−9. In the xy-plane, the graph of y=g(x) is the result of shifting the graph of y=f(x)3 units to the left and 4 units down. Which equation defines function g?
Write g(x) in function notation first, then wrap the shifted input in parentheses when replacing x in 5x−9.
Shifting 3 units to the left and 4 units down in function notation is:
g(x)=f(x+3)−4
Replace x in 5x−9 with (x+3) in parentheses. Skipping the parentheses and writing 5x−9+3−4=5x−10 (Choice B) forgets that 5 multiplies the entire input, while writing f(x−3)−4 reverses the left shift to give 5x−28 (Choice A):
g(x)=5(x+3)−9−4=5x+15−13=5x+2
In Desmos, you can also enter `f(x) = 5x - 9` on line 1 and `g(x) = f(x + 3) - 4` on line 2, then read the y-intercept (0,2) to pick 5x+2; on a simple line, substituting with parentheses by hand is slightly faster.
Answer: C) g(x)=5x+2
3
The function f is defined by f(x)=8(2)x−6. In the xy-plane, the graph of y=g(x) is obtained by shifting the graph of y=f(x)5 units to the right and 2 units up. Which statement about the graph of y=g(x) is true?
Which of the two shifts moves the horizontal asymptote y=−6, and what value of x always gives the y-intercept?
Shifting right 5 and up 2 gives g(x)=f(x−5)+2=8(2)x−5−4. The original graph f(x)=8(2)x−6 has horizontal asymptote y=−6; shifting right 5 leaves that horizontal line unchanged, while shifting up 2 lifts the asymptote to y=−6+2=−4. For the y-intercept, plug in x=0. Be careful not to ignore the −5 in the exponent as if horizontal shifts left the y-intercept unchanged too, which gives 8(2)0−4=4 (Choice B):
g(0)=8(2)0−5−4=8(321)−4=41−4=−415
In Desmos, enter `f(x) = 8(2)^x - 6` on line 1, `g(x) = f(x - 5) + 2` on line 2, and `g(0)` on line 3: the graph flattens out right above y=−4, and converting `g(0) = -3.75` to a fraction gives −415. Both routes take about the same time, and Desmos avoids negative-exponent slips.
Answer: A) Its horizontal asymptote is y=−4, and its y-intercept is (0,−415).
4
In the xy-plane, the graph of y=f(x) has a local maximum at (3,−2). The function g is defined by g(x)=−4f(x−5)+1. Which of the following gives the coordinates and type of the corresponding extremum on the graph of y=g(x)?
What x makes x−5 equal 3, and what does multiplying heights by −4 do to a peak?
To reach the old input 3 inside f(x−5), set the inside equal to 3 (subtracting 5 from 3 directly gives x=−2, leading to Choice A):
x−5x=3=8
At x=8,f(x−5)=f(3)=−2, so the new height is:
y=−4(−2)+1=8+1=9
Because the outside multiplier −4 is negative, all heights flip across the x-axis, turning the old local maximum into a local minimum. Forgetting that flip leaves it as a local maximum at (8,9) (Choice C).
Answer: D) A local minimum at (8,9)
5
Function f has exactly two x-intercepts, at (−4,0) and (10,0). The function g is defined by g(x)=−3f(2x−8). If (a,0) and (b,0) are the two x-intercepts of the graph of y=g(x), what is the value of a+b?SAT
Dividing −4 and 10 by 2 and then adding 8 gives 6 and 13 (a sum of 19), which misses that the factor of 2 shrinks the shift as well.
Multiplying height 0 by −3 leaves it at 0; what two values must 2x−8 equal so that f outputs 0?
Because there is no vertical shift added outside, g(x)=0 wherever f(2x−8)=0. Set the entire inside expression 2x−8 equal to each old x-intercept. Dividing −4 and 10 by 2 and then adding 8 gives 6 and 13 (a sum of 19), which misses that the factor of 2 shrinks the shift as well:
2x−82xx=−4=4=22x−82xx=10=18=9
The new x-intercepts are (2,0) and (9,0), so a+b=2+9=11.
Answer: 11
6
In the xy-plane, the graph of y=f(x) has a local minimum at (2,1) and a local maximum at (6,4). The graph of y=g(x) is the result of a vertical stretch and translations of the graph of y=f(x), and its corresponding local minimum and local maximum are at (−3,−1) and (1,5), respectively. Which equation defines g in terms of f?
Divide the height rise on g by the height rise on f to get the stretch factor first, then plug in x=−3 after multiplying by that factor to find the vertical shift.
Check the spans first. Horizontally, both functions span width 4(6−2=4 and 1−(−3)=4), and the minimum moves 5 units left from x=2 to x=−3, giving f(x+5). Vertically, f rises from 1 to 4 (a rise of 3) while g rises from −1 to 5 (a rise of 6), so heights are multiplied by 6÷3=2, giving 2f(x+5) so far. Now plug x=−3 into 2f(x+5) before finding the vertical shift. Comparing the old minimum height 1 straight to −1 without stretching first gives −2 at the end (Choice C):
2f(−3+5)=2f(2)=2(1)=2
To drop from height 2 to the actual minimum height −1, subtract 3, giving g(x)=2f(x+5)−3.
Answer: B) g(x)=2f(x+5)−3
7
The table shows selected values of the functions f and g, where the graph of y=g(x) is the result of shifting the graph of y=f(x) horizontally and vertically in the xy-plane.
x
f(x)
g(x)
1
12
4
2
5
15
3
8
9
4
19
−2
5
13
6
Which equation defines g in terms of f?
Compare the jumps between consecutive rows in f(x) and g(x) to find which three rows correspond, then plug in one x-value from the table to verify the signs.
Compare consecutive output jumps in both columns: in f(x) at x=3,4,5, the outputs 8,19,13 jump by +11 and then −6; in g(x), that exact jump pattern +11 and then −6 appears at x=1,2,3(4,15,9). Those outputs moved from x=3,4,5 to x=1,2,3, where each x is 2 smaller (2 units left), giving f(x+2). Seeing the pattern sit two rows higher in the table makes it tempting to write f(x−2) instead (Choice A). Comparing the matching outputs (8→4,19→15,13→9) shows each height dropped by 4, giving g(x)=f(x+2)−4, which we check at x=1:
g(1)=f(1+2)−4=f(3)−4=8−4=4
Answer: C) g(x)=f(x+2)−4
8
The function f is defined by f(x)=x−2+1. The function g is defined by g(x)=−3f(6−2x)+15. What is the x-coordinate of the x-intercept of the graph of y=g(x)?SAT
Keep the negative sign on −2x when subtracting 6, since dropping that minus sign gives x=6 instead of −6.
Set g(x)=0 to find what output f(6−2x) must equal first, then find the input to f that produces that output.
At the x-intercept, g(x)=0, so solve the outside operations first to see what value f(6−2x) must equal:
−3f(6−2x)+15−3f(6−2x)f(6−2x)=0=−15=5
Next, find what input u makes f(u)=5:
u−2+1u−2u−2u=5=4=16=18
Now set the inside of f in g(x) equal to 18. Keep the negative sign on −2x when subtracting 6, since dropping that minus sign gives x=6 instead of −6:
6−2x−2xx=18=12=−6
In Desmos, enter `f(x) = sqrt(x - 2) + 1` on line 1 and `g(x) = -3f(6 - 2x) + 15` on line 2, then click the x-intercept of `g(x)` at `(-6, 0)`. On the SAT, typing those two lines into Desmos is faster and avoids sign slips.