Practice free
Unit 1 · Linear and absolute value functions

Graph piecewise-defined functions

Grade 11 (Algebra 2) · I. Piecewise-defined functions · 30 practice questions

How this works

Check which piece the x-value belongs to, then put it into that piece's rule only.

A piecewise function is graphed: f(x) = 4x + 1 for x < 2, and f(x) = −3x + 5 for x ≥ 2. What is the value of f(1) on the graph?

Is 1 < 2?
yes — use 4x + 1
Multiply
4 × 1 = 4
Add 1
4 + 1 = 5

Answer: 5

Watch out: Using the other piece: −3 × 1 + 5 = 2. Check the condition first: 1 < 2, so f(1) comes from 4x + 1.

Try it

1. A piecewise function is graphed: f(x) = 5x + 8 for x < 2, and f(x) = -2x - 2 for x ≥ 2. What is the value of f(6) on the graph?

2. This piecewise function is graphed: f(x) = 2x + 6 when x < 4, and f(x) = -5x + 1 when x ≥ 4. What does the graph give for f(3)?

3. A piecewise function is graphed: f(x) = -4x + 8 for x < 5, and f(x) = 2x + 8 for x ≥ 5. What is the value of f(2) on the graph?

Answers are checked in the free account — with a hint before the answer, and the full solution after a miss.

How to help at home

A piecewise rule is two rules with a fence between them, so the first job is always to work out which side of the fence the input falls on. The input sits at or above 2, so the second rule is the one that applies: -2 × 6 = -12, and then: -12 + (-2) = -14, which is the height of the graph there.

More in I. Piecewise-defined functions