
graph piecewise, step and absolute value functions, and explain why the x-coordinates of intersection points solve f(x) = g(x).
Instruction
Not every function follows one formula. Prices, fees and distances often follow different rules on different intervals.
A step function. A parking garage (illustrative rates) charges $3 for each hour or part of an hour, up to a daily maximum of $15. The cost P(h) for h hours: P(0.5) = 3, P(1) = 3, P(1.2) = 6, P(2.5) = 9, and from any time over 4 hours, P(h) = 15. The graph is a staircase of horizontal segments. At each jump you need to show which endpoint belongs to which step: P(1) = 3, so the point (1, 3) is filled and the point (1, 6) is open. Without that detail the graph would appear to give two outputs at h = 1.
A piecewise function. Write a rule for each interval of the domain. For the garage up to 2 hours:
P(h) = 3 for 0 < h ≤ 1; P(h) = 6 for 1 < h ≤ 2
The absolute value function. The function g(x) = |x − 2| gives the distance from x to 2. It is a piecewise function in disguise: g(x) = x − 2 when x ≥ 2, and g(x) = 2 − x when x < 2. Its graph is a V with its corner, the vertex, at (2, 0), sloping down with slope −1 on the left and up with slope 1 on the right.
Solving f(x) = g(x) with graphs. Where do f(x) = 0.5x + 3 and g(x) = |x − 2| meet?
The graphs cross twice. At an intersection point (a, b), the point lies on both graphs, so f(a) = b and g(a) = b. Therefore f(a) = g(a): the x-coordinate a solves the equation f(x) = g(x). Conversely, any solution a gives equal outputs, so the point (a, f(a)) is on both graphs. The solutions of the equation are exactly the x-coordinates of the intersection points.
The graph suggests x = 10 and a value a little below 0. Confirm algebraically, one piece at a time. For x ≥ 2: 0.5x + 3 = x − 2, so x = 10, which is in the piece’s interval. For x < 2: 0.5x + 3 = 2 − x, so 1.5x = −1 and x = −2/3, also in its interval. Check: f(−2/3) = 8/3 and |−2/3 − 2| = 8/3.
When algebra is hard, a table of values or technology gives approximate solutions: zoom in on the intersection, or tabulate f(x) − g(x) and look for where it changes sign.
Discourse protocol. Your group gets three claims: “The parking graph fails the vertical line test at h = 1.” “|x − 2| = 0.5x + 3 has only one solution, because a line can only cross a V once.” “You don’t need to check that a piece’s solution lies in its interval.” Decide whether each is true, and write a justification or a counterexample. Present one, and let another group question you.
📖 Read for this lesson
The reading opens over the lesson; close it to come back to exactly where you were. The checks below draw on it.
Formative check
Work through these before moving on. They are not graded — they tell you whether the standard below has landed yet.
The garage charges $3 per hour or part of an hour, maximum $15. What is P(2.5)?
The graphs of y = f(x) and y = g(x) cross at (−1, 4) and (3, 12). What are the solutions of f(x) = g(x)?
Simulation & tools
Intersections of a line and an absolute value graph
Set up. In Desmos, type f(x)=0.5x+3 and g(x)=abs(x-2). Set the window to −4 ≤ x ≤ 12 and 0 ≤ y ≤ 10.
Observe and record. Click each intersection point and record its coordinates as Desmos gives them. Compare with the exact values (−2/3, 8/3) and (10, 8).
Change and predict. Replace 0.5 with a slider m. Before moving it, predict: for which slopes does the line cross the V only once? Move the slider to test, record the slopes where the number of intersections changes, and explain the result using the slopes −1 and 1 of the V’s two sides.
No device? Graph both functions on grid paper using a table of values from −4 to 12, then answer the same questions by drawing lines with different slopes through (0, 3).
Open Desmos ↗ · Desmos · free to use; Desmos terms
Explain, in your own words and without using the specific numbers from the lesson, why the x-coordinates of the points where y = f(x) and y = g(x) intersect are the solutions of f(x) = g(x).
How confident are you that you can graph piecewise, step and absolute value functions and solve f(x) = g(x) using their graphs?
Practice
Work these on paper or in your notebook, then open Check your answer. Aim for all of Fluency and Application; try at least one Challenge.
Printable version: this unit’s practice workbook (PDF)
Fluency
Build speed and accuracy with the core skill.
- Solve: |x − 3| = 9
Check your answer
Answer: x = −6 or x = 12x − 3 = 9 or x − 3 = −9. - Solve: |x + 4| = 8
Check your answer
Answer: x = −12 or x = 4x + 4 = 8 or x + 4 = −8. - Solve: |x + 3| = 4
Check your answer
Answer: x = −7 or x = 1x + 3 = 4 or x + 3 = −4. - The garage charges $3 per hour or part of an hour, maximum $15. Find P(0.75), P(3.2) and P(7).
Check your answer
Answer: $3, $12, $15 - For g(x) = |x − 2|, find g(−3), g(2) and g(9).
Check your answer
Answer: 5, 0, 7 - f(x) = 2x + 1 for x < 1 and f(x) = 5 − x for x ≥ 1. Find f(−2), f(1) and f(4).
Check your answer
Answer: −3, 4, 1Choose the piece whose interval contains the input.
Application
Use the skill in context. Show your reasoning.
- A bike share (illustrative) charges $1 to unlock, $0.30 a minute for the first 30 minutes and $0.45 a minute after that. Write C(m) as a piecewise function and find C(20) and C(45).
Check your answer
Answer: C(m) = 1 + 0.30m for 0 ≤ m ≤ 30; C(m) = 10 + 0.45(m − 30) for m > 30. C(20) = $7.00, C(45) = $16.75.The first 30 minutes cost $9 plus the $1 unlock. - Solve |x − 1| = 0.5x + 2 piece by piece, and check both solutions.
Check your answer
Answer: x = 6 or x = −2/3x ≥ 1: x − 1 = 0.5x + 2 gives x = 6. x < 1: 1 − x = 0.5x + 2 gives x = −2/3. Check: |−5/3| = 5/3 = 0.5(−2/3) + 2. - Make tables of f(x) = 2x and g(x) = x + 3 for x = 0 to 5. Where does f(x) = g(x)? Explain what the matching row means on the graphs.
Check your answer
Answer: x = 3, where both equal 6; the graphs intersect at (3, 6).
Challenge
Stretch problems. Expect to think before you write.
- For which slopes m does the line y = mx + 3 meet the graph of y = |x − 2| exactly once?
Check your answer
Answer: |m| ≥ 1 (m ≥ 1 or m ≤ −1)The V has slopes −1 and 1. A line through (0, 3) with −1 < m < 1 crosses both branches; otherwise it is parallel to one branch or steeper than it and crosses only the other.
Review
Keep earlier skills sharp.
- Solve the system: −4x − 6y = 28 and 4x + y = 2
Check your answer
Answer: (2, −6)Check the ordered pair in both equations. - Write the equation, in slope-intercept form, of the line through (0, −2) and (2, −7).
Check your answer
Answer: y = −(5/2)x − 2Slope −5/2; substitute the point to find the intercept −2.
The Sign Says $3 an Hour: A Posted Claim, a Receipt Log and a Table of Two Graphs
Constructed teaching data written for this course; rates, receipts and the posted claim are illustrative · SLS original (constructed teaching data, labeled illustrative)
Why this reading. The discourse protocol hands your group three claims to judge. Judging a claim takes evidence, and the lesson supplies the claims but not the evidence. Here it is: a posted sign, a log of what the garage actually charged, and a table of values for the two functions in the lesson. All of it is constructed for this course and labeled illustrative — but it is internally exact, so every claim below can be settled by arithmetic rather than opinion.
A. The posted sign (illustrative)
CIVIC CENTER GARAGE — $3.00 PER HOUR — DAILY MAXIMUM $15.00
A student newspaper reported the rate as “three dollars an hour, so a four-hour visit costs twelve dollars.” Hold that sentence; you will test it.
B. The receipt log (illustrative)
Fourteen consecutive exits on one Tuesday, as the machine printed them:
| Hours parked | 0.25 | 0.75 | 1.00 | 1.05 | 1.60 | 2.00 | 2.10 | 2.50 | 3.00 | 3.40 | 4.00 | 4.20 | 6.50 | 9.00 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Charged | $3 | $3 | $3 | $6 | $6 | $6 | $9 | $9 | $9 | $12 | $12 | $15 | $15 | $15 |
Read the log before you read on. Three of the fourteen rows do the whole job: 1.00 h → $3 and 1.05 h → $6 fix what happens at the first jump, and 4.20 h → $15 shows where the daily maximum takes over. The charge is $3 times the number of started hours, capped at $15, which is reached at any time over four hours.
C. Two functions, tabulated (illustrative)
The lesson asks where f(x) = 0.5x + 3 meets g(x) = |x − 2|. Values, exact:
| x | −4 | −2 | −2/3 | 0 | 2 | 4 | 6 | 8 | 10 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|
| f(x) = 0.5x + 3 | 1 | 2 | 8/3 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| g(x) = |x − 2| | 6 | 4 | 8/3 | 2 | 0 | 2 | 4 | 6 | 8 | 10 |
| f(x) − g(x) | −5 | −2 | 0 | 1 | 4 | 3 | 2 | 1 | 0 | −1 |
The bottom row changes sign twice — between x = −2 and 0, and between x = 10 and 12 — and is exactly zero at x = −2/3 and x = 10. Two sign changes, two solutions. That row is the whole argument, and it needs no graph.
The three claims, and what the evidence above lets you say
- “The parking graph fails the vertical line test at h = 1.” The log has exactly one row at 1.00 h, charging $3. One input, one output. The drawn graph shows a filled point at (1, 3) and an open point at (1, 6) precisely so that it does not fail the test.
- “|x − 2| = 0.5x + 3 has only one solution, because a line can only cross a V once.” Use row four of table C.
- “You don’t need to check that a piece’s solution lies in its interval.” Solve 0.5x + 3 = x − 2 on the piece x < 2 and see what you get.
And the newspaper’s sentence: what does the log say a four-hour visit costs? What does it say a 4.2-hour visit costs? Write the correction in one sentence, with the two receipt rows that prove it.