The difference between vertical and horizontal stretch is how a graph changes when it is transformed by stretching it away from or toward an axis. Both transformations make a graph wider or taller, but they do so in different directions and using different formulas. A vertical stretch changes the output values, or y-values, of a function, while a horizontal stretch changes the input values, or x-values. Understanding this difference is important in algebra, graphing, trigonometry, and functions because it helps you predict how a graph will look after a transformation.
Introduction to Vertical and Horizontal Stretch
A stretch is a type of transformation that changes the size or shape of a graph without moving every point to a completely different location. The graph is enlarged or compressed in a particular direction. In function notation, if you start with a parent function such as:
[ y = f(x) ]
you can create a stretched version of that graph by changing either the output or the input It's one of those things that adds up..
A vertical stretch multiplies the entire function by a number. This affects the y-values.
[ y = a f(x) ]
A horizontal stretch changes the input inside the function. This affects the x-values.
[ y = f\left(\frac{x}{a}\right) ]
The key idea is simple: vertical stretch affects height, and horizontal stretch affects width.
What Is a Vertical Stretch?
A vertical stretch occurs when every point on a graph is moved farther away from or closer to the x-axis. This happens when the function is multiplied by a constant.
Here's one way to look at it: if:
[ y = f(x) ]
then:
[ y = 3f(x) ]
is a vertical stretch by a factor of 3.
Basically, every y-value is multiplied by 3. If the original point is:
[ (2, 4) ]
then after the vertical stretch, the new point becomes:
[ (2, 12) ]
The x-value stays the same, but the y-value changes.
Example of a Vertical Stretch
Start with:
[ f(x) = x^2 ]
Now stretch it vertically by a factor of 2:
[ g(x) = 2x^2 ]
The original graph of (y = x^2) is a parabola. The new graph, (y = 2x^2), is still a parabola, but it becomes narrower because its y-values increase faster.
For example:
| x | (f(x)=x^2) | (g(x)=2x^2) |
|---|---|---|
| -2 | 4 | 16 |
| -1 | 1 | 2 |
| 0 | 0 | 0 |
| 1 | 1 | 2 |
| 2 | 4 | 16 |
The graph has been stretched vertically because the output values are doubled Most people skip this — try not to. Worth knowing..
What Is a Horizontal Stretch?
A horizontal stretch occurs when every point on a graph is moved farther away from or closer to the y-axis. This happens when the input, or (x), is changed inside the function Not complicated — just consistent. Nothing fancy..
If:
[ y = f(x) ]
then:
[ y = f\left(\frac{x}{3}\right) ]
is a horizontal stretch by a factor of 3 That's the part that actually makes a difference..
This means the graph becomes wider. A point that was originally at (x = 2) may now appear at (x = 6), because the input is being spread out Worth keeping that in mind..
Example of a Horizontal Stretch
Start again with:
[ f(x) = x^2 ]
Now create a horizontal stretch by a factor of 3:
[ g(x) = \left(\frac{x}{3}\right)^2 ]
This graph is wider than the original parabola. Instead of reaching (y = 4) at (x = 2), it reaches (y = 4) at (x = 6).
| x | (f(x)=x^2) | (g(x)=\left(\frac{x}{3}\right)^2) |
|---|---|---|
| -6 | 36 | 4 |
| -3 | 9 | 1 |
| 0 | 0 | 0 |
| 3 | 9 | 1 |
| 6 | 36 | 4 |
The graph stretches horizontally because the x-values are spread out.
Key Difference Between Vertical and Horizontal Stretch
The main difference is the direction of the transformation and the part of the function that changes Most people skip this — try not to..
| Transformation | Formula | Direction | What Changes? | Effect on Graph |
|---|---|---|---|---|
| Vertical stretch | (y = a f(x)) | Up and down | y-values | Graph becomes taller or shorter |
| Horizontal stretch | (y = f\left(\frac{x}{a}\right)) | Left and right | x-values | Graph becomes wider or narrower |
A vertical stretch changes the height of the graph. A horizontal stretch changes the width of the graph And that's really what it comes down to..
Here's one way to look at it: if (f(x)) is a curve, then (3f(x)) makes the curve taller, while (f\left(\frac{x}{3}\right)) makes the curve wider It's one of those things that adds up..
Why Horizontal Stretch Formulas Can Be Confusing
Horizontal stretches are often more confusing than vertical stretches because the multiplier inside the function works in the opposite way.
For a vertical stretch:
[ y = a f(x) ]
If (a > 1), the graph stretches vertically.
For a horizontal stretch, the form is usually:
[ y = f(bx) \
…(y = f(bx)). In this form the factor (b) acts on the input before the function is evaluated. Because the input is scaled, the effect on the graph is the inverse of what one might expect:
- If (0 < b < 1), the graph is stretched horizontally by a factor of (\frac{1}{b}).
- If (b > 1), the graph is compressed horizontally by a factor of (\frac{1}{b}).
- A negative (b) adds a reflection across the y‑axis in addition to the stretch or compression.
To see this with the familiar parabola (f(x)=x^{2}), consider (g(x)=f(2x)=(2x)^{2}=4x^{2}). Here (b=2>1), so the graph is compressed toward the y‑axis by a factor of (\frac{1}{2}). Points that were at (x=±1) on (f(x)) now occur at (x=±\frac{1}{2}) on (g(x)), while the y‑values become four times larger because the squaring amplifies the compressed input.
No fluff here — just what actually works And that's really what it comes down to..
Conversely, (h(x)=f!\left(\frac{x}{2}\right)=\left(\frac{x}{2}\right)^{2}=\frac{x^{2}}{4}) uses (b=\frac{1}{2}) (which lies between 0 and 1). The graph is stretched horizontally by a factor of 2: the point that gave (y=1) at (x=±1) on the original parabola now appears at (x=±2) on (h(x)), while the y‑value remains 1 Practical, not theoretical..
Combining Vertical and Horizontal Stretches
When both types of scaling are present, the order of operations matters only if a reflection is involved; otherwise the transformations commute. For a function written as
[ y = a,f!\bigl(bx\bigr), ]
- (a) controls the vertical stretch/compression (and reflection if (a<0)).
- (b) controls the horizontal stretch/compression (and reflection if (b<0)).
To give you an idea, starting from (f(x)=\sqrt{x}), the transformation
[ y = 3,\sqrt{\frac{x}{4}} ]
first horizontally stretches the graph by a factor of 4 (because (b=\frac{1}{4})), then vertically stretches it by a factor of 3. The resulting curve reaches the same y‑value at four times the original x‑distance, and each y‑value is three times larger than it would be after the horizontal stretch alone Nothing fancy..
Practical Tips for Recognizing Stretches
- Identify where the multiplier appears – outside the function → vertical; inside the argument → horizontal.
- Remember the reciprocal relationship for horizontal stretches: the factor you see inside ((b)) produces a stretch of (\frac{1}{b}).
- Check for reflections – a negative sign outside flips over the x‑axis; a negative sign inside flips over the y‑axis.
- Use test points – pick a simple x‑value (like 1 or –1) and see where it lands after the transformation; this quickly reveals whether the graph has widened or narrowed.
To keep it short, vertical stretches alter the height of a graph by scaling the output, while horizontal stretches alter the width by scaling the input. The key to mastering horizontal transformations is recognizing that the scaling factor works inversely: a number less than one inside the function stretches the graph, whereas a number greater than one compresses it. But by keeping track of where the multiplier resides and applying the reciprocal rule for horizontal changes, one can predict and sketch the effects of any combination of stretches, compressions, and reflections on a function’s graph. Understanding these concepts provides a solid foundation for analyzing more complex transformations in algebra, calculus, and beyond Worth keeping that in mind..