Lesson 6 of 8 · 17 min
Sketching piece-wise linear graphs
Model a situation whose rule changes partway — a call-out fee, a tiered charge, income tax — with a graph made of straight segments, and calculate values from it.
What you will be able to do
- Recognise a situation that needs a piece-wise linear model.
- Write the rule for each piece and the interval it applies on.
- Sketch a piece-wise linear graph with its endpoints and key values labelled.
- Calculate values from a piece-wise rule, such as the tax on an income.
A Townsville plumber charges a $95 call-out fee, which covers the first 30 minutes. After that, the charge is $1.60 per minute.
One straight line cannot model this. For the first 30 minutes the cost does not change — it is flat at $95. After 30 minutes it rises at $1.60 a minute. The graph is two straight pieces joined at : a piece-wise linear graph.
Definition
Piece-wise linear graph
A piece-wise linear graph is made of two or more straight-line segments. Each segment has its own rule, which applies on its own interval of -values. The plumber's charge, dollars, for a job of minutes is
The term counts only the minutes after the first 30.
Flat while the call-out fee covers the time, then rising at $1.60 a minute. The pieces join at .
Change the fee, the included time and the rate. The fee sets the height of the flat piece, the included time sets where the graph bends, and the rate sets the steepness after the bend.
Sketching a piece-wise linear graph
List the pieces and their intervals
Write down where each rule starts and stops, such as and .
Find the value at each end of each piece
Substitute the endpoints into that piece's rule. A short table helps.
Plot the endpoints and join each pair with a straight segment
If neighbouring pieces meet, they share an endpoint. If they do not meet, mark which piece includes the endpoint with a closed dot (●) and the other with an open circle (○).
Label the axes and key points
Include units and the coordinates where the rule changes.
Worked example
Sketch a plumber's call-out charge
A Townsville plumber charges $95, which covers the first 30 minutes of a job, then $1.60 for each extra minute.
(a) Write a rule for the charge, dollars, for a job lasting minutes, where .
(b) Sketch the graph of against .
(c) Use the rule to find the charge for a 45-minute job.
Step 1: Write the rule for each piece
Only the minutes after 30 are charged at $1.60, so the second rule uses .
Step 2: Find the endpoint values
At : (both rules agree). At : .
Step 3: Sketch
Draw a horizontal segment at from (open circle — a job takes some time) to , then a straight segment from to . Label both axes with units and the key points.
Step 4: Charge for 45 minutes
, so use the second rule: .
Try it yourself first, then check the working one step at a time.
Answer
(a) for and for . (b) See the graph: flat at $95 to 30 minutes, then rising to $191 at 90 minutes. (c) A 45-minute job costs $119.
Method
Write a rule for each interval; later rules count only the amount past the change.
Find the value at each end of each piece.
Plot endpoints, join with straight segments, label.
Watch out for
Writing the second rule as , which charges for the first 30 minutes twice.
An electrician charges $110, which covers the first hour, then $1.25 for each extra minute. Calculate the charge for a job that takes 1 hour 40 minutes.
Australian income tax is a piece-wise linear model too. Tax is charged at a higher rate on each slice of income above a threshold. The rate is the gradient of each piece.
| Taxable income | Tax on this income |
|---|---|
| $0 – $18 200 | Nil |
| $18 201 – $45 000 | 15c for each $1 over $18 200 |
| $45 001 – $135 000 | $4020 plus 30c for each $1 over $45 000 |
| $135 001 – $190 000 | $31 020 plus 37c for each $1 over $135 000 |
| $190 001 and over | $51 370 plus 45c for each $1 over $190 000 |
Each segment is steeper than the one before: the gradient is the tax rate on that slice of income (0, 0.15, 0.30, 0.37, 0.45).
Worked example
Income tax as a piece-wise linear model
Use the 2026–27 resident tax rates below (excluding the Medicare levy and tax offsets) to answer the questions.
| Taxable income | Tax on this income |
|---|---|
| $0 – $18 200 | Nil |
| $18 201 – $45 000 | 15c for each $1 over $18 200 |
| $45 001 – $135 000 | $4020 plus 30c for each $1 over $45 000 |
| $135 001 – $190 000 | $31 020 plus 37c for each $1 over $135 000 |
| $190 001 and over | $51 370 plus 45c for each $1 over $190 000 |
(a) Show that the tax on the first $45 000 of income is $4020.
(b) Ella's taxable income is $72 000. Calculate her tax and her average tax rate, as a percentage of her income.
Step 1: Tax on the first $45 000
The first $18 200 is tax-free. The next dollars are taxed at 15c: .
This is where the $4020 in the next bracket comes from: it is the tax on everything up to the threshold, so the pieces of the graph join up.
Step 2: Find Ella's bracket
$72 000 is between $45 001 and $135 000.
Step 3: Calculate the tax
Step 4: Find the average tax rate
Ella's top rate is 30%, but her average rate is much lower, because most of her income is taxed at 0% or 15%.
Try it yourself first, then check the working one step at a time.
Answer
(a) . (b) Ella pays $12 120 in tax, an average rate of about 16.8% of her income.
Method
Find the bracket the income falls in.
Tax = tax up to the threshold + rate × (income − threshold).
Average tax rate = tax ÷ income × 100%.
Watch out for
Taxing the whole $72 000 at 30% ($21 600). The 30% rate applies only to the dollars over $45 000.
Use the 2026–27 tax table to calculate the income tax on a taxable income of $95 000.
Common mistake
One rate for the whole amount
Moving into a higher tax bracket does not increase the tax on all of your income — only on the dollars above the threshold. In a piece-wise rule, each rate applies only on its own interval, which is why every rule is written with a term like .
Summary
A piece-wise linear graph joins straight segments, each with its own rule on its own interval.
Write each rule so it counts only the amount past the change, such as .
To sketch: find the value at each end of each piece, plot the endpoints, join with straight segments, label the changes.
Each segment's gradient is the rate on that interval — such as $1.60 per minute, or 30c tax per dollar.
When pieces do not join, use a closed dot for the included endpoint and an open circle for the excluded one.
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.