By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
A piecewise function is a function defined by multiple sub-functions, each applied to a specific interval of the domain. It is a way to describe a function that behaves differently on different parts of its domain.
You'll encounter piecewise functions in exams that test calculus, algebra, or mathematical modeling. These exams often ask you to graph piecewise functions, find their derivatives, or solve optimization problems involving piecewise functions.
Piecewise functions are a crucial concept in mathematics, appearing in various exams, including:
These exams typically carry 10-20% of the total marks and test your ability to analyze, graph, and manipulate piecewise functions.
To master piecewise functions, you must understand the following key concepts:
You must also be able to distinguish between different types of piecewise functions, such as:
The primary rule for piecewise functions is:
Sub-rules and exceptions include:
A simple visual pattern is:
Frequency: 20-30% Difficulty Rating: Intermediate Question Type or Real-World Task Type: Graphing, differentiation, optimization.
Intermediate
The three most important rules for piecewise functions are:
Question: Graph the piecewise function f(x) = { x + 1, x ≤ 2; 2x - 1, x > 2 }.
Answer: The graph consists of two line segments: one with equation y = x + 1 for x ≤ 2 and another with equation y = 2x - 1 for x > 2.
Key rule applied: If-Then Rule.
Question: Find the derivative of the piecewise function f(x) = { 2x, x ≤ 1; x^2, x > 1 }.
Answer: The derivative is f'(x) = { 2, x ≤ 1; 2x, x > 1 }.
Question: Find the maximum value of the piecewise function f(x) = { x^2, x ≤ 1; 2x - 1, x > 1 }.
Answer: The maximum value is 2, which occurs at x = 3/2.
Mistake: Writing [a, b] instead of (a, b) or vice versa.Wrong answer: f(x) = { x + 1, x ≤ 2; 2x - 1, x > 2 } becomes f(x) = { x + 1, x < 2; 2x - 1, x ≥ 2 }.Correct approach: Use interval notation correctly.
Mistake: Failing to use sub-function notation for piecewise functions.Wrong answer: f(x) = { x + 1, x ≤ 2; 2x - 1, x > 2 } becomes f(x) = x + 1 for x ≤ 2 and f(x) = 2x - 1 for x > 2.Correct approach: Use sub-function notation correctly.
Mistake: Failing to use the If-Then Rule to evaluate piecewise functions.Wrong answer: f(x) = { x + 1, x ≤ 2; 2x - 1, x > 2 } becomes f(x) = x + 1 for all x.Correct approach: Apply the If-Then Rule correctly.
Mistake: Combining sub-functions incorrectly, resulting in a non-piecewise function.Wrong answer: f(x) = { x + 1, x ≤ 2; 2x - 1, x > 2 } becomes f(x) = x + 2x - 1.Correct approach: Combine sub-functions correctly using the If-Then Rule.
Mistake: Failing to consider edge cases, such as x = a or x = b.Wrong answer: f(x) = { x + 1, x ≤ 2; 2x - 1, x > 2 } becomes f(x) = x + 1 for all x.Correct approach: Consider edge cases carefully.
Use interval notation consistently to avoid mistakes.
Use sub-function notation consistently to avoid mistakes.
Apply the If-Then Rule consistently to evaluate piecewise functions.
Combine sub-functions correctly using the If-Then Rule.
Consider edge cases carefully to avoid mistakes.
Example: Graph the piecewise function f(x) = { x + 1, x ≤ 2; 2x - 1, x > 2 }.
Example: Find the derivative of the piecewise function f(x) = { 2x, x ≤ 1; x^2, x > 1 }.
Example: Find the maximum value of the piecewise function f(x) = { x^2, x ≤ 1; 2x - 1, x > 1 }.
Example: A company produces two types of products, A and B, using a piecewise function to model the production costs.
What is the domain of the piecewise function f(x) = { x + 1, x ≤ 2; 2x - 1, x > 2 }? A) (0, 2] B) [0, 2] C) (0, 2) D) [0, 2]
Correct answer: B) [0, 2] Explanation: The domain is the set of all input values for which the function is defined. In this case, the function is defined for x ≤ 2 and x > 2, so the domain is [0, 2].
Why the distractors are tempting: A) (0, 2] is tempting because it includes the endpoint 2, but the domain is actually [0, 2].C) (0, 2) is tempting because it excludes the endpoint 2, but the domain is actually [0, 2].D) [0, 2] is tempting because it includes the endpoint 2, but it is not the correct answer.
What is the derivative of the piecewise function f(x) = { 2x, x ≤ 1; x^2, x > 1 }? A) f'(x) = 2 B) f'(x) = 2x C) f'(x) = { 2, x ≤ 1; 2x, x > 1 } D) f'(x) = x^2
Correct answer: C) f'(x) = { 2, x ≤ 1; 2x, x > 1 } Explanation: The derivative of a piecewise function is found by evaluating the derivatives of the sub-functions and combining them using the If-Then Rule.
Why the distractors are tempting: A) f'(x) = 2 is tempting because it is the derivative of the sub-function 2x, but it is not the correct answer.B) f'(x) = 2x is tempting because it is the derivative of the sub-function x^2, but it is not the correct answer.D) f'(x) = x^2 is tempting because it is the sub-function x^2, but it is not the derivative.
What is the maximum value of the piecewise function f(x) = { x^2, x ≤ 1; 2x - 1, x > 1 }? A) 1 B) 2 C) 3 D) 4
Correct answer: B) 2 Explanation: The maximum value of a piecewise function is found by evaluating the sub-functions and combining them using the If-Then Rule.
Why the distractors are tempting: A) 1 is tempting because it is a possible value of the sub-function x^2, but it is not the maximum value.C) 3 is tempting because it is a possible value of the sub-function 2x - 1, but it is not the maximum value.D) 4 is tempting because it is a possible value of the sub-function 2x - 1, but it is not the maximum value.
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.