Vertical stretch and compression: multiply the heights
Quick review (2 minutes)
Imagine a drawing on a rubber sheet fastened along a horizontal line.
For g(x) = a·f(x), (u, v) becomes (u, a·v). If |a| > 1, stretch vertically; if 0 < |a| < 1, compress vertically.
If a < 0, also reflect across the x-axis. If a = 0, all defined outputs become zero; this is a collapse, not an ordinary stretch or compression.
1. Find the multiplier a outside the function. Its magnitude |a| sets the size change, and its sign tells you whether to reflect.
2. Keep every input coordinate. Multiply each entire signed output by a, including outputs below zero.
3. If a shift is added outside afterward, multiply the original height first and then add the shift. The shifted graph is scaled relative to the line y = k in a·f(x) + k.
4. Keep the original domain. Multiply the original range values by a, reversing their order when a is negative.
5. Check a transformed point by substituting its unchanged input into the new formula.
Let f(x) = − 2. Its domain is [−4, ∞) and its range is [−2, ∞). The table lists five points on the graph of f: (−4, −2), (−3, −1), (0, 0), (5, 1) and (12, 2). Let g(x) = −3·f(x). (a) Identify the multiplier and describe how the graph of g is obtained from the graph of f. (b) Find the five corresponding points on the graph of g, and write g(x) as a formula in x. (c) State the domain and range of g. (d) Let h(x) = −3·f(x) + 1. Find the point on the graph of h that comes from (12, 2), and state the range of h.
(a) a = −3: a vertical stretch by a factor of 3 and a reflection across the x-axis. (b) (−4, 6), (−3, 3), (0, 0), (5, −3), (12, −6); g(x) = −3 + 6. (c) Domain [−4, ∞), range (−∞, 6]. (d) The point is (12, −5); the range of h is (−∞, 7].
Saying a stretch moves every point upward. A positive scale larger than 1 sends positive outputs up and negative outputs down, increasing distance from the x-axis. Also keep a·f(x) separate from f(ax): the bottom two table rows preview the horizontal-coordinate changes explained in lesson 7.
1. Identify the outside factor a. Its magnitude gives the distance change and its sign gives the reflection.
2. Keep each known input and multiply its output by a. This finds the new height at that same address; for (2, 5) and a = 3, the new height is 3 × 5 = 15.
3. If there is a final outside shift k, add it to the scaled height. This finishes the change in the written order; for old height 5 in −2f(x) + 3, compute −10 + 3 = −7.
4. Keep the original Domain and apply the same height calculation to the Range. A negative multiplier reverses ordered endpoints; [1, 5] scaled by −2 becomes [−10, −2].
5. Substitute an unchanged input into the transformed formula to check its output. For c(x) = f(x) and f(2) = 5, c(2) = , and doubling this result recovers 5.
Transformation
A change to a Function that moves, flips, stretches, or compresses its Graph.
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)).
Domain
All Inputs a Function accepts without an invalid calculation.
Range
All Outputs a Function can actually produce from its accepted Inputs.
Endpoint
A boundary point where a graph or interval starts or stops.
Vertical reflection
Taking the opposite of every Output, so the Graph flips across the x-axis.
Reflection
A flip across a line that places each point the same distance on the opposite side.
Vertical stretch
Multiplying every height by a factor greater than 1 in magnitude, increasing distances from the x-axis. A negative factor also reflects.
Vertical compression
Multiplying heights by a nonzero factor smaller than 1 in magnitude, reducing distances from the x-axis. A negative factor also reflects.
Horizontal stretch
Multiplying sideways distances by a factor greater than 1. In f(bx), use 0 < |b| < 1; a negative b also reflects.
Horizontal compression
Multiplying sideways distances by a factor between 0 and 1. In f(bx), use |b| > 1; a negative b also reflects.
Scale factor
The positive multiplier describing how distances change. Vertical distance scales by |a|; horizontal distance scales by the Reciprocal of |b|.
Identity function
The Function f(x) = x, which returns its Input unchanged.
Cubic function
A Function built from a nonzero term and optional lower powers. The toolkit example is f(x) = .
Axis
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.
Reference point
A recognizable point you track to identify or sketch a Transformation.
Order of operations
The agreed sequence for reading arithmetic: parentheses, powers, multiplication and division, then addition and subtraction; tied operations go left to right.
Coordinate
One number in a point's address. In (x, y), x measures sideways position and y measures height from the Origin.
Identity
An equation true for every allowed input, rather than a single numerical coincidence.
Magnitude
The size of a number without its sign, measured as distance from zero.
Substitution
Replacing every occurrence of a letter by a chosen value or expression.
Denominator
The bottom of a fraction, naming the divisor. It cannot be zero.
Nonnegative
At least zero: zero and positive real numbers.
Nonpositive
At most zero: zero and negative real numbers.
Ratio
A comparison made by dividing one quantity by another nonzero quantity.
x-intercept
A graph point on the x-axis, where its output is zero.
1 In plain words
Imagine a drawing on a rubber sheet fastened along a horizontal line. Pull the sheet vertically so every dot is twice as far from that line. Dots above it move higher, dots below it move lower, and dots on it stay put. A Vertical stretch multiplies every signed height by a number larger than 1. A Vertical compression multiplies those heights by a positive fraction smaller than 1, bringing dots closer to the x-axis. The Scale factor says how much the distance changes. Keep each dot's horizontal address. A negative multiplier also flips the drawing across the x-axis.
2 Picture it
Reminder
Reminder: Signed multiplication, Exact fractions, Order of operations
- Signed multiplication. A positive factor keeps a height's sign: × (−6) = −3. A negative factor reverses it: (−2) × 5 = −10.
- Exact fractions. One half of 5 is = 2.5 exactly. Multiplying the new height by 2 recovers 5.
- Order of operations. Multiply before adding: −3 × 2 + 2 = −6 + 2 = −4. Parentheses change the job: −3(2 + 2) = −12.
3 Why
If f(u) = v, then a·f(u) = a·v, so a point moves from (u, v) to (u, a·v). Its distance from the x-axis changes from |v| to |a|·|v|. This explains why multiplying a negative height by 2 sends it farther downward, rather than upward. A negative a reverses the sign as well as changing the distance. The same original input is still evaluated, so vertical scaling preserves the domain and multiplies the range values.
4 The rule
For , (u, v) becomes .
If |a| > 1, stretch vertically; if 0 < |a| < 1, compress vertically.
If a < 0, also reflect across the x-axis. If , all defined outputs become zero; this is a collapse, not an ordinary stretch or compression.
The same idea, five ways
A vertical scale changes how far each height lies from the x-axis. A negative factor also puts it on the opposite side.
Multiply every old output by the outside factor a while keeping its input coordinate fixed.
- g(x) = a·f(x); (u, v) becomes (u, a·v).
- |a| > 1: Vertical stretch. 0 < |a| < 1: Vertical compression.
- a < 0: also a Vertical reflection. |a| = 1: no size change.
- a = 0: defined heights collapse to 0, with the original Domain retained.
Pull a rubber drawing away from the horizontal axis or press it closer while holding each sideways address fixed.
The same idea, other ways
A stretch by 2 doubles distance from the x-axis. Old height 4 becomes 8, old height −4 becomes −8, and zero stays zero. The sign tells which side of the line contains the point; the magnitude tells the distance.
As distance from a mirror line
g(x) = a·f(x); (u, v) becomes (u, a·v).
The old function gives height 5. A worker multiplying by 3 changes it to 15 and leaves the input 2 untouched. A worker multiplying by changes it to . Both jobs happen after f has returned its answer.
For , a scale by 2 keeps the zero height at zero and sends height 4 to 8. Adding 3 instead sends zero to 3 and 4 to 7. Scaling changes distances proportionally; shifting adds the same amount to every height.
As a comparison with a shift
g(x) = a·f(x); (u, v) becomes (u, a·v).
| Formula | Effect | A point (u, v) goes to |
|---|---|---|
| a·f(x), a > 1 | Vertical stretch by a | (u, a·v) |
| a·f(x), 0 < a < 1 | Vertical compression by a | (u, a·v) |
| f(bx), b > 1 | Horizontal compression by | |
| f(bx), 0 < b < 1 | Horizontal stretch by |
Part 1: Vertical stretch
Think of a graph drawn on a sheet that you pull away from the x-axis. Multiplying its heights by 2 doubles their distances from that axis. You do not move the points left or right, and a zero height stays zero. In a population model, twice as large means twice the population at the same time. It does not mean that the population reaches its stages sooner.
- Formula: g(x) = a·f(x), with a > 1 for a positive Vertical stretch. The point (u, v) becomes (u, a·v).
- The Domain stays the same. Multiply every Range value, including negative ones, by a.
- An x-intercept is a point on the x-axis, where the output is 0. The x-intercepts stay fixed for any nonzero vertical multiplier because a × 0 = 0. For , the point (0, 0) therefore stays fixed.
- For a < 0, the magnitude |a| determines the stretch or compression and the sign adds a Vertical reflection.
Worked example
Double a quadratic's heights
Start with f(x) = . Write its vertical stretch by 2 and move the original points (1, 1) and (−2, 4).
This asks you to find the new address or height of the given graph information.
Show the steps and the answer
- Write .The requested vertical scale multiplies the function's output after it is calculated.
- (1, 1) becomes .The input stays 1 and its height doubles.
- becomes .The negative input also stays fixed; the multiplier acts on its output 4.
- New points: (1, 2) and (−2, 8).
- Domain: (−∞, ∞).
- Range: [0, ∞).
Counterexamples
What it is not, and the tempting wrong moves.
New points: (1, 2) and (−2, 8).
Domain: (−∞, ∞).
Range: [0, ∞).
Tips and tricks
- Use the displayed landmark or known column as a check before drawing any additional points.
Part 2: Vertical compression
Imagine lowering every shelf to half its signed height from the floor line on a drawing. A shelf at height 6 goes to 3, while a mark at height −6 goes to −3. Both are closer to the line. A Vertical compression keeps the horizontal address and multiplies the entire answer by a positive fraction below 1. It changes the distance from the axis, rather than subtracting a fixed amount.
- Formula: c(x) = a·f(x), with 0 < a < 1. The point (u, v) becomes (u, a·v).
- Multiplying by is dividing the whole output by 2. The same operation applies to every table entry.
- Compression keeps the original Domain. If the original Range is [−6, 10], multiplication by gives [−3, 5].
- The identity multiplier a = 1 leaves all heights unchanged. The multiplier a = 0 collapses every defined height to zero while retaining the original domain.
Worked example
Compress a negative output too
If f(4) = 6 and f(−4) = −6, find the corresponding points on c(x) = f(x).
This asks you to find the new address or height of the given graph information.
Show the steps and the answer
- At input 4, .One half of six is three, and vertical scaling keeps the input fixed.
- At input .A positive times a negative is negative, and half the distance six is three.
- The new points are (4, 3) and .Each unchanged input is paired with its newly halved output.
- (4, 6) becomes (4, 3).
- (−4, −6) becomes (−4, −3).
Counterexamples
What it is not, and the tempting wrong moves.
(−4, −6) becomes (−4, −3).
Tips and tricks
- Use the displayed landmark or known column as a check before drawing any additional points.
Part 3: Negative vertical scale
A negative scale does two jobs. Its size stretches or compresses the drawing, and its minus sign reflects the drawing across the x-axis. Think of pulling a dot to twice its distance from a mirror line and then placing it on the other side. A factor of −2 therefore doubles distance and reverses the height's sign. A factor of − halves distance and reverses the sign.
- Write a = −|a| when a < 0. The factor |a| gives the size change; the remaining minus gives the reflection.
- If a = −1, the transformation is a reflection with no size change. If a = 0, it is a collapse, not a reflection or ordinary scale.
- For g(x) = a·f(x) + k, scale the old height first and add k afterward. The final distance from y = k is |a| times the original distance from the x-axis.
- A negative multiplier reverses ordered range endpoints: if f has range [1, 5], −2f has range [−10, −2].
Worked example
Compress and reflect a quadratic
Describe g(x) = − relative to f(x) = . Move the original point (2, 4) and give the domain and range.
This asks you to change the coordinate named by each mirror move and keep the other coordinate.
Show the steps and the answer
- The multiplier is , whose magnitude is .The magnitude measures distance change without its direction.
- Compress vertically by , then reflect across the x-axis.The magnitude lies between 0 and 1, and the negative sign reverses output signs.
- Keep input 2. The new output is , so the point becomes .The outside factor acts on the whole old height.
- Domain: all real numbers. Range: .Squaring still accepts all real inputs; every nonnegative square now becomes nonpositive, and arbitrarily large squares give arbitrarily negative heights.
- Vertical compression by and reflection across the x-axis.
- (2, 4) becomes (2, −2).
- Domain: (−∞, ∞).
- Range: (−∞, 0].
Counterexamples
What it is not, and the tempting wrong moves.
(2, 4) becomes (2, −2).
Domain: (−∞, ∞).
Range: (−∞, 0].
Tips and tricks
- Use the displayed landmark or known column as a check before drawing any additional points.
5 How
- Find the multiplier a outside the function. Its magnitude |a| sets the size change, and its sign tells you whether to reflect.
- Keep every input coordinate. Multiply each entire signed output by a, including outputs below zero.
- If a shift is added outside afterward, multiply the original height first and then add the shift. The shifted graph is scaled relative to the line y = k in a·f(x) + k.
- Keep the original domain. Multiply the original range values by a, reversing their order when a is negative.
- Check a transformed point by substituting its unchanged input into the new formula.
Read an outside factor and move heights
- Identify the outside factor a. Its magnitude gives the distance change and its sign gives the reflection.
- Keep each known input and multiply its output by a. This finds the new height at that same address; for (2, 5) and a = 3, the new height is 3 × 5 = 15.
- If there is a final outside shift k, add it to the scaled height. This finishes the change in the written order; for old height 5 in −2f(x) + 3, compute −10 + 3 = −7.
- Keep the original Domain and apply the same height calculation to the Range. A negative multiplier reverses ordered endpoints; [1, 5] scaled by −2 becomes [−10, −2].
- Substitute an unchanged input into the transformed formula to check its output. For c(x) = f(x) and f(2) = 5, c(2) = , and doubling this result recovers 5.
6 Worked example
Worked example
Stretch and reflect a square-root graph: g(x) = −3·f(x)
Let f(x) = − 2. Its domain is [−4, ∞) and its range is [−2, ∞). The table lists five points on the graph of f: (−4, −2), (−3, −1), (0, 0), (5, 1) and (12, 2). Let g(x) = −3·f(x). (a) Identify the multiplier and describe how the graph of g is obtained from the graph of f. (b) Find the five corresponding points on the graph of g, and write g(x) as a formula in x. (c) State the domain and range of g. (d) Let h(x) = −3·f(x) + 1. Find the point on the graph of h that comes from (12, 2), and state the range of h.
Show the steps and the answer
- Read the multiplier outside f: , so . Since , the graph is stretched vertically by a factor of 3. Since a < 0, it is also reflected across the x-axis.The −3 multiplies the output f(x), not the input x, so it changes heights only. Its size 3 triples each point's distance from the x-axis, and its negative sign puts each point on the opposite side of the axis.
- Keep each input and multiply each whole signed output by : .If (u, v) is on f, then g(u) = −3·f(u) = −3v, so the point over input u moves from height v to height −3v. Heights below zero are multiplied too and land above the axis (−2 becomes 6). Heights above zero land below it (2 becomes −6). A height of 0 stays 0, so the x-intercept (0, 0) does not move.
- Write the formula: .The multiplier acts on the entire output of f, including its −2, which becomes +6. Multiplying only the root, as in −3 − 2, would leave the endpoint at (−4, −2) instead of moving it to (−4, 6).
- Keep the domain: g has domain . Multiply the range of f, , by . The endpoint becomes 6, and the outputs that increase without bound now decrease without bound. The order reverses, so g has range .Scaling heights changes no input, so the allowed inputs are still those with x + 4 ≥ 0. Multiplying by a negative number reverses an inequality: f(x) ≥ −2 gives −3·f(x) ≤ 6. The value 6 is reached at x = −4, so the bracket at 6 is closed.
- For , multiply first and then add. From (12, 2), and , so the point is . Since , every output of g rises by 1. The top value 6 becomes 7, so h has range .In −3·f(x) + 1 the multiplication comes before the addition. Adding first would give −3·(2 + 1) = −9, which is a point of the different function −3·f(x) − 3. Equivalently, h is scaled relative to the line y = 1: the point that was 2 above the x-axis ends up 3·2 = 6 below y = 1, at y = −5.
- Check (5, −3) by substituting its unchanged input into the new formula: .A transformed point keeps its input, so the new formula at that input must return the new height. It returns −3, the height found in step 2.
- (a) a = −3: a vertical stretch by a factor of 3 and a reflection across the x-axis. (b) (−4, 6), (−3, 3), (0, 0), (5, −3), (12, −6)
- g(x) = −3 + 6. (c) Domain [−4, ∞), range (−∞, 6]. (d) The point is (12, −5)
- the range of h is (−∞, 7].
Work to write
- a = −3: |a| = 3 > 1, so vertical stretch by a factor of 3; a < 0, so reflect across the x-axis
- Domain of g: [−4, ∞)
- f(x) ≥ −2, so −3·f(x) ≤ 6; range of g: (−∞, 6]
- h: multiply first, then add: −3·2 + 1 = −5, so (12, 2) → (12, −5)
- Range of h: (−∞, 6] shifted up 1 gives (−∞, 7]
- Check: g(5) = −3 + 6 = −3, matching (5, −3)
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 6
Halve a whole table
Use the original f table shown beside this question. List the corresponding known points on c(x) = f(x).
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.
- Copy inputs 2, 4, 6, 8 without changing them.A vertical compression multiplies outputs, not input coordinates.
- Halve each output: , and .The same scale factor applies to every original height.
- The exact decimal forms are 0.5, 1.5, 3.5, and 5.5.Each denominator is 2, so dividing produces a terminating decimal without rounding.
Rung 2 of 6
A different table compressed by one quarter
Use the second textbook practice table shown beside this question. For this original transformation, make the table for c(x) = f(x). This asks you to keep each input and quarter its output.
Show the steps and the answer
- Read , and from the four displayed columns.The input and output in the same column belong together.
- Divide the first three heights by 4: .Multiplication by quarters the entire output.
- The last height stays 0 because ; keep inputs 2, 4, 6, 8.A vertical compression changes heights only, and multiplying zero still gives zero.
- c: use the displayed compressed table.
- At input 8 the output is still 0.
Rung 3 of 6
Twice the population at the same time
A fruit-fly population graph has reference points (0, 1), (3, 3), (6, 2), and (7, 0). A second population is twice as large at every time. Give its formula in terms of f and its corresponding points.
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.
- Write .Twice as large describes an output change at the same time input t.
- Keep times 0, 3, 6, 7. Multiply heights 1, 3, 2, 0 by 2 to get 2, 6, 4, 0.The population doubles at each unchanged time, including zero population.
- Plot (0, 2), (3, 6), (6, 4), and (7, 0), following the same time pattern with doubled heights.These are the original reference points after vertical scaling. Their horizontal coordinates remain unchanged.
- P(t) = 2f(t).
- New points: (0, 2), (3, 6), (6, 4), (7, 0).
Rung 4 of 6
Recognize a cubic scale from graph points
In this original graph example, the function is known to have the form g(x) = a· and contains (1, 4) and (2, 32). Find a and describe the transformation.
This asks you to find the new address or height of the given graph information.
Show the steps and the answer
- For the Cubic function .To find a vertical scale, compare the new and old heights at the same nonzero-output input.
- Use , so .Dividing the new height 4 by the old height 1 gives the multiplier.
- Write , a vertical stretch by 4.The positive multiplier 4 is greater than 1, so it increases distances from the x-axis without reflection.
- Check the other supplied point: .A second known point must agree with the candidate scale. The assumed form g(x) = a· is what makes one nonzero height sufficient to determine a.
- a = 4.
- Vertical stretch by 4.
Rung 5 of 6
Stretch the identity function, then shift
Write the formula obtained by stretching the Identity function f(x) = x vertically by 3, then shifting it down by 2.
This asks you to find the new address or height of the given graph information.
Show the steps and the answer
- Start with . A vertical stretch by 3 gives .The identity function returns the same number it receives, and the outside multiplier triples that output.
- Subtract 2 afterward: .The instruction says to shift the stretched graph down, so the subtraction follows the multiplication.
- At input 0, the original height 0 becomes . At input 1, the original height 1 becomes .These two points show the shift and the tripled change in height between neighboring inputs.
- Points: (0, −2) and (1, 1).
- Domain and range: (−∞, ∞).
Rung 6 of 6
A negative scale followed by a shift
Describe g(x) = −2 + 5 relative to f(x) = . Find two points and the domain and range.
This asks you to find the new address or height of the given graph information.
Show the steps and the answer
- The factor stretches vertically by 2 and reflects across the x-axis; then shifts up 5.The magnitude gives the size change, the minus reverses signed outputs, and the added number acts after multiplication.
- The original point (0, 0) becomes .Keep the input and apply the outside operations to its original height.
- The original point (4, 2) becomes .Multiplication precedes addition: −4 + 5 = 1.
- Domain: . Range: .The root still needs x ≥ 0. Its outputs start at 0 and grow without bound, so −2 + 5 starts at 5 and decreases without bound.
- Stretch vertically by 2, reflect across the x-axis, then shift up 5.
- Points: (0, 5) and (4, 1).
- Domain: [0, ∞).
- Range: (−∞, 5].
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Outside multiply, heights multiply. Keep the input fixed and apply the factor to the entire signed output.
- Say farther from the x-axis for a stretch and closer to the x-axis for a compression. This works for positive and negative heights.
- Split a negative multiplier into its magnitude and its sign. For −, halve the distance and reverse the height's sign.
- With a final +k, multiply the old height first, then add k. Check your new point in the formula after both actions.
7 The trap
Saying a stretch moves every point upward. A positive scale larger than 1 sends positive outputs up and negative outputs down, increasing distance from the x-axis. Also keep a·f(x) separate from f(ax): the bottom two table rows preview the horizontal-coordinate changes explained in lesson 7.
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.