CSCA Mathematics · Functions · Section 2 of 17
Piecewise Functions
A piecewise function uses different formulas for different parts of its domain. Think of it like different speed limits on different stretches of a highway.
Notation:
f(x) = { x² if x < 0; 2x + 1 if x ≥ 0 }
This means: use x² when x is negative, and use 2x + 1 when x is zero or positive.
Evaluating Piecewise Functions
- Look at the input value.
- Determine which condition it satisfies.
- Use the corresponding formula.
Example: f(-3) → x = -3 < 0, so use x² → f(-3) = 9.
f(4) → x = 4 ≥ 0, so use 2x + 1 → f(4) = 9.
Continuity at Boundaries
A piecewise function is continuous at a boundary point if the left-hand piece and the right-hand piece give the same value there. For the example above at x = 0: left piece gives 0² = 0, right piece gives 2(0)+1 = 1. Since 0 ≠ 1, there is a jump discontinuity at x = 0.
Finding Unknown Constants
A classic textbook question (continuity is not itself listed in the CSCA syllabus): "Find the value of k that makes f continuous at x = 2." You set the two formulas equal at x = 2 and solve for k.
Graphing
Graph each piece on its designated interval. Use open circles ○ for excluded endpoints and closed circles ● for included ones.
Key takeaway: Piecewise functions use different rules for different x-intervals. Check which condition x satisfies, then use that formula. For continuity, pieces must agree at boundary points.
Key Formulas
Continuity at x = a: left-hand value = right-hand value at x = a.
Graph: solid dot ● for included, open dot ○ for excluded.
Worked Example 1
Example 1: f(x) = { 3x - 1 if x < 2; x² if x ≥ 2 }. Find f(1) and f(2).
f(1): x=1 < 2 → 3(1)-1 = 2. f(2): x=2 ≥ 2 → 2² = 4.
Worked Example 2
Example 2: Find k so that f(x) = { kx + 3 if x < 1; 2x² if x ≥ 1 } is continuous at x = 1.
Left: k(1) + 3 = k + 3. Right: 2(1)² = 2. Set equal: k + 3 = 2 → k = -1.
Worked Example 3
Example 3: f(x) = { |x| if x ≤ 0; x + 1 if x > 0 }. Is f continuous at x = 0?
Left: |0| = 0. Right limit as x→0⁺: 0 + 1 = 1. Since 0 ≠ 1, not continuous.
Exam Tips
When evaluating, always check the condition FIRST. A common trap is using the wrong piece.
For continuity questions, set the two expressions equal at the boundary and solve for the unknown.
To solve f(a) = b for a piecewise f, solve in each piece separately and keep only solutions that satisfy that piece's condition. For f(f(a)), work from the inside out.
Common Mistakes
Using the wrong piece: If x = 2 and the condition is x < 2 for piece 1, use piece 2!
Confusing continuity with having a value: f(2) can exist but f can still be discontinuous at x = 2 if the limit from one side differs.
Try This Yourself
f(x) = { 2x+k if x < 3; x² if x ≥ 3 }. Find k for continuity at x = 3.
Show the answer
Left: 2(3)+k = 6+k. Right: 9. So 6+k = 9 → k = 3.