Horizontal shifts: why the inside acts in the opposite direction
Quick review (2 minutes)
Imagine a bus timetable.
g(x) = f(x − h) sends (u, v) to (u + h, v). Positive h moves right; negative h moves left. Solve new input − h = old input whenever the sign feels uncertain.
1. Find the expression inside f; it is the input the old function receives.
2. Set that expression equal to a known old input u, because this asks where the same old height appears.
3. Solve for the new input x. Add when the expression subtracts, and subtract when it adds.
4. Keep the old height v, because the function receives the same old input u.
5. Move several points and substitute their new inputs into g to check.
If f(1) = 6, locate that height on g(x) = f(x + 3).
This asks you to find the new address or height of the given graph information.
The point (1, 6) becomes (−2, 6).
Reading f(x + 3) as right 3. Set x + 3 equal to an old input: x = old input − 3, so the graph moves left. The equation explains the direction when a memorized slogan feels unreliable.
1. Translate the request: you know an old input and height, and need the new address for that same height.
2. Name the old input u. Set the expression inside f equal to u.
3. Undo the inside addition or subtraction on both sides. In x − 3 = u, add 3 to obtain x = u + 3.
4. Keep the old height v. The new point is (u + h, v).
5. Substitute the new input into the inside expression. It must give the original input u.
6. If instead asked for g at a specified input, calculate its inside value first and look up f there.
Function
A rule that gives exactly one Output for every accepted Input.
Input
The value you give a Function before its rule runs, usually labeled x.
Output
The result returned by a Function, written f(x) or y.
Graph
A picture of a Function's accepted Input and Output pairs, plotted as points (x, f(x)).
Vertical shift
Adding a Constant to every Output, moving the entire Graph up or down without changing its shape.
Horizontal shift
Replacing x by x − h moves the Graph right h; a negative h moves it left.
Inside change
A change to the Input expression before the Function runs; it changes horizontal coordinates.
Domain
All Inputs a Function accepts without an invalid calculation.
Range
All Outputs a Function can actually produce from its accepted Inputs.
Vertex
The turning point of a quadratic U, or the corner where an absolute value V changes direction.
Coordinate
One number in a point's address. In (x, y), x measures sideways position and y measures height from the Origin.
Substitution
Replacing every occurrence of a letter by a chosen value or expression.
Set
A collection of values specified together.
1 In plain words
Imagine a bus timetable. A stop that used to happen at eight now happens at six because the driver starts the whole route two hours earlier. At six, the new schedule must look up what the old schedule said for eight. That is why adding two inside a function moves the event earlier, toward the left. A Horizontal shift moves the graph sideways. An Inside change changes the input before the old function uses it. To locate the new dot, you ask which new input will feed the machine its old input. You solve that question backward. The sign in the formula describes what the machine does, while the graph shows where you must stand to undo it.
2 Picture it
Reminder
Reminder: Solving a linear equation, Subtracting a negative, Known function values
- Solving a linear equation. Do the same undoing operation on both sides. x − 3 = 4 becomes x = 7 after adding 3; check 7 − 3 = 4.
- Subtracting a negative. Adding 3 can be written as subtracting −3: x + 3 = x − (−3). In x − h, that means h = −3.
- Known function values. If f(6) = 7, use it only when the inside expression equals 6. Thus f(9 − 3) = 7, while f(6 − 3) asks for an unspecified f(3).
3 Why
Let f(u) = v. For g(x) = f(x − h), we want the input inside f to be u again so the old output v returns. Solve x − h = u by adding h to both sides: x = u + h. That is the new horizontal coordinate. Subtracting h inside therefore moves the dot right by h. For f(x + h), solve x + h = u to get x = u − h, a move left. The opposite direction comes from undoing the input change, not from an arbitrary memory rule.
4 The rule
sends (u, v) to .
Positive h moves right; negative h moves left. Solve new input old input whenever the sign feels uncertain.
The same idea, five ways
the new function at x uses the old function at x minus h. To keep the old height, move its input right h.
A Horizontal shift changes the input address at which each old height appears.
- x − h = u, so x = u + h.
- Old point (u, v); new point (u + h, v).
- For (x − 3: vertex (3, 0). For (x + 3: vertex (−3, 0).
- Graph words: slide right when h > 0, left when h < 0, and keep all old heights.
On a schedule that starts two hours earlier, new time 6 looks up old time 8. You add 2 before consulting the old timetable.
The same idea, other ways
The bottom of occurs when its input is zero. The bottom of (x − 3 occurs when x − 3 is zero, which happens at x = 3. The whole curve follows that bottom to the right.
A subtract-three worker stands before the old function. To feed the old function 2, give the worker 5. The worker subtracts 3 and hands the machine 2. The old point's address therefore changes from 2 to 5.
Starting a vent schedule two hours earlier gives g(t) = f(t + 2). At new time 6, this looks up old time 8. Adding inside produces an earlier event because you need two fewer hours on the new clock.
As a schedule
The dot with old input u must satisfy x − h = u. Adding h gives x = u + h. This works for positive and negative u and h, so it explains every dot, not only the lowest point.
As an equation
Inside lies, outside tells the truth is a reminder about direction. The inside really tells the truth about the machine's input operation. You undo that operation to get the graph's position. Write the old-input equation whenever memory fails.
A memory device you can rebuild
| Old input u | Old output f(u) | New input u + 3 | g(u + 3) for g(x) = f(x − 3) |
|---|---|---|---|
| 2 | 1 | 5 | 1 |
| 4 | 3 | 7 | 3 |
| 6 | 7 | 9 | 7 |
| 8 | 11 | 11 | 11 |
Part 1: Shift right
An inside subtraction delays every old event. You must move farther right to give the old function its original input.
- Formula: g(x) = f(x − h), h > 0.
- Point: (u, v) becomes (u + h, v).
- Range: unchanged, because all the same old heights still appear.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Use the displayed landmark or known column as a check before drawing any additional points.
Part 2: Shift left
An inside addition advances every old event. You start with a smaller input to cancel the addition before f receives it.
- Formula: g(x) = f(x + h), h > 0.
- Point: (u, v) becomes (u − h, v).
- Domain: the allowed input addresses move left by h.
Worked example
An old point appears earlier
If f(1) = 6, locate that height on g(x) = f(x + 3).
This asks you to find the new address or height of the given graph information.
The point (1, 6) becomes (−2, 6).
Show the steps and the answer
- Set .f must receive the old input 1 to produce the known height 6.
- Subtract 3 to get .Subtraction undoes the inside addition.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Use the displayed landmark or known column as a check before drawing any additional points.
Part 3: Transform an input row
Keep each height and give it a new address. Do not invent a height for an input that your table never supplied.
- For g(x) = f(x − 3), add 3 to known input coordinates.
- The new input is what you give g. The old input is what g passes into f.
- The output row is unchanged.
Worked example
Use a table without guessing
A table gives f(4) = 3. Find a known point on g(x) = f(x − 3).
This asks you to attach each known output to its transformed input and calculate any requested new height.
Show the steps and the answer
- Read the displayed original table column by column. Each top input belongs to the output directly below it.The picture supplies the known values used in the following calculations; keep each column paired.
- Solve to get .The required height 3 belongs to old input 4.
- .At x = 7 the inside expression is the known old input.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Use the displayed landmark or known column as a check before drawing any additional points.
Part 4: Interpret the units
Read the labels like a receipt. Adding to a gallons answer means extra gallons. Adding to a miles input means extra miles before you calculate gallons.
- If f(x) is gallons for x miles, f(x) + 10 adds 10 gallons.
- f(x + 10) asks for gallons for a trip 10 miles longer.
- The mathematical left shift describes where the same output occurs; the context describes what quantity the formula changes.
Worked example
Separate gallons from miles
Interpret f(x) + 10 and f(x + 10) when f converts trip miles to gallons used.
This asks what the added number measures: more gallons after finding fuel use, or more miles before finding fuel use.
Show the steps and the answer
- is fuel for x miles plus 10 gallons.The addition is attached to the output, measured in gallons.
- is fuel for miles.The addition changes the input, measured in miles.
- f(x) + 10: vertical shift up 10 gallons.
- f(x + 10): horizontal shift left 10 miles on the mathematical graph.
Counterexamples
What it is not, and the tempting wrong moves.
f(x + 10): horizontal shift left 10 miles on the mathematical graph.
Tips and tricks
- Use the displayed landmark or known column as a check before drawing any additional points.
5 How
- Find the expression inside f; it is the input the old function receives.
- Set that expression equal to a known old input u, because this asks where the same old height appears.
- Solve for the new input x. Add when the expression subtracts, and subtract when it adds.
- Keep the old height v, because the function receives the same old input u.
- Move several points and substitute their new inputs into g to check.
Find where a known old height appears after a sideways shift
- Translate the request: you know an old input and height, and need the new address for that same height.
- Name the old input u. Set the expression inside f equal to u.
- Undo the inside addition or subtraction on both sides. In x − 3 = u, add 3 to obtain x = u + 3.
- Keep the old height v. The new point is (u + h, v).
- Substitute the new input into the inside expression. It must give the original input u.
- If instead asked for g at a specified input, calculate its inside value first and look up f there.
6 Worked example
Worked example
Shifting a parabola when the inside adds 3
Let f(x) = − 4. Four points on the graph of f are (−2, 0), (0, −4), (1, −3) and (2, 0). Let g(x) = f(x + 3). (a) Find the four corresponding points on the graph of g. (b) State the direction and distance of the shift, and give the vertex of g.
Show the steps and the answer
- The expression inside f is . Write , so .The expression inside f is the input the old function receives. Matching it to x − h shows the sign of h.
- For the point , set .This asks which new input x feeds the old input −2 into f, so that the same old height appears.
- Solve: . In the same way, gives . gives . gives .The expression adds 3, so we subtract 3 to undo it. Each new input is the old input minus 3.
- Keep the heights: .At each new input, f receives the same old input u, so it returns the same old height v.
- The shift is 3 units left. The vertex of f moves to .With h = −3 the rule (u, v) → (u + h, v) moves every point 3 units left. This is the opposite of the + sign inside.
Work to write
- g(x) = f(x + 3) = f(x − (−3)), so h = −3
- Solve x + 3 = u, so x = u − 3
- Shift 3 units left; vertex (−3, −4)
- Check: g(−3) = (0 − 4 = −4
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 3
Recover the old zero input
Where does the old point (0, 0) of go on (x − 6?
This asks you to find the new address or height of the given graph information.
Show the steps and the answer
- Set .The old height zero requires the old input zero.
- Add 6: , with the same height 0.You undo the subtraction before squaring.
Rung 2 of 3
Shift every known table input
The table of f pairs the inputs 2, 4, 6 and 8 with the outputs 1, 3, 7 and 11. List the known points of g(x) = f(x − 3).
Show the steps and the answer
- Read the f table column by column: (2, 1), (4, 3), (6, 7), (8, 11).Each column is one point of f, an input with the output directly below it.
- Add 3 to each old input: .g reaches the old input u when x − 3 = u, so the new input is x = u + 3.
- Keep each output with its column: (5, 1), (7, 3), (9, 7), (11, 11).A shift inside f moves the inputs only; every height stays where it was.
Rung 3 of 3
A vent schedule starts earlier
The old vent schedule f(t) starts changing at 8 a.m. and first reaches 220 square feet at 10 a.m. Move the entire schedule two hours earlier. Give its formula and new times.
This asks you to find the new address or height of the given graph information.
Show the steps and the answer
- Read the displayed original table column by column. Each top input belongs to the output directly below it.The picture supplies the known values used in the following calculations; keep each column paired.
- Write .At any new time, look up what the old schedule did two hours later.
- Solve t + 2 = 8: .The old 8 a.m. change now happens at the input that feeds 8 to f.
- Solve t + 2 = 10: .The old 10 a.m. event moves two hours earlier as well.
- g(t) = f(t + 2).
- Change begins at 6 a.m.
- The schedule first reaches 220 square feet at 8 a.m.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Write new input expression = old input before choosing left or right. This equation explains the direction.
- Inside lies is a memory cue about graph movement. The machine really performs the operation written inside; your new coordinate must undo it.
- For a table, carry each old output to its new input column. Do not swap the task of moving an old point with the task of evaluating g at a specified input.
7 The trap
Reading f(x + 3) as right 3. Set x + 3 equal to an old input: x = old input − 3, so the graph moves left. The equation explains the direction when a memorized slogan feels unreliable.
Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.