Algebra 2 Advanced piecewisegraphingcontinuity

Piecewise Functions

Different rules on different intervals, and where the dots go.

Video by The Organic Chemistry Tutor — “Graphing Piecewise Functions - Precalculus” Watch on YouTube

The explanation

Key idea Use the rule whose condition your input satisfies.

A piecewise function uses different formulas on different parts of the domain.

To evaluate, first find which interval your input falls in, then use that rule. For a function that is 2x + 1 when x < 3 and x² when x ≥ 3, evaluating at x = 5 uses x², giving 25.

To graph, draw each piece only over its own interval.

At the boundaries, use a closed dot where the endpoint is included (≤ or ≥) and an open dot where it is not (< or >). Each x-value gets exactly one closed dot, or it would not be a function.

Absolute value is secretly piecewise: |x| is x when x ≥ 0 and −x when x < 0.

Worked example

For f(x) = { x + 4 if x < 2 ; x² − 1 if x ≥ 2 }, find f(0), f(2), and say whether it is continuous at x = 2.

  1. 0 < 2, so use x + 4: f(0) = 4.
  2. 2 ≥ 2, so use x² − 1: f(2) = 3.
  3. Left-hand approach: 2 + 4 = 6. Right-hand value: 3.
  4. 6 ≠ 3, so the graph jumps.

Answer: f(0) = 4, f(2) = 3; not continuous at x = 2 (open dot at (2,6), closed at (2,3)).

Common mistakes

  • Evaluating with the wrong branch at a boundary value.
  • Drawing two closed dots at the same x, which breaks the function definition.