Precalculus — Chapter 2

Function Transformations

How to shift, reflect, stretch, and compress any function — plus the general form y = a · f(b(x−h)) + k and even/odd symmetry.

Parent Functions Reference

Every transformation starts from one of these eight parent functions. Know their basic shapes cold.

NameEquationShape / Key FeatureDomain
Lineary = xStraight line through origin, slope 1(−∞, ∞)
Quadraticy = x²Upward parabola, vertex at origin(−∞, ∞)
Cubicy = x³S-curve through origin, odd symmetry(−∞, ∞)
Square Rooty = √xHalf-parabola starting at origin[0, ∞)
Absolute Valuey = |x|V-shape, vertex at origin(−∞, ∞)
Reciprocaly = 1/xTwo hyperbola branches, never touches axes(−∞,0) ∪ (0,∞)
Exponentialy = bˣ (b > 0, b ≠ 1)Rapid growth or decay, y-intercept at (0,1)(−∞, ∞)
Logarithmicy = log_b(x)Slow growth, x-intercept at (1,0)(0, ∞)

The Six Core Transformations

Vertical Shift

Outside the function
f(x) + k

Shifts the graph UP k units when k > 0, DOWN |k| units when k < 0. Every point moves the same vertical distance.

y = x² + 3 shifts the parabola up 3 units. y = x² − 5 shifts it down 5 units.

Horizontal Shift

Inside the function
f(x − h)

Shifts the graph RIGHT h units when h > 0, LEFT |h| units when h < 0. Counterintuitive: subtraction inside = rightward shift.

y = (x − 4)² shifts the parabola right 4. y = (x + 2)² shifts it left 2.

Vertical Stretch / Compression

Multiply outside
a · f(x)

Multiplies every y-value by a. If |a| > 1: vertical stretch (taller). If 0 < |a| < 1: vertical compression (flatter). If a < 0: also reflects over x-axis.

y = 3x² stretches the parabola vertically. y = ½x² compresses it.

Horizontal Stretch / Compression

Multiply inside
f(bx)

If |b| > 1: horizontal compression (narrower). If 0 < |b| < 1: horizontal stretch (wider). Effect is the reciprocal of what you might expect.

y = √(2x) compresses horizontally by factor 2. y = √(x/3) stretches by factor 3.

Reflection over x-axis

Negate outside
−f(x)

Flips the graph vertically — every y-value changes sign. The x-axis acts as a mirror.

y = −x² flips the parabola downward. y = −√x reflects the square root below the x-axis.

Reflection over y-axis

Negate inside
f(−x)

Flips the graph horizontally — every x-value changes sign. The y-axis acts as a mirror.

y = √(−x) reflects the square root to the left half-plane.

General Form: y = a · f(b(x − h)) + k

y = a · f(b(x − h)) + k

h

Horizontal shift — right by h (left if h < 0)

k

Vertical shift — up by k (down if k < 0)

a

Vertical stretch (|a| > 1), compression (0 < |a| < 1), or reflection (a < 0)

b

Horizontal compression (|b| > 1) or stretch (0 < |b| < 1)

Order of Application

Apply transformations in this order to avoid errors:

  1. 1Horizontal shift — move left or right by h (inside the function)
  2. 2Horizontal stretch/compress — apply b (also inside)
  3. 3Vertical stretch/reflect — apply a (outside the function)
  4. 4Vertical shift — move up or down by k (outermost)

Memory aid: work from the inside out. The transformations closest to x (inside) are applied first; the ones farthest from x (outermost constant) are applied last.

Even and Odd Functions

EVENf(−x) = f(x)

Symmetric about the y-axis. Reflecting the graph across the y-axis produces the same graph.

Examples: y = x², y = x⁴, y = cos x, y = |x|

f(x) = x² → f(−x) = (−x)² = x² ✓

ODDf(−x) = −f(x)

Symmetric about the origin. Rotating 180° about the origin produces the same graph.

Examples: y = x, y = x³, y = sin x

f(x) = x³ → f(−x) = (−x)³ = −x³ = −f(x) ✓

Testing Even/Odd — The Process

  1. 1.Replace every x with −x in the formula.
  2. 2.Simplify the result completely.
  3. 3.Compare to the original f(x): if equal → even; if it equals −f(x) → odd; otherwise → neither.

Most functions are neither even nor odd. A nonzero constant is even. The only function that is both even AND odd is f(x) = 0.

Worked Examples

Example 1 — Describe all transformations of y = −2(x + 3)² − 1

Write in general form: y = a · f(b(x − h)) + k where f(x) = x²

Rewrite to match general form:

y = −2(x − (−3))² + (−1)

so: a = −2, b = 1, h = −3, k = −1

h = −3Horizontal shift LEFT 3 units (h is negative)
b = 1No horizontal stretch or compression
a = −2Vertical stretch by factor 2, THEN reflect over x-axis
k = −1Vertical shift DOWN 1 unit

Result: Start with y = x², shift left 3, stretch vertically by 2, reflect over x-axis, shift down 1.

Example 2 — Write the equation for a square root function shifted right 5 and up 2, then reflected over the x-axis

Start from the parent f(x) = √x. Apply each transformation:

Parent: y = √x

Shift right 5: y = √(x − 5)

Shift up 2: y = √(x − 5) + 2

Reflect over x-axis (multiply by −1): y = −√(x − 5) + 2

Answer: y = −√(x − 5) + 2

Example 3 — Determine if f(x) = 3x⁴ − 5x² + 7 is even, odd, or neither

Step 1: Substitute −x:

f(−x) = 3(−x)⁴ − 5(−x)² + 7

Step 2: Simplify (even powers cancel the negative):

f(−x) = 3x⁴ − 5x² + 7

Step 3: Compare to f(x):

f(−x) = f(x) ✓

Answer: EVEN function — symmetric about the y-axis. (All exponents are even, constant term is fine.)

Transformation Quick Reference

NotationTransformationDirection / EffectCommon Mistake
f(x) + kVertical shiftUp if k > 0, down if k < 0Confusing with horizontal
f(x − h)Horizontal shiftRIGHT if h > 0, left if h < 0Thinking − means left
a·f(x), |a| > 1Vertical stretchTaller, y-values multiplied by aForgetting reflection if a < 0
a·f(x), 0 < |a| < 1Vertical compressionFlatter, y-values shrinkApplying before shift
f(bx), |b| > 1Horizontal compressionNarrower (not stretch!)Thinking large b = stretch
f(bx), 0 < |b| < 1Horizontal stretchWiderForgetting it's reciprocal
−f(x)Reflect over x-axisFlips up/downForgetting to negate all y
f(−x)Reflect over y-axisFlips left/rightConfusing with x-axis reflection

Frequently Asked Questions

What is a function transformation?

A function transformation changes the graph of a parent function by shifting, reflecting, stretching, or compressing it. The general form y = a·f(b(x−h)) + k captures all four types: h shifts the graph horizontally (right by h), k shifts it vertically (up by k), a stretches or reflects vertically, and b stretches or compresses horizontally. Every transformed graph is built from one of the basic parent functions.

Why does f(x − h) shift the graph to the RIGHT when h is positive?

This is the most counterintuitive fact in transformations. In f(x − h), you are replacing x with (x − h). For the function to produce the same output it did at x = 0, you now need x = h. So the entire graph moves RIGHT by h units when h > 0. Think of it this way: f(x − 3) reaches its original y-values 3 units later (to the right) on the x-axis. Inside the function, subtraction means rightward shift; addition means leftward shift.

How do you tell if a function is even or odd?

Substitute −x for x and simplify: (1) If f(−x) = f(x), the function is EVEN — its graph is symmetric about the y-axis. Examples: y = x², y = cos x, y = |x|. (2) If f(−x) = −f(x), the function is ODD — its graph is symmetric about the origin. Examples: y = x³, y = sin x, y = x. (3) If neither condition holds, the function is neither even nor odd. A function cannot be both even and odd unless it is identically zero.

Related Topics

Practice Function Transformations

Interactive problems with step-by-step solutions and private tutoring — free to try.

Start Practicing Free