College Algebra

Transformations (Comprehensive)

Last updated: March 2026 · Advanced
Before you start

You should be comfortable with:

Transformations let you build new functions from known ones by shifting, stretching, compressing, and reflecting. In Algebra 2, you learned the basics. Here we formalize the rules, handle multiple transformations at once, and develop the skill of writing equations from transformed graphs — all without a calculator.

The Master Transformation Formula

Every transformation of a parent function f(x)f(x) can be written in the form:

y=af(b(xh))+ky = a \cdot f(b(x - h)) + k

Each parameter controls a specific change:

ParameterTransformationAffects
aaVertical stretch/compress and reflectionyy-values
bbHorizontal stretch/compress and reflectionxx-values
hhHorizontal shiftxx-values
kkVertical shiftyy-values

Important sign conventions:

  • h>0h > 0 shifts right (the minus sign in the formula already handles it)
  • k>0k > 0 shifts up
  • a<0a < 0 reflects over the xx-axis
  • b<0b < 0 reflects over the yy-axis

Individual Transformations in Detail

Vertical Shifts: y=f(x)+ky = f(x) + k

Adding kk to the output shifts the graph vertically.

  • k>0k > 0: shift up kk units
  • k<0k < 0: shift down k|k| units

Every point (x,y)(x, y) on ff becomes (x,y+k)(x, y + k).

Horizontal Shifts: y=f(xh)y = f(x - h)

Replacing xx with (xh)(x - h) shifts the graph horizontally.

  • h>0h > 0: shift right hh units
  • h<0h < 0: shift left h|h| units

Every point (x,y)(x, y) on ff becomes (x+h,y)(x + h, y). The shift is opposite the sign inside the function.

Vertical Stretch and Compression: y=af(x)y = a \cdot f(x)

Multiplying the output by aa scales vertically.

  • a>1|a| > 1: vertical stretch by factor a|a|
  • 0<a<10 < |a| < 1: vertical compression by factor a|a|

Every point (x,y)(x, y) on ff becomes (x,ay)(x, ay).

Horizontal Stretch and Compression: y=f(bx)y = f(bx)

Multiplying the input by bb scales horizontally.

  • b>1|b| > 1: horizontal compression by factor 1b\frac{1}{|b|}
  • 0<b<10 < |b| < 1: horizontal stretch by factor 1b\frac{1}{|b|}

Every point (x,y)(x, y) on ff becomes (xb,y)\left(\frac{x}{b}, y\right). The effect is the reciprocal of bb — this is counterintuitive and one of the most common mistakes in college algebra.

Reflections

  • y=f(x)y = -f(x): reflection over the xx-axis (negate all yy-values)
  • y=f(x)y = f(-x): reflection over the yy-axis (negate all xx-values)

Order of Transformations

When multiple transformations combine, the order matters. Starting from y=af(b(xh))+ky = a \cdot f(b(x - h)) + k, apply transformations in this sequence:

  1. Horizontal operations (inside the function) — in the order: factor out bb, then shift by hh
  2. Vertical operations (outside the function) — in the order: stretch/reflect by aa, then shift by kk

Think of it as “inside first, then outside” — or equivalently, “horizontal first, then vertical.”

Worked Example 1: Identifying Transformations

Describe all transformations applied to f(x)=x2f(x) = x^2 to produce g(x)=2(x+3)2+5g(x) = -2(x + 3)^2 + 5.

Rewrite to match the formula: g(x)=2f(x(3))+5g(x) = -2 \cdot f(x - (-3)) + 5.

  • a=2a = -2: vertical stretch by factor 22 and reflection over the xx-axis
  • h=3h = -3: horizontal shift left 33 units
  • k=5k = 5: vertical shift up 55 units

Sequence: Start with y=x2y = x^2. Shift left 3. Stretch vertically by 2. Reflect over xx-axis. Shift up 5.

Worked Example 2: Graphing with Combined Transformations

Graph h(x)=12(x4)+1h(x) = \frac{1}{2}\sqrt{-(x - 4)} + 1 starting from f(x)=xf(x) = \sqrt{x}.

Rewrite: h(x)=12f((x4))+1=12f(x+4)+1h(x) = \frac{1}{2} \cdot f(-(x - 4)) + 1 = \frac{1}{2} \cdot f(-x + 4) + 1.

Identify: a=12a = \frac{1}{2}, b=1b = -1 (reflection over yy-axis), h=4h = 4, k=1k = 1.

Key points of f(x)=xf(x) = \sqrt{x}: (0,0)(0, 0), (1,1)(1, 1), (4,2)(4, 2), (9,3)(9, 3).

Apply transformations to each point (x,y)(x1+4,  12y+1)=(4x,  y2+1)(x, y) \to \left(\frac{x}{-1} + 4,\; \frac{1}{2}y + 1\right) = (4 - x,\; \frac{y}{2} + 1):

  • (0,0)(4,1)(0, 0) \to (4, 1)
  • (1,1)(3,1.5)(1, 1) \to (3, 1.5)
  • (4,2)(0,2)(4, 2) \to (0, 2)
  • (9,3)(5,2.5)(9, 3) \to (-5, 2.5)

The transformed graph starts at (4,1)(4, 1) and extends to the left.

SVG: Transformation Visualization

Transformations of f(x) = x squared

-3-2-11231234y = x²y = (x - 2)² + 1y = -0.5x² + 4

The gray dashed curve is the parent function y=x2y = x^2. The green curve shifts right 2 and up 1. The blue curve reflects over the xx-axis, compresses vertically by half, and shifts up 4.

Writing Equations from Transformed Graphs

Given a graph that you recognize as a transformed parent function, work backward:

  1. Identify the parent function — look at the basic shape (V-shape = absolute value, U-shape = quadratic, etc.)
  2. Locate the key point — vertex for quadratics, center for square roots, etc.
  3. Determine shifts from the key point’s new position
  4. Determine stretches/reflections from the shape’s width or orientation

Worked Example 3: Writing an Equation

A parabola opens downward with vertex at (1,6)(-1, 6) and passes through (1,2)(1, 2). Write its equation.

Since it opens downward with vertex (1,6)(-1, 6): y=a(x+1)2+6y = a(x + 1)^2 + 6 with a<0a < 0.

Substitute (1,2)(1, 2): 2=a(1+1)2+6=4a+62 = a(1 + 1)^2 + 6 = 4a + 6, so 4a=44a = -4 and a=1a = -1.

Equation: y=(x+1)2+6y = -(x + 1)^2 + 6.

Worked Example 4: Combining Multiple Transformations

Start with f(x)=xf(x) = |x|. Apply: reflect over yy-axis, stretch horizontally by 3, shift left 2, stretch vertically by 4, shift down 1.

Step 1: Reflect over yy-axis: f(x)=x=xf(-x) = |-x| = |x| (absolute value absorbs the reflection).

Step 2: Horizontal stretch by 3 means b=13b = \frac{1}{3}: f ⁣(x3)=x3f\!\left(\frac{x}{3}\right) = \left|\frac{x}{3}\right|.

Step 3: Shift left 2: f ⁣(x+23)=x+23f\!\left(\frac{x + 2}{3}\right) = \left|\frac{x + 2}{3}\right|.

Step 4: Vertical stretch by 4: 4f ⁣(x+23)=4x+23=43x+24f\!\left(\frac{x + 2}{3}\right) = 4\left|\frac{x + 2}{3}\right| = \frac{4}{3}|x + 2|.

Step 5: Shift down 1: 43x+21\frac{4}{3}|x + 2| - 1.

Final equation: g(x)=43x+21g(x) = \frac{4}{3}|x + 2| - 1.

Real-World Application: Signal Processing

In engineering, a signal s(t)s(t) might be transformed as g(t)=As(b(tt0))+Dg(t) = A \cdot s(b(t - t_0)) + D, where:

  • AA is the amplification factor (vertical stretch)
  • bb is the time scaling (horizontal compression)
  • t0t_0 is the time delay (horizontal shift)
  • DD is the DC offset (vertical shift)

If a sensor outputs a base signal s(t)=t2s(t) = t^2 for 0t10 \leq t \leq 1, and the processed signal is delayed by 0.5 seconds, amplified by 3, and offset by 2-2:

g(t)=3(t0.5)22g(t) = 3(t - 0.5)^2 - 2

At t=1t = 1: g(1)=3(0.5)22=3(0.25)2=0.752=1.25g(1) = 3(0.5)^2 - 2 = 3(0.25) - 2 = 0.75 - 2 = -1.25.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Describe all transformations that produce g(x)=3x+24g(x) = 3\sqrt{x + 2} - 4 from f(x)=xf(x) = \sqrt{x}.

Matching to y=af(xh)+ky = a \cdot f(x - h) + k: a=3a = 3, h=2h = -2, k=4k = -4.

Transformations: shift left 2, vertical stretch by factor 3, shift down 4.

Answer: Left 2, vertical stretch by 3, down 4.

Problem 2: Transform the point (3,1)(3, -1) on ff to its new position on g(x)=2f(x5)+3g(x) = -2f(x - 5) + 3.

Apply: (x,y)(x+5,2y+3)(x, y) \to (x + 5, -2y + 3).

(3,1)(3+5,2(1)+3)=(8,5)(3, -1) \to (3 + 5, -2(-1) + 3) = (8, 5).

Answer: (8,5)(8, 5).

Problem 3: A V-shaped graph has vertex at (4,2)(4, -2) and passes through (6,4)(6, 4). Write the equation as a transformed absolute value function.

Form: y=ax42y = a|x - 4| - 2. Substitute (6,4)(6, 4): 4=a642=2a24 = a|6 - 4| - 2 = 2a - 2, so 2a=62a = 6 and a=3a = 3.

Answer: y=3x42y = 3|x - 4| - 2.

Problem 4: The graph of y=f(x)y = f(x) is compressed horizontally by a factor of 12\frac{1}{2}, then shifted right 3. Write the resulting function in terms of ff.

Horizontal compression by 12\frac{1}{2} means b=2b = 2: f(2x)f(2x).

Then shift right 3: f(2(x3))=f(2x6)f(2(x - 3)) = f(2x - 6).

Answer: y=f(2x6)y = f(2x - 6).

Problem 5: If f(x)=x3f(x) = x^3, graph g(x)=(x1)3+2g(x) = -(x - 1)^3 + 2 by transforming key points. List the transformed versions of (1,1)(-1, -1), (0,0)(0, 0), and (1,1)(1, 1).

Apply (x,y)(x+1,y+2)(x, y) \to (x + 1, -y + 2):

(1,1)(0,3)(-1, -1) \to (0, 3)

(0,0)(1,2)(0, 0) \to (1, 2)

(1,1)(2,1)(1, 1) \to (2, 1)

Answer: (0,3)(0, 3), (1,2)(1, 2), (2,1)(2, 1).

Key Takeaways

  • The master formula y=af(b(xh))+ky = a \cdot f(b(x - h)) + k encodes all possible transformations
  • Horizontal transformations work opposite to intuition: minus shifts right, larger bb compresses
  • Order of operations: apply horizontal changes (inside) first, then vertical changes (outside)
  • Vertical stretch/compression affects yy-values by factor a|a|; horizontal by factor 1b\frac{1}{|b|}
  • To write an equation from a graph: identify the parent, locate the key point, then determine stretch and reflection
  • Combined transformations require careful tracking of each step in sequence
  • Engineering applications include signal processing, coordinate transformations, and scale modeling

Return to College Algebra for more topics in this section.

Last updated: March 29, 2026