All Labs

Function Transformations Lab

See how changing parameters a, b, h, and k transforms a function's graph. Explore vertical and horizontal shifts, stretches, compressions, reflections, and inverse functions, all on a live coordinate plane.

Guided Experiment: Vertical vs. Horizontal Shifts

How do the parameters h and k affect the graph of a function? How does the direction of the shift relate to the sign of the parameter?

Write your hypothesis in the Lab Report panel, then click Next.

Graph

-10-10-8-8-6-6-4-4-2-2224466881010(-2,4)(-1,1)(0,0)(1,1)(2,4)ParentTransformed

Controls

y = a · f(b(x − h)) + k
1
-33
1
-33
0
-55
0
-55

Transformed Function

y=x2y = x^2
Parent:y=x2y = x^2

Transformation Summary

No transformation (identity)

Domain
(-∞, ∞)
Range
[0, ∞)

Inverse Function

Not one-to-one. Restrict domain to obtain an inverse.

Key Points

Parent (x, y)Transformed (x, y)
(-2, 4)(-2, 4)
(-1, 1)(-1, 1)
(0, 0)(0, 0)
(1, 1)(1, 1)
(2, 4)(2, 4)

Data Table

(0 rows)
#TrialParentabhkTransformed EquationDomainRange
0 / 500
0 / 500
0 / 500

Reference Guide

Vertical Transformations

The parameter a stretches or compresses the graph vertically. The parameter k shifts it up or down.

y=af(x)+ky = a \cdot f(x) + k

When |a| > 1 the graph stretches taller. When 0 < |a| < 1 it compresses. Adding k shifts every point up (k > 0) or down (k < 0).

Horizontal Transformations

The parameter b compresses or stretches horizontally. The parameter h shifts left or right.

y=f(b(xh))y = f(b(x - h))

When |b| > 1 the graph compresses horizontally. Replacing x with (x - h) shifts right by h units. The horizontal direction is opposite to the sign.

Reflections

Negative values of a or b create reflections across the axes.

f(x) reflects over x-axisf(x) reflects over y-axis-f(x) \text{ reflects over x-axis} \qquad f(-x) \text{ reflects over y-axis}

Setting a = -1 flips the graph over the x-axis. Setting b = -1 flips it over the y-axis. Both can be combined for a 180-degree rotation about the origin.

Inverse Functions

The inverse of a function "undoes" the original. Graphically, it reflects the function over the line y = x.

f(f1(x))=xandf1(f(x))=xf(f^{-1}(x)) = x \quad \text{and} \quad f^{-1}(f(x)) = x

Only one-to-one functions have inverses that are also functions. Quadratic and absolute value require domain restrictions to have an inverse.