College Algebra
Piecewise Functions
Lesson
A piecewise function uses different rules on different intervals. The function is defined by a list of cases — each case has a rule and the values of it applies to. To evaluate, you first figure out which piece appliesto your input, then use that piece’s rule.
Read this as: “ equals when is negative, and equals when .”
To evaluate at a specific value:
- Compare the input to each interval.
- Pick the row whose interval contains the input.
- Apply that row’s rule.
Worked example 1
Is ? No. Is ? Yes — use the second piece:
Worked example 2
Is ? Yes — use the first piece:
How to type your answer
Type a single number. Negatives use a minus sign; fractions use a slash. Examples: 9, -3, -1/2.
Practice
Work through these. Stuck? Click Get a hint.
Warm-Up
Quick problems to get going.
Problem 1
Problem 2
Problem 3
Problem 4
Practice
Standard problems matching the lesson.
Problem 5
Problem 6
Problem 7
Problem 8
Problem 9
Problem 10
Problem 11
Problem 12
Problem 13
Problem 14
Challenge
Harder problems — edge cases, trickier numbers, multiple steps.
Problem 15
Problem 16
Problem 17
Problem 18
Problem 19
Problem 20
Problem 21
Problem 22
Practice
Standard problems matching the lesson.
Problem 23
Shipping: 5 dollars if order ≤ 50, else 10. Cost for a 30-dollar order?
Problem 24
Tax: 0% if income ≤ 10000; 10% if 10000 < income ≤ 50000; 20% otherwise. Tax on 30000?
Challenge
Harder problems — edge cases, trickier numbers, multiple steps.
Problem 25
Phone plan: free first 500 min, then 0.10 dollars/min over. Cost for 600 min?
Ask the tutor
Stuck on a concept? Want another example? Ask anything about this topic.
Type your own question below, or tap one of the suggestions. The tutor can re-explain the lesson, work through a specific problem with you, generate fresh practice tuned to where you are, or check your reasoning.
Quiz
Test yourself on this topic →
10 questions, no hints. About 5 minutes.