Quarry School

Horizontal shifts: why the inside acts in the opposite direction

Subject: MathematicsLeans on: Solving a linear equationLeans on: Subtracting a negativeLeans on: Known function values
Level 1 · FoundationsAbout 14 min read7 new termsKeystone idea. Later lessons build on this one.
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Quick review (2 minutes)

    In plain words

    Imagine a bus timetable.

    Rule

    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.

    Step

    1. 1. Find the expression inside f; it is the input the old function receives.

    2. 2. Set that expression equal to a known old input u, because this asks where the same old height appears.

    3. 3. Solve for the new input x. Add when the expression subtracts, and subtract when it adds.

    4. 4. Keep the old height v, because the function receives the same old input u.

    5. 5. Move several points and substitute their new inputs into g to check.

    Question

    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.

    Answer

    The point (1, 6) becomes (−2, 6).

    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.

    Strategy

    1. 1. Translate the request: you know an old input and height, and need the new address for that same height.

    2. 2. Name the old input u. Set the expression inside f equal to u.

    3. 3. Undo the inside addition or subtraction on both sides. In x − 3 = u, add 3 to obtain x = u + 3.

    4. 4. Keep the old height v. The new point is (u + h, v).

    5. 5. Substitute the new input into the inside expression. It must give the original input u.

    6. 6. If instead asked for g at a specified input, calculate its inside value first and look up f there.

    Term

    Function

    Definition

    A rule that gives exactly one Output for every accepted Input.

    Term

    Input

    Definition

    The value you give a Function before its rule runs, usually labeled x.

    Term

    Output

    Definition

    The result returned by a Function, written f(x) or y.

    Term

    Graph

    Definition

    A picture of a Function's accepted Input and Output pairs, plotted as points (x, f(x)).

    Term

    Vertical shift

    Definition

    Adding a Constant to every Output, moving the entire Graph up or down without changing its shape.

    Term

    Horizontal shift

    Definition

    Replacing x by x − h moves the Graph right h; a negative h moves it left.

    Term

    Inside change

    Definition

    A change to the Input expression before the Function runs; it changes horizontal coordinates.

    Term

    Domain

    Definition

    All Inputs a Function accepts without an invalid calculation.

    Term

    Range

    Definition

    All Outputs a Function can actually produce from its accepted Inputs.

    Term

    Vertex

    Definition

    The turning point of a quadratic U, or the corner where an absolute value V changes direction.

    Term

    Coordinate

    Definition

    One number in a point's address. In (x, y), x measures sideways position and y measures height from the Origin.

    Term

    Substitution

    Definition

    Replacing every occurrence of a letter by a chosen value or expression.

    Term

    Set

    Definition

    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

    (3, 0)old vertexnew vertexsame old height 1−22462468(3, 0)old vertexnew vertexsame old height 1−2−11234562468
    Subtracting three inside means every old height is reached at an input three greater.
    input xoutput f(x)214367811
    x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
    input xoutput g(x)5173971111
    x: 5, 7, 9, 11; g(x): 1, 3, 7, 11.

    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

    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.

    The same idea, five ways

    Say it

    the new function at x uses the old function at x minus h. To keep the old height, move its input right h.

    Write it

    A Horizontal shift changes the input address at which each old height appears.

    In math
    • g(x)=f(x−h)
    • x − h = u, so x = u + h.
    • Old point (u, v); new point (u + h, v).
    • For (x − 3)2: vertex (3, 0). For (x + 3)2: vertex (−3, 0).
    • Graph words: slide right when h > 0, left when h < 0, and keep all old heights.
    Like

    On a schedule that starts two hours earlier, new time 6 looks up old time 8. You add 2 before consulting the old timetable.

    See it
    (3, 0)old vertexnew vertexsame old height 1−22462468
    The same old heights appear three units farther right because the new input must undo the inside subtraction.

    The same idea, other ways

    As a picture

    The bottom of x2 occurs when its input is zero. The bottom of (x − 3)2 occurs when x − 3 is zero, which happens at x = 3. The whole curve follows that bottom to the right.

    (3, 0)−2246246810
    The new curve reaches its old lowest height three units later.
    As a machine

    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.

    5subtract 3ffirstsecond2f(2)
    A bigger starting input compensates for the subtraction before f.
    As a schedule

    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

    g(x)=f(x−h)

    As an equation

    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

    g(x)=f(x−h)

    A memory device you can rebuild

    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

    g(x)=f(x−h)

    Old input uOld output f(u)New input u + 3g(u + 3) for g(x) = f(x − 3)
    2151
    4373
    6797
    8111111

    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.
    (3, 0)−2246246
    The corner appears at x = 3 because 3 − 3 feeds zero to absolute value.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: The corner of |x − 3| is (−3, 0).
    The corner needs zero inside. At −3, the inside is −3 − 3 = −6 and the height is 6. At 3, the inside is 3 − 3 = 0.
    ✓ Instead: Corner: (3, 0).

    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.
    (−3, 0)−6−4−22246810
    Adding three inside puts the lowest point three units left of zero.

    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
    1. Set x+3=1.f must receive the old input 1 to produce the known height 6.
    2. Subtract 3 to get x=−2.Subtraction undoes the inside addition.
    Answer
    The point (1, 6) becomes (−2, 6).
    Double-check g(−2)=f(−2+3)=f(1)=6.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: For f(x + 3), move the old point (1, 6) right to (4, 6).
    At 4 the inside is 7, not the known old input 1. Solving x + 3 = 1 gives x = −2; its inside is −2 + 3 = 1.
    ✓ Instead: The point (1, 6) becomes (−2, 6).

    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.
    input xoutput g(x)5173971111
    The same picture again: x: 5, 7, 9, 11; g(x): 1, 3, 7, 11.

    Worked example

    Use a table without guessing

    OpenStax problem

    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.

    input xoutput f(x)214367811
    The same picture again: x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
    Show the steps and the answer
    input xoutput f(x)214367811
    The same picture a third time: x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
    input xoutput g(x)5173971111
    The same picture a third time: x: 5, 7, 9, 11; g(x): 1, 3, 7, 11.
    1. 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.
    2. Solve x−3=4 to get x=7.The required height 3 belongs to old input 4.
    3. g(7)=f(4)=3.At x = 7 the inside expression is the known old input.
    Answer
    Known point: (7, 3).
    Double-check Subtracting 3 from the new input 7 recovers old input 4.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: Knowing f(4) = 3 lets you conclude g(4) = 3 for g(x) = f(x − 3).
    g(4) requires f(1), which is not supplied by this table. The known height 3 appears at input 7 because 7 − 3 = 4.
    ✓ Instead: Known point: (7, 3).

    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.
    x + 10 milesf: miles to gallonsinputoutputf(x + 10) gallons
    The ten is measured in miles because it enters before the miles-to-gallons machine.

    Worked example

    Separate gallons from miles

    OpenStax problem

    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
    x milesadd 10 milesffirstsecondx + 10 milesf(x + 10) gallons
    Adding before f changes miles; adding after f changes gallons.
    1. f(x)+10 is fuel for x miles plus 10 gallons.The addition is attached to the output, measured in gallons.
    2. f(x+10) is fuel for x+10 miles.The addition changes the input, measured in miles.
    Answer
    • f(x) + 10: vertical shift up 10 gallons.
    • f(x + 10): horizontal shift left 10 miles on the mathematical graph.
    Double-check With an original model f(x) = x25, the formulas become x25 + 10 and x+1025. Extra 10 miles uses 25 gallon, which differs from 10 extra gallons.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: If f converts miles into gallons, f(x) + 10 asks for a trip 10 miles longer.
    f(x) is already the finished gallons answer. Adding outside adds 10 gallons. A longer trip instead changes the input before f: f(x + 10).
    ✓ Instead: f(x) + 10: vertical shift up 10 gallons.
    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

    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.

    Find where a known old height appears after a sideways shift

    1
    Are you moving a known old point?
    YesSet the inside expression equal to that point's old input, then solve for the new input.
    NoFor evaluation at a supplied new input, compute the inside expression first.
    ↓
    2
    Does the input expression subtract a positive number?
    YesAdd that number to the old coordinate. This moves its point right.
    NoIf it adds a positive number, subtract that number from the old coordinate. This moves its point left.
    ↓
    3
    When evaluating, is the required old input listed in the supplied table?
    YesRead the output in that input's column.
    NoState that the value cannot be determined from the table. Do not guess between entries.
    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.

    6 Worked example

    Worked example

    Shifting a parabola when the inside adds 3

    Let f(x) = x2 − 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.

    (−5, 0)(−3, −4)(−2, −3)(−1, 0)−6−4−22−6−4−2246
    Graph of g(x) = (x + 3)2 − 4.
    Show the steps and the answer
    1. The expression inside f is x+3. Write g(x)=f(x+3)=f(x−(−3)), so h=−3.The expression inside f is the input the old function receives. Matching it to x − h shows the sign of h.
    2. For the point (−2,0), set x+3=−2.This asks which new input x feeds the old input −2 into f, so that the same old height appears.
    3. Solve: x=−2−3=−5. In the same way, x+3=0 gives x=−3. x+3=1 gives x=−2. x+3=2 gives x=−1.The expression adds 3, so we subtract 3 to undo it. Each new input is the old input minus 3.
    4. Keep the heights: (−2,0)→(−5,0),(0,−4)→(−3,−4),(1,−3)→(−2,−3),(2,0)→(−1,0).At each new input, f receives the same old input u, so it returns the same old height v.
    5. The shift is 3 units left. The vertex (0,−4) of f moves to (−3,−4).With h = −3 the rule (u, v) → (u + h, v) moves every point 3 units left. This is the opposite of the + sign inside.
    Answer
    (a) (−5, 0), (−3, −4), (−2, −3), (−1, 0). (b) The graph of g is the graph of f shifted 3 units left. The vertex of g is (−3, −4).
    Double-check Substitute the new inputs into g(x) = (x + 3)2 − 4. g(−5) = (−2)2 − 4 = 0. g(−3) = 02 − 4 = −4. g(−2) = 12 − 4 = −3. g(−1) = 22 − 4 = 0. All four heights match.

    Work to write

    1. g(x) = f(x + 3) = f(x − (−3)), so h = −3
    2. Solve x + 3 = u, so x = u − 3
    3. (−2,0)→(−5,0);(0,−4)→(−3,−4);(1,−3)→(−2,−3);(2,0)→(−1,0)
    4. Shift 3 units left; vertex (−3, −4)
    5. Check: g(−3) = (0)2 − 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 x2 go on (x − 6)2?
    This asks you to find the new address or height of the given graph information.

    (6, 0)−448−2246810
    The old zero input is reached at new input 6.
    Show the steps and the answer
    1. Set x−6=0.The old height zero requires the old input zero.
    2. Add 6: x=6, with the same height 0.You undo the subtraction before squaring.
    Answer
    (6, 0), a shift right 6.
    Double-check (6−6)2=0.

    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).

    input xoutput f(x)214367811
    The same picture, shown 4 times now: x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
    Show the steps and the answer
    input xoutput f(x)214367811
    The same picture, shown 5 times now: x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
    1. 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.
    2. Add 3 to each old input: 2+3=5,4+3=7,6+3=9,8+3=11.g reaches the old input u when x − 3 = u, so the new input is x = u + 3.
    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.
    Answer
    (5, 1), (7, 3), (9, 7), (11, 11)
    Double-check g(9) = f(9 − 3) = f(6) = 7, so (9, 7) is a point of g.

    Rung 3 of 3

    A vent schedule starts earlier

    OpenStax problem

    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.

    input t in hoursoutput f(t) in square feet8010220
    t in hours: 8, 10; f(t) in square feet: 0, 220.
    input t in hoursoutput g(t) in square feet608220
    t in hours: 6, 8; g(t) in square feet: 0, 220.
    Show the steps and the answer
    input t in hoursoutput f(t) in square feet8010220
    Read each column as one t in hours input paired with its f(t) in square feet output.
    input t in hoursoutput g(t) in square feet608220
    Read each column as one t in hours input paired with its g(t) in square feet output.
    1. 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.
    2. Write g(t)=f(t+2).At any new time, look up what the old schedule did two hours later.
    3. Solve t + 2 = 8: t=6.The old 8 a.m. change now happens at the input that feeds 8 to f.
    4. Solve t + 2 = 10: t=8.The old 10 a.m. event moves two hours earlier as well.
    Answer
    • g(t) = f(t + 2).
    • Change begins at 6 a.m.
    • The schedule first reaches 220 square feet at 8 a.m.
    Double-check g(8) = f(10) = 220. A daily schedule can extend across midnight; if given only one day's data, translate the known time interval rather than assume extra entries.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: g(x) = f(x + 3) moves the graph right 3.
    At a new input x, the old machine receives x + 3. To reach old input 0, solve x + 3 = 0, which gives x = −3.
    ✓ Instead: It moves left 3. For f(x) = x2, the old vertex (0, 0) becomes (−3, 0), and g(−3) = 0.
    ✗ Not this: For g(x) = f(x − 3), subtract 3 from the old table inputs 2, 4, 6, 8.
    The formula subtracts 3 before f runs. The new address must be 3 larger so that this subtraction recovers each old address.
    ✓ Instead: Use the displayed shifted table. For example, the new column under 9 has output 7, because g(9) = f(9 − 3) = f(6) = 7. The displayed output row is unchanged.
    ✗ Not this: If f(4) = 3, then g(4) = 3 for g(x) = f(x − 3).
    g(4) asks for f(1), which the supplied value f(4) does not tell you.
    ✓ Instead: The known height appears at new input 7: g(7) = f(4) = 3. g(4) remains unknown without a value for f(1).

    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.