TOPIC

Transformations of functions: Vertical stretches

MY PROGRESS

Pug Score

0%

Study Points

+0

Overview

Watch

Read

Next Steps


Get Started

Get unlimited access to all videos, practice problems, and study tools.

Unlimited practice
Full videos

Back to Menu

Topic Progress

Pug Score

0%

Videos Watched

0/0

Read

Not viewed


Study Points

+0

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.

What Is a Vertical Stretch?

A vertical stretch is a transformation that pulls a graph away from the x axis, making it taller. A vertical compression (also called a vertical shrink) does the opposite: it pushes a graph closer to the x axis, making it flatter. Both transformations come from the same simple rule, so it helps to study them together.

If \(y = f(x)\) is the original function, then a vertical stretch or compression is written as:

\(y = a \cdot f(x)\)

Here \(a\) is a positive number that scales every output value of the function. Only the y-coordinates change, so a point \((x, y)\) on the graph of \(f(x)\) moves to \((x, a y)\) on the graph of \(a f(x)\).

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\)
-112
000
112
248

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:

Graph of y equals 3 times x squared compared to a normal parabola shape, showing a vertical stretch Plot of y = 3*x**2 for x in [-3, 3] -3 -2 -1 0 1 2 3 0 5 10 15 20 25 30 x y Vertex (0, 0) Stretched point
Graph of y = 3 times x squared, a vertical stretch of y = x squared by a factor of 3.

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.

Graph of y equals one quarter times the absolute value of x, showing a vertical compression Plot of y = 0.25*abs(x) for x in [-4, 4] -4 -2 0 2 4 0 0.2 0.4 0.6 0.8 1 x y Vertex (0, 0) Compressed point
Graph of y = one quarter times the absolute value of x, a vertical compression of y = absolute value of x.

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

RuleEffect 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

Related lessons