Piecewise Functions notes (Precalculus)

Evaluate and graph piecewise-defined functions.

The big question

{

What if a rule changes partway? Use a piecewise function!

Learn it, step by step

1. Different rules on different pieces

f(x) = x + 2 when x < 0, and f(x) = 2 when x ≥ 0.

Each piece is graphed only on its own interval.

Different rules on different pieces

2. Evaluate

Find which piece the input belongs to, then use that rule.

f(−3) = −3 + 2 = −1. f(5) = 2.

f(−3) = −1
f(5) = 2

Evaluate. f(−3) = −1. f(5) = 2

Watch out: Open or closed dot

At a boundary, the closed dot belongs to the piece with ≤ or ≥.

Wrong: both dots closed. Right: one open, one closed.

Your turn

f(x) = x² if x ≤ 1, and 3x if x > 1. Find f(4).

f(4) = ?

Answer: 12. 4 > 1, so 3 × 4 = 12!

Remember

Pick the piece by the input, then apply its rule.

which piece? → rule

Watch the Piecewise Functions lesson and practice · Printable worksheet