Reshaping and combining functions
The hardest Advanced Math items treat functions as objects you can transform and combine. Two skills dominate: graph transformations and function composition.
Transformation rules (memorize the direction)
Starting from y = f(x):
- •f(x) + k shifts the graph up k (down if k < 0).
- •f(x - h) shifts right h (left if h is negative inside: f(x + 2) moves left 2). Inside changes move opposite the sign.
- •a*f(x) with |a| > 1 stretches vertically; 0 < |a| < 1 compresses.
- •-f(x) reflects over the x-axis; f(-x) reflects over the y-axis.
The counterintuitive part: changes inside the parentheses (affecting x) move the graph horizontally and opposite the apparent sign, while changes outside move it vertically in the expected direction.
Composition: work inside-out
f(g(x)) means apply g first, then feed the result into f. Always evaluate the inner function first.
Worked example (transformation)
The graph of y = f(x) has a minimum at the point (2, -3). What are the coordinates of the minimum of y = f(x + 1) - 4? The "+1" inside shifts left 1 (x: 2 -> 1); the "-4" outside shifts down 4 (y: -3 -> -7). New minimum: (1, -7).
Worked example (composition)
Let f(x) = x^2 + 1 and g(x) = 2x - 3. Find f(g(4)). Inner first: g(4) = 2(4) - 3 = 5. Then f(5) = 5^2 + 1 = 26. So f(g(4)) = 26. Find a general form too: f(g(x)) = (2x - 3)^2 + 1 = 4x^2 - 12x + 9 + 1 = 4x^2 - 12x + 10.
Key takeaways
- •Outside changes (added to f) act vertically and in the obvious direction.
- •Inside changes (added to x) act horizontally and in the opposite direction.
- •For composition, evaluate the inner function first, then the outer.
- •When in doubt, plug in a point and confirm where it lands.