Solved Exercises on Piecewise Functions Including Absolute Value in Algebra 1

Master piecewise functions including absolute value: domain, range, graphing, evaluation, and function analysis through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic Absolute Value
Exercise 1
Express f(x) = |x| as a piecewise function and graph it. Then evaluate f(-3) and f(5).
Definition:

Piecewise function: A function defined by different expressions for different intervals of the domain. Each piece applies to a specific range of input values.

Conversion method:
  1. Identify the critical point where the expression inside absolute value equals zero
  2. Define the function for values less than the critical point
  3. Define the function for values greater than or equal to the critical point
  4. Write the piecewise function using bracket notation
Original
f(x) = |x|
Piecewise
f(x) = {-x, x < 0; x, x ≥ 0}
Evaluations
f(-3) = 3, f(5) = 5
Step 1: Identify the critical point

For |x|, the expression inside absolute value is x
x = 0 when x = 0

Step 2: Define for x < 0

When x < 0, |x| = -x
Example: |−3| = -(-3) = 3

Step 3: Define for x ≥ 0

When x ≥ 0, |x| = x
Example: |5| = 5

Step 4: Write the piecewise function

f(x) = { -x, if x < 0
{ x, if x ≥ 0

Step 5: Evaluate f(-3)

Since -3 < 0, use f(x) = -x
f(-3) = -(-3) = 3

Step 6: Evaluate f(5)

Since 5 ≥ 0, use f(x) = x
f(5) = 5

f(x) = {-x if x < 0, x if x ≥ 0}; f(-3) = 3, f(5) = 5
Final answer:

The piecewise function is f(x) = {-x if x < 0, x if x ≥ 0}. Evaluations: f(-3) = 3 and f(5) = 5.

Applied rules:

• Absolute value definition: |x| = -x when x < 0, |x| = x when x ≥ 0

• Critical point: Point where the expression inside absolute value equals zero

• Domain partitioning: Divide domain based on critical point

2 Shifted Absolute Value
Exercise 2
Express f(x) = |x - 2| as a piecewise function. Then evaluate f(0) and f(4).
Definition:

Shifted absolute value: A function of the form |x - h| represents an absolute value function shifted horizontally by h units. The vertex moves from (0, 0) to (h, 0).

Original
f(x) = |x - 2|
Piecewise
f(x) = {-x + 2, x < 2; x - 2, x ≥ 2}
Evaluations
f(0) = 2, f(4) = 2
Step 1: Find the critical point

Set x - 2 = 0
x = 2

Step 2: Define for x < 2

When x < 2, x - 2 < 0, so |x - 2| = -(x - 2) = -x + 2

Step 3: Define for x ≥ 2

When x ≥ 2, x - 2 ≥ 0, so |x - 2| = x - 2

Step 4: Write the piecewise function

f(x) = { -x + 2, if x < 2
{ x - 2, if x ≥ 2

Step 5: Evaluate f(0)

Since 0 < 2, use f(x) = -x + 2
f(0) = -0 + 2 = 2

Step 6: Evaluate f(4)

Since 4 ≥ 2, use f(x) = x - 2
f(4) = 4 - 2 = 2

f(x) = {-x + 2 if x < 2, x - 2 if x ≥ 2}; f(0) = 2, f(4) = 2
Final answer:

The piecewise function is f(x) = {-x + 2 if x < 2, x - 2 if x ≥ 2}. Evaluations: f(0) = 2 and f(4) = 2.

Applied rules:

• Shift identification: |x - h| has critical point at x = h

• Sign determination: Check sign of expression inside absolute value

• Expression evaluation: |x - h| = -(x - h) when x < h, |x - h| = x - h when x ≥ h

3 Multiple Absolute Values
Exercise 3
Express f(x) = |x + 1| + |x - 3| as a piecewise function.
Definition:

Multiple absolute values: A function containing multiple absolute value expressions requires identifying all critical points and analyzing the sign of each expression in different intervals.

Original
f(x) = |x + 1| + |x - 3|
Critical Points
x = -1, x = 3
Piecewise
f(x) = {-2x + 2, x < -1; 4, -1 ≤ x < 3; 2x - 2, x ≥ 3}
Step 1: Identify critical points

For |x + 1|: x + 1 = 0 → x = -1
For |x - 3|: x - 3 = 0 → x = 3

Step 2: Determine intervals

Three intervals: x < -1, -1 ≤ x < 3, x ≥ 3

Step 3: Analyze x < -1

When x < -1: x + 1 < 0 and x - 3 < 0
|x + 1| = -(x + 1) = -x - 1
|x - 3| = -(x - 3) = -x + 3
f(x) = (-x - 1) + (-x + 3) = -2x + 2

Step 4: Analyze -1 ≤ x < 3

When -1 ≤ x < 3: x + 1 ≥ 0 and x - 3 < 0
|x + 1| = x + 1
|x - 3| = -(x - 3) = -x + 3
f(x) = (x + 1) + (-x + 3) = 4

Step 5: Analyze x ≥ 3

When x ≥ 3: x + 1 > 0 and x - 3 ≥ 0
|x + 1| = x + 1
|x - 3| = x - 3
f(x) = (x + 1) + (x - 3) = 2x - 2

Step 6: Write the complete piecewise function

f(x) = { -2x + 2, if x < -1
{ 4, if -1 ≤ x < 3
{ 2x - 2, if x ≥ 3

f(x) = {-2x + 2 if x < -1, 4 if -1 ≤ x < 3, 2x - 2 if x ≥ 3}
Final answer:

The piecewise function is f(x) = {-2x + 2 if x < -1, 4 if -1 ≤ x < 3, 2x - 2 if x ≥ 3}.

Applied rules:

• Multiple critical points: Each absolute value expression contributes a critical point

• Interval analysis: Determine sign of each expression in each interval

• Combination: Sum results from each absolute value expression

Rules and methods, laws,...
\(f(x) = |x - a| = \begin{cases} -(x - a), & \text{if } x < a \\ x - a, & \text{if } x \geq a \end{cases}\)
Absolute Value as Piecewise Function
Critical Point
x = a for |x - a|
Where expression equals zero
Sign Analysis
Positive/negative in intervals
Determine absolute value result
Interval Division
Based on critical points
Define function for each part
Key definitions:

Piecewise function: A function defined by different expressions over different intervals of the domain.

Critical point: The value of x where the expression inside the absolute value equals zero. This is where the behavior of the absolute value changes.

Domain partitioning: Dividing the domain into intervals based on critical points to define the piecewise function.

Sign analysis: Determining whether the expression inside the absolute value is positive or negative in each interval.

Continuity: Piecewise functions may or may not be continuous at the boundaries between pieces.

Domain: The set of all possible input values for which the function is defined.

Range: The set of all possible output values the function can produce.

Complete conversion methodology:
  1. Identify all critical points: Set expressions inside absolute values to zero
  2. Order critical points: Arrange from smallest to largest
  3. Define intervals: Create intervals based on critical points
  4. Analyze each interval: Determine sign of each expression in each interval
  5. Define function pieces: Apply absolute value definition in each interval
  6. Combine pieces: Write complete piecewise function
  7. Verify continuity: Check if function is continuous at boundaries
Tip 1: Always identify critical points first - these are where the function behavior changes.
Tip 2: Test a value in each interval to confirm the sign of expressions.
Tip 3: When x - a < 0, |x - a| = -(x - a); when x - a ≥ 0, |x - a| = x - a.
Tip 4: For multiple absolute values, consider all possible combinations of signs.
Common errors: Misidentifying critical points, incorrect sign analysis, missing intervals, wrong expression simplification, not including boundary points correctly.
Exam preparation: Practice with different shifts, master sign analysis, understand interval notation, verify function values.
Solution: Exercises 4 to 5
4 Complex Piecewise
Exercise 4
Given f(x) = {2x + 1 if x < 0, |x - 1| if x ≥ 0}, express the entire function as a single piecewise function and evaluate f(-2), f(0), and f(3).
Definition:

Hybrid piecewise function: A function that combines different types of expressions, including absolute values, in different intervals of the domain.

Original
f(x) = {2x + 1 if x < 0, |x - 1| if x ≥ 0}
Expanded
f(x) = {2x + 1, x < 0; -x + 1, 0 ≤ x < 1; x - 1, x ≥ 1}
Evaluations
f(-2) = -3, f(0) = 1, f(3) = 2
Step 1: Analyze the first piece

For x < 0: f(x) = 2x + 1 (already simplified)

Step 2: Analyze the second piece |x - 1| for x ≥ 0

Within x ≥ 0, we need to consider |x - 1|:
Critical point: x - 1 = 0 → x = 1
For 0 ≤ x < 1: x - 1 < 0, so |x - 1| = -(x - 1) = -x + 1
For x ≥ 1: x - 1 ≥ 0, so |x - 1| = x - 1

Step 3: Combine into single piecewise function

f(x) = { 2x + 1, if x < 0
{ -x + 1, if 0 ≤ x < 1
{ x - 1, if x ≥ 1

Step 4: Evaluate f(-2)

Since -2 < 0, use f(x) = 2x + 1
f(-2) = 2(-2) + 1 = -4 + 1 = -3

Step 5: Evaluate f(0)

Since 0 ≤ 0 < 1, use f(x) = -x + 1
f(0) = -0 + 1 = 1

Step 6: Evaluate f(3)

Since 3 ≥ 1, use f(x) = x - 1
f(3) = 3 - 1 = 2

f(x) = {2x + 1 if x < 0, -x + 1 if 0 ≤ x < 1, x - 1 if x ≥ 1}
Final answer:

The expanded piecewise function is f(x) = {2x + 1 if x < 0, -x + 1 if 0 ≤ x < 1, x - 1 if x ≥ 1}. Evaluations: f(-2) = -3, f(0) = 1, f(3) = 2.

Applied rules:

• Subdivision: Break down complex pieces into simpler intervals

• Domain restriction: Consider the original domain constraints

• Sequential analysis: Work from outermost to innermost expressions

5 Application Problem
Exercise 5
A taxi company charges $2 per mile for the first 5 miles, then $1.50 per mile for additional miles. Express the cost function C(x) as a piecewise function where x is the number of miles traveled.
Definition:

Application piecewise function: A function that models real-world scenarios with different rates, prices, or behaviors in different intervals.

Scenario
$2/mile first 5 miles, $1.50/mile after
Function
C(x) = {2x, 0 ≤ x ≤ 5; 10 + 1.5(x - 5), x > 5}
Simplified
C(x) = {2x, 0 ≤ x ≤ 5; 1.5x + 2.5, x > 5}
Step 1: Identify the intervals

0 ≤ x ≤ 5: First 5 miles (inclusive)
x > 5: Additional miles beyond 5

Step 2: Define cost for 0 ≤ x ≤ 5

Cost = $2 per mile × x miles = 2x

Step 3: Define cost for x > 5

First 5 miles: $2 × 5 = $10
Additional miles: (x - 5) miles at $1.50 per mile = 1.5(x - 5)
Total: 10 + 1.5(x - 5) = 10 + 1.5x - 7.5 = 1.5x + 2.5

Step 4: Write the complete function

C(x) = { 2x, if 0 ≤ x ≤ 5
{ 1.5x + 2.5, if x > 5

Step 5: Verify continuity at x = 5

At x = 5: 2(5) = 10 and 1.5(5) + 2.5 = 7.5 + 2.5 = 10 ✓

Step 6: Test with examples

For 3 miles: C(3) = 2(3) = $6
For 7 miles: C(7) = 1.5(7) + 2.5 = $13

C(x) = {2x if 0 ≤ x ≤ 5, 1.5x + 2.5 if x > 5}
Final answer:

The cost function is C(x) = {2x if 0 ≤ x ≤ 5, 1.5x + 2.5 if x > 5}.

Applied rules:

• Rate changes: Different pricing tiers create piecewise functions

• Accumulated cost: Previous tier costs plus current tier costs

• Continuity check: Verify function values match at transition points

Piecewise Functions Including Absolute Value: Comprehensive Summary
\(f(x) = |x - a| = \begin{cases} -(x - a), & \text{if } x < a \\ x - a, & \text{if } x \geq a \end{cases}\)
Absolute Value Piecewise Conversion
Key definitions:

Piecewise function: A function defined by different expressions for different intervals of the domain. Each piece applies to a specific subset of the domain.

Critical point: The value of x where the expression inside an absolute value equals zero. This determines where the function behavior changes.

Domain partitioning: The process of dividing the domain into intervals based on critical points to define the piecewise function.

Sign analysis: Determining the sign of expressions inside absolute values in different intervals to properly remove absolute value notation.

Continuity: A function is continuous if there are no jumps or breaks in its graph. Piecewise functions may be continuous or discontinuous at boundary points.

Interval notation: A way to represent subsets of real numbers using inequalities, parentheses, and brackets.

Function evaluation: Determining the output value by identifying which piece of the function applies to the given input.

Complete analysis procedure:
  1. Identify all absolute value expressions: Locate each |expression| in the function
  2. Find critical points: Set each expression inside absolute values to zero and solve for x
  3. Order critical points: Arrange critical points from smallest to largest
  4. Create intervals: Define intervals based on critical points (including infinity if needed)
  5. Perform sign analysis: Determine the sign of each expression in each interval
  6. Remove absolute values: Apply |x| = -x if x < 0, |x| = x if x ≥ 0 in each interval
  7. Combine expressions: Simplify the function in each interval
  8. Write piecewise function: Express the function using bracket notation
  9. Verify continuity: Check if the function is continuous at boundary points
Tip 1: Always test a value in each interval to confirm your sign analysis.
Tip 2: Critical points are where function behavior changes, not necessarily where the function equals zero.
Tip 3: For |x - a|, the critical point is x = a, not x = -a.
Tip 4: Include boundary points consistently (use ≤ or ≥ for closed intervals).
Tip 5: Verify your piecewise function by evaluating the same input using both original and piecewise forms.
Common error patterns: Incorrect critical point identification, wrong sign determination, missing intervals, improper boundary inclusion, algebraic simplification errors.
Key concepts to remember: Critical points determine intervals, sign analysis removes absolute values, boundary consistency is crucial, verification confirms accuracy.
Important rules:

• Absolute value definition: |x| = -x when x < 0, |x| = x when x ≥ 0

• Critical point rule: For |x - a|, critical point is x = a

• Sign determination: Check expression sign in each interval

• Interval creation: Use critical points to divide the domain

• Boundary inclusion: Use consistent inequality symbols at transition points

Questions & Answers

Question: How do I know which piece of a piecewise function to use when evaluating?

Answer: To determine which piece to use:

  1. Identify the input value: Look at the x-value you're evaluating
  2. Check each condition: Test which interval condition your x-value satisfies
  3. Use the corresponding expression: Apply the formula for that specific interval

For example, if f(x) = {x² if x < 2, 2x + 1 if x ≥ 2}:

  • To find f(1): Since 1 < 2, use x² → f(1) = 1² = 1
  • To find f(3): Since 3 ≥ 2, use 2x + 1 → f(3) = 2(3) + 1 = 7

Always check the inequality conditions carefully, paying attention to whether endpoints are included (≤, ≥) or excluded (<, >).

Question: Why do we need to consider the critical point when converting absolute value to piecewise form?

Answer: The critical point is essential because it's where the behavior of the absolute value changes:

Before the critical point:

  • The expression inside absolute value is negative
  • So |x - a| = -(x - a) = -x + a
  • Example: For |x - 3| when x = 1, we have |1 - 3| = |-2| = -(-2) = 2

At and after the critical point:

  • The expression inside absolute value is non-negative
  • So |x - a| = x - a
  • Example: For |x - 3| when x = 5, we have |5 - 3| = |2| = 2

The critical point (where x - a = 0) separates these two different behaviors, making it the natural boundary for our piecewise function.

Question: How do I handle piecewise functions with multiple absolute values?

Answer: For functions with multiple absolute values, follow this systematic approach:

  1. Find all critical points: Set each absolute value expression to zero
  2. Arrange in order: Order all critical points from smallest to largest
  3. Create intervals: Use the critical points to divide the number line
  4. Analyze each interval: Determine the sign of each expression in each interval
  5. Combine results: Sum the contributions from each absolute value

For example, with f(x) = |x + 2| + |x - 1|:

  • Critical points: x = -2 and x = 1
  • Intervals: x < -2, -2 ≤ x < 1, x ≥ 1
  • For each interval, determine sign of (x + 2) and (x - 1), then apply absolute value definition

The key is to consider all possible combinations of signs across all absolute value expressions.