๐Ÿ“ˆCollege Algebra

Function Transformations

Study smarter with Fiveable

Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.

Get Started

Why This Matters

Function transformations are the universal language for describing how graphs change, and they show up everywhere in algebra and trigonometry. Whether you're graphing a shifted parabola, analyzing a stretched sine wave, or modeling real-world phenomena, you're applying the same core principles. Exams test whether you can predict how a graph will look based on its equation, and whether you understand why each transformation behaves the way it does.

Every transformation either affects the input (what happens to xx before the function processes it) or the output (what happens to yy after the function produces it). This input-output framework explains why horizontal transformations seem to work "backwards" while vertical ones feel intuitive. Don't just memorize that f(x+2)f(x + 2) shifts left. Instead, understand that you're feeding the function values 2 units earlier, so the graph responds 2 units sooner. Master this logic, and you'll handle any transformation problem confidently.


Shifts: Moving the Graph Without Changing Its Shape

Shifts (or translations) relocate a graph while preserving its exact shape and size. The function's output values stay the same; they just occur at different locations on the coordinate plane.

Vertical Shifts f(x)+kf(x) + k

  • Adding kk to the output shifts the entire graph up or down. Every point moves the same vertical distance.
  • Positive kk shifts up; negative kk shifts down. This follows your intuition since you're directly adding to yy-values.
  • Key points transform predictably: if (2,5)(2, 5) is on f(x)f(x), then (2,5+k)(2, 5 + k) is on f(x)+kf(x) + k. The xx-coordinate never changes.

Horizontal Shifts f(x+h)f(x + h)

  • Adding hh inside the function shifts the graph horizontally, but in the opposite direction you might expect.
  • Positive hh shifts left; negative hh shifts right. Think of it as the function "reaching" its values earlier or later.
  • Why the counterintuitive direction? Consider f(x)=x2f(x) = x^2, which has its vertex at x=0x = 0. For f(x+2)=(x+2)2f(x + 2) = (x + 2)^2, the vertex occurs where x+2=0x + 2 = 0, meaning x=โˆ’2x = -2. The function hits its key values 2 units to the left.

Compare: Vertical shifts f(x)+kf(x) + k vs. Horizontal shifts f(x+h)f(x + h): both preserve shape, but vertical shifts follow intuition (add positive, go up) while horizontal shifts work backwards (add positive, go left). If a problem gives you f(xโˆ’3)+2f(x - 3) + 2, identify the horizontal shift first: right 3, then up 2.


Stretches and Compressions: Scaling the Graph

These transformations change the graph's dimensions by multiplying coordinates by a scale factor. Stretches pull the graph away from an axis; compressions push it toward that axis.

Vertical Stretches and Compressions af(x)af(x)

  • Multiplying the output by aa scales all yy-values. The graph stretches away from or compresses toward the xx-axis.
  • โˆฃaโˆฃ>1|a| > 1 stretches vertically; 0<โˆฃaโˆฃ<10 < |a| < 1 compresses. A factor of 2 doubles every yy-value; a factor of 12\frac{1}{2} halves them.
  • xx-intercepts stay fixed since aโ‹…0=0a \cdot 0 = 0. Use these as your anchor points when graphing.

Horizontal Stretches and Compressions f(bx)f(bx)

  • Multiplying the input by bb scales all xx-values, but the effect is inverse to what you might expect.
  • โˆฃbโˆฃ>1|b| > 1 compresses horizontally; 0<โˆฃbโˆฃ<10 < |b| < 1 stretches. For example, f(2x)f(2x) makes the graph narrower (every xx-coordinate is halved), while f(13x)f(\frac{1}{3}x) makes it 3 times wider.
  • The yy-intercept stays fixed since f(bโ‹…0)=f(0)f(b \cdot 0) = f(0). This point anchors horizontal scaling.

Compare: Vertical scaling af(x)af(x) vs. Horizontal scaling f(bx)f(bx): both use multiplication, but vertical scaling is intuitive (multiply by 2, get twice as tall) while horizontal scaling inverts (multiply by 2, get half as wide). Inside transformations always work opposite to intuition.


Reflections: Flipping the Graph Across an Axis

Reflections create mirror images of the original graph across a line. Each point maps to its mirror counterpart at equal distance from the axis of reflection.

Reflection Over the xx-Axis: โˆ’f(x)-f(x)

  • Negating the output flips the graph vertically. Points above the xx-axis move below, and vice versa.
  • xx-intercepts remain unchanged since negating zero still gives zero. These points lie on the mirror line.
  • Peaks become valleys and valleys become peaks. Every maximum value becomes a minimum, and every minimum becomes a maximum.

Reflection Over the yy-Axis: f(โˆ’x)f(-x)

  • Negating the input flips the graph horizontally. The left and right sides swap positions.
  • The yy-intercept remains unchanged since f(โˆ’0)=f(0)f(-0) = f(0). This point lies on the mirror line.
  • Connection to even functions: if f(โˆ’x)=f(x)f(-x) = f(x) for all xx, the function is even and already symmetric about the yy-axis. Reflecting it over the yy-axis produces the same graph.

Compare: xx-axis reflection โˆ’f(x)-f(x) vs. yy-axis reflection f(โˆ’x)f(-x): the negative sign's position determines which axis serves as the mirror. For โˆ’f(x)-f(x), the negative is outside (affects output, flips vertically). For f(โˆ’x)f(-x), the negative is inside (affects input, flips horizontally).


Special Transformations: Absolute Value and Composites

These transformations build on the basics but introduce new graphical behaviors. They're especially useful for creating piecewise-looking graphs from smooth functions.

Absolute Value Transformation โˆฃf(x)โˆฃ|f(x)|

  • Taking the absolute value of the output reflects negative portions above the xx-axis. Any part of the graph below the axis "bounces" up to its mirror position above.
  • Positive portions remain unchanged. Only negative yy-values are affected.
  • Sharp corners (cusps) appear at xx-intercepts where the original graph crossed the axis. The graph touches the xx-axis and turns back upward instead of continuing below.

Composite Transformations

When multiple transformations are combined, the order you apply them matters. Here's the standard approach for graphing from the general form aโ‹…f(b(xโˆ’h))+ka \cdot f(b(x - h)) + k:

  1. Start with the parent function and identify key points (intercepts, vertices, endpoints).
  2. Apply horizontal transformations first (inside the function):
    • Horizontal stretch/compression by a factor of 1โˆฃbโˆฃ\frac{1}{|b|}
    • Reflection over the yy-axis if b<0b < 0
    • Horizontal shift by hh (right if h>0h > 0, left if h<0h < 0)
  3. Apply vertical transformations second (outside the function):
    • Vertical stretch/compression by a factor of โˆฃaโˆฃ|a|
    • Reflection over the xx-axis if a<0a < 0
    • Vertical shift by kk

Order matters critically. 2f(x)+32f(x) + 3 (stretch then shift) produces different results from 2(f(x)+3)=2f(x)+62(f(x) + 3) = 2f(x) + 6 (shift then stretch). Always identify what operation applies to the output directly versus what's grouped together.

Compare: โˆฃf(x)โˆฃ|f(x)| vs. f(โˆฃxโˆฃ)f(|x|): these look similar but behave very differently. โˆฃf(x)โˆฃ|f(x)| reflects negative outputs upward (the bottom half of the graph bounces up). f(โˆฃxโˆฃ)f(|x|) makes the function even by replacing the left side with a mirror copy of the right side. For f(x)=xโˆ’2f(x) = x - 2: โˆฃf(x)โˆฃ=โˆฃxโˆ’2โˆฃ|f(x)| = |x - 2| is a V-shape with vertex at (2,0)(2, 0), while f(โˆฃxโˆฃ)=โˆฃxโˆฃโˆ’2f(|x|) = |x| - 2 is a V-shape with vertex at (0,โˆ’2)(0, -2).


Parent Functions: Your Starting Points

Understanding parent functions gives you a reference point for all transformations. Every transformed function is just a parent function that's been shifted, scaled, or reflected.

Recognizing and Using Parent Functions

  • Common parent functions: f(x)=xf(x) = x, x2x^2, x3x^3, x\sqrt{x}, โˆฃxโˆฃ|x|, 1x\frac{1}{x}, and the trig functions sinโก(x)\sin(x), cosโก(x)\cos(x), tanโก(x)\tan(x).
  • Key features to memorize for each: intercepts, domain/range, symmetry (even/odd/neither), and general shape. For instance, 1x\frac{1}{x} has vertical and horizontal asymptotes at the axes, while x\sqrt{x} starts at the origin and only exists for xโ‰ฅ0x \geq 0.
  • Transformation problems typically start here. Identify the parent function first, then apply transformations step-by-step to key points. If you can plot 3-5 transformed key points accurately, you can sketch the whole graph.

Quick Reference Table

ConceptTransformationEffect on Graph
Vertical Shiftf(x)+kf(x) + kUp if k>0k > 0, down if k<0k < 0
Horizontal Shiftf(x+h)f(x + h)Left if h>0h > 0, right if h<0h < 0
Vertical Stretch/Compressaf(x)af(x)Stretch if โˆฅaโˆฅ>1\|a\| > 1, compress if โˆฅaโˆฅ<1\|a\| < 1
Horizontal Stretch/Compressf(bx)f(bx)Compress if โˆฅbโˆฅ>1\|b\| > 1, stretch if โˆฅbโˆฅ<1\|b\| < 1
xx-Axis Reflectionโˆ’f(x)-f(x)Flip vertically
yy-Axis Reflectionf(โˆ’x)f(-x)Flip horizontally
Absolute Valueโˆฅf(x)โˆฅ\|f(x)\|Reflect negative outputs upward
General Formaโ‹…f(b(xโˆ’h))+ka \cdot f(b(x-h)) + kAll transformations combined

Self-Check Questions

  1. If the point (3,โˆ’4)(3, -4) is on f(x)f(x), what point is on โˆ’2f(xโˆ’1)+5-2f(x - 1) + 5?

  2. Which two transformations both preserve the yy-intercept of a function, and why?

  3. Compare the graphs of โˆฃf(x)โˆฃ|f(x)| and f(โˆฃxโˆฃ)f(|x|) for f(x)=xโˆ’2f(x) = x - 2. How do they differ?

  4. A student claims that f(x+3)f(x + 3) shifts the graph right because "you're adding 3." Explain the error in their reasoning.

  5. Given g(x)=โˆ’12(x+4)2โˆ’3g(x) = -\frac{1}{2}(x + 4)^2 - 3, identify the parent function and describe each transformation in the order they should be applied when graphing.