Transformations of functions
A transformation of changes its graph in a predictable way. Here is the whole toolkit in one place:
- shifts the graph horizontally by (to the right when is positive).
- shifts the graph vertically by .
- reflects the graph over the -axis.
- reflects the graph over the -axis.
- scales all -values vertically by a factor of . If is negative, the graph is also reflected over the -axis.
Anything applied to inside the function changes the graph horizontally; anything applied to the function's output changes it vertically. The horizontal changes feel backwards: moves the graph left 4, because the input must be 4 smaller to get the same output. The vertical changes behave as you would expect.
For a specific numerical evaluation, simplify the input first, evaluate , and then apply whatever is outside . When several horizontal changes combine in the same expression, rewrite that inside expression clearly before deciding the shift or reflection, instead of assuming a fixed order applies to every combination.
Applying a transformation step by step
Worked example. Let and . Find .
Apply the inside shift first, then the outside operations in order.
Two common slips show up in the answer choices. One is evaluating at the original input and skipping the inside change: computing instead of above. The other is dropping the negative sign or the multiplier that sits outside . Writing out each stage on its own line prevents both.
Compare three look-alikes with at . adds outside the function; adds inside. They are different transformations with different answers. Likewise at means , so you double the input before squaring. And at means , so the negatives cancel before squaring.
Building an equation from a description
A transformation question can also run in reverse. Instead of transforming a given equation, you are told what happened to a graph and asked to build the resulting equation, or to match a description to the correct graph among several options.
Translate each phrase into the rule above, one at a time:
- "shifted left 4" becomes inside.
- "shifted down 1" becomes at the end.
- "reflected over the -axis" puts a negative on the whole function.
- "reflected over the -axis" replaces with inside.
Starting from , shifting left 4, down 1, and reflecting over the -axis gives . Note that the reflection negates the entire squared expression, and the shift down is applied after, so the is not negated. Similarly, a graph of shifted right 3 and up 2 is .
When both a shift and a reflection act on the input, the order matters, so read the description carefully. Reflecting over the -axis and then shifting right 2 gives , whereas shifting right first and reflecting second would give a different function.
Piecewise functions
A piecewise function uses different rules for different parts of its domain. Evaluating a piecewise function at a specific input means first identifying which condition that input satisfies, then applying only the rule attached to that condition. Using the wrong piece is the most common error on this topic.
Evaluating a piecewise function
Worked example. A piecewise function is if , and if . Find .
Check which condition each input satisfies before applying a rule.
: since , use the second piece: .
: since , use the first piece: .
.
Boundary values deserve special care. Look at the inequality symbol: and include the boundary, while and do not. With three or more pieces, test the input against each interval in order, like . Each input gets exactly one rule.
Finally, a piecewise function can be asked to "solve for a number ." Solve with each piece separately, and then keep only the solutions that satisfy that piece's own condition. A solution that lies outside the piece's interval must be rejected.
Where this appears as a model
Costs that change structure past a threshold are piecewise. A shipping cost of $5 for the first pound plus $2 for each additional pound is a piecewise function; a 4-pound package costs . Phone plans, taxi fares, and tax brackets all work the same way: decide which range your input is in, then use that range's rule only.
Strategy summary
- Inside the parentheses affects (horizontal, backwards). Outside affects the output (vertical).
- Do the inside substitution first, evaluate , then apply what is outside.
- Translate each phrase of a description into one algebraic change, then assemble.
- For a piecewise function, test the condition first, check the boundary symbol, and use only that one rule.