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 t=30t = 30: 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 xx-values. The plumber's charge, CC dollars, for a job of tt minutes is

C={95,0<t≤3095+1.6(t−30),t>30C = \begin{cases} 95, & 0 < t \le 30 \\ 95 + 1.6(t - 30), & t > 30 \end{cases}

The term (t−30)(t - 30) 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 (30,95)(30, 95).

Interactive

Build a call-out charge

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

  1. List the pieces and their intervals

    Write down where each rule starts and stops, such as 0<t≤300 < t \le 30 and 30<t≤9030 < t \le 90.

  2. Find the value at each end of each piece

    Substitute the endpoints into that piece's rule. A short table helps.

  3. 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 (○).

  4. Label the axes and key points

    Include units and the coordinates where the rule changes.

Worked example

Sketch a plumber's call-out charge

  • Simple familiar

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, CC dollars, for a job lasting tt minutes, where 0<t≤900 < t \le 90.

(b) Sketch the graph of CC against tt.

(c) Use the rule to find the charge for a 45-minute job.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Write a rule for each interval; later rules count only the amount past the change.

  2. Find the value at each end of each piece.

  3. Plot endpoints, join with straight segments, label.

Watch out for

  • Writing the second rule as 95+1.6t95 + 1.6t, 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.

Round to 2 decimal places.

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.

Tax rates for Australian residents, 2026–27 (excluding the Medicare levy, normally 2%, and tax offsets).
Taxable incomeTax on this income
$0 – $18 200Nil
$18 201 – $45 00015c 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

  • Complex familiar
  • Technology active

Use the 2026–27 resident tax rates below (excluding the Medicare levy and tax offsets) to answer the questions.

Taxable incomeTax on this income
$0 – $18 200Nil
$18 201 – $45 00015c 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.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Find the bracket the income falls in.

  2. Tax = tax up to the threshold + rate × (income − threshold).

  3. 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.

Round to the nearest whole number.

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 (I−45 000)(I - 45\,000).

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 95+1.6(t−30)95 + 1.6(t - 30).

  • 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.

Lesson 6 of 80% read

Save your progress with a free account