Evaluate piecewise-defined functions
Grade 11 (Algebra 2) · I. Piecewise-defined functions · 30 practice questions
How this works
First decide which condition 5 meets, then use only that piece's rule.
f(x) = {3x − 2 if x < 3; x + 6 if x ≥ 3}. Find f(5).
Is 5 < 3?
no
Is 5 ≥ 3?
yes — use x + 6
Put in 5
5 + 6 = 11
Answer: 11
Watch out: Using the first piece: 3 × 5 − 2 = 13. The x < 3 rule only works for numbers below 3; 5 belongs to x ≥ 3.
Try it
1. f(x) = {4x+1 if x<1; 2x+5 if x≥1}. Find f(6).
- A17
- B25
- C16
- D18
2. f(x) = {4x+2 if x<2; 2x+3 if x≥2}. Find f(4).
- A19
- B10
- C12
- D11
3. f(x) = {4x+3 if x<1; 4x+5 if x≥1}. Find f(6).
- A27
- B29
- C30
- D28
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
This rule is written in two halves, but the two halves say exactly the same thing, so the input has nothing to choose between. 6 sits at or above the place where they change over at 1, so the second half is the one to use: 4 × 6 + 1 = 25, and that is the answer.
