Lesson 1.2 · Functions
Transformations of functions
You already know that slides a graph and that a negative sign flips it. Precalculus asks more of you: transforming functions you only know from a graph or a few points, handling a horizontal stretch and a shift in the same expression, and predicting exactly how the domain and range move. The key is to treat every transformation as a rule that moves points, and to keep careful track of the order.
One rule for every transformation
The general transformation
Write the new function in the form
Then every point on the graph of moves to
on the graph of . The inside numbers and act on -coordinates; the outside numbers and act on -coordinates.
Why divide by ? On , the input gets multiplied by before sees it. To reach an input that already knew, say , you need , so . The inside of a function always works backward, which is also why moves right instead of left.
Here is what each constant does on its own:
| Constant | Effect on the graph of |
|---|---|
| vertical stretch by (compression if ); also reflect across the -axis if | |
| horizontal compression by (stretch if ); also reflect across the -axis if | |
| shift right (left if ) | |
| shift up (down if ) |
Order matters
Vertical transformations follow the usual order of operations on the output: first multiply by , then add . If the steps happen in a different order, the equation changes.
Worked example: Stretch then shift, or shift then stretch?
Start with .
- Stretch vertically by , then shift up .
- Shift up , then stretch vertically by .
1. Stretching gives . Shifting adds to that: . The starting point moves to .
2. Shifting gives . Stretching multiplies the whole output by : . The starting point moves to .
The same care applies inside the function. The horizontal steps in happen in this order: stretch or compress by first, then shift by . The shift has to be read off after factoring out . (You could also shift first and compress second, but then the shift amount changes: for that would be right , then compress. Precalculus uses the factored, compress-first reading, because it lets you use the point rule above.)
Common mistake
When you compress first, the horizontal shift in is not . Factor the inside first: , so . The graph is compressed horizontally by and then shifted right 3. Reading "right 6" off is the most common transformation mistake in precalculus.
Worked example: A horizontal compression with a shift
The point lies on the graph of . Find the corresponding point on , and check it.
Factor: , so , , , .
Apply :
Check: . The point is on .
Tip
You can always find a transformed point by solving instead of memorizing. For , ask: which makes the inside equal to ? Solve to get . Then .
How domain and range transform
Because the inside numbers only move -coordinates and the outside numbers only move -coordinates, you can transform a domain and range without a graph at all.
- Push each domain endpoint through .
- Push each range endpoint through .
- If or is negative, the endpoints swap order, so rewrite the interval from smallest to largest.
Worked example: Transforming a domain and range
A function has domain and range . Find the domain and range of .
Factor the inside: . So , , , .
Domain. The rule is :
The domain of is . (Check by solving: gives .)
Range. The rule is :
The endpoints swapped because , so the range of is .
Graphing with key points
For a familiar parent function, pick a few key points, push them through the rule, and connect them with the parent's shape. A reflection across the -axis is part of , so factor out the negative too.
Worked example: A reflected square root
Graph and state its domain and range.
Rewrite the inside: , so with , , , .
The graph of is reflected across the -axis, shifted right , stretched vertically by and shifted down . Points move by :
| On | On |
|---|---|
The graph starts at and heads left and up. Domain: , so . Range: .
Check one point: . It matches.
Notice that a reflection across the -axis has no effect on an even function, since , and for an odd function it gives the same graph as a reflection across the -axis, since . For example, .
Practice
The point is on the graph of . What point must be on the graph of ?
Enter a point like (2, -3)
The point is on the graph of . What point must be on the graph of ?
Enter a point like (2, -3)
The point is on the graph of . What point must be on the graph of ?
Enter a point like (2, -3)
Which describes the graph of compared with the graph of ?
Start with . Stretch the graph horizontally by a factor of , then shift it right and up . Write the new function .
Enter an expression, e.g. 3x^2 - 2x + 1
A function has domain . What is the domain of ? Write it as a compound inequality.
Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5
A function has range . What is the range of ? Write it as a compound inequality in .
Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5
The graph shown is a transformation of . It starts at and passes through . Write its equation.
Enter an expression, e.g. 3x^2 - 2x + 1