Real-world piecewise function: A function that models different rates or costs based on different input ranges
Step function: A piecewise function where each piece is a constant value over an interval
- Identify the different input ranges and corresponding outputs
- Write the function with appropriate conditions
- Ensure intervals are mutually exclusive and collectively exhaustive
- Use the function to evaluate specific inputs
Weight up to 2 lbs: $5
Weight between 2 and 5 lbs: $8
Weight over 5 lbs: $12
C(w) = {5 if w ≤ 2, 8 if 2 < w ≤ 5, 12 if w > 5}
Since 2 < 3.5 ≤ 5, we use the second expression
C(3.5) = 8
A 3.5 lb package weighs between 2 and 5 lbs, so it costs $8 ✓
The cost for a 3.5 lb package is $8.
• Step function modeling: Different constant rates for different intervals
• Boundary conditions: Pay attention to ≤ vs < for boundary points
• Real-world constraints: Weight must be non-negative
Absolute deviation: The absolute value of the difference between a measured value and a reference value
Distance interpretation: |a - b| represents the distance between a and b on the number line
C(68) = |68 - 72| = |-4| = 4
C(75) = |75 - 72| = |3| = 3
|t - 72| = 4
t - 72 = 4 or t - 72 = -4
t = 76 or t = 68
C(68) = |68 - 72| = 4 ✓
C(75) = |75 - 72| = 3 ✓
Temperatures 68°F and 76°F both give comfort level 4 ✓
Comfort level of 4 occurs at 68°F or 76°F
The comfort level is 4 when the temperature is 68°F, and 3 when the temperature is 75°F. A comfort level of 4 occurs at temperatures of 68°F or 76°F.
• Absolute value property: |X| = a ⇒ X = a or X = -a
• Distance interpretation: |t - 72| is the distance from t to 72
• Deviation measure: Absolute value represents magnitude of difference
Tiered pricing model: A pricing structure with different rates for different usage levels
Linear function with constant base: A function of the form f(x) = base + rate × (x - threshold)
Up to 500 minutes: $30 flat rate
Over 500 minutes: $30 + $0.25 per additional minute
P(m) = {30 if m ≤ 500, 30 + 0.25(m - 500) if m > 500}
Since 650 > 500, we use the second expression:
P(650) = 30 + 0.25(650 - 500)
P(650) = 30 + 0.25(150) = 30 + 37.5 = 67.5
Base cost: $30, Additional minutes: 150, Additional cost: 150 × $0.25 = $37.50
Total: $30 + $37.50 = $67.50 ✓
The cost for 650 minutes is $67.50.
• Tiered pricing: Base rate plus incremental rate for excess usage
• Linear function: Rate × (input - threshold) for the excess portion
• Real-world modeling: Identify base and incremental costs
Real-world application: Using mathematical functions to model practical scenarios in business, science, or daily life
Tiered pricing: A pricing structure with different rates for different usage levels
Step function: A piecewise function with constant values over each interval
Absolute deviation: The absolute value of the difference between actual and expected values
Error tolerance: The acceptable range of deviation from a target value
Threshold effect: A sudden change in behavior or rate when crossing a boundary
- Understand the scenario: Identify what varies and what stays constant
- Define variables: Assign letters to inputs and outputs
- Identify intervals: Determine where the behavior changes
- Write expressions: Create formulas for each interval
- Set conditions: Define the range for each expression
- Verify completeness: Ensure all possible inputs are covered
- Test with examples: Validate the function with known values
• Define the domain based on real-world constraints
• Ensure intervals don't overlap and cover all possibilities
• Pay attention to boundary conditions (≤ vs <)
• Absolute value models distance/deviation from reference
• Tiered functions: base + rate × (excess amount)
• Verify that the model makes sense in context
Quality control function: A function that measures how well a product meets specifications
Tolerance range: The acceptable range of deviation from a target value
Q(9.8) = 10 - |9.8 - 10| = 10 - |-0.2| = 10 - 0.2 = 9.8
Q(10.3) = 10 - |10.3 - 10| = 10 - |0.3| = 10 - 0.3 = 9.7
10 - |d - 10| ≥ 7
-|d - 10| ≥ -3
|d - 10| ≤ 3
-3 ≤ d - 10 ≤ 3
7 ≤ d ≤ 13
Q(9.8) = 9.8 ≥ 7 ✓ (acceptable)
Q(10.3) = 9.7 ≥ 7 ✓ (acceptable)
At d = 7: Q(7) = 10 - |7-10| = 10 - 3 = 7 ✓
At d = 13: Q(13) = 10 - |13-10| = 10 - 3 = 7 ✓
Acceptable range: 7mm ≤ d ≤ 13mm
Q(9.8) = 9.8 and Q(10.3) = 9.7. The acceptable diameter range is 7mm to 13mm.
• Absolute value inequality: |X| ≤ a ⇒ -a ≤ X ≤ a
• Quality scoring: Higher scores indicate better quality
• Tolerance modeling: Absolute deviation from target determines acceptability
Performance optimization: Finding the input values that maximize or minimize a function
Multi-piece function: A function with different behaviors across different intervals
Since 35 ≤ 40, use first expression: E(35) = 30 mpg
Since 40 < 50 ≤ 60, use second expression: E(50) = -0.5(50) + 50 = -25 + 50 = 25 mpg
Since 70 > 60, use third expression: E(70) = 20 mpg
First piece (s ≤ 40): E(s) = 30 (constant)
Second piece (40 < s ≤ 60): E(s) = -0.5s + 50 is decreasing
At s = 40: E(40) = 30, At s = 60: E(60) = -0.5(60) + 50 = 20
Third piece (s > 60): E(s) = 20 (constant)
Maximum efficiency is 30 mpg at speeds s ≤ 40 mph
E(35) = 30 ✓, E(50) = 25 ✓, E(70) = 20 ✓
Maximum efficiency of 30 mpg occurs at speeds up to 40 mph ✓
Max efficiency: 30 mpg at s ≤ 40 mph
E(35) = 30 mpg, E(50) = 25 mpg, E(70) = 20 mpg. Maximum efficiency of 30 mpg occurs at speeds of 40 mph or less.
• Linear function analysis: Negative slope indicates decreasing function
• Optimization: Compare function values at critical points
• Piecewise evaluation: Use appropriate expression for each interval
Real-world modeling: Using mathematical functions to represent practical scenarios and solve problems
Tiered pricing: A pricing structure with different rates for different usage levels or categories
Absolute deviation: The absolute value of the difference between actual and expected values, representing error or variation
Step function: A piecewise function with constant values over each interval, modeling discrete changes
Threshold effect: A sudden change in behavior or rate when crossing a specific boundary
Optimization: Finding input values that maximize or minimize a function's output
- Scenario analysis: Understand what quantities vary and what remains constant
- Variable definition: Assign appropriate variables to inputs and outputs
- Interval identification: Determine where the behavior changes significantly
- Expression creation: Develop formulas for each distinct behavior
- Condition setting: Define precise ranges for each expression
- Validation: Ensure the function covers all possible inputs without gaps
- Testing: Verify the model with known examples and common sense
• Define domain based on real-world constraints and context
• Ensure intervals are mutually exclusive and collectively exhaustive
• Pay attention to boundary conditions (≤ vs <) for continuity
• Absolute value models distance/deviation from reference value
• Tiered functions: base + rate × (excess beyond threshold)
• Verify that the mathematical model makes practical sense
Questions & Answers
Question: How do I know when to use a piecewise function versus a regular function for modeling?
Answer: Use a piecewise function when the relationship between variables changes at specific thresholds or intervals. Ask yourself:
- Are there different rates/rules for different input ranges? (Yes → piecewise)
- Does the behavior change abruptly at certain values? (Yes → piecewise)
- Is there a single formula that works for all inputs? (No → piecewise)
Examples where piecewise functions are needed:
- Shipping costs: different rates for different weight ranges
- Tax brackets: different rates for different income levels
- Phone plans: base cost plus additional charges for extra usage
Regular functions are used when the relationship is consistent across all inputs.
Question: When solving |x - a| ≤ b, why does it become a - b ≤ x ≤ a + b?
Answer: The absolute value |x - a| represents the distance between x and a on the number line. The inequality |x - a| ≤ b means "the distance from x to a is at most b units."
This distance constraint means x must be within b units of a in either direction:
- Maximum distance to the right: x ≤ a + b
- Maximum distance to the left: x ≥ a - b
Combining these: a - b ≤ x ≤ a + b
Example: |x - 5| ≤ 3 means x is within 3 units of 5, so 2 ≤ x ≤ 8.
This is often called a "tolerance range" in engineering and quality control applications.
Question: How do I handle problems where I need to find the maximum or minimum value of a piecewise function?
Answer: To find extrema of piecewise functions, analyze each piece separately:
- Find the maximum/minimum within each interval
- Compare the values at interval endpoints
- Consider the behavior of each piece (increasing/decreasing)
- Take the overall maximum/minimum from all pieces
For linear pieces:
- If increasing: maximum is at right endpoint, minimum at left endpoint
- If decreasing: maximum is at left endpoint, minimum at right endpoint
For constant pieces: the value is the same throughout the interval
Always check boundary points where the function changes definition, as these can be critical points.