Applications in Real-World Problems | Absolute Value & Piecewise Functions

Master real-world applications of absolute value and piecewise functions: business, finance, physics, and practical scenarios with detailed solutions.

Solution: Exercises 1 to 3
1 Shipping Cost Model
Exercise 1
A shipping company charges $5 for packages weighing up to 2 lbs, $8 for packages between 2 and 5 lbs, and $12 for packages over 5 lbs. Write a piecewise function for the cost C(w) where w is the weight in pounds. Find the cost for a 3.5 lb package.
Definition:

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

Modeling method:
  1. Identify the different input ranges and corresponding outputs
  2. Write the function with appropriate conditions
  3. Ensure intervals are mutually exclusive and collectively exhaustive
  4. Use the function to evaluate specific inputs
Function
C(w) = {5 if w≤2, 8 if 2<w≤5, 12 if w>5}
Evaluate
C(3.5)
Result
C(3.5) = $8
Step 1: Identify the cost structure

Weight up to 2 lbs: $5

Weight between 2 and 5 lbs: $8

Weight over 5 lbs: $12

Step 2: Write the piecewise function

C(w) = {5 if w ≤ 2, 8 if 2 < w ≤ 5, 12 if w > 5}

Step 3: Evaluate for w = 3.5

Since 2 < 3.5 ≤ 5, we use the second expression

C(3.5) = 8

Step 4: Verify the result

A 3.5 lb package weighs between 2 and 5 lbs, so it costs $8 ✓

C(3.5) = $8
Final answer:

The cost for a 3.5 lb package is $8.

Applied rules:

• 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

Tip: Always define the domain (weight must be positive) when modeling real-world functions.
Common mistake: Forgetting to include boundary points in the correct interval.
2 Temperature Deviation
Exercise 2
The ideal room temperature is 72°F. The comfort level is measured as the absolute deviation from this ideal: C(t) = |t - 72| where t is the actual temperature. Find the comfort level when the temperature is 68°F and 75°F. What temperature gives a comfort level of 4?
Definition:

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

Function
C(t) = |t - 72|
Evaluate
C(68), C(75)
Solve
C(t) = 4
Step 1: Evaluate C(68)

C(68) = |68 - 72| = |-4| = 4

Step 2: Evaluate C(75)

C(75) = |75 - 72| = |3| = 3

Step 3: Solve C(t) = 4

|t - 72| = 4

t - 72 = 4 or t - 72 = -4

t = 76 or t = 68

Step 4: Verify results

C(68) = |68 - 72| = 4 ✓

C(75) = |75 - 72| = 3 ✓

Temperatures 68°F and 76°F both give comfort level 4 ✓

C(68) = 4, C(75) = 3
Comfort level of 4 occurs at 68°F or 76°F
Final answer:

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.

Applied rules:

• 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

Tip: Absolute value equations often have two solutions that are symmetric around the reference value.
Common mistake: Forgetting that |X| = a has two solutions: X = a and X = -a.
3 Phone Plan Costs
Exercise 3
A phone plan costs $30 for up to 500 minutes, then $0.25 per minute for additional minutes. Write a piecewise function P(m) for the monthly cost where m is minutes used. Find the cost for 650 minutes.
Definition:

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)

Function
P(m) = {30 if m≤500, 30+0.25(m-500) if m>500}
Evaluate
P(650)
Result
P(650) = $67.50
Step 1: Identify the pricing structure

Up to 500 minutes: $30 flat rate

Over 500 minutes: $30 + $0.25 per additional minute

Step 2: Write the piecewise function

P(m) = {30 if m ≤ 500, 30 + 0.25(m - 500) if m > 500}

Step 3: Evaluate for m = 650

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

Step 4: Verify the result

Base cost: $30, Additional minutes: 150, Additional cost: 150 × $0.25 = $37.50

Total: $30 + $37.50 = $67.50 ✓

P(650) = $67.50
Final answer:

The cost for 650 minutes is $67.50.

Applied rules:

• 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

Tip: For tiered pricing, the excess portion is calculated as (actual - threshold).
Common mistake: Calculating the incremental cost on the full amount instead of just the excess.
Real-World Application Models
\(C(x) = \begin{cases} \text{base cost} & \text{if } x \leq \text{threshold} \\ \text{base} + \text{rate} \times (x - \text{threshold}) & \text{if } x > \text{threshold} \end{cases}\)
Tiered Pricing Model
Absolute Deviation
\( D = |x - \text{target}| \)
Distance from target
Step Function
\( f(x) = c_i \text{ for } x \in [a_i, b_i) \)
Constant values per interval
Error Bound
\( |x - a| < \epsilon \)
Tolerance range
Key definitions:

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

Complete modeling procedure:
  1. Understand the scenario: Identify what varies and what stays constant
  2. Define variables: Assign letters to inputs and outputs
  3. Identify intervals: Determine where the behavior changes
  4. Write expressions: Create formulas for each interval
  5. Set conditions: Define the range for each expression
  6. Verify completeness: Ensure all possible inputs are covered
  7. Test with examples: Validate the function with known values
Tip 1: Always consider the domain restrictions in real-world contexts (e.g., weight must be positive).
Tip 2: Pay attention to boundary points in piecewise functions to avoid gaps or overlaps.
Tip 3: Absolute value functions often model "distance" or "deviation" from a reference point.
Tip 4: Draw sketches to visualize the function's behavior before writing equations.
Common errors: Misinterpreting boundary conditions, incorrect interval notation, forgetting domain restrictions, algebraic mistakes in piecewise evaluation.
Success strategies: Practice with diverse real-world scenarios, understand the context before modeling, verify results with common sense checks.
Essential modeling rules:

• 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

Solution: Exercises 4 to 5
4 Quality Control
Exercise 4
A manufacturing process produces bolts with a target diameter of 10mm. The quality score is defined as Q(d) = 10 - |d - 10| where d is the actual diameter. Bolts with Q(d) ≥ 7 are acceptable. What diameter range is acceptable? Find Q(9.8) and Q(10.3).
Definition:

Quality control function: A function that measures how well a product meets specifications

Tolerance range: The acceptable range of deviation from a target value

Function
Q(d) = 10 - |d - 10|
Evaluate
Q(9.8), Q(10.3)
Solve
Q(d) ≥ 7
Step 1: Evaluate Q(9.8)

Q(9.8) = 10 - |9.8 - 10| = 10 - |-0.2| = 10 - 0.2 = 9.8

Step 2: Evaluate Q(10.3)

Q(10.3) = 10 - |10.3 - 10| = 10 - |0.3| = 10 - 0.3 = 9.7

Step 3: Find acceptable range (Q(d) ≥ 7)

10 - |d - 10| ≥ 7

-|d - 10| ≥ -3

|d - 10| ≤ 3

-3 ≤ d - 10 ≤ 3

7 ≤ d ≤ 13

Step 4: Verify results

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 ✓

Q(9.8) = 9.8, Q(10.3) = 9.7
Acceptable range: 7mm ≤ d ≤ 13mm
Final answer:

Q(9.8) = 9.8 and Q(10.3) = 9.7. The acceptable diameter range is 7mm to 13mm.

Applied rules:

• Absolute value inequality: |X| ≤ a ⇒ -a ≤ X ≤ a

• Quality scoring: Higher scores indicate better quality

• Tolerance modeling: Absolute deviation from target determines acceptability

Tip: When solving |X| ≤ a, rewrite as -a ≤ X ≤ a to eliminate absolute value.
Common mistake: Forgetting to flip inequality signs when multiplying by negative numbers.
5 Fuel Efficiency
Exercise 5
A car's fuel efficiency E (mpg) depends on speed s (mph) according to: E(s) = {30 if s ≤ 40, -0.5s + 50 if 40 < s ≤ 60, 20 if s > 60}. Find E(35), E(50), and E(70). At what speeds is efficiency maximized?
Definition:

Performance optimization: Finding the input values that maximize or minimize a function

Multi-piece function: A function with different behaviors across different intervals

Function
E(s) = {30 if s≤40, -0.5s+50 if 40<s≤60, 20 if s>60}
Evaluate
E(35), E(50), E(70)
Maximize
Find max E(s)
Step 1: Evaluate E(35)

Since 35 ≤ 40, use first expression: E(35) = 30 mpg

Step 2: Evaluate E(50)

Since 40 < 50 ≤ 60, use second expression: E(50) = -0.5(50) + 50 = -25 + 50 = 25 mpg

Step 3: Evaluate E(70)

Since 70 > 60, use third expression: E(70) = 20 mpg

Step 4: Find maximum efficiency

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

Step 5: Verify results

E(35) = 30 ✓, E(50) = 25 ✓, E(70) = 20 ✓

Maximum efficiency of 30 mpg occurs at speeds up to 40 mph ✓

E(35) = 30 mpg, E(50) = 25 mpg, E(70) = 20 mpg
Max efficiency: 30 mpg at s ≤ 40 mph
Final answer:

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.

Applied rules:

• Linear function analysis: Negative slope indicates decreasing function

• Optimization: Compare function values at critical points

• Piecewise evaluation: Use appropriate expression for each interval

Tip: For optimization, compare function values at interval endpoints and analyze trends within intervals.
Common mistake: Assuming the maximum occurs at the highest point of a linear segment without checking all intervals.
Comprehensive Summary: Real-World Applications
\(f(x) = \begin{cases} \text{expression}_1 & \text{if } \text{condition}_1 \\ \text{expression}_2 & \text{if } \text{condition}_2 \end{cases}\)
Piecewise Function
Key definitions:

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

Complete modeling methodology:
  1. Scenario analysis: Understand what quantities vary and what remains constant
  2. Variable definition: Assign appropriate variables to inputs and outputs
  3. Interval identification: Determine where the behavior changes significantly
  4. Expression creation: Develop formulas for each distinct behavior
  5. Condition setting: Define precise ranges for each expression
  6. Validation: Ensure the function covers all possible inputs without gaps
  7. Testing: Verify the model with known examples and common sense
Tip 1: Always consider real-world constraints when defining the domain (e.g., non-negative values for physical quantities).
Tip 2: Pay careful attention to boundary points to avoid gaps or overlaps in piecewise functions.
Tip 3: Absolute value functions often model "distance from ideal" or "error magnitude."
Tip 4: Draw diagrams or graphs to visualize the function's behavior before solving.
Common errors: Misinterpreting boundary conditions, incorrect interval notation, forgetting domain restrictions, algebraic mistakes in piecewise evaluation, misapplying absolute value properties.
Success strategies: Practice with diverse real-world scenarios, understand the context before modeling, verify results with common sense checks, pay attention to units and dimensions.
Essential modeling rules:

• 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

\(|x - a| \leq b \Rightarrow a - b \leq x \leq a + b\)
Tolerance Range
Memory aids: Think of piecewise functions as "different rules for different zones" and absolute value as "distance from center point."
Real-world applications: Tax brackets, shipping costs, phone plans, utility rates, insurance premiums, performance metrics, quality control, error analysis.

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:

  1. Find the maximum/minimum within each interval
  2. Compare the values at interval endpoints
  3. Consider the behavior of each piece (increasing/decreasing)
  4. 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.