Solved Exercises on Piecewise Functions Introduction in Algebra 1

Master piecewise functions: definition, evaluation, graphing, and real-world applications through these 5 detailed exercises.

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

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

Evaluation method:
  1. Identify which condition the input value satisfies
  2. Select the corresponding expression
  3. Evaluate using the selected expression
Function
Piecewise function
Evaluation
\(f(-2) = -3, f(3) = 9\)
Result
Different rules apply
Step 1: Evaluate \(f(-2)\)

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

\(f(-2) = 2(-2) + 1 = -4 + 1 = -3\)

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

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

\(f(3) = 3^2 = 9\)

Step 3: Verify conditions

Always check which condition each input satisfies before selecting the formula

\(f(-2) = -3\) and \(f(3) = 9\)
Final answer:

\(f(-2) = -3\) and \(f(3) = 9\)

Applied rules:

• Condition checking: Determine which interval contains the input

• Rule selection: Use the expression corresponding to the satisfied condition

• Substitution: Apply the selected formula to the input value

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

Graphing piecewise: Plot each piece separately over its specified domain

Function
Piecewise function
Pieces
Linear segments
Boundary
At x = 1
Step 1: Graph first piece for \(x < 1\)

\(y = -x + 2\), draw with open circle at \(x = 1\)

Point: \((0, 2)\), slope: \(-1\)

Step 2: Graph second piece for \(x \geq 1\)

\(y = x - 1\), draw with closed circle at \(x = 1\)

Point: \((1, 0)\), slope: \(1\)

Step 3: Check continuity at boundary

Left limit: \(\lim_{x \to 1^-} g(x) = -1 + 2 = 1\)

Right limit: \(\lim_{x \to 1^+} g(x) = 1 - 1 = 0\)

Function value: \(g(1) = 0\)

Two connected linear pieces with different slopes
Final answer:

Graph consists of two linear segments meeting at x = 1 with different slopes

Applied rules:

• Domain restriction: Only plot each piece over its specified domain

• Boundary points: Use open circles for strict inequalities, closed for inclusive

• Continuity: Check if left and right limits match at boundaries

3 Three-piece function
Exercise 3
Evaluate:
\(h(x) = \begin{cases} x + 3 & \text{if } x < -1 \\ 2 & \text{if } -1 \leq x \leq 2 \\ x - 1 & \text{if } x > 2 \end{cases}\)
Find \(h(-2)\), \(h(0)\), and \(h(3)\)
Definition:

Multi-piece function: A function with three or more different expressions

Function
Three-piece function
Evaluations
\(h(-2)=1, h(0)=2, h(3)=2\)
Results
Multiple rules applied
Step 1: Evaluate \(h(-2)\)

Since \(-2 < -1\), use first piece: \(h(x) = x + 3\)

\(h(-2) = -2 + 3 = 1\)

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

Since \(-1 \leq 0 \leq 2\), use middle piece: \(h(x) = 2\)

\(h(0) = 2\)

Step 3: Evaluate \(h(3)\)

Since \(3 > 2\), use third piece: \(h(x) = x - 1\)

\(h(3) = 3 - 1 = 2\)

Step 4: Verify all conditions

Each input belongs to exactly one interval, ensuring function is well-defined

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

\(h(-2) = 1\), \(h(0) = 2\), \(h(3) = 2\)

Applied rules:

• Interval identification: Carefully check which interval contains each input

• Exclusive vs inclusive: Note difference between < and ≤

• Function definition: Each input maps to exactly one output

Piecewise Functions: Rules, Laws, and Methods
\(f(x) = \begin{cases} \text{expression}_1 & \text{if condition}_1 \\ \text{expression}_2 & \text{if condition}_2 \\ \vdots & \vdots \\ \text{expression}_n & \text{if condition}_n \end{cases}\)
General Form
Evaluation
Match input to condition
Select appropriate rule
Graphing
Plot each piece separately
Respect domain restrictions
Continuity
Check boundary behavior
Left/right limits
Key definitions:

Piecewise function: A function defined by multiple sub-functions, each applied to a specific domain interval

Domain partition: The intervals that divide the total domain without overlap

Continuity: Whether the function has no jumps or breaks at boundary points

Evaluation methodology:
  1. Locate the input: Determine which interval contains the given x-value
  2. Select the rule: Choose the expression corresponding to that interval
  3. Apply the formula: Substitute the x-value into the selected expression
  4. Verify result: Ensure the output makes sense in context
Tip 1: Always check boundary conditions carefully (≤ vs <).
Tip 2: Each input value corresponds to exactly one output value.
Tip 3: Use open circles for strict inequalities, closed for inclusive bounds.
Tip 4: Break complex functions into smaller, manageable pieces.
Common errors: Selecting wrong formula due to boundary confusion, missing intervals, incorrect graphing symbols.
Exam preparation: Practice identifying intervals quickly, master graphing with proper symbols, understand continuity concepts.
Essential rules:

• Each input belongs to exactly one interval

• Use ≤ or ≥ for inclusive boundaries (closed circles)

• Use < or > for exclusive boundaries (open circles)

• Continuity depends on matching left and right limits at boundaries

• Domain is the union of all individual intervals

Solution: Exercises 4 to 5
4 Real-world application
Exercise 4
Shipping costs: \(C(w) = \begin{cases} 5.00 & \text{if } w \leq 1 \\ 5.00 + 2(w-1) & \text{if } 1 < w \leq 5 \\ 13.00 + 3(w-5) & \text{if } w > 5 \end{cases}\)
Find cost for 3 lbs and 7 lbs packages.
Definition:

Real-world piecewise: Models situations with tiered pricing or different rules for different ranges

Function
Shipping cost model
Calculations
\(C(3)=9, C(7)=19\)
Results
Tiered pricing
Step 1: Evaluate \(C(3)\)

Since \(1 < 3 \leq 5\), use second piece: \(C(w) = 5.00 + 2(w-1)\)

\(C(3) = 5.00 + 2(3-1) = 5.00 + 2(2) = 5.00 + 4.00 = 9.00\)

Step 2: Evaluate \(C(7)\)

Since \(7 > 5\), use third piece: \(C(w) = 13.00 + 3(w-5)\)

\(C(7) = 13.00 + 3(7-5) = 13.00 + 3(2) = 13.00 + 6.00 = 19.00\)

Step 3: Interpret results

Cost increases in tiers: base rate, then incremental rates for heavier weights

Step 4: Verify calculation logic

Each tier builds on the previous one, ensuring continuous pricing model

\(C(3) = \$9.00\) and \(C(7) = \$19.00\)
Final answer:

A 3 lb package costs $9.00 and a 7 lb package costs $19.00

Applied rules:

• Real-world context: Understand what each piece represents

• Tiered pricing: Each segment has its own rate structure

• Incremental calculation: Higher tiers build on lower ones

5 Function composition
Exercise 5
Given \(f(x) = \begin{cases} x^2 & \text{if } x \leq 0 \\ 2x & \text{if } x > 0 \end{cases}\), find \(f(f(-3))\) and \(f(f(2))\)
Definition:

Function composition: Applying one function to the result of another: \(f(g(x))\)

Composition
\(f(f(x))\)
Calculations
\(f(f(-3))=81, f(f(2))=8\)
Results
Nested evaluations
Step 1: Find \(f(-3)\)

Since \(-3 \leq 0\), use first piece: \(f(x) = x^2\)

\(f(-3) = (-3)^2 = 9\)

Step 2: Find \(f(f(-3)) = f(9)\)

Since \(9 > 0\), use second piece: \(f(x) = 2x\)

\(f(9) = 2(9) = 18\)

Step 3: Find \(f(2)\)

Since \(2 > 0\), use second piece: \(f(x) = 2x\)

\(f(2) = 2(2) = 4\)

Step 4: Find \(f(f(2)) = f(4)\)

Since \(4 > 0\), use second piece: \(f(x) = 2x\)

\(f(4) = 2(4) = 8\)

\(f(f(-3)) = 18\) and \(f(f(2)) = 8\)
Final answer:

\(f(f(-3)) = 18\) and \(f(f(2)) = 8\)

Applied rules:

• Step-by-step evaluation: Work from inside out in compositions

• Reapply conditions: Each function evaluation requires rechecking conditions

• Nested logic: Maintain careful tracking of each evaluation

Piecewise Functions: Comprehensive Guide
\(f(x) = \begin{cases} \text{rule}_1 & \text{if } x \in \text{domain}_1 \\ \text{rule}_2 & \text{if } x \in \text{domain}_2 \\ \vdots & \vdots \end{cases}\)
Piecewise Definition
Key definitions:

Piecewise function: A function defined by multiple sub-functions, each applied to a specific subset of the domain

Domain partition: The collection of non-overlapping intervals that make up the total domain

Continuity: The property of having no gaps or jumps in the function graph

Boundary point: The point where one piece of the function ends and another begins

Complete methodology:
  1. Identify pieces: Separate the function into distinct expressions and their domains
  2. Evaluate inputs: For each x-value, determine which domain it belongs to
  3. Apply correct rule: Use the expression associated with the identified domain
  4. Graph systematically: Plot each piece separately with appropriate boundary symbols
  5. Analyze continuity: Check behavior at boundary points
Tip 1: Always write down the domain for each piece before evaluating.
Tip 2: Use a number line to visualize domain partitions.
Tip 3: Remember that piecewise functions are still functions - each input gives one output.
Tip 4: Check your work by verifying that each input falls into exactly one interval.
Common errors: Misreading boundary conditions, selecting wrong formula, forgetting to restrict domain when graphing, assuming continuity at boundaries.
Exam preparation: Master interval notation, practice switching between representations, understand real-world applications.
Essential rules and formulas:

• Each x-value belongs to exactly one domain interval

• Domain: Union of all individual intervals

• Range: Union of ranges of all pieces

• Continuity at \(x = a\): \(\lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = f(a)\)

• Boundary evaluation: Use ≤ or ≥ for inclusive boundaries, < or > for exclusive

Piecewise Functions: Complete Summary

📋
Core Concepts

Definition: A function that uses different formulas for different parts of its domain.

Notation: Uses cases with conditions to specify which formula applies where.

Domain Partition: The domain is divided into non-overlapping intervals.

Example: \(f(x) = \begin{cases} x+1 & \text{if } x < 0 \\ x^2 & \text{if } x \geq 0 \end{cases}\)
Evaluation Process

Step 1: Identify which interval contains the input value

Step 2: Select the corresponding formula

Step 3: Substitute and calculate

Step 4: Verify the result makes sense

Graphing Rules

Closed Circle: Use for ≤ or ≥ (value included)

Open Circle: Use for < or > (value excluded)

Domain Restriction: Only graph each piece over its specified interval

Continuity Check: Verify if pieces connect smoothly

Key Examples

Simple: \(f(x) = \begin{cases} -x & \text{if } x < 0 \\ x & \text{if } x \geq 0 \end{cases}\) (absolute value)

Quadratic: \(g(x) = \begin{cases} x^2 & \text{if } x \leq 1 \\ 2x-1 & \text{if } x > 1 \end{cases}\)

Constant: \(h(x) = \begin{cases} 1 & \text{if } x < 0 \\ 2 & \text{if } x = 0 \\ 3 & \text{if } x > 0 \end{cases}\)

Common Mistakes

Error 1: Using the wrong formula for an input value

Error 2: Forgetting boundary conditions (≤ vs <)

Error 3: Assuming continuity where none exists

Error 4: Missing intervals in domain

Memory Aids

"Piece at a Time": Focus on one piece before moving to the next

"Check Before You Act": Always verify which condition applies

"Open/Closed Rule": Inclusive = Closed circle, Exclusive = Open circle

"One Input, One Output": Each x-value maps to exactly one y-value

Problem-Solving Workflow
1
Identify Pieces
2
Locate Input
3
Select Formula
4
Evaluate
5
Verify
Visualization Tip
Use a number line to mark domain boundaries before working with piecewise functions
Practice identifying intervals quickly - this skill is fundamental!

Questions & Answers

Question: I'm confused about how to know which formula to use when evaluating a piecewise function. What if the input value could fit in multiple intervals?

Answer: Great question! A properly defined piecewise function ensures that every input value fits into exactly ONE interval. This is a fundamental requirement for it to be a function.

For example, in the function:

\(f(x) = \begin{cases} x^2 & \text{if } x \leq 0 \\ 2x & \text{if } x > 0 \end{cases}\)

Notice that x = 0 is included in the first piece (≤ 0) but not in the second piece (> 0). This prevents overlap. If you see overlapping conditions, the function is not properly defined.

To evaluate, simply check each condition in order until you find the one that's true for your input value.

Question: How do I know when to use open circles versus closed circles when graphing piecewise functions?

Answer: The circle type depends on the inequality symbol:

  • Closed circle (●): Use for ≤ and ≥ (the boundary value IS included)
  • Open circle (○): Use for < and > (the boundary value is NOT included)

For example, if you have a piece defined as "if x < 2", put an open circle at x = 2. If it's "if x ≤ 2", put a closed circle at x = 2.

This is crucial for showing which function value applies exactly at the boundary point.

Question: Where do piecewise functions appear in real life? Why are they important to learn?

Answer: Piecewise functions are everywhere in real-world scenarios:

  • Tax brackets: Different tax rates apply to different income levels
  • Shipping costs: Flat rate for light packages, higher rate for heavier ones
  • Utility bills: Lower rate for basic usage, higher rate for excess consumption
  • Phone plans: Fixed cost for included minutes, additional cost per extra minute
  • Commission systems: Different commission rates for different sales volumes

They're important because many real-world phenomena don't follow a single pattern across all possible inputs - they change behavior at specific thresholds, which piecewise functions model perfectly.