Function Transformations
Function transformations change an existing rule rather than rebuild it. Changes to the input move a graph horizontally; changes to the output change its heights. For piecewise functions, horizontal substitutions must update both expressions and domain conditions, while price increases and flat fees change the output expressions without changing the intervals.

One Rule, Many Prices
A campus office charges different rates depending on how much a student signs up for. Its tiered price graph first rises, because each extra unit adds cost; then it is flat, because one fixed price applies across a range; finally, it rises again at a new, steeper rate. One piecewise function describes all three parts
If every price goes up 20%, must the office recompute the whole graph point by point? No. A transformation updates the entire rule at once. This lesson develops horizontal shifts, stretches, compressions, and reflections, then combines transformations to update a complete pricing rule
The learning tasks are to shift a piecewise rule with its conditions included, predict intercepts under stretches and reflections, track key points through combined transformations, and model a percent increase followed by a flat fee without changing the domain intervals
Sliding a Graph Sideways
Consider f(x) = { x − 2 if x > 0; (1/2)x − 2 if x ≤ 0 }. Its two rays meet at the corner (0, −2). The left ray has slope 1/2, the right ray has slope 1, and the right ray crosses the x-axis at (2, 0)
Where does the corner go in f(x + h) when h is positive? The corner moves to (−h, −2): the graph shifts left h units. For example, x + 2 reaches each original input two units earlier along the x-axis, so f(x + 2) shifts the graph two units left. Negative h shifts the graph right
Example: shift a piecewise rule 3 units left
Given f(x) = { x − 2 if x > 0; (1/2)x − 2 if x ≤ 0 }, write g(x) for the same graph translated 3 units left. The required substitution is g(x) = f(x + 3)
For the right piece, (x + 3) − 2 = x + 1. Its condition becomes x + 3 > 0, so x > −3. For the left piece, (1/2)(x + 3) − 2 = (1/2)x − 1/2. Its condition becomes x + 3 ≤ 0, so x ≤ −3
Therefore, g(x) = { x + 1 if x > −3; (1/2)x − 1/2 if x ≤ −3 }. The corner moves from (0, −2) to (−3, −2), while the shape and both slopes remain unchanged
Check the junction by evaluating both expressions at x = −3: (−3) + 1 = −2, and (1/2)(−3) − 1/2 = −2. The expressions agree at the new split point. The condition x ≤ −3 assigns the actual boundary value to the left piece
Practice 1: shift 4 units left
Given p(x) = { x + 3 if x > 1; 2x + 2 if x ≤ 1 }, complete q(x), the graph of p moved 4 units left: q(x) = { x + 7 if ___; ___ if ___ }
Answer: q(x) = p(x + 4) = { x + 7 if x > −3; 2x + 10 if x ≤ −3 }. The first expression is (x + 4) + 3 = x + 7, and x + 4 > 1 gives x > −3. The second expression is 2(x + 4) + 2 = 2x + 10, and x + 4 ≤ 1 gives x ≤ −3. Both expressions and conditions receive the substitution
Stretches, Reflections, and Intercepts
A line passes through (3, 0) and (0, 2). Doubling every output sends (0, 2) to (0, 4), because the height is multiplied by 2. What happens to its point on the x-axis?
An x-intercept has height zero. Multiplying outputs by a nonzero factor leaves those zero heights at zero. A horizontal scaling changes x-coordinates instead; a point on the y-axis has x = 0, so its x-coordinate stays zero under that scaling
| Transformation | Effect on x-intercepts | Effect on y-intercept |
|---|---|---|
| Horizontal stretch/compression by factor b | Multiply each x-coordinate by b | Unchanged |
| Vertical stretch/compression by factor a | Unchanged | Multiply the y-coordinate by a |
| Reflection across the y-axis | Multiply each x-coordinate by −1 | Unchanged |
| Reflection across the x-axis | Unchanged | Multiply the y-coordinate by −1 |
In the stretch/compression rows, a and b are positive scale factors. For an inside multiplier, the horizontal scale factor is its reciprocal: f(2x) compresses horizontally by 1/2, while f((1/2)x) stretches horizontally by 2. These intercept rules describe scaling and reflection; a vertical translation can change the x-intercepts
Example: vertical stretch of a line
Let f(x) = (1/2)x + 2 and g(x) = 3f(x). Find the intercepts of g without graphing. First, f(0) = (1/2)(0) + 2 = 2, so f has y-intercept (0, 2). Solving 0 = (1/2)x + 2 gives x = −4, so its x-intercept is (−4, 0)
Multiplying outputs by 3 is a vertical stretch by factor 3. Thus g has y-intercept (0, 6), since 3 × 2 = 6, and the same x-intercept (−4, 0). The graph check is g(x) = (3/2)x + 6: it is steeper than f, but both lines pass through (−4, 0)
Example: horizontal compression of a parabola
Let f(x) = x² − 4 and g(x) = f(2x). Find the intercepts of g without graphing. For f, f(0) = −4. Also, 0 = x² − 4 = (x − 2)(x + 2), so the original x-intercepts are (−2, 0) and (2, 0)
The inside multiplier 2 gives a horizontal compression by factor 1/2, not a stretch by 2: the inputs reach each output twice as fast. Multiply the original x-intercepts by 1/2 to obtain (−1, 0) and (1, 0). The y-intercept stays at (0, −4). The resulting parabola g(x) = 4x² − 4 shares the vertex (0, −4) with f but is half as wide
Practice 3: match transformations to intercepts
Given f(x) = x − 4, with x-intercept 4 and y-intercept −4, match g(x) = f(2x), p(x) = 2f(x), and s(x) = −f(x) to these results: x-intercept 2 and y-intercept −4; x-intercept 4 and y-intercept −8; x-intercept 4 and y-intercept 4
Answer: g(x) = f(2x) has x-intercept 2 and y-intercept −4, because the horizontal compression halves the x-intercept. The function p(x) = 2f(x) has x-intercept 4 and y-intercept −8, because it doubles outputs. The function s(x) = −f(x) has x-intercept 4 and y-intercept 4, because reflection across the x-axis reverses the sign of each height
Combining Transformations
What does each kind of change act on? Changes inside the function, such as f(2x) and f(x + 3), act on the input x and produce horizontal transformations. They can change domain conditions and x-intercepts. Changes outside, such as 2f(x) and f(x) + 3, act on the output and produce vertical transformations. They change heights but leave the input intervals alone
Example: graph g(x) = f((1/2)x) + 5
Let f(x) = −x² + 4. Its graph is a downward-opening parabola with vertex (0, 4) and x-intercepts (−2, 0) and (2, 0). To graph g(x) = f((1/2)x) + 5, first apply the horizontal stretch from the inside multiplier 1/2, then shift the result up 5
Move 1: f((1/2)x) stretches the graph horizontally by 1/(1/2) = 2. Each tracked point keeps its height and doubles its x-coordinate. The vertex (0, 4) stays at (0, 4); (−2, 0) becomes (−4, 0); and (2, 0) becomes (4, 0). The intermediate curve has the same height as f and twice the width
Move 2: adding 5 outside shifts every point up 5, without changing its x-coordinate. Thus (0, 4) becomes (0, 9), (−4, 0) becomes (−4, 5), and (4, 0) becomes (4, 5). The final graph is a downward-opening parabola through these points, with vertex (0, 9)
| Point on f | After horizontal stretch by 2 | After shift up 5 |
|---|---|---|
| (0, 4) | (0, 4) | (0, 9) |
| (−2, 0) | (−4, 0) | (−4, 5) |
| (2, 0) | (4, 0) | (4, 5) |
Verify algebraically: g(x) = −((1/2)x)² + 4 + 5 = −x²/4 + 9. Its x-intercepts satisfy −x²/4 + 9 = 0, giving x = ±6. The points (−4, 5) and (4, 5) are images of the intermediate curve's x-intercepts, but they are not x-intercepts of the final curve
Practice 4: finish the remaining transformation
Let f(x) = −x² + 1 and g(x) = f((1/2)x) − 2. The horizontal stretch is already complete, giving intermediate points (0, 1), (−2, 0), and (2, 0). Where do (0, 1) and (2, 0) land after the remaining transformation?
Answer: (0, 1) → (0, −1), and (2, 0) → (2, −2). The remaining −2 is outside the function, so it shifts heights down 2 and keeps the x-coordinates unchanged. The horizontal stretch must not be applied a second time
Price Changes as Vertical Moves
A makerspace charges by the number of visits x, with costs in dollars. Under 10 visits, the rate is $12 per visit. From 10 through 25 visits, the cost is a flat $120. Beyond 25 visits, each extra visit costs $8 on top of the $120 flat rate
The original rule is f(x) = { 12x if 0 < x < 10; 120 if 10 ≤ x ≤ 25; 8(x − 25) + 120 if x > 25 }. What is the new rule after all prices rise 25%, followed by a $30 registration fee? Both changes act on cost, the output, rather than on the number of visits
Step 1: apply the 25% increase
On the first piece, adding 25% gives 12x + 0.25(12x) = 1.25(12x) = 15x. Therefore, the transformation for the whole rule is f_new(x) = 1.25f(x). Multiply every complete output expression by 1.25
The flat tier becomes 1.25(120) = 150. The top tier becomes 1.25
$$8(x − 25) + 120$$
= 10(x − 25) + 150. The entire top-tier expression is multiplied, including its constant term. Every domain condition remains unchanged
After the increase, f_new(x) = { 15x if 0 < x < 10; 150 if 10 ≤ x ≤ 25; 10(x − 25) + 150 if x > 25 }
Step 2: add the $30 fee
The fee is a vertical translation: add 30 to every output expression. The combined transformation is f_final(x) = 1.25f(x) + 30
| Condition on visits | Original cost | After 25% increase | After $30 fee |
|---|---|---|---|
| 0 < x < 10 | 12x | 15x | 15x + 30 |
| 10 ≤ x ≤ 25 | 120 | 150 | 180 |
| x > 25 | 8(x − 25) + 120 | 10(x − 25) + 150 | 10(x − 25) + 180 |
Thus f_final(x) = { 15x + 30 if 0 < x < 10; 180 if 10 ≤ x ≤ 25; 10(x − 25) + 180 if x > 25 }. Expanding the third expression gives 10(x − 25) + 180 = 10x − 250 + 180 = 10x − 70
At the boundary x = 25, both forms of the third expression evaluate to 180, matching the middle tier. The condition 10 ≤ x ≤ 25 supplies the actual value at x = 25; the third piece applies for x > 25. The transformed pieces still connect there
Practice 5: identify what a surcharge changes
A courier charges by number of packages x: f(x) = { 5x if 0 < x < 20; 100 if 20 ≤ x ≤ 50; 4(x − 50) + 100 if x > 50 }, in dollars. A fuel surcharge multiplies every price by 1.1. Which parts are multiplied by 1.1, and which are copied unchanged: the flat price 100, the interval 20 ≤ x ≤ 50, and the expression 4(x − 50) + 100?
Answer: the flat price 100 and the entire expression 4(x − 50) + 100 are multiplied by 1.1. The interval 20 ≤ x ≤ 50 is copied unchanged. The first two are dollar amounts customers pay; the interval is a condition on the number of packages, not a price
Summary
1. Inside versus outside: changes inside f( ) act on the input x and produce horizontal transformations. Changes outside act on outputs and produce vertical transformations
2. Horizontal shifts: for h > 0, f(x + h) shifts the graph left h units. For a piecewise rule, substitute x + h into every expression and every domain condition before simplifying
3. Intercepts under scaling and reflection: a horizontal scale factor multiplies x-intercepts and leaves the y-intercept unchanged; a vertical scale factor multiplies the y-intercept and leaves x-intercepts unchanged. Reflection across the y-axis reverses x-coordinates, while reflection across the x-axis reverses heights
4. Combined moves: apply one transformation at a time and track key points in a table. Verify the final graph algebraically when needed, as in the parabola whose final x-intercepts are ±6 after a stretch and an upward shift
5. Price-model caution: percent increases and flat fees are output changes. Apply them to every complete price expression, in the specified order, but leave the domain intervals unchanged
Quiz
Quiz 1: shift a piecewise rule
Given f(x) = { x + 1 if x > 0; 2x + 1 if x ≤ 0 }, let g be its graph translated 1 unit left
Quiz 2: predict intercepts
Given f(x) = x² − 25, its y-intercept is −25 and its x-intercepts are −5 and 5. Using the intercept rules, complete the intercepts of r(x) = −2f(x) without graphing: y-intercept ___; x-intercepts ___
Answer: the y-intercept is 50, and the x-intercepts are ±5. The factor −2 stretches and reflects outputs, so the y-intercept becomes (−2)(−25) = 50. At the x-intercepts the outputs are zero, and (−2)(0) = 0, so their x-coordinates do not change
Quiz 3: update a middle price tier
A tutoring center charges by number of sessions x: f(x) = { 40x if 0 < x < 5; 200 if 5 ≤ x ≤ 10; 30(x − 10) + 200 if x > 10 }, in dollars. All prices rise 30%, then a $10 booking fee is added to every enrollment. What is the middle piece of the new rule?
Answer: 270 if 5 ≤ x ≤ 10. Apply the percentage first: 1.30(200) = 260. Then add the fee: 260 + 10 = 270. Both operations change cost, not the number of sessions, so the interval remains 5 ≤ x ≤ 10