Solved Exercises on Piecewise and Absolute Value Functions in College Algebra

Master piecewise and absolute value functions: definition, graphing, solving equations through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Evaluating piecewise functions
Exercise 1
Given: \(f(x) = \begin{cases} x+1 & \text{if } x < 0 \\ x^2 & \text{if } x \geq 0 \end{cases}\)
Find: \(f(-2)\), \(f(0)\), and \(f(3)\)
Definition:

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

Evaluation method:
  1. Determine which condition the input value satisfies
  2. Use the corresponding expression for that interval
  3. Calculate the result using that expression
For x = -2
Use \(x+1\)
For x = 0
Use \(x^2\)
For x = 3
Use \(x^2\)
Step 1: Evaluate \(f(-2)\)

Since \(-2 < 0\), use the first piece: \(f(-2) = (-2) + 1 = -1\)

Step 2: Evaluate \(f(0)\)

Since \(0 \geq 0\), use the second piece: \(f(0) = (0)^2 = 0\)

Step 3: Evaluate \(f(3)\)

Since \(3 \geq 0\), use the second piece: \(f(3) = (3)^2 = 9\)

\(f(-2) = -1\), \(f(0) = 0\), \(f(3) = 9\)
Final answer:

\(f(-2) = -1\), \(f(0) = 0\), \(f(3) = 9\)

Applied rules:

• Condition checking: Always verify which interval the input belongs to

• Boundary handling: Pay attention to inequality signs at boundary points

• Function evaluation: Substitute the input into the correct expression

2 Graphing absolute value functions
Exercise 2
Graph: \(f(x) = |x - 2| + 1\)
Definition:

Absolute value: \(|a| = \begin{cases} a & \text{if } a \geq 0 \\ -a & \text{if } a < 0 \end{cases}\)

Original function
\(f(x) = |x - 2| + 1\)
Piecewise form
\(\begin{cases} -(x-2)+1 & \text{if } x < 2 \\ (x-2)+1 & \text{if } x \geq 2 \end{cases}\)
Simplified
\(\begin{cases} -x+3 & \text{if } x < 2 \\ x-1 & \text{if } x \geq 2 \end{cases}\)
Step 1: Identify the vertex

The vertex occurs where the expression inside absolute value equals zero: \(x - 2 = 0\), so \(x = 2\)

Step 2: Determine the vertex y-coordinate

\(f(2) = |2 - 2| + 1 = 0 + 1 = 1\), so vertex is at \((2, 1)\)

Step 3: Write the piecewise form

For \(x < 2\): \(f(x) = -(x - 2) + 1 = -x + 3\)
For \(x \geq 2\): \(f(x) = (x - 2) + 1 = x - 1\)

Vertex at (2, 1), V-shaped graph opening upward
Final answer:

The graph is a V-shape with vertex at (2, 1), opening upward

Applied rules:

• Vertex location: For \(f(x) = |x - h| + k\), vertex is at \((h, k)\)

• Transformation: Horizontal shift by \(h\), vertical shift by \(k\)

• Direction: Positive coefficient means V opens upward

3 Solving absolute value equations
Exercise 3
Solve: \(|2x - 3| = 5\)
Definition:

Absolute value equation: If \(|u| = c\) where \(c > 0\), then \(u = c\) or \(u = -c\)

Equation
\(|2x - 3| = 5\)
Two cases
\(2x - 3 = 5\) or \(2x - 3 = -5\)
Solutions
\(x = 4\) or \(x = -1\)
Step 1: Set up two equations

Since \(|2x - 3| = 5\), we have: \(2x - 3 = 5\) OR \(2x - 3 = -5\)

Step 2: Solve the first equation

\(2x - 3 = 5\)
\(2x = 8\)
\(x = 4\)

Step 3: Solve the second equation

\(2x - 3 = -5\)
\(2x = -2\)
\(x = -1\)

Step 4: Verify solutions

Check: \(|2(4) - 3| = |8 - 3| = |5| = 5\) ✓
Check: \(|2(-1) - 3| = |-2 - 3| = |-5| = 5\) ✓

\(x = 4\) or \(x = -1\)
Final answer:

\(x = 4\) or \(x = -1\)

Applied rules:

• Absolute value property: \(|u| = c\) implies \(u = c\) or \(u = -c\)

• Verification: Always check solutions in the original equation

• Number of solutions: Absolute value equations can have 0, 1, or 2 solutions

Piecewise and Absolute Value Functions: Core Concepts
\(f(x) = \begin{cases} g(x) & \text{if } x \in A \\ h(x) & \text{if } x \in B \end{cases}\)
Piecewise Function
Absolute Value
\(|a| = \begin{cases} a & \text{if } a \geq 0 \\ -a & \text{if } a < 0 \end{cases}\)
Distance from zero
Absolute Value Equation
\(|u| = c \Rightarrow u = c \text{ or } u = -c\)
When c > 0
Absolute Value Inequality
\(|u| < c \Rightarrow -c < u < c\)
When c > 0
Absolute Value Inequality
\(|u| > c \Rightarrow u > c \text{ or } u < -c\)
When c > 0
\(f(x) = |x - h| + k\)
Transformed Absolute Value Function
\(\text{Vertex: } (h, k)\)
Vertex Location
\(\text{Domain: } \mathbb{R}, \text{ Range: } [k, \infty)\)
Domain and Range
Solution: Exercises 4 to 5
4 Solving absolute value inequalities
Exercise 4
Solve: \(|x + 4| \leq 3\)
Definition:

Absolute value inequality: \(|u| \leq c\) means \(-c \leq u \leq c\) when \(c > 0\)

Inequality
\(|x + 4| \leq 3\)
Compound inequality
\(-3 \leq x + 4 \leq 3\)
Subtract 4
\(-7 \leq x \leq -1\)
Step 1: Apply the absolute value inequality rule

\(|x + 4| \leq 3\) is equivalent to \(-3 \leq x + 4 \leq 3\)

Step 2: Subtract 4 from all parts

\(-3 - 4 \leq x + 4 - 4 \leq 3 - 4\)

\(-7 \leq x \leq -1\)

Step 3: Write the solution in interval notation

\(x \in [-7, -1]\)

\([-7, -1]\) or \(-7 \leq x \leq -1\)
Final answer:

\(x \in [-7, -1]\)

Applied rules:

• Absolute value inequality: \(|u| \leq c \Rightarrow -c \leq u \leq c\)

• Compound inequality: Apply operations to all parts simultaneously

• Solution format: Express as interval or compound inequality

5 Complex piecewise function
Exercise 5
Given: \(g(x) = \begin{cases} 2x + 1 & \text{if } x < -1 \\ x^2 & \text{if } -1 \leq x < 2 \\ 5 & \text{if } x \geq 2 \end{cases}\)
Find: \(g(-3)\), \(g(0)\), and \(g(2)\)
Definition:

Multi-piece function: A function with three or more distinct pieces, each defined on a specific interval

For x = -3
Use \(2x + 1\)
For x = 0
Use \(x^2\)
For x = 2
Use \(5\)
Step 1: Evaluate \(g(-3)\)

Since \(-3 < -1\), use the first piece: \(g(-3) = 2(-3) + 1 = -6 + 1 = -5\)

Step 2: Evaluate \(g(0)\)

Since \(-1 \leq 0 < 2\), use the second piece: \(g(0) = (0)^2 = 0\)

Step 3: Evaluate \(g(2)\)

Since \(2 \geq 2\), use the third piece: \(g(2) = 5\)

\(g(-3) = -5\), \(g(0) = 0\), \(g(2) = 5\)
Final answer:

\(g(-3) = -5\), \(g(0) = 0\), \(g(2) = 5\)

Applied rules:

• Interval identification: Carefully check which interval each input falls into

• Boundary conditions: Pay attention to inclusive/exclusive inequalities

• Multiple pieces: For complex piecewise functions, work systematically

Comprehensive Guide: Piecewise and Absolute Value Functions
\(f(x) = \begin{cases} g_1(x) & \text{if } x \in D_1 \\ g_2(x) & \text{if } x \in D_2 \\ \vdots & \vdots \\ g_n(x) & \text{if } x \in D_n \end{cases}\)
General Piecewise Function
Key definitions:

Piecewise function: A function defined by multiple sub-functions, each applying to a certain interval of the domain

Absolute value function: A function that outputs the distance of its input from zero on the number line

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

Range: The set of all possible output values of the function

Complete methodology:
  1. Identify intervals: Determine the different intervals where different expressions apply
  2. Locate boundaries: Identify critical points where the function changes definition
  3. Apply correct piece: For each input, determine which interval it belongs to
  4. Calculate result: Evaluate the function using the appropriate expression
  5. Verify continuity: Check if the function is continuous at boundary points (optional)
Tip 1: When graphing piecewise functions, plot each piece separately on its respective interval.
Tip 2: For absolute value equations, always consider both positive and negative cases.
Tip 3: When solving absolute value inequalities, flip the inequality sign for the negative case.
Tip 4: Always verify solutions by substituting back into the original equation or inequality.
Common errors: Misreading inequality signs at boundaries, forgetting to check both cases in absolute value equations, incorrect interval notation.
Exam preparation: Practice identifying which piece to use, master absolute value transformations, understand domain and range for piecewise functions.
Essential rules to remember:

• Absolute value definition: \(|a| = a\) if \(a \geq 0\), \(|a| = -a\) if \(a < 0\)

• Absolute value equation: \(|u| = c \Rightarrow u = c\) or \(u = -c\) (when \(c > 0\))

• Abs. value inequality: \(|u| < c \Rightarrow -c < u < c\), \(|u| > c \Rightarrow u > c\) or \(u < -c\)

• Vertex form: \(f(x) = a|x - h| + k\) has vertex at \((h, k)\)

• Domain: Piecewise functions inherit domain from individual pieces

Exercise with Visualization: Piecewise and Absolute Value Functions
Exercise 6: Comparing Different Functions
Consider the following functions:
\(f_1(x) = |x|\)
\(f_2(x) = |x - 2| + 1\)
\(f_3(x) = \begin{cases} -x & \text{if } x < 0 \\ x & \text{if } x \geq 0 \end{cases}\)

Analysis: The chart compares the behavior of different piecewise and absolute value functions.

  • \(f_1(x) = |x|\) is the basic absolute value function with vertex at origin
  • \(f_2(x) = |x - 2| + 1\) is shifted right by 2 units and up by 1 unit
  • \(f_3(x)\) is the piecewise representation of the absolute value function

Questions & Answers

Question: How do I determine which piece of a piecewise function to use when evaluating a specific input? I often get confused about the boundary conditions.

Answer: This is a common challenge! Here's a systematic approach:

  1. Read the conditions carefully: Look for strict inequalities (<, >) vs. non-strict inequalities (≤, ≥)
  2. Test the input against each condition: Substitute your input value into each condition
  3. Pay attention to boundaries: If your input equals a boundary value, check which piece includes that value

For example, in the function \(f(x) = \begin{cases} x^2 & \text{if } x < 0 \\ 2x & \text{if } x \geq 0 \end{cases}\):

  • To find \(f(0)\), note that \(0 \geq 0\) is true, so use the second piece: \(f(0) = 2(0) = 0\)
  • To find \(f(-0.1)\), note that \(-0.1 < 0\) is true, so use the first piece: \(f(-0.1) = (-0.1)^2 = 0.01\)

Always check the inequality signs at the boundary points to avoid confusion!

Question: Why do absolute value equations sometimes have two solutions, one solution, or no solution? How can I predict this?

Answer: The number of solutions depends on the constant on the right side of the equation:

  • Two solutions: When \(|u| = c\) and \(c > 0\), we get \(u = c\) or \(u = -c\)
  • One solution: When \(|u| = 0\), we get \(u = 0\) (since \(-0 = 0\))
  • No solution: When \(|u| = c\) and \(c < 0\), impossible since absolute value is always non-negative

Examples:

  • \(|x - 3| = 5\) → Two solutions: \(x - 3 = 5\) or \(x - 3 = -5\), so \(x = 8\) or \(x = -2\)
  • \(|x + 2| = 0\) → One solution: \(x + 2 = 0\), so \(x = -2\)
  • \(|x - 1| = -3\) → No solution, since absolute value cannot be negative

Always check the sign of the constant before solving!

Question: How do I graph a piecewise function accurately? I often make mistakes connecting the pieces.

Answer: Here's a systematic approach to graphing piecewise functions:

  1. Graph each piece separately: Draw each sub-function on its respective interval
  2. Mark boundary points: Use filled circles (●) for included endpoints and open circles (○) for excluded endpoints
  3. Verify continuity: Check if the function values match at boundary points

For example, for \(f(x) = \begin{cases} x + 1 & \text{if } x < 2 \\ x^2 & \text{if } x \geq 2 \end{cases}\):

  • For \(x < 2\): graph \(y = x + 1\) with an open circle at \((2, 3)\)
  • For \(x \geq 2\): graph \(y = x^2\) with a filled circle at \((2, 4)\)
  • Note that the function jumps from 3 to 4 at \(x = 2\), indicating a discontinuity

Remember: the function is defined by only one piece at each point in its domain!