Skip to content
Family Table Math

Stretches, Compressions, and Reflections

Translations slide a graph without changing its shape. Stretches and compressions change its shape, pulling it taller, flatter, wider, or narrower, and reflections flip it over an axis. Together they explain the roles of aa and kk in y=af(kx)y = af(kx).

In y=af(x)y = af(x), multiplying the output by aa multiplies every yy-coordinate by aa:

(x,y)→(x, ay)(x, y) \to (x,\ ay)
  • ∣a∣>1|a| \gt 1: vertical stretch by a factor of ∣a∣|a| (the graph gets taller).
  • 0<∣a∣<10 \lt |a| \lt 1: vertical compression by a factor of ∣a∣|a| (the graph gets flatter).
  • a<0a \lt 0: also a reflection in the xx-axis (the graph flips upside down).

In y=f(kx)y = f(kx), multiplying the input by kk divides every xx-coordinate by kk:

(x,y)→(xk, y)(x, y) \to \left(\frac{x}{k},\ y\right)
  • ∣k∣>1|k| \gt 1: horizontal compression by a factor of 1∣k∣\dfrac{1}{|k|} (the graph gets narrower).
  • 0<∣k∣<10 \lt |k| \lt 1: horizontal stretch by a factor of 1∣k∣\dfrac{1}{|k|} (the graph gets wider).
  • k<0k \lt 0: also a reflection in the yy-axis (the graph flips left to right).

The horizontal factor is the reciprocal of kk. For example, y=f(2x)y = f(2x) is a horizontal compression by a factor of 12\dfrac{1}{2}, because the input reaches each value twice as fast.

Four graphs showing y = square root of x stretched vertically, stretched horizontally, reflected in the x-axis, and reflected in the y-axis 2 4 6 8 2 4 Vertical stretch: y = 2√x 2 4 6 8 2 4 Horizontal stretch: y = √(½x) 2 4 6 8 −2 2 Reflection in x-axis: y = -√x −4 −2 2 4 2 4 Reflection in y-axis: y = √(-x)
Vertical changes move points up or down; horizontal changes move them left or right.
  • A vertical stretch, compression, or reflection doesn’t move points on the xx-axis (where y=0y = 0).
  • A horizontal stretch, compression, or reflection doesn’t move points on the yy-axis (where x=0x = 0).

These are called invariant points. They’re useful checks when you sketch.

Example 1: Vertical stretches and reflections

Section titled “Example 1: Vertical stretches and reflections”

Describe each graph compared with y=x2y = x^2, and find the images of (1,1)(1, 1) and (2,4)(2, 4).

(a) y=3x2y = 3x^2 \qquad (b) y=−12x2y = -\dfrac{1}{2}x^2

Solution.

(a) a=3a = 3: a vertical stretch by a factor of 33. Rule (x,y)→(x, 3y)(x, y) \to (x,\ 3y):

(1,1)→(1,3),(2,4)→(2,12)(1, 1) \to (1, 3), \qquad (2, 4) \to (2, 12)

(b) a=−12a = -\dfrac{1}{2}: a vertical compression by a factor of 12\dfrac{1}{2} and a reflection in the xx-axis. Rule (x,y)→(x, −12y)(x, y) \to \left(x,\ -\tfrac{1}{2}y\right):

(1,1)→(1,−12),(2,4)→(2,−2)(1, 1) \to \left(1, -\tfrac{1}{2}\right), \qquad (2, 4) \to (2, -2)

The parabola is flatter and opens downward.

Example 2: Horizontal compressions and reflections

Section titled “Example 2: Horizontal compressions and reflections”

Describe each graph compared with y=xy = \sqrt{x}, and state its domain.

(a) y=2xy = \sqrt{2x} \qquad (b) y=−xy = \sqrt{-x}

Solution.

(a) k=2k = 2: a horizontal compression by a factor of 12\dfrac{1}{2}. Rule (x,y)→(x2, y)(x, y) \to \left(\tfrac{x}{2},\ y\right), so (4,2)→(2,2)(4, 2) \to (2, 2) and (9,3)→(4.5,3)(9, 3) \to (4.5, 3). Check: 2(2)=2\sqrt{2(2)} = 2. ✓ The domain is still {x∈R∣x≥0}\{x \in \mathbb{R} \mid x \ge 0\}.

(b) k=−1k = -1: a reflection in the yy-axis. Rule (x,y)→(−x, y)(x, y) \to (-x,\ y), so (4,2)→(−4,2)(4, 2) \to (-4, 2). The graph now goes to the left, with domain {x∈R∣x≤0}\{x \in \mathbb{R} \mid x \le 0\}. Check: −(−4)=4=2\sqrt{-(-4)} = \sqrt{4} = 2. ✓

The points (3,4)(3, 4) and (−6,1)(-6, 1) are on y=f(x)y = f(x). Find their images on y=−2f ⁣(13x)y = -2f\!\left(\tfrac{1}{3}x\right).

Solution. Here a=−2a = -2 and k=13k = \tfrac{1}{3}. Dividing by 13\tfrac{1}{3} is the same as multiplying by 33, so the rule is:

(x,y)→(3x, −2y)(x, y) \to (3x,\ -2y) (3,4)→(9,−8),(−6,1)→(−18,−2)(3, 4) \to (9, -8), \qquad (-6, 1) \to (-18, -2)

Describe y=4xy = \dfrac{4}{x} compared with y=1xy = \dfrac{1}{x}, and find the images of (1,1)(1, 1) and (2,12)\left(2, \tfrac{1}{2}\right).

Solution. 4x=4⋅1x\dfrac{4}{x} = 4 \cdot \dfrac{1}{x}, so a=4a = 4: a vertical stretch by a factor of 44. Rule (x,y)→(x, 4y)(x, y) \to (x,\ 4y):

(1,1)→(1,4),(2,12)→(2,2)(1, 1) \to (1, 4), \qquad \left(2, \tfrac{1}{2}\right) \to (2, 2)

The asymptotes stay at x=0x = 0 and y=0y = 0: stretching away from the xx-axis doesn’t move either of them.

Using kk as the horizontal factor. y=f(3x)y = f(3x) is a horizontal compression by a factor of 13\dfrac{1}{3}, not a stretch by 33. Divide the xx-coordinates by kk.

Reflecting in the wrong axis. A negative aa (outside) flips the graph over the xx-axis, upside down. A negative kk (inside) flips it over the yy-axis, left to right.

Applying aa to the xx-coordinates. aa only changes yy-values, and kk only changes xx-values. Write the mapping rule first.

Calling y=12f(x)y = \tfrac{1}{2}f(x) a stretch. When 0<∣a∣<10 \lt |a| \lt 1, the graph gets flatter, so it’s a vertical compression by a factor of 12\tfrac{1}{2}.

Forgetting what a reflection does to the domain or range. y=−xy = -\sqrt{x} has range y≤0y \le 0, and y=−xy = \sqrt{-x} has domain x≤0x \le 0.

1. (Warm-up) Describe each transformation of y=f(x)y = f(x).

  • (a) y=5f(x)y = 5f(x)
  • (b) y=14f(x)y = \tfrac{1}{4}f(x)
  • (c) y=−f(x)y = -f(x)
Solution

(a) Vertical stretch by a factor of 55.

(b) Vertical compression by a factor of 14\tfrac{1}{4}.

(c) Reflection in the xx-axis.

2. (Warm-up) Describe each transformation of y=f(x)y = f(x).

  • (a) y=f(3x)y = f(3x)
  • (b) y=f ⁣(12x)y = f\!\left(\tfrac{1}{2}x\right)
  • (c) y=f(−x)y = f(-x)
Solution

(a) Horizontal compression by a factor of 13\tfrac{1}{3}.

(b) Horizontal stretch by a factor of 22.

(c) Reflection in the yy-axis.

3. (Warm-up) The point (2,6)(2, 6) is on y=f(x)y = f(x). Find its image on each graph.

  • (a) y=−f(x)y = -f(x)
  • (b) y=f(2x)y = f(2x)
  • (c) y=0.5f(x)y = 0.5f(x)
Solution

(a) (2,−6)(2, -6).

(b) Divide xx by 22: (1,6)(1, 6).

(c) Multiply yy by 0.50.5: (2,3)(2, 3).

4. (Core) For g(x)=−3xg(x) = -3\sqrt{x}, describe the transformations, map the key points of y=xy = \sqrt{x}, and state the domain and range.

Solution

Vertical stretch by a factor of 33 and reflection in the xx-axis. Rule (x,y)→(x, −3y)(x, y) \to (x,\ -3y):

(0,0)→(0,0),(1,1)→(1,−3),(4,2)→(4,−6),(9,3)→(9,−9)(0, 0) \to (0, 0), \quad (1, 1) \to (1, -3), \quad (4, 2) \to (4, -6), \quad (9, 3) \to (9, -9)

Domain {x∈R∣x≥0}\{x \in \mathbb{R} \mid x \ge 0\}, range {y∈R∣y≤0}\{y \in \mathbb{R} \mid y \le 0\}.

5. (Core) For h(x)=−4xh(x) = \sqrt{-4x}, describe the transformations, map the key points of y=xy = \sqrt{x}, and state the domain and range.

Solution

k=−4k = -4: horizontal compression by a factor of 14\tfrac{1}{4} and reflection in the yy-axis. Rule (x,y)→(−x4, y)(x, y) \to \left(-\tfrac{x}{4},\ y\right):

(0,0)→(0,0),(1,1)→(−14,1),(4,2)→(−1,2),(9,3)→(−94,3)(0, 0) \to (0, 0), \quad (1, 1) \to \left(-\tfrac{1}{4}, 1\right), \quad (4, 2) \to (-1, 2), \quad (9, 3) \to \left(-\tfrac{9}{4}, 3\right)

Check: −4(−1)=4=2\sqrt{-4(-1)} = \sqrt{4} = 2. ✓

Domain {x∈R∣x≤0}\{x \in \mathbb{R} \mid x \le 0\}, range {y∈R∣y≥0}\{y \in \mathbb{R} \mid y \ge 0\}.

6. (Core) Write the equation of y=x2y = x^2 after a vertical compression by a factor of 13\tfrac{1}{3} and a reflection in the xx-axis.

Solutiony=−13x2y = -\tfrac{1}{3}x^2

7. (Core) Show that y=12xy = \dfrac{1}{2x}, a horizontal compression of y=1xy = \dfrac{1}{x}, is also a vertical compression of it. Check with the point (1,1)(1, 1).

Solution12x=12⋅1x\frac{1}{2x} = \frac{1}{2} \cdot \frac{1}{x}

So it’s also a vertical compression by a factor of 12\tfrac{1}{2}.

As a horizontal compression, (1,1)→(12,1)(1, 1) \to \left(\tfrac{1}{2}, 1\right). Check it’s on the graph: 12⋅12=1\dfrac{1}{2 \cdot \frac{1}{2}} = 1. ✓

8. (Challenge) Show that compressing y=x2y = x^2 horizontally by a factor of 12\tfrac{1}{2} gives the same graph as stretching it vertically by a factor of 44.

Solution

The horizontal compression is y=(2x)2y = (2x)^2, and

(2x)2=4x2(2x)^2 = 4x^2

which is the vertical stretch by a factor of 44.

Check with a point: the compression sends (1,1)(1, 1) to (12,1)\left(\tfrac{1}{2}, 1\right), and on y=4x2y = 4x^2, 4(12)2=14\left(\tfrac{1}{2}\right)^2 = 1. ✓

9. (Challenge) The function y=f(x)y = f(x) has domain {x∈R∣−2≤x≤6}\{x \in \mathbb{R} \mid -2 \le x \le 6\} and range {y∈R∣−1≤y≤3}\{y \in \mathbb{R} \mid -1 \le y \le 3\}. State the domain and range of y=−2f(0.5x)y = -2f(0.5x).

Solution

The rule is (x,y)→(2x, −2y)(x, y) \to (2x,\ -2y).

Domain: double the endpoints, {x∈R∣−4≤x≤12}\{x \in \mathbb{R} \mid -4 \le x \le 12\}.

Range: multiply the endpoints by −2-2 to get 22 and −6-6. The negative factor swaps which end is bigger, so the range is {y∈R∣−6≤y≤2}\{y \in \mathbb{R} \mid -6 \le y \le 2\}.