Lesson 6

Horizontal stretches and compressions

Theory and examples

Horizontal scaling changes width

A horizontal stretch or compression changes how wide the graph looks. This is an inside transformation, so it changes the input values. Like horizontal translations, the effect feels backwards at first.

Key idea

For y=f(kx)y=f(kx), the graph is scaled horizontally by factor 1k\frac{1}{k}.

If k>1k>1, the graph is horizontally compressed by factor 1k\frac{1}{k}.
If 0<k<10<k<1, the graph is horizontally stretched by factor 1k\frac{1}{k}.

You MUST understand this

f(2x)f(2x) does not stretch by 2. It compresses by 12\frac12. f(12x)f(\frac12 x) does not compress by 12\frac12. It stretches by 22.

Compressions and stretches from the y-axis

Horizontal compression pushes features closer to the y-axis. Horizontal stretching pulls features further away from the y-axis.

What happens to points?

The output does not change. The input is scaled by the reciprocal. If (a,b)(a,b) is on y=f(x)y=f(x), then the matching point on y=f(kx)y=f(kx) has coordinates (ak,b)(\frac{a}{k},b).

Compression example

On y=f(2x)y=f(2x), x-values are divided by 22 while y-values stay the same.

(6,4)→(3,4)(6,4)\rightarrow(3,4)

Stretch example

On y=f(12x)y=f(\frac12 x), x-values are multiplied by 22 while y-values stay the same.

(3,5)→(6,5)(3,5)\rightarrow(6,5)

Point examples

(a,b)⟶(ak,b)(a,b)\quad \longrightarrow \quad \left(\frac{a}{k},b\right)

Scaled xx-coordinate, same yy-coordinate.

Case 1: k>1k>1

The reciprocal 1k\frac{1}{k} is less than 11, so the point moves closer to the y-axis.

original(a, b)scaled point(a/k, b)

Case 2: 0<k<10<k<1

The reciprocal 1k\frac{1}{k} is greater than 11, so the point moves further from the y-axis.

original(a, b)scaled point(a/k, b)

How it looks graphically

xycompressedstretchedy = f(x)

Why does f(2x)f(2x) compress and f(12x)f(\frac12 x) stretch?

In f(2x)f(2x), the function receives twice the input value. So the graph reaches the same outputs using smaller xx-values. In f(12x)f(\frac12 x), the function receives only half the input value, so it needs larger xx-values to reach the same outputs.

f(2⋅3)=f(6)f(2\cdot 3)=f(6)

The output that used to happen at x=6x=6 now happens at x=3x=3. Every x-value is halved, so the graph squeezes toward the y-axis.

f(12⋅12)=f(6)f\left(\frac12\cdot 12\right)=f(6)

The output that used to happen at x=6x=6 now happens at x=12x=12. Every x-value is doubled, so the graph stretches away from the y-axis.

A few quick visual comparisons

The exact shape does not matter. Horizontal compression makes the graph narrower, while horizontal stretching makes it wider.

Arch: horizontal compression

original changed

Arch: horizontal stretch

original changed

Worked examples

Keep asking: what happens to the input? The y-coordinate stays the same.

Example 1

The point (6,4)(6,4) is on y=f(x)y=f(x). Find the matching point on y=f(2x)y=f(2x).

k=2⇒x-value is divided by 2k=2\quad \Rightarrow \quad \text{x-value is divided by }2
(6,4)→(3,4)(6,4)\rightarrow(3,4)

Example 2

The point (−3,5)(-3,5) is on y=f(x)y=f(x). Find the matching point on y=f(13x)y=f(\frac13 x).

k=13⇒x-value is multiplied by 3k=\frac13\quad \Rightarrow \quad \text{x-value is multiplied by }3
(−3,5)→(−9,5)(-3,5)\rightarrow(-9,5)

Summary

  • y=f(kx)y=f(kx) scales the graph horizontally by 1k\frac{1}{k}.
  • k>1k>1 gives a horizontal compression.
  • 0<k<10<k<1 gives a horizontal stretch.
  • Point rule: (a,b)→(ak,b)(a,b)\rightarrow\left(\frac{a}{k},b\right).
  • Corresponding y-values stay the same.

Optional mastery

Mastery questions

Do you want a high study score? Be disciplined. Do the mastery questions.

Open mastery questions

Checkpoint

Multiple-choice questions

Answer every question correctly to unlock the next lesson. If something is marked red, change your answer and check again.

Question 1
What does y=f(2x)y=f(2x) do to y=f(x)y=f(x)?
Question 2
A point (6,4)(6,4) is on y=f(x)y=f(x). Which point is on y=f(2x)y=f(2x)?
Question 3
What does y=f(12x)y=f(\frac12 x) do to the graph?
Question 4
Which statement best compares 2f(x)2f(x) and f(2x)f(2x)?