Topic
My Progress
Pug Score
0%
Study Points
+0
Overview
Watch
Read
Next Steps
Overview
Watch
Read
Next Steps
Read
Vertical Stretch and Compression of Functions
A clear guide to vertical stretches and compressions of functions: the rule y = a f(x), how the value of a controls stretching versus shrinking, worked examples, and graphs showing the effect on key points.
How the Value of a Controls the Transformation
- If \(a > 1\), the graph is stretched vertically (it gets taller).
- If \(0 < a < 1\), the graph is compressed vertically (it gets flatter).
- If \(a = 1\), there is no change, the graph is the original function.
- If \(a < 0\), the graph is stretched or compressed by \(|a|\) and also reflected across the x axis.
That last case connects directly to reflection across the x axis, since multiplying by a negative number flips the graph upside down at the same time it rescales it.
Vertical Stretch by a Factor of 2: Worked Example
Start with the base function \(f(x) = x^2\). To stretch it vertically by a factor of 2, multiply the whole function by 2:
\(g(x) = 2x^2\)
Compare a few points:
| \(x\) | \(f(x)=x^2\) | \(g(x)=2x^2\) |
|---|---|---|
| -1 | 1 | 2 |
| 0 | 0 | 0 |
| 1 | 1 | 2 |
| 2 | 4 | 8 |
Every y-value from the original function has doubled, while the x-values, and therefore the vertex at the origin, stay exactly where they were. Here is the stretched graph, using \(g(x) = 3x^2\) to show an even taller example clearly:
Notice the vertex still sits at \((0, 0)\), but every other point on the parabola is now three times as far from the x axis as it was on the original curve.
Vertical Compression (Shrink): Worked Example
Now take \(f(x) = |x|\) and compress it vertically by a factor of \(\frac{1}{4}\):
\(h(x) = \frac{1}{4}|x|\)
Since \(0 < \frac{1}{4} < 1\), every output is shrunk toward the x axis, making the familiar V-shape look much flatter and wider without moving it left, right, up, or down.
Vertical Stretches Do Not Change the Domain
Because a vertical stretch or compression only rescales y-values, the set of allowed x-values never changes. If you already know how to write domain and range for the base function, you can reuse the same domain for the transformed function. The range, however, usually does change, since every output has been multiplied by \(a\).
Vertical Stretch vs Other Transformations
It is easy to confuse a vertical stretch with a shift. A horizontal translation slides a graph left or right by changing the input, while a vertical stretch rescales the output and keeps every x-intercept in the same horizontal position. Recognizing which part of the function is being changed, the input inside the parentheses or the output multiplied outside, is the key to telling these transformations apart.
When two or more transformations appear in the same equation, such as \(y = -2f(x)\), work through them one effect at a time: apply the stretch factor of 2 first, then apply the reflection caused by the negative sign.
Quick Reference
| Rule | Effect on graph |
|---|---|
| \(y = a f(x)\), \(a > 1\) | Vertical stretch (taller) |
| \(y = a f(x)\), \(0 < a < 1\) | Vertical compression (flatter) |
| \(y = a f(x)\), \(a < 0\) | Stretch or compression plus reflection over the x axis |