Course contentsShow
← Mathematics
Lesson 580 of 3,12114. Functions in DepthFree lesson

Vertical Stretches and Compressions

Explore how multiplying a function by a constant stretches or compresses it vertically.

Vertical Stretches and Compressions

You'll learn how multiplying a function by a constant changes its steepness and vertical spacing from the x-axis.

The Core Idea

When you multiply an entire function by a constant, you scale all its output values (y-values) by that factor, while leaving the x-values unchanged. This creates a vertical stretch or compression of the graph.

The rule: If you have a function f(x), then:

  • g(x) = a · f(x) where a > 0

What happens:

  • If a > 1: The graph stretches vertically — it gets taller, pulled away from the x-axis
  • If 0 < a < 1: The graph compresses vertically — it gets flatter, pushed toward the x-axis
  • If a < 0: The graph flips upside down (reflects over the x-axis) and stretches or compresses

A Helpful Analogy

Think of the function's graph like a rubber sheet. Grabbing it at every point and pulling straight up (or pushing down) by the same factor is a vertical stretch or compression. You're not moving anything left or right — only changing heights.

Example

Starting with f(x) = x²:

  • g(x) = 3·x² stretches it vertically by factor 3. When x = 2, instead of f(2) = 4, you get g(2) = 12
  • h(x) = (1/2)·x² compresses it by factor 1/2. When x = 2, you get h(2) = 2

Notice the vertex stays at the origin (0,0) because 0 · a = 0 for any a.

Key Takeaway: Multiplying a function by a constant a vertically stretches it if |a| > 1 and compresses it if |a| < 1, always scaling outputs while keeping inputs fixed.