Piecewise-linear models (SACE Stage 2 General Mathematics)
“Construct, graph and interpret piecewise-linear models in which the rule changes over different intervals of the domain.”
A piecewise-linear model joins two or more straight-line segments, each with its own rule, that apply over different intervals of . You choose the correct segment for the input you are given, then substitute into that segment's equation.
Jump to a section
What this dot point is asking
You must be able to write a model in pieces, state the interval each piece applies to, graph the segments, identify the breakpoints where the rule changes, and use the model to calculate and interpret values.
What a piecewise-linear model is
Many real charges and rates do not follow a single straight line. A taxable income, a phone plan, or a delivery fee may follow one rate up to a threshold, then a different rate beyond it. We write this as several linear rules, each tagged with the interval where it applies:
Each piece is just . The values of where the rule changes are the breakpoints (here ).
A breakpoint is an -value where the model switches from one linear rule to the next. A model is continuous if the two pieces give the same -value at the breakpoint, so the graph has no jump.
Choosing the right piece
The single most important skill is matching the input to its interval before you substitute.
A two-rate electricity charge
An electricity retailer charges 0.30 dollars per kWh for the first 300 kWh in a quarter, then 0.45 dollars per kWh for any usage above 300 kWh. Find the cost of using 500 kWh.
The first 300 kWh cost a flat block. Build the model for total cost against usage :
The constant is the cost of the first 300 kWh, since . For we use the second piece because :
The cost is 180 dollars.
Graphing the model
Plot each segment only over its own interval. At a breakpoint, draw a filled dot for the endpoint that is included and an open dot for one that is excluded. A change in gradient appears as a corner ("kink") in the graph; a steeper gradient after the breakpoint means the quantity grows faster beyond that point.
A piecewise model is continuous if both pieces give the same value at the breakpoint. For the electricity model, the first piece gives and the second gives , so the graph joins with no gap.
Reading information back from the model
Examiners often ask you to interpret the graph in words:
- Each segment's gradient is the rate over that interval (cost per kWh, fee per kilometre).
- A breakpoint marks where conditions change (a usage threshold, a tax bracket boundary).
- A horizontal segment () means the quantity stays constant over that interval, such as a fixed monthly fee regardless of usage.
Reading a delivery-fee graph
A courier graph shows a flat fee of 15 dollars for distances from 0 to 10 km, then a line rising from 15 dollars at 10 km to 35 dollars at 30 km. Find the per-km rate beyond 10 km.
Beyond the breakpoint the cost rises from 15 to 35 dollars as distance goes from 10 km to 30 km:
So beyond 10 km the fee increases by 1 dollar per kilometre.
Why the second piece carries a constant
In the electricity model the second rule is , not simply . The measures usage beyond the threshold, and the is the accumulated cost of the first 300 kWh. This structure - a base amount plus a new rate applied only to the excess - is exactly how tax brackets and tiered tariffs work in practice. Writing the excess term explicitly keeps the model continuous and stops you from wrongly charging the higher rate on the whole amount. It is the single most important idea for piecewise charge models.
Solving equations with a piecewise model
To find when equals a target value, decide which interval the answer falls in, then solve that piece's equation. Always check the solution actually lies in that interval; if it does not, the answer belongs to a different piece.
When you give a piecewise value, name the interval you used. Writing "since I use the second rule" shows the examiner your reasoning and earns method marks even if your arithmetic slips.
Do not substitute an input into the wrong piece. A frequent error is putting into the first rule , giving instead of . Always check which interval the input belongs to before substituting, and never apply the high rate to the entire amount when only the portion above the threshold is charged at that rate.
Exam-style questions
Questions in the style of SACE Board exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
Practice4 marksCalculator-assumed. An electricity retailer charges 0.30 dollars per kWh for the first 300 kWh in a quarter, then 0.45 dollars per kWh for usage above 300 kWh. (a) Write a piecewise model for the total cost dollars against usage kWh. (b) Find the cost of using 500 kWh.Show worked answer →
(a) The first 300 kWh cost dollars, so the model is
(b) Since , use the second piece: dollars. (2 marks)
Marks: two for a correct two-piece model with the 90 carried forward, two for selecting the right piece and computing 180.
Practice3 marksCalculator-assumed. A courier charges a flat 15 dollars for distances from 0 to 10 km, then a rate per km beyond 10 km so that a 30 km trip costs 35 dollars. (a) Find the per-km rate beyond 10 km. (b) Determine the cost of a 22 km trip.Show worked answer →
(a) Beyond 10 km the cost rises from 15 to 35 dollars as distance goes 10 km to 30 km: dollar per km. (1 mark)
(b) For (beyond the breakpoint), cost dollars. (2 marks)
Marks: one for the gradient beyond 10 km, two for applying the correct piece to find 27.