Transformations of Linear Functions
In f(x) = mx + b, the intercept b sets the line’s starting height and the slope m sets its tilt. Learn to graph a line, describe vertical translations and slope changes, reflect a line across the y-axis, and separate fee changes from rate changes in linear cost models.

The Price Line Puzzle
A food truck charges a setup fee plus a price for every person at a party. If x is the number of people and f(x) is the cost in dollars, a $20 setup fee and a $12 per-person price give f(x) = 12x + 20
The graph starts at (0, 20): the setup fee is $20 before any people are added. Each additional person raises the cost by $12. For example, the cost rises from $32 at 1 person to $44 at 2 people, and 5 people cost $80, giving the point (5, 80)
Two questions guide the lesson: if the truck raises its setup fee, does the line get steeper or slide up? If it charges more per person, what changes? To distinguish these effects, read the constant and the coefficient of x separately
Reading and Graphing a Line
The slope-intercept form of a linear function is f(x) = mx + b. The constant b is the y-intercept value, so the graph crosses the y-axis at (0, b). The coefficient m is the slope: for every 1 unit to the right, the output changes by m units
The parent function is f(x) = x. Its slope is 1 and its y-intercept is 0, so it passes through the origin (0, 0). Moving right 1 and up 1 gives points such as (1, 1) and (2, 2). This line is the reference for several transformations in the lesson
Worked example: graph g(x) = 2x − 3
Graph g(x) = 2x − 3 by finding the y-intercept and using the slope to plot another point. Then compare the result with f(x) = x
The constant is −3, so first plot (0, −3). The slope is 2, so move right 1 and up 2 to reach (1, −1). Repeating the same step gives (2, 1). Draw a straight line through these points
Compared with the parent line, g is steeper because its slope is 2 rather than 1. Its y-intercept is 3 units lower, at (0, −3) rather than (0, 0). Both the slope and the intercept differ
Practice 1: complete a plotting plan
Complete the plotting plan for h(x) = 3x − 1: y-intercept (0, ___); slope step right 1, up ___; second point (1, ___). The available values are −1, 1, 3, 2, −3, and 4
The completed plan is (0, −1), right 1 and up 3, then (1, 2). The constant −1 supplies the intercept; the coefficient 3 supplies the rise. Starting at −1 and adding 3 gives the second point’s y-value, 2
Sliding the Line
What does b do when the slope stays fixed? In y = x + b, the slope remains 1 as b changes. Compared with the parent position b = 0, positive values of b place the line above y = x, and negative values place it below. The line’s height changes, but its steepness does not
Compare f(x) = x with g(x) = x − 3. Both slopes are 1, so the lines are parallel. Every point moves straight down 3 units: (0, 0) becomes (0, −3), and (1, 1) becomes (1, −2). The x-coordinate stays the same while the y-coordinate decreases by 3
Practice 2: identify each shift
Compared with f(x) = x, is each of these lines translated up or down: g(x) = x + 5, g(x) = x − 3.5, and g(x) = x + 0.5?
The line g(x) = x + 5 is translated up 5 units. The line g(x) = x − 3.5 is translated down 3.5 units. The line g(x) = x + 0.5 is translated up 0.5 unit. Adding lifts the graph and subtracting lowers it, even when the change is less than 1 unit. All three lines retain slope 1
Tilting the Line
What does m do when b stays fixed? In y = mx − 2, the y-intercept is always (0, −2). As the positive slope grows above 1, the line becomes steeper. As it decreases below 1 while remaining positive, the line becomes flatter. The line tilts around its fixed intercept rather than sliding vertically
Compare x + 1 with 3x + 1
The functions f(x) = x + 1 and g(x) = 3x + 1 share the constant 1, so both cross the y-axis at (0, 1). From that point, f moves right 1 and up 1 to (1, 2), while g moves right 1 and up 3 to (1, 4). Thus g is steeper, with the shared intercept acting as the pivot
The lesson describes this increase in steepness as a vertical stretch about the fixed intercept. A smaller positive coefficient, such as 1/2 instead of 1, gives a flatter line, described as a vertical compression. More generally, compare |m| to judge steepness: larger |m| means steeper, and smaller |m| means flatter
Flipping Across the y-Axis
A reflection across the y-axis places a point at the same height on the opposite side of that axis. For example, P(3, 2) reflects to P′(−3, 2). The coordinate rule is (a, c) → (−a, c): only the x-coordinate changes sign. A point on the y-axis, such as (0, 2), stays fixed
Worked example: reflect f(x) = −2x + 2
Reflect f(x) = −2x + 2 across the y-axis, write the reflected equation g(x), and check it algebraically. The original line passes through (0, 2) and (1, 0). The intercept (0, 2) lies on the mirror and stays fixed; (1, 0) reflects to (−1, 0)
The reflected line passes through (−1, 0) and (0, 2). Moving between them is right 1 and up 2, so its slope is 2. Its y-intercept is still 2. Therefore, g(x) = 2x + 2
For the algebraic check, replace x with −x: g(x) = f(−x) = −2(−x) + 2 = 2x + 2. The point reflection and the substitution give the same equation
Practice 5: write a reflected equation
Write the reflection of h(x) = 3x − 1 across the y-axis by completing g(x) = ___x ___. The coefficient choices are −3 and 3; the constant choices are −1 and +1. The original line passes through (0, −1) and (1, 2)
Replacing x with −x gives g(x) = h(−x) = 3(−x) − 1 = −3x − 1. The correct coefficient is −3 and the constant remains −1. The intercept is on the mirror, so it cannot move
Two Changes at Once
Worked example: describe a double change
Describe the transformation from f(x) = x to g(x) = (1/2)x − 3 as two separate changes. Compare the coefficients first: 1 becomes 1/2, so the line is compressed flatter. Then compare the constants: 0 becomes −3, so the graph is also translated down 3 units
The resulting line crosses the y-axis at (0, −3). Its slope is 1/2, so moving right 2 and up 1 gives (2, −2). A complete description names both effects: compression to slope 1/2 and translation 3 units down
Return to the food truck
The original food-truck model is f(x) = 12x + 20: a $20 setup fee plus $12 per person. Consider two separate alternatives, each compared with this original model
| Change from the original price | New equation | Effect on the graph |
|---|---|---|
| Setup fee rises from $20 to $35; price per person stays $12 | g(x) = 12x + 35 | Translates up 15 units; slope stays 12 |
| Price per person drops from $12 to $8; setup fee stays $20 | h(x) = 8x + 20 | Becomes flatter; y-intercept stays (0, 20) |
In the fee-change alternative, the intercept rises from (0, 20) to (0, 35), and the line remains parallel to the original. At 5 people, g(5) = 95 rather than f(5) = 80, the same $15 increase. In the rate-change alternative, the line pivots flatter around (0, 20); at 5 people, h(5) = 60
This answers the opening puzzle: changing only the setup fee slides the line up or down without changing its steepness. Changing only the per-person rate tilts the line while keeping its starting point fixed
Practice 6: match price changes to graph effects
A dog-walking service charges w(x) = 6x + 9: a $9 booking fee plus $6 per walk. Match each separate change—raising the booking fee from $9 to $14, or dropping the price per walk from $6 to $4—to an effect: a shift up 5 with the same steepness, a flatter line with the same y-intercept, or a steeper line with the same y-intercept
The booking-fee increase matches a shift up 5 with the same steepness, because only the constant changes. The per-walk price decrease matches a flatter line with the same y-intercept, because only the coefficient changes. Neither change matches the steeper-line option
Summary
Read the line: in f(x) = mx + b, b gives the y-intercept (0, b), and m gives the slope. A step right 1 changes the output by m
Change b while holding m fixed: the line translates vertically without changing steepness. In g(x) = f(x) + k, positive k moves the graph up and negative k moves it down
Change m while holding b fixed: the line tilts around (0, b). Larger |m| gives a steeper line; smaller |m| gives a flatter line. The y-intercept does not move
Reflect across the y-axis: use g(x) = f(−x). Points follow (a, c) → (−a, c), so a linear function’s slope changes sign and its y-intercept stays fixed
Quiz
For the final question, a climbing gym models the monthly cost of x visits by c(x) = 18x + 40. The membership fee is $40 and the charge per visit is $18. Only the membership fee changes, dropping to $25