\(f(x) = \begin{cases} 2x + 1 & \text{if } x < 0 \\ x^2 & \text{if } x \geq 0 \end{cases}\)
Find \(f(-2)\) and \(f(3)\)
Piecewise function: A function defined by different expressions over different intervals of the domain
- Identify which condition the input value satisfies
- Select the corresponding expression
- Evaluate using the selected expression
Since \(-2 < 0\), use the first piece: \(f(x) = 2x + 1\)
\(f(-2) = 2(-2) + 1 = -4 + 1 = -3\)
Since \(3 \geq 0\), use the second piece: \(f(x) = x^2\)
\(f(3) = 3^2 = 9\)
Always check which condition each input satisfies before selecting the formula
\(f(-2) = -3\) and \(f(3) = 9\)
• Condition checking: Determine which interval contains the input
• Rule selection: Use the expression corresponding to the satisfied condition
• Substitution: Apply the selected formula to the input value
\(g(x) = \begin{cases} -x + 2 & \text{if } x < 1 \\ x - 1 & \text{if } x \geq 1 \end{cases}\)
Graphing piecewise: Plot each piece separately over its specified domain
\(y = -x + 2\), draw with open circle at \(x = 1\)
Point: \((0, 2)\), slope: \(-1\)
\(y = x - 1\), draw with closed circle at \(x = 1\)
Point: \((1, 0)\), slope: \(1\)
Left limit: \(\lim_{x \to 1^-} g(x) = -1 + 2 = 1\)
Right limit: \(\lim_{x \to 1^+} g(x) = 1 - 1 = 0\)
Function value: \(g(1) = 0\)
Graph consists of two linear segments meeting at x = 1 with different slopes
• Domain restriction: Only plot each piece over its specified domain
• Boundary points: Use open circles for strict inequalities, closed for inclusive
• Continuity: Check if left and right limits match at boundaries
\(h(x) = \begin{cases} x + 3 & \text{if } x < -1 \\ 2 & \text{if } -1 \leq x \leq 2 \\ x - 1 & \text{if } x > 2 \end{cases}\)
Find \(h(-2)\), \(h(0)\), and \(h(3)\)
Multi-piece function: A function with three or more different expressions
Since \(-2 < -1\), use first piece: \(h(x) = x + 3\)
\(h(-2) = -2 + 3 = 1\)
Since \(-1 \leq 0 \leq 2\), use middle piece: \(h(x) = 2\)
\(h(0) = 2\)
Since \(3 > 2\), use third piece: \(h(x) = x - 1\)
\(h(3) = 3 - 1 = 2\)
Each input belongs to exactly one interval, ensuring function is well-defined
\(h(-2) = 1\), \(h(0) = 2\), \(h(3) = 2\)
• Interval identification: Carefully check which interval contains each input
• Exclusive vs inclusive: Note difference between < and ≤
• Function definition: Each input maps to exactly one output
Piecewise function: A function defined by multiple sub-functions, each applied to a specific domain interval
Domain partition: The intervals that divide the total domain without overlap
Continuity: Whether the function has no jumps or breaks at boundary points
- Locate the input: Determine which interval contains the given x-value
- Select the rule: Choose the expression corresponding to that interval
- Apply the formula: Substitute the x-value into the selected expression
- Verify result: Ensure the output makes sense in context
• Each input belongs to exactly one interval
• Use ≤ or ≥ for inclusive boundaries (closed circles)
• Use < or > for exclusive boundaries (open circles)
• Continuity depends on matching left and right limits at boundaries
• Domain is the union of all individual intervals
Find cost for 3 lbs and 7 lbs packages.
Real-world piecewise: Models situations with tiered pricing or different rules for different ranges
Since \(1 < 3 \leq 5\), use second piece: \(C(w) = 5.00 + 2(w-1)\)
\(C(3) = 5.00 + 2(3-1) = 5.00 + 2(2) = 5.00 + 4.00 = 9.00\)
Since \(7 > 5\), use third piece: \(C(w) = 13.00 + 3(w-5)\)
\(C(7) = 13.00 + 3(7-5) = 13.00 + 3(2) = 13.00 + 6.00 = 19.00\)
Cost increases in tiers: base rate, then incremental rates for heavier weights
Each tier builds on the previous one, ensuring continuous pricing model
A 3 lb package costs $9.00 and a 7 lb package costs $19.00
• Real-world context: Understand what each piece represents
• Tiered pricing: Each segment has its own rate structure
• Incremental calculation: Higher tiers build on lower ones
Function composition: Applying one function to the result of another: \(f(g(x))\)
Since \(-3 \leq 0\), use first piece: \(f(x) = x^2\)
\(f(-3) = (-3)^2 = 9\)
Since \(9 > 0\), use second piece: \(f(x) = 2x\)
\(f(9) = 2(9) = 18\)
Since \(2 > 0\), use second piece: \(f(x) = 2x\)
\(f(2) = 2(2) = 4\)
Since \(4 > 0\), use second piece: \(f(x) = 2x\)
\(f(4) = 2(4) = 8\)
\(f(f(-3)) = 18\) and \(f(f(2)) = 8\)
• Step-by-step evaluation: Work from inside out in compositions
• Reapply conditions: Each function evaluation requires rechecking conditions
• Nested logic: Maintain careful tracking of each evaluation
Piecewise function: A function defined by multiple sub-functions, each applied to a specific subset of the domain
Domain partition: The collection of non-overlapping intervals that make up the total domain
Continuity: The property of having no gaps or jumps in the function graph
Boundary point: The point where one piece of the function ends and another begins
- Identify pieces: Separate the function into distinct expressions and their domains
- Evaluate inputs: For each x-value, determine which domain it belongs to
- Apply correct rule: Use the expression associated with the identified domain
- Graph systematically: Plot each piece separately with appropriate boundary symbols
- Analyze continuity: Check behavior at boundary points
• Each x-value belongs to exactly one domain interval
• Domain: Union of all individual intervals
• Range: Union of ranges of all pieces
• Continuity at \(x = a\): \(\lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = f(a)\)
• Boundary evaluation: Use ≤ or ≥ for inclusive boundaries, < or > for exclusive
Piecewise Functions: Complete Summary
Definition: A function that uses different formulas for different parts of its domain.
Notation: Uses cases with conditions to specify which formula applies where.
Domain Partition: The domain is divided into non-overlapping intervals.
Step 1: Identify which interval contains the input value
Step 2: Select the corresponding formula
Step 3: Substitute and calculate
Step 4: Verify the result makes sense
Closed Circle: Use for ≤ or ≥ (value included)
Open Circle: Use for < or > (value excluded)
Domain Restriction: Only graph each piece over its specified interval
Continuity Check: Verify if pieces connect smoothly
Simple: \(f(x) = \begin{cases} -x & \text{if } x < 0 \\ x & \text{if } x \geq 0 \end{cases}\) (absolute value)
Quadratic: \(g(x) = \begin{cases} x^2 & \text{if } x \leq 1 \\ 2x-1 & \text{if } x > 1 \end{cases}\)
Constant: \(h(x) = \begin{cases} 1 & \text{if } x < 0 \\ 2 & \text{if } x = 0 \\ 3 & \text{if } x > 0 \end{cases}\)
Error 1: Using the wrong formula for an input value
Error 2: Forgetting boundary conditions (≤ vs <)
Error 3: Assuming continuity where none exists
Error 4: Missing intervals in domain
"Piece at a Time": Focus on one piece before moving to the next
"Check Before You Act": Always verify which condition applies
"Open/Closed Rule": Inclusive = Closed circle, Exclusive = Open circle
"One Input, One Output": Each x-value maps to exactly one y-value
Questions & Answers
Question: I'm confused about how to know which formula to use when evaluating a piecewise function. What if the input value could fit in multiple intervals?
Answer: Great question! A properly defined piecewise function ensures that every input value fits into exactly ONE interval. This is a fundamental requirement for it to be a function.
For example, in the function:
\(f(x) = \begin{cases} x^2 & \text{if } x \leq 0 \\ 2x & \text{if } x > 0 \end{cases}\)
Notice that x = 0 is included in the first piece (≤ 0) but not in the second piece (> 0). This prevents overlap. If you see overlapping conditions, the function is not properly defined.
To evaluate, simply check each condition in order until you find the one that's true for your input value.
Question: How do I know when to use open circles versus closed circles when graphing piecewise functions?
Answer: The circle type depends on the inequality symbol:
- Closed circle (●): Use for ≤ and ≥ (the boundary value IS included)
- Open circle (○): Use for < and > (the boundary value is NOT included)
For example, if you have a piece defined as "if x < 2", put an open circle at x = 2. If it's "if x ≤ 2", put a closed circle at x = 2.
This is crucial for showing which function value applies exactly at the boundary point.
Question: Where do piecewise functions appear in real life? Why are they important to learn?
Answer: Piecewise functions are everywhere in real-world scenarios:
- Tax brackets: Different tax rates apply to different income levels
- Shipping costs: Flat rate for light packages, higher rate for heavier ones
- Utility bills: Lower rate for basic usage, higher rate for excess consumption
- Phone plans: Fixed cost for included minutes, additional cost per extra minute
- Commission systems: Different commission rates for different sales volumes
They're important because many real-world phenomena don't follow a single pattern across all possible inputs - they change behavior at specific thresholds, which piecewise functions model perfectly.