Open the editor

Maths · High school

Piecewise Functions Slides

Free animated slides, ready to teach: 6 slides where every step appears on a click and the diagrams move. Play them right here, present them full screen, or copy them into your account to edit.

A real Tracé deck playing in your browser. No account needed.

What the lesson covers

A taxi fare graph introduces functions built from several rules. The class evaluates a piecewise function, drags a slider until two pieces join, and works out a fare.

The slides, one by one

1 Piecewise functions

One function, several rules

Live graph: y = {x < 2: 3, 3 + 1.5·(x - 2)}

A taxi costs £3 for the first 2 km, then £1.50 per km. What does 6 km cost?

2 Use the rule whose interval holds x

f(x)={−xx<0x2x≥0f(x) = \begin{cases} -x & x < 0 \\ x^2 & x \geq 0 \end{cases}

Live graph: y = {x < 0: -x, x²}

f(−2)=2f(-2) = 2
f(2)=4f(2) = 4

3 A jump means the function is not continuous

f(x)={x+1x<1c−xx≥1f(x) = \begin{cases} x + 1 & x < 1 \\ c - x & x \geq 1 \end{cases}

Live graph: y = {x < 1: x + 1, 4 - x}

With c=4: left gives 2, rightgives 3\begin{aligned}&\textsf{With }c = 4\textsf{: left gives 2, right}\\ &\textsf{gives 3}\end{aligned}
Only c=3 makes the pieces join\textsf{Only }c = 3\textsf{ makes the pieces join}

4 The fare for a 6 km ride

Fare: £3 up to 2 km, then 3 + 1.5(d − 2) for d > 2. Find the fare for 6 km.

→ 6 > 2, so use the second rule

f(6)=3+1.5(6−2)f(6) = 3 + 1.5(6 - 2)
=3+1.5×4= 3 + 1.5 \times 4
=3+6= 3 + 6
=9= 9

A 6 km ride costs £9

5 Quick check

f(x)=2x for x<3, x2 for x≥3. What is f(3)?f(x) = 2x\textsf{ for }x < 3\textsf{, }x^2\textsf{ for }x \geq 3\textsf{. What is }f(3)\textsf{?}
  • 6
  • 9
  • 3
  • both 6 and 9
Show the answer

9

x = 3 belongs to the interval x ≥ 3, so f(3) = 3² = 9.

6 What to remember

Each rule has its own interval

Check which interval holds x\textsf{Check which interval holds }x
Each x belongs to exactly one piece\textsf{Each }x\textsf{ belongs to exactly one piece}

Continuous: the pieces meet with no jump

Challenge: For which k is f(x) = x + k (x < 2), x² (x ≥ 2) continuous?

Every slide is built click by click: text, formulas and pictures come in one step at a time, so the class follows the reasoning instead of reading ahead. Graphs with sliders can be dragged live while you present.

Make your own version with AIChange the level, the numbers or the language: type the topic and get a new deck that moves in about 30 seconds. Free, no account needed.

Questions teachers ask

Is continuity covered?

Yes: a slider moves one piece until it meets the other, showing when a piecewise function has no jump.

Are these slides really free?

Yes. Watch them on this page or present them full screen with no account. Making your own copy to edit is free too.

Can I change the slides before my lesson?

Yes. Press "Make my own copy" and the deck becomes one of your projects in the Tracé editor, where you can change the text, the numbers, the colours or the order of the clicks.

Do they work on a classroom projector or an interactive whiteboard?

Yes. They run in the browser on any laptop, so anything that shows your screen works. Press the right arrow or click to go to the next step.