Practice free
Unit 5 · Functions

Graph piecewise-defined functions

Grade 9 (Algebra 1) · Q. Piecewise-defined functions · 30 practice questions

How this works

Compare the input with the split point −1 to choose the piece, then put the input into that rule.

The graph of a piecewise function follows this rule: f(x) = 2x + 5 when x < −1, and f(x) = −x + 3 when x ≥ −1. What is the value of f(−4)?

Compare −4 with the split point −1
−4 < −1
Multiply first
2 × (−4) = −8
Then add 5
−8 + 5 = −3

Answer: -3

Watch out: Using the second piece because 4 > 1: −(−4) + 3 = 7. On the number line −4 is left of −1, so use 2x + 5: −3.

Try it

1. The graph of a piecewise function follows this rule: f(x) = 3x - 3 when x < -2, and f(x) = -3x - 7 when x ≥ -2. What is the value of f(-7)?

2. The graph of a piecewise function follows this rule: f(x) = -3x - 4 when x < 1, and f(x) = -4x - 5 when x ≥ 1. What is the value of f(-3)?

3. The graph of a piecewise function follows this rule: f(x) = 3x - 8 when x < -1, and f(x) = -2x - 3 when x ≥ -1. What is the value of f(2)?

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 hands every input to whichever line covers it, so the first thing to settle is which side of the break the input falls on. The input here sits on the lower side of the break, so the first line takes it, and the arithmetic runs: 3 × -7 = -21, and then -21 - 3 = -24.

More in Q. Piecewise-defined functions