Solved Exercises on Piecewise Functions in Modeling in Algebra 2

Master piecewise functions: domain, range, continuity, applications, and graphing techniques through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic Piecewise Function
Exercise 1
Evaluate the piecewise function:
\(f(x) = \begin{cases} 2x + 1 & \text{if } x < 0 \\ x^2 & \text{if } x \geq 0 \end{cases}\)
Find f(-3), f(0), and f(2).
Definition:

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

Evaluation method:
  1. Identify which condition the input value satisfies
  2. Select the corresponding sub-function
  3. Evaluate the sub-function at the given input
For x = -3
Since -3 < 0
Use
2x + 1
Step 1: Identify the condition for x = -3

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

Step 2: Substitute x = -3 into 2x + 1

f(-3) = 2(-3) + 1 = -6 + 1 = -5

Step 3: Repeat for x = 0

Since 0 ≥ 0, we use the second piece: f(x) = x²

f(0) = 0² = 0

Step 4: Repeat for x = 2

Since 2 ≥ 0, we use the second piece: f(x) = x²

f(2) = 2² = 4

f(-3) = -5, f(0) = 0, f(2) = 4
Final answer:

f(-3) = -5, f(0) = 0, f(2) = 4

Applied rules:

Domain checking: Always verify which condition applies

Function selection: Use the correct sub-function for the given input

Substitution: Carefully substitute values to avoid calculation errors

2 Graphing Piecewise Function
Exercise 2
Graph the piecewise function:
\(g(x) = \begin{cases} -x + 3 & \text{if } x < 1 \\ 2 & \text{if } x = 1 \\ x - 1 & \text{if } x > 1 \end{cases}\)
Definition:

Graphing piecewise functions: Plot each sub-function over its specified domain, being careful with open/closed circles at boundary points.

For x < 1
Linear: -x + 3
At x = 1
Point: (1, 2)
For x > 1
Linear: x - 1
Step 1: Graph y = -x + 3 for x < 1

This is a line with slope -1 and y-intercept 3. Since x < 1, we draw it for values less than 1, ending with an open circle at (1, 2).

Step 2: Plot the point at x = 1

According to the definition, g(1) = 2, so we plot the point (1, 2) with a closed circle.

Step 3: Graph y = x - 1 for x > 1

This is a line with slope 1 and y-intercept -1. We start drawing from x > 1, beginning with an open circle at (1, 0).

Step 4: Verify continuity at x = 1

Left limit: lim(x→1⁻) g(x) = -1 + 3 = 2

Right limit: lim(x→1⁺) g(x) = 1 - 1 = 0

Since left limit ≠ right limit, the function has a jump discontinuity at x = 1.

The graph consists of two rays and one isolated point, with a jump discontinuity at x = 1.
Final answer:

The function has a jump discontinuity at x = 1. Domain: (-∞, ∞). Range: (-∞, 2] ∪ (0, ∞).

Applied rules:

Open vs Closed Circles: Open circle indicates exclusion, closed circle indicates inclusion

Domain Restriction: Only graph each piece where its condition is satisfied

Continuity Check: Compare left and right limits at boundary points

3 Real-World Application
Exercise 3
A taxi company charges $2.50 per mile for the first 5 miles and $1.80 per mile thereafter. Write a piecewise function C(m) for the cost of traveling m miles, and find C(3), C(5), and C(8).
Definition:

Real-world piecewise functions: Used to model situations where different rules apply to different ranges of input values.

For m ≤ 5
Cost: 2.50m
For m > 5
Cost: 12.50 + 1.80(m-5)
Step 1: Define the pieces based on conditions

For m ≤ 5: Cost = $2.50 × m

For m > 5: Cost = First 5 miles ($2.50 × 5 = $12.50) + remaining miles ($1.80 × (m-5))

Step 2: Write the complete function

C(m) = {2.50m if 0 ≤ m ≤ 5, 12.50 + 1.80(m-5) if m > 5}

Step 3: Calculate C(3)

Since 3 ≤ 5, use C(m) = 2.50m

C(3) = 2.50 × 3 = $7.50

Step 4: Calculate C(5)

Since 5 ≤ 5, use C(m) = 2.50m

C(5) = 2.50 × 5 = $12.50

Step 5: Calculate C(8)

Since 8 > 5, use C(m) = 12.50 + 1.80(m-5)

C(8) = 12.50 + 1.80(8-5) = 12.50 + 1.80(3) = 12.50 + 5.40 = $17.90

C(3) = $7.50, C(5) = $12.50, C(8) = $17.90
Final answer:

C(m) = {2.50m if 0 ≤ m ≤ 5, 12.50 + 1.80(m-5) if m > 5}

C(3) = $7.50, C(5) = $12.50, C(8) = $17.90

Applied rules:

Modeling: Break complex problems into simpler parts

Boundary conditions: Be precise about which intervals include endpoints

Unit consistency: Ensure all calculations use consistent units

Key Concepts: Definitions, Rules, and Methods
\(f(x) = \begin{cases} f_1(x) & \text{if } x \in D_1 \\ f_2(x) & \text{if } x \in D_2 \\ \vdots & \vdots \\ f_n(x) & \text{if } x \in D_n \end{cases}\)
General Form of Piecewise Function
Key definitions:

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

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

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

Continuity: A function is continuous at a point if the left limit equals the right limit equals the function value

Solution methodology:
  1. Identify the pieces: Determine all sub-functions and their domains
  2. Check boundaries: Note whether boundary points are included (≤, ≥) or excluded (<, >)
  3. Apply the correct rule: For any input, determine which condition it satisfies
  4. Verify continuity: At boundary points, check if left and right limits match
Tip 1: Always read the conditions carefully. Pay attention to whether endpoints are included or excluded.
Tip 2: In graphing, use closed circles for included endpoints and open circles for excluded endpoints.
Tip 3: For real-world applications, always check if your answer makes practical sense.
Tip 4: When evaluating, substitute the input value into the correct piece of the function.
Common errors: Using the wrong piece of the function, forgetting to consider boundary points, incorrect inequality symbols.
Exam preparation: Practice identifying domains, evaluating at boundary points, and graphing with correct circle types.
Essential rules to remember:

Domain checking: Always determine which condition applies to your input

Function evaluation: Substitute into the correct sub-function

Graphing: Use closed circles for included points, open circles for excluded points

Continuity: lim(x→a⁻) f(x) = lim(x→a⁺) f(x) = f(a) for continuity at point a

Real-world applications: Interpret results in context of the problem

\(f(x) = |x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}\)
Absolute Value as Piecewise Function
\(f(x) = \lfloor x \rfloor = \text{greatest integer} \leq x\)
Floor Function (Step Function)
\(f(x) = \begin{cases} c & \text{if } a \leq x \leq b \\ 0 & \text{otherwise} \end{cases}\)
Step/Pulse Function
Solution: Exercises 4 to 5
4 Domain and Range Analysis
Exercise 4
Find the domain and range of:
\(h(x) = \begin{cases} \sqrt{x} & \text{if } 0 \leq x \leq 4 \\ 2x - 4 & \text{if } x > 4 \end{cases}\)
Definition:

Domain: Set of all possible input values. Range: Set of all possible output values.

Domain
[0, 4] ∪ (4, ∞)
Range
[0, 2] ∪ (4, ∞)
Step 1: Analyze the first piece (0 ≤ x ≤ 4)

For h(x) = √x on [0, 4]:

Domain contribution: [0, 4]

Range: When x = 0, h(0) = √0 = 0; when x = 4, h(4) = √4 = 2

Since √x is increasing, the range for this piece is [0, 2]

Step 2: Analyze the second piece (x > 4)

For h(x) = 2x - 4 on (4, ∞):

Domain contribution: (4, ∞)

Range: As x approaches 4 from the right, h(x) approaches 2(4) - 4 = 4

As x increases without bound, h(x) also increases without bound

So the range for this piece is (4, ∞)

Step 3: Combine the domains and ranges

Complete domain: [0, 4] ∪ (4, ∞) = [0, ∞)

Complete range: [0, 2] ∪ (4, ∞)

Note: There's a gap in the range from 2 to 4 (not inclusive)

Step 4: Check continuity at x = 4

Left limit: lim(x→4⁻) h(x) = √4 = 2

Right limit: lim(x→4⁺) h(x) = 2(4) - 4 = 4

Since left limit ≠ right limit, there's a jump discontinuity at x = 4

Domain: [0, ∞), Range: [0, 2] ∪ (4, ∞)
Final answer:

Domain: [0, ∞)

Range: [0, 2] ∪ (4, ∞)

Jump discontinuity at x = 4

Applied rules:

Domain combination: Union of all individual domains

Range analysis: Consider behavior at interval endpoints

Continuity check: Compare limits at boundary points

5 Complex Piecewise Function
Exercise 5
Given:
\(p(x) = \begin{cases} x^2 & \text{if } x < -1 \\ 2 & \text{if } -1 \leq x < 1 \\ x + 1 & \text{if } x \geq 1 \end{cases}\)
Find p(-2), p(-1), p(0.5), p(1), and p(3). Also, determine the domain and range.
Definition:

Multi-piece function: A function with three or more sub-functions, each applying to distinct intervals.

Evaluations
p(-2)=4, p(-1)=2, p(0.5)=2
More evaluations
p(1)=2, p(3)=4
Domain & Range
D: ℝ, R: [0,∞)
Step 1: Evaluate p(-2)

Since -2 < -1, use p(x) = x²

p(-2) = (-2)² = 4

Step 2: Evaluate p(-1)

Since -1 ≤ -1 < 1, use p(x) = 2

p(-1) = 2

Step 3: Evaluate p(0.5)

Since -1 ≤ 0.5 < 1, use p(x) = 2

p(0.5) = 2

Step 4: Evaluate p(1)

Since 1 ≥ 1, use p(x) = x + 1

p(1) = 1 + 1 = 2

Step 5: Evaluate p(3)

Since 3 ≥ 1, use p(x) = x + 1

p(3) = 3 + 1 = 4

Step 6: Determine domain

All real numbers are covered: (-∞, -1) ∪ [-1, 1) ∪ [1, ∞) = ℝ

Step 7: Determine range

For x < -1: p(x) = x² produces values in (1, ∞)

For -1 ≤ x < 1: p(x) = 2 (constant)

For x ≥ 1: p(x) = x + 1 produces values in [2, ∞)

Combined range: {2} ∪ (1, ∞) = [1, ∞) (since 2 ∈ [2, ∞) and (1, ∞) ∪ [2, ∞) = [1, ∞))

Wait, let me recalculate: x² for x < -1 gives (1, ∞), constant 2 for [-1,1), and x+1 for [1,∞) gives [2,∞). Combined: {2} ∪ (1,∞) ∪ [2,∞) = [1,∞).

p(-2)=4, p(-1)=2, p(0.5)=2, p(1)=2, p(3)=4; Domain: ℝ, Range: [1, ∞)
Final answer:

p(-2) = 4, p(-1) = 2, p(0.5) = 2, p(1) = 2, p(3) = 4

Domain: (-∞, ∞) or ℝ

Range: [1, ∞)

Applied rules:

Multiple pieces: Carefully identify which condition applies to each input

Range determination: Analyze each piece separately then combine results

Interval notation: Pay attention to open and closed brackets

Piecewise Functions: Complete Guide
\(f(x) = \begin{cases} f_1(x) & \text{if } x \in D_1 \\ f_2(x) & \text{if } x \in D_2 \\ \vdots & \vdots \\ f_n(x) & \text{if } x \in D_n \end{cases}\)
General Form of Piecewise Function
Key definitions:

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

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

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

Continuity: A function is continuous at a point if the left-hand limit equals the right-hand limit and both equal the function value.

Complete methodology:
  1. Analyze the function structure: Identify all pieces and their domains
  2. Check domain boundaries: Note whether endpoints are included or excluded
  3. Apply evaluation rules: For any input, determine which piece applies
  4. Verify continuity: At boundary points, compare left and right limits
  5. Determine domain and range: Combine results from all pieces
Tip 1: Always check inequality symbols (≤, ≥ vs <, >) when determining which piece to use.
Tip 2: In graphing, use closed circles (●) for included endpoints and open circles (○) for excluded endpoints.
Tip 3: When finding range, analyze each piece separately and then combine the results.
Tip 4: For real-world applications, always interpret your mathematical results in practical context.
Common errors: Using the wrong piece of function, ignoring boundary conditions, misinterpreting inequality symbols.
Exam preparation: Practice graphing with correct circle types, evaluating at boundary points, and finding domains/ranges.
Essential formulas and rules:

Domain identification: Union of all individual piece domains

Function evaluation: Always use the piece corresponding to the input value

Continuity check: lim(x→a⁻) f(x) = lim(x→a⁺) f(x) = f(a)

Graphing convention: Closed circle (●) for included, open circle (○) for excluded

Range determination: Union of all individual piece ranges

\(f(x) = |x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}\)
Absolute Value as Piecewise Function
\(f(x) = \lfloor x \rfloor = \text{greatest integer} \leq x\)
Floor Function (Step Function)
\(f(x) = \begin{cases} c & \text{if } a \leq x \leq b \\ 0 & \text{otherwise} \end{cases}\)
Step/Pulse Function
Common applications:

Tax brackets: Different tax rates apply to different income levels

Shipping costs: Flat rate up to a weight threshold, then per-unit rate

Utility pricing: Tiered pricing based on consumption levels

Physics: Velocity changes at specific time intervals

Problem-solving strategies:
  1. Read carefully: Identify all conditions and intervals
  2. Organize: List each piece with its domain
  3. Visualize: Sketch the function if possible
  4. Verify: Check your answers make sense
Key note: The domain of a piecewise function is the union of all the individual piece domains.
Key note: At boundary points, check if the function is continuous by comparing left and right limits.

Questions & Answers

Question: I'm confused about when to use open circles versus closed circles when graphing piecewise functions. Can you clarify the rule?

Answer: The rule is straightforward but critical for accuracy:

  • Closed circle (●): Use when the endpoint is INCLUDED in the interval (indicated by ≤ or ≥)
  • Open circle (○): Use when the endpoint is EXCLUDED from the interval (indicated by < or >)

For example, if a piece is defined for x < 3, you'd draw an open circle at x = 3. If another piece is defined for x ≥ 3, you'd draw a closed circle at x = 3. This shows that at x = 3, only the second piece applies.

The circles help visualize where the function "jumps" from one piece to another and whether the function is defined at specific boundary points.

Question: How do I find the domain and range of a piecewise function? It seems complicated with multiple pieces.

Answer: Finding domain and range for piecewise functions follows a systematic approach:

  • For Domain: Take the UNION of all individual piece domains. Look at all the x-values where the function is defined.
  • For Range: Find the range of each piece separately, then take the UNION of all individual piece ranges.

Example: For f(x) = {x² if x < 0, 2x if x ≥ 0}:

  • Domain: (-∞, 0) ∪ [0, ∞) = (-∞, ∞) = ℝ
  • Range: For x < 0: x² produces (0, ∞); for x ≥ 0: 2x produces [0, ∞); combined range: [0, ∞)

Always analyze each piece separately first, then combine the results using set operations.

Question: How do I check if a piecewise function is continuous at a boundary point? What's the process?

Answer: To check continuity at a boundary point x = a, you must verify three conditions:

  1. f(a) exists: The function is defined at x = a
  2. lim(x→a) f(x) exists: The limit from both sides must exist and be equal
  3. lim(x→a) f(x) = f(a): The limit equals the function value

For piecewise functions, specifically check:

  • Left-hand limit: lim(x→a⁻) f(x) - evaluate using the piece that applies for x < a
  • Right-hand limit: lim(x→a⁺) f(x) - evaluate using the piece that applies for x > a
  • Function value: f(a) - use the piece that includes x = a

If left limit = right limit = f(a), the function is continuous at x = a. Otherwise, there's a discontinuity (jump, removable, or infinite).