Quarry School

Horizontal stretch and compression: divide the input coordinates

Subject: MathematicsLeans on: Dividing by a fractionLeans on: Solving for the new inputLeans on: Flipping an inequality
Level 2 · BuildingAbout 17 min read11 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 playing a recording at double speed.

    Rule

    g(x) = f(bx), b ≠ 0, sends (u, v) to (ub, v). |b| > 1 compresses horizontally; 0 < |b| < 1 stretches horizontally. If b < 0, also reflect across the y-axis.

    Step

    1. 1. Find b, the multiplier of the input before f receives it.

    2. 2. Set bx = u for each known old input u, because this recreates its old height.

    3. 3. Divide the old input by b, including the sign. A fractional b calls for division by a fraction.

    4. 4. Keep the old height unless an outside change is also present.

    5. 5. Move endpoints, corners, and several other points before drawing the curve.

    6. 6. Substitute the new input into bx to check that it returns u.

    Question

    Move old point (4, 2) of x to g(x) = −2x.
    This asks you to change the coordinate named by each mirror move and keep the other coordinate.

    Answer

    (−2,2).

    Trap

    Calling f(2x) a horizontal stretch because 2 is bigger than 1. The multiplier is bigger, but the coordinate must be smaller: 2x = u gives x = u ÷ 2. Also, f(2x) and 2f(x) generally give different graphs.

    Strategy

    1. 1. Identify b and verify b ≠ 0 before using the coordinate division rule. This prevents dividing by zero.

    2. 2. Set bx = u for a known old input u. This equation finds the new address that reproduces its old height.

    3. 3. Divide both sides by b, including its sign. For u = 4 and b = −2, x = −2, and substituting back gives −2 × (−2) = 4.

    4. 4. Keep the matching old output. For old point (4, 2) of x, this gives new point (−2, 2) on −2x.

    5. 5. Move the other landmarks using the same division, and rebuild the Domain from the allowed old inputs. In −2x, require −2x ≥ 0 to find valid inputs, then divide by −2 and reverse the comparison: x ≤ 0.

    6. 6. Check a new input inside the formula and use only known table entries. For g(x) = f(12x), g(12) = f(6) = 7 is known, while g(2) needs the unavailable f(1).

    Term

    Transformation

    Definition

    A change to a Function that moves, flips, stretches, or compresses its Graph.

    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

    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

    Outside change

    Definition

    A change applied after the Function returns its Output; it changes vertical 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

    Endpoint

    Definition

    A boundary point where a graph or interval starts or stops.

    Term

    Horizontal reflection

    Definition

    Replacing the Input by its opposite, so the Graph flips across the y-axis.

    Term

    Reflection

    Definition

    A flip across a line that places each point the same distance on the opposite side.

    Term

    Horizontal stretch

    Definition

    Multiplying sideways distances by a factor greater than 1. In f(bx), use 0 < |b| < 1; a negative b also reflects.

    Term

    Horizontal compression

    Definition

    Multiplying sideways distances by a factor between 0 and 1. In f(bx), use |b| > 1; a negative b also reflects.

    Term

    Reciprocal

    Definition

    One divided by a nonzero number. Multiplying the number by its Reciprocal gives 1.

    Term

    Point rule

    Definition

    The coordinate recipe for moving each graph point through a Transformation.

    Term

    Square root function

    Definition

    The toolkit Function f(x) = x, returning the nonnegative number whose square is x.

    Term

    Axis

    Definition

    One of the two reference number lines on a graph. The x-axis is horizontal; the y-axis is vertical. Together they are called axes.

    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

    Square root

    Definition

    The nonnegative number whose square equals the number inside the square root sign. A negative inside has no real Square root.

    Term

    Coefficient

    Definition

    A fixed number multiplying a letter or expression.

    Term

    Magnitude

    Definition

    The size of a number without its sign, measured as distance from zero.

    Term

    Substitution

    Definition

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

    Term

    Set

    Definition

    A collection of values specified together.

    Term

    Nonnegative

    Definition

    At least zero: zero and positive real numbers.

    1 In plain words

    Imagine playing a recording at double speed. Something that used to happen four minutes into the recording now happens at two minutes. The event has the same content, but you reach it sooner. In g(x) = f(2x), the old function runs through its input addresses twice as fast. Its graph therefore takes half the horizontal space. This is a Horizontal compression. With f(12x), the old function runs at half speed. Events need twice as much horizontal space, a Horizontal stretch. You find a dot's new position by undoing the multiplication inside. Multiplying the input expression and multiplying the dot's coordinate are different jobs. Keeping track of which job you are doing prevents the most common scaling mistake.

    2 Picture it

    newold24681024newold−112345678910−112345
    An inside multiplier two divides the point's horizontal coordinate by two, while its height stays two.
    input xoutput f(x)214367811
    x: 2, 4, 6, 8; f(x): 1, 3, 7, 11.
    input xoutput f(2x)112337411
    Halving each old input produces the corresponding known heights for f(2x).
    input xoutput f(1/2x)41831271611
    Doubling each old input produces the corresponding known heights for f(12x).

    Reminder

    Reminder: Dividing by a fraction, Solving for the new input, Flipping an inequality
    • Dividing by a fraction. Divide by 12 by multiplying by 2: 2 ÷ 12 = 4. Check by multiplying back: 12 × 4 = 2.
    • Solving for the new input. To reach old input 4 in f(2x), set 2x = 4 to find the matching address. Divide both sides by 2 to get x = 2, then check 2 × 2 = 4.
    • Flipping an inequality. A negative divisor reverses order. For −2x, solve −2x ≥ 0 to find allowed inputs: x ≤ 0. Input −2 gives inside 4, which is allowed.

    3 Why

    Suppose f(u) = v. For g(x) = f(bx), the same height v appears where bx = u. Dividing both sides by b gives x = ub. Thus the new horizontal coordinate is the old one divided by b. If b = 2, the coordinate is halved. If b = 12, division by a half doubles it. A negative b also changes the coordinate's sign, reflecting left and right. The size factor is 1|b|, the reciprocal of the coefficient's magnitude. You cannot divide by b = 0, so this point rule requires b ≠ 0.

    4 The rule

    g(x)=f(bx),b≠0, sends (u, v) to (ub,v).

    |b| > 1 compresses horizontally; 0 < |b| < 1 stretches horizontally. If b < 0, also reflect across the y-axis.

    The same idea, five ways

    Say it

    An inside multiplier changes where an old height appears. Faster input changes squeeze the graph; slower input changes spread it out.

    Write it

    For g(x) = f(bx), divide each old horizontal coordinate by the nonzero coefficient b and keep the old height.

    In math
    • bx = u gives x = ub, with b ≠ 0.
    • (u, v) becomes (ub, v). Width factor: 1|b|.
    • |b| > 1: Horizontal compression. 0 < |b| < 1: Horizontal stretch.
    • b < 0: also a Horizontal reflection. |b| = 1: no width change.
    Like

    A recording at double speed reaches the same event in half the time.

    See it
    new addressold address24681024
    The same height 2 appears at half its old horizontal coordinate.

    The same idea, other ways

    As a picture

    For 2x, the old square root point (4, 2) appears at (2, 2). The height 2 survives, but its horizontal distance from the axis is halved.

    newold24681024
    Doubling inside reaches the old height at half its old horizontal address.
    As a recording

    Twice as fast means each old event takes half as long to reach. Half as fast means each event takes twice as long. The graph's width measures when events occur, so the width changes by the reciprocal speed.

    As a recording

    bx = u gives x = ub, with b ≠ 0.

    With a fractional coefficient

    To make 12x equal old input 6, solve 12x = 6. Multiply by 2 to get x = 12. A smaller inside coefficient therefore requires a larger horizontal coordinate.

    With a fractional coefficient

    bx = u gives x = ub, with b ≠ 0.

    Why it must be true

    The new function must receive exactly u inside f to reproduce f(u). Writing bx = u and dividing gives x = u ÷ b. This equation forces the reciprocal factor for every point.

    Why it must be true

    bx = u gives x = ub, with b ≠ 0.

    A memory device

    Inside multiply, coordinates divide. Check the phrase with old input 2 and b = 2: the new coordinate 1 feeds 2·1 = 2 into f. This numerical check takes only a few seconds.

    A memory device

    bx = u gives x = ub, with b ≠ 0.

    Old input uOld heightNew input for f(2x)New input for f(12x)
    2114
    4328
    67312
    811416

    Part 1: Horizontal compression

    Squeeze the left-to-right distances toward the vertical axis. Each old height arrives closer to that axis because the inside multiplier reaches old inputs faster.

    • Formula: f(bx) with |b| > 1.
    • Width factor: 1|b|.
    • For b = 2, every old input coordinate is divided by 2.
    • A compression changes distances, while a horizontal shift adds the same amount to all addresses.
    newold−22246810
    The height four now occurs at horizontal distance one instead of two.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: For f(2x), the old point (2, 5) becomes (4, 5).
    At new input 4 the inside would be 8. To reach old input 2, solve 2x = 2; input 1 returns the known height 5.
    ✓ Instead: (1, 5).

    Tips and tricks

    • Use the displayed landmark or known column as a check before drawing any additional points.

    Part 2: Horizontal stretch

    Pull the addresses away from the vertical axis. A half-size input multiplier means you travel twice as far before the old machine receives the same number.

    • Formula: f(bx) with 0 < |b| < 1.
    • Width factor: 1|b|.
    • For b = 12, divide each old input by 12, which multiplies it by 2.
    • The old input zero remains zero when scaling without a shift.
    • A horizontal stretch by 4 uses f(14x), because the inside coefficient is the reciprocal of the width factor 4.
    newold−6−4−2246246
    The same height two appears twice as far from the vertical axis.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: For f(12x), the old point (2, 5) becomes (1, 5).
    At input 1 the inside is one half, not 2. Divide the old input by one half to get 4; at input 4 the inside is 2.
    ✓ Instead: (4, 5).

    Tips and tricks

    • Use the displayed landmark or known column as a check before drawing any additional points.

    Part 3: Negative horizontal scale

    First think about the amount of squeezing or stretching. Then switch the address to the opposite side of the vertical axis because a negative input multiplier reverses left and right.

    • The sign of b supplies a Horizontal reflection.
    • The magnitude |b| supplies a reciprocal width factor.
    • For g(x) = −2x, the domain is x ≤ 0 and the range is y ≥ 0.
    • Changing inputs does not by itself make positive square root outputs negative.
    new pointdomainrange−6−4−22424
    The square root curve is reflected left and compressed to half its old horizontal distances.

    Worked example

    Reflect and compress a square root

    Move old point (4, 2) of x to g(x) = −2x.
    This asks you to change the coordinate named by each mirror move and keep the other coordinate.

    Show the steps and the answer
    newold−6−4−22424
    The old point (4, 2) becomes (−2, 2).
    1. Set −2x=4.Inside the root must equal old input 4.
    2. Divide by −2 to get x=−2.The division halves the distance and reverses its sign.
    3. Keep the old height 2.There is no minus sign outside the square root.
    Answer
    (−2,2).
    Double-check −2·(−2)=4=2.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: For −2x, the old square-root point (4, 2) becomes (−2, −2).
    The inside change negates and halves the horizontal coordinate only. There is no outside minus; the square root still returns the positive height 2.
    ✓ Instead: (−2,2).

    Tips and tricks

    • Use the displayed landmark or known column as a check before drawing any additional points.

    5 How

    1. Find b, the multiplier of the input before f receives it.
    2. Set bx = u for each known old input u, because this recreates its old height.
    3. Divide the old input by b, including the sign. A fractional b calls for division by a fraction.
    4. Keep the old height unless an outside change is also present.
    5. Move endpoints, corners, and several other points before drawing the curve.
    6. Substitute the new input into bx to check that it returns u.

    Convert an inside coefficient into a width change

    1
    Is b = 0?
    YesThe usual point rule cannot be used. Check whether f(0) is defined before evaluating the formula.
    NoDivide each old input coordinate by b.
    ↓
    2
    Is |b| > 1?
    YesThe horizontal distances shrink by 1|b|.
    NoIf 0 < |b| < 1, the distances grow by 1|b|. If |b| = 1, there is no width change.
    ↓
    3
    Is b negative?
    YesThe signed division also reflects inputs across the y-axis.
    NoThe division keeps inputs on their original side of zero.
    ↓
    4
    Does a requested new input feed a listed old input into f?
    YesUse the output from that same table column.
    NoState that the supplied table cannot determine the output; do not guess between entries.
    1. Identify b and verify b ≠ 0 before using the coordinate division rule. This prevents dividing by zero.
    2. Set bx = u for a known old input u. This equation finds the new address that reproduces its old height.
    3. Divide both sides by b, including its sign. For u = 4 and b = −2, x = −2, and substituting back gives −2 × (−2) = 4.
    4. Keep the matching old output. For old point (4, 2) of x, this gives new point (−2, 2) on −2x.
    5. Move the other landmarks using the same division, and rebuild the Domain from the allowed old inputs. In −2x, require −2x ≥ 0 to find valid inputs, then divide by −2 and reverse the comparison: x ≤ 0.
    6. Check a new input inside the formula and use only known table entries. For g(x) = f(12x), g(12) = f(6) = 7 is known, while g(2) needs the unavailable f(1).

    6 Worked example

    Worked example

    Stretching and reflecting a parabola: g(x) = f(−23x)

    The graph of f(x) = 14(x + 2)2 − 3, shown in the figure, is an upward-opening parabola with vertex (−2, −3). It passes through the five points (−6, 1), (−4, −2), (−2, −3), (0, −2) and (2, 1). Let g(x) = f(−23x). (a) Find b and describe how the graph of f changes. Say whether it is stretched or compressed horizontally, by what factor, and whether it is reflected. (b) Find the five corresponding points on the graph of g. (c) Give the vertex and the axis of symmetry of g, and explain why one of the five points does not move.

    (−6, 1)(−4, −2)(−2, −3)(0, −2)(2, 1)−8−6−4−224−4−224
    Graph of f(x) = 14(x + 2)2 − 3, an upward-opening parabola with vertex (−2, −3), with the five given points…
    Show the steps and the answer
    1. Find b. In g(x)=f(−23x), the input x is multiplied by −23 before f receives it, so b=−23.b is the multiplier of the input inside f. Nothing is added inside f and nothing is done to its output, so b is the only change to the graph.
    2. Classify the change. |b|=23 lies between 0 and 1, so the graph is stretched horizontally away from the y-axis by the factor 1÷23=32. Since b < 0, the graph is also reflected across the y-axis.For −23x to equal an old input u, x must be 32 times as far from 0 as u, which spreads the points away from the y-axis. The minus sign forces x and u to have opposite signs, so each point off the y-axis lands on the opposite side of it.
    3. Set bx=u for each old input. For the vertex (−2,−3), solve −23x=−2.Since g(x) = f(−23x), g gives the old height −3 exactly when −23x hands f the old input −2.
    4. Divide the old input by b, including the sign: x=−2÷(−23)=−2·(−32)=3. For every point, x=u÷(−23)=−32u.Dividing by a fraction means multiplying by its reciprocal. The reciprocal of −23 is −32, and the minus sign is kept. Multiplying u by −23 instead would pull the points toward the y-axis. That is a compression, the opposite of what f(−23x) does.
    5. Keep each old height and move all five points: (−6,1)→(9,1); (−4,−2)→(6,−2); (−2,−3)→(3,−3); (0,−2)→(0,−2); (2,1)→(−3,1).Only the input changed. There is no multiplier or shift outside f, so each output v carries over unchanged.
    6. Read off the features of g. The vertex moves from (−2,−3) to (3,−3), so the axis of symmetry moves from x=−2 to x=3. The y-intercept (0,−2) stays where it is.The vertex is a point of the graph, so it follows the same rule as the others. For u = 0, x = 0 ÷ b = 0 whatever b is, so a point on the y-axis is fixed by any horizontal stretch, compression or reflection.
    7. Plot (−3,1),(0,−2),(3,−3),(6,−2) and (9, 1), then draw a smooth upward-opening parabola through them.Moving the vertex and points on both sides of it before drawing fixes the position and the width. The result is wider than f. The reflection has also reversed the left-to-right order: (−6, 1), the leftmost of the five points on f, became (9, 1), the rightmost on g.
    8. Check each new input in bx: −23·9=−6,−23·6=−4,−23·3=−2,−23·0=0,−23·(−3)=2.Each new input gives back its old input u, so g(x) = f(u) = v and every point carries the correct height.
    Answer
    (a) b = −23. Since |b| = 23 < 1, the graph of f is stretched horizontally away from the y-axis by a factor of 32. Since b < 0, it is also reflected across the y-axis. (b) (−6, 1) → (9, 1), (−4, −2) → (6, −2), (−2, −3) → (3, −3), (0, −2) → (0, −2), (2, 1) → (−3, 1). (c) The vertex of g is (3, −3) and the axis of symmetry is x = 3. The point (0, −2) does not move because it lies on the y-axis: 0 ÷ (−23) = 0.
    Double-check Every new input returns its old input under −23x. For example, −23·(−3) = 2, so g(−3) = f(2) = 1. Independent check by algebra: g(x) = 14(−23x + 2)2 − 3 = 14·49(x − 3)2 − 3 = 19(x − 3)2 − 3. This parabola has vertex (3, −3), and it gives g(0) = 19·9 − 3 = −2 and g(9) = 19·36 − 3 = 1, matching the moved points. Widths grow by 32: the two points at height 1 are 8 apart on f (x = −6 and x = 2) and 12 apart on g (x = −3 and x = 9), and 8·32 = 12.

    Work to write

    1. b=−23
    2. |b| = 23 < 1: horizontal stretch by a factor of 32; b < 0: reflection across the y-axis
    3. new x = u ÷ (−23) = −32u, heights unchanged
    4. (−6,1)→(9,1)
    5. (−4,−2)→(6,−2)
    6. (−2,−3)→(3,−3)
    7. (0,−2)→(0,−2)
    8. (2,1)→(−3,1)
    9. vertex of g: (3, −3); axis of symmetry: x = 3
    10. (0, −2) is fixed because 0 ÷ b = 0
    11. check: −23·3 = −2, so g(3) = f(−2) = −3

    Ladder: from easy to exam-hard

    Try each rung before you open its steps.

    Rung 1 of 4

    Stretch a table without inventing values

    OpenStax problem

    Use the original f table shown beside this question. Give known values of g(x) = f(12x). Can this table determine g(2)?
    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)41831271611
    x: 4, 8, 12, 16; 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. Double the old input coordinates: 4, 8, 12, 16.Solve 12x = u by multiplying u by 2.
    3. Keep outputs 1, 3, 7, 11.Each new input supplies the corresponding known old input to f.
    4. g(2)=f(1), which is not supplied.The table contains no output at old input 1; its gaps do not imply a formula.
    Answer
    • Use the displayed stretched g table.
    • g(2) cannot be determined from the given table.
    Double-check g(12) = f(6) = 7. The transformed third column uses a known value instead of guessing between entries.

    Rung 2 of 4

    A horizontal stretch by a factor of four

    For this separate original point example, suppose F(3) = 7. Write a horizontal stretch by 4 and find where that known point appears. This asks you to spread each input address to four times its old value while keeping its matched height.

    Show the steps and the answer
    input uoutput F(u)37
    The separate original illustration supplies only the point (3, 7).
    input xoutput G(x)127
    A fourfold horizontal stretch reaches that same known height at input 12.
    1. Use inside coefficient b=14, giving G(x)=F(14x).The horizontal distance factor is the reciprocal of the inside coefficient: 1 ÷ 14 = 4.
    2. Solve 14X=3 by multiplying both sides by 4: X=12.This finds the new input that sends old input 3 into F. At X = 12, the inside 14 × 12 is 3.
    3. Keep the known old height 7, so (3, 7) becomes (12, 7).No outside operation changes the output. The separate function name F distinguishes this illustration from the earlier supplied table.
    Answer
    • G(x)=F(14x).
    • Horizontal stretch by 4.
    • (3, 7) becomes (12, 7).
    Double-check G(12) = F(14 × 12) = F(3) = 7. Dividing the new input 12 by the requested width factor 4 recovers old input 3.

    Rung 3 of 4

    Recognize horizontal compression from a graph

    An original graph comparison is known to have g(x) = f(bx) with b > 0 and no other changes. The old right endpoint (9, 0) corresponds to the new endpoint (3, 0). Find b and the new point corresponding to old point (6, 4).
    This asks you to find the new address or height of the given graph information.

    b = 3.

    g(x) = f(3x).

    Horizontal compression by 13.

    (6, 4) becomes (2, 4).

    Show the steps and the answer
    1. Set 3b=9.At new input 3, the inside must reach old endpoint input 9.
    2. Divide by 3: b=3.The coefficient is old input divided by its corresponding new input.
    3. Write g(x)=f(3x), a horizontal compression by 13.The width factor is the reciprocal of the inside coefficient.
    4. Move old point (6, 4) to (2, 4).Divide its input 6 by 3 and keep its output 4.
    Answer
    • b = 3.
    • g(x) = f(3x).
    • Horizontal compression by 13.
    • (6, 4) becomes (2, 4).
    Double-check g(2) = f(6) = 4, and g(3) = f(9) = 0. The stated family and corresponding endpoint are essential; one dot alone cannot identify an arbitrary unknown graph.

    Rung 4 of 4

    Build a horizontal scale from words

    Write the Square root function stretched horizontally by a factor of 4. Find three graph points and its domain and range.
    This asks you to write the new rule from the specified moves and check its graph landmarks.

    endpointnewnew26101418−11234
    The root height 2 now occurs at input 16 instead of 4.
    Show the steps and the answer
    1. Choose b=14.The width factor 4 is the reciprocal of the inside coefficient.
    2. Write g(x)=x4.Replace the old input by one-fourth of the new input.
    3. Move old points (0, 0), (1, 1), (4, 2) to (0, 0), (4, 1), (16, 2).Divide each old input by 14, multiplying its coordinate by 4.
    4. Require x4≥0, so x≥0. Outputs are nonnegative.The positive horizontal scale does not change the direction of the square root's allowed inputs.
    Answer
    • g(x)=x4.
    • Points: (0, 0), (4, 1), (16, 2).
    • Domain: [0, ∞).
    • Range: [0, ∞).
    Double-check g(16) = 4 = 2. A width factor 4 requires 14 inside, not 4.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: f(2x) doubles every horizontal coordinate.
    The inside expression must return the old input. To reach old input 2, solve 2x = 2, which finds new input 1.
    ✓ Instead: Divide old coordinates by 2. The old point (2, 5) becomes (1, 5), and substituting 1 gives f(2 × 1) = f(2) = 5.
    ✗ Not this: f(12x) halves the outputs in the table.
    The half is inside, so it acts before f returns an output. Reaching old input 2 requires 12x = 2, giving new input 4; the corresponding table height stays 1, because its displayed old value is f(2) = 1.
    ✓ Instead: Double the horizontal coordinates and keep matching heights. Halving the outputs would instead give 12f(x).
    ✗ Not this: For g(x) = f(12x), the table entry f(2) = 1 tells us g(2) = 1.
    At new input 2, the inside is 1. The given table has no f(1), so it cannot supply the requested height.
    ✓ Instead: g(4) = f(2) = 1 is determined. g(2) = f(1) is not determined by the supplied entries.

    Tips and tricks

    • Inside multiply, coordinates divide. Put bx = old input on the exam when a memorized direction feels uncertain.
    • A width factor 4 needs inside coefficient 14. The coefficient and the width factor multiply to 1.
    • Divide by the signed b. For old input 4 and b = −2, new input is −2, which handles both the compression and the reflection.
    • Keep the original heights attached to their matching inputs. A table's gaps remain unknown after the transformation.

    7 The trap

    Calling f(2x) a horizontal stretch because 2 is bigger than 1. The multiplier is bigger, but the coordinate must be smaller: 2x = u gives x = u ÷ 2. Also, f(2x) and 2f(x) generally give different graphs.

    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.