Sub topic 3
Combining transformations in the right order
This chapter assumes you can evaluate f(x), plot points, recognize the parent graphs x², |x|, √x, and x³, and find the domain and range of a function.
The order of operations
A transformed function has the general form g(x) = a·f(b(x − h)) + k. Each letter controls one change:
- b and h act on the input, so they change the graph horizontally.
- a and k act on the output, so they change the graph vertically.
Apply the input changes first, then the output changes. The shift h sits inside the parentheses with b, so the shift is h itself, not b·h.
Tracking key points with a mapping rule
Each point (x, y) on f moves to (x/b + h, a·y + k) on g. Using a = −2, b = 1, h = 3, k = 1 on f(x) = x²:
| Point on f | Mapped point on g |
|---|---|
| (−2, 4) | (1, −7) |
| (0, 0) | (3, 1) |
| (2, 4) | (5, −7) |
def transform(f, a=1, b=1, h=0, k=0):
return lambda x: a * f(b * (x - h)) + k
f = lambda x: x ** 2
g = transform(f, a=-2, b=1, h=3, k=1)
print(g(3)) # 1
print(g(4)) # -1
print(g(2)) # -1Domain and range
Horizontal changes (b and h) change the domain. Vertical changes (a and k) change the range. For g(x) = −2(x − 3)² + 1, the domain is all real numbers. The range is y ≤ 1, because the parabola opens downward from its highest point at y = 1.
Writing an equation from a graph
For a parabola, read the vertex (h, k) and one other point (x₀, y₀). Substitute into y = a(x − h)² + k and solve for a. For example, a vertex at (3, 1) through (4, −1) gives −1 = a(1)² + 1, so a = −2 and y = −2(x − 3)² + 1.
Reflections and symmetry
The graph of −f(x) flips across the x-axis. The graph of f(−x) flips across the y-axis. If f(−x) = f(x) for all x, the function is even, and its reflection across the y-axis matches the original. If f(−x) = −f(x), the function is odd, and reflecting across either axis gives the same result.
Application: vertex form of a quadratic
The vertex form y = a(x − h)² + k is a transformed parabola. The vertex is (h, k), and a controls the width and direction. For y = 2(x + 1)² − 4, the vertex is (−1, −4) and the range is y ≥ −4.
Exercise
What are the vertex and range of g(x) = 2(x + 1)² − 4?
Show answer
The vertex is (−1, −4). Because a = 2 is positive, the parabola opens upward, so the range is y ≥ −4.