Solved Exercises on Piecewise Functions in College Algebra

Master piecewise functions: definition, evaluation, graphing, domain and range through these 5 detailed exercises.

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

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

Domain partition: The domain is divided into distinct intervals, each with its own rule

Evaluation method:
  1. Determine which interval the input value belongs to
  2. Apply the corresponding function rule for that interval
  3. Be careful with boundary conditions (≤ vs <)
Given function
\(f(x) = \begin{cases} 2x + 1 & \text{if } x < 0 \\ x^2 & \text{if } 0 \leq x \leq 2 \\ 5 & \text{if } x > 2 \end{cases}\)
Evaluate f(-1)
Which rule applies?
Step 1: Evaluate \(f(-1)\)

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

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

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

Since \(0 \leq 0 \leq 2\), we use the second rule: \(f(x) = x^2\)

\(f(0) = 0^2 = 0\)

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

Since \(0 \leq 1.5 \leq 2\), we use the second rule: \(f(x) = x^2\)

\(f(1.5) = (1.5)^2 = 2.25\)

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

Since \(3 > 2\), we use the third rule: \(f(x) = 5\)

\(f(3) = 5\)

\(f(-1) = -1\)
\(f(0) = 0\)
\(f(1.5) = 2.25\)
\(f(3) = 5\)
Final answer:

\(f(-1) = -1\), \(f(0) = 0\), \(f(1.5) = 2.25\), \(f(3) = 5\)

Applied rules:

• Interval identification: Check which condition the input value satisfies

• Boundary handling: Pay attention to ≤ vs < in interval definitions

• Rule application: Use the function rule that corresponds to the identified interval

2 Graphing piecewise functions
Exercise 2
Graph the function \(g(x) = \begin{cases} -x + 2 & \text{if } x \leq 1 \\ x^2 - 2x + 2 & \text{if } x > 1 \end{cases}\) and state its domain and range.
Definition:

Graphing piecewise functions: Plot each piece separately on its respective interval

Given function
\(g(x) = \begin{cases} -x + 2 & \text{if } x \leq 1 \\ x^2 - 2x + 2 & \text{if } x > 1 \end{cases}\)
Graph first piece
Linear function
Step 1: Graph the first piece \(-x + 2\) for \(x \leq 1\)

This is a line with slope -1 and y-intercept 2

At \(x = 1\): \(g(1) = -1 + 2 = 1\), so plot point (1, 1) with a closed circle

At \(x = 0\): \(g(0) = 2\), so plot point (0, 2)

Step 2: Graph the second piece \(x^2 - 2x + 2\) for \(x > 1\)

This is a parabola that can be rewritten as \(y = (x-1)^2 + 1\)

At \(x = 1\): \(g(1) = 1 - 2 + 2 = 1\), but this point is not included in this piece

At \(x = 2\): \(g(2) = 4 - 4 + 2 = 2\), so plot point (2, 2) with an open circle

Step 3: Determine the domain

All real numbers are covered: \((-\infty, 1]\) and \((1, \infty)\)

Domain: \((-\infty, \infty)\)

Step 4: Determine the range

For the linear piece: as \(x \to -\infty\), \(g(x) \to \infty\); at \(x = 1\), \(g(x) = 1\)

So the linear piece contributes \([1, \infty)\) to the range

For the quadratic piece: vertex is at \(x = 1\), but \(x > 1\), so the minimum value approaches 1 but doesn't include it

As \(x \to \infty\), \(g(x) \to \infty\)

So the quadratic piece contributes \((1, \infty)\) to the range

Combined range: \([1, \infty)\)

Domain: \((-\infty, \infty)\)
Range: \([1, \infty)\)
Final answer:

Domain: \((-\infty, \infty)\), Range: \([1, \infty)\)

Applied rules:

• Endpoint representation: Closed circles for ≤ and ≥, open circles for < and >

• Domain union: Combine all intervals where the function is defined

• Range analysis: Consider the output values of each piece

3 Writing piecewise functions from descriptions
Exercise 3
Write a piecewise function that represents the absolute value function \(|x|\) and verify it is equivalent to the standard definition.
Definition:

Absolute value: The distance of a number from zero on the number line

Standard definition
\(|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}\)
Verification
Check examples
Step 1: Understand the definition

The absolute value of \(x\) is \(x\) if \(x\) is non-negative, and \(-x\) if \(x\) is negative

Step 2: Write the piecewise function

\(|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}\)

Step 3: Verify with examples

For \(x = 5\) (positive): \(|5| = 5\) (from the first piece)

For \(x = -3\) (negative): \(|-3| = -(-3) = 3\) (from the second piece)

For \(x = 0\): \(|0| = 0\) (from the first piece since \(x \geq 0\))

Step 4: Graph the function

The first piece \(y = x\) for \(x \geq 0\) is the right half of the V-shape

The second piece \(y = -x\) for \(x < 0\) is the left half of the V-shape

Step 5: Analyze domain and range

Domain: All real numbers \((-\infty, \infty)\)

Range: All non-negative real numbers \([0, \infty)\)

\(|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}\)
Final answer:

The piecewise function representation of absolute value is: \(|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}\)

Applied rules:

• Distance interpretation: Absolute value represents distance from zero

• Sign consideration: Negative inputs become positive outputs

• Boundary inclusion: Zero is included in the non-negative case

Key Concepts, 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 Piecewise Function
Evaluation
Determine which interval x belongs to
Apply correct rule
Domain
Union of all piece domains
Combine intervals
Range
Union of all piece ranges
Consider outputs
Key definitions:

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

Domain partition: The division of the function's domain into non-overlapping intervals.

Transition points: The boundary values where the function definition changes.

Continuity: A piecewise function is continuous if there are no jumps at transition points.

Discontinuity: A break in the function graph at transition points.

Complete methodology:

Evaluating Piecewise Functions:

  1. Identify the input: Determine the value of \(x\) for which to evaluate
  2. Find the correct interval: Check which condition the input value satisfies
  3. Apply the corresponding rule: Use the function expression for that interval
  4. Calculate the result: Perform the computation using the correct rule

Graphing Piecewise Functions:

  1. Plot each piece separately: Graph each sub-function on its respective interval
  2. Mark endpoints: Use closed circles (●) for included endpoints and open circles (○) for excluded endpoints
  3. Connect appropriately: Don't connect pieces across intervals
  4. Check for continuity: Observe if there are gaps or jumps at transition points
Tip 1: Always check which interval your input value belongs to before applying a function rule.
Tip 2: Pay close attention to boundary conditions (≤ vs <) when evaluating at transition points.
Tip 3: When graphing, each piece should only be drawn on its specified interval.
Tip 4: The domain of a piecewise function is the union of all individual piece domains.
Common errors: Using the wrong function rule for an input value, misreading boundary conditions, forgetting to consider all pieces when determining domain/range.
Memorization aid: "Find the right rule for the right interval" and "Each piece has its own home".
Essential rules to know:

Evaluation Rules:

• Interval selection: Only one condition should be true for any given input value

• Boundary handling: Carefully observe whether endpoints are included or excluded

• Unique output: Each input produces exactly one output

Graphing Rules:

• Closed/open circles: Use ● for included endpoints (≤ or ≥) and ○ for excluded endpoints (< or >)

• Disjoint intervals: Do not connect different pieces of the function

• Domain coverage: The union of all intervals should cover the entire domain

Solution: Exercises 4 to 5
4 Real-world application: tax brackets
Exercise 4
A progressive tax system has the following brackets: 10% for income up to $10,000, 15% for income between $10,001 and $40,000, and 25% for income above $40,000. Write a piecewise function for the tax amount and calculate the tax for incomes of $8,000, $25,000, and $50,000.
Definition:

Progressive taxation: A tax system where the tax rate increases as income increases

Define the function
Let x = income, T(x) = tax amount
Set up intervals
Three tax brackets
Step 1: Define the piecewise function

For income up to $10,000: Tax = 10% of income

For income between $10,001 and $40,000: Tax = $1,000 + 15% of amount over $10,000

For income above $40,000: Tax = $1,000 + $4,500 + 25% of amount over $40,000

Step 2: Write the complete piecewise function

\(T(x) = \begin{cases} 0.10x & \text{if } 0 \leq x \leq 10,000 \\ 1000 + 0.15(x - 10000) & \text{if } 10,000 < x \leq 40,000 \\ 5500 + 0.25(x - 40000) & \text{if } x > 40,000 \end{cases}\)

Which simplifies to:

\(T(x) = \begin{cases} 0.10x & \text{if } 0 \leq x \leq 10,000 \\ 0.15x - 500 & \text{if } 10,000 < x \leq 40,000 \\ 0.25x - 4500 & \text{if } x > 40,000 \end{cases}\)

Step 3: Calculate tax for $8,000

Since \(8000 \leq 10000\), use the first rule: \(T(8000) = 0.10(8000) = 800\)

Step 4: Calculate tax for $25,000

Since \(10000 < 25000 \leq 40000\), use the second rule: \(T(25000) = 0.15(25000) - 500 = 3750 - 500 = 3250\)

Step 5: Calculate tax for $50,000

Since \(50000 > 40000\), use the third rule: \(T(50000) = 0.25(50000) - 4500 = 12500 - 4500 = 8000\)

\(T(8000) = \$800\)
\(T(25000) = \$3250\)
\(T(50000) = \$8000\)
Final answer:

Tax function: \(T(x) = \begin{cases} 0.10x & \text{if } 0 \leq x \leq 10,000 \\ 0.15x - 500 & \text{if } 10,000 < x \leq 40,000 \\ 0.25x - 4500 & \text{if } x > 40,000 \end{cases}\)

Tax for $8,000: $800, Tax for $25,000: $3,250, Tax for $50,000: $8,000

Applied rules:

• Cumulative taxation: Higher brackets apply only to income within that bracket

• Bracket calculation: Tax = previous bracket tax + current rate × current bracket income

• Real-world modeling: Piecewise functions effectively model tiered systems

5 Temperature conversion with thresholds
Exercise 5
A heating system operates differently based on temperature: if the temperature is below 0°C, it runs at 100% capacity; if it's between 0°C and 15°C, it runs at 75% capacity; if it's above 15°C, it runs at 50% capacity. Write the piecewise function and graph it.
Definition:

Threshold-based systems: Systems that operate at different levels based on input conditions

Define variables
Let T = temperature (°C), H(T) = heating capacity (%)
Set up intervals
Three temperature ranges
Step 1: Define the piecewise function

\(H(T) = \begin{cases} 100 & \text{if } T < 0 \\ 75 & \text{if } 0 \leq T \leq 15 \\ 50 & \text{if } T > 15 \end{cases}\)

Step 2: Analyze the function characteristics

This is a step function with three constant levels

Domain: All real numbers \((-\infty, \infty)\)

Range: The set \(\{50, 75, 100\}\)

Step 3: Graph the function

Draw a horizontal line at \(y = 100\) for \(x < 0\) with an open circle at \((0, 100)\)

Draw a horizontal line at \(y = 75\) for \(0 \leq x \leq 15\) with closed circles at both endpoints

Draw a horizontal line at \(y = 50\) for \(x > 15\) with an open circle at \((15, 50)\)

Step 4: Evaluate at specific points

At \(T = -5\): \(H(-5) = 100\%\) (below freezing)

At \(T = 10\): \(H(10) = 75\%\) (between freezing and 15°C)

At \(T = 20\): \(H(20) = 50\%\) (above 15°C)

Step 5: Discuss continuity

This function has jump discontinuities at \(T = 0\) and \(T = 15\)

The function is piecewise constant and not continuous overall

\(H(T) = \begin{cases} 100 & \text{if } T < 0 \\ 75 & \text{if } 0 \leq T \leq 15 \\ 50 & \text{if } T > 15 \end{cases}\)
Final answer:

The heating capacity function is: \(H(T) = \begin{cases} 100 & \text{if } T < 0 \\ 75 & \text{if } 0 \leq T \leq 15 \\ 50 & \text{if } T > 15 \end{cases}\)

Applied rules:

• Step functions: Constant values over intervals with possible jumps

• Discontinuous systems: Many real-world systems have abrupt changes

• Threshold activation: Systems often have discrete operating modes

Comprehensive Summary: Piecewise Functions
\(\text{Domain of } f = \bigcup_{i=1}^{n} D_i\)
Domain Union Property
Key definitions:

Piecewise function: A function that is defined by multiple sub-functions, with each sub-function applying to a specific interval of the domain. The function uses different rules depending on the input value.

Domain partition: The division of the function's domain into non-overlapping intervals, where each interval has its own rule or formula.

Transition points: The boundary values where the function definition changes from one rule to another. These points are crucial for determining which rule to apply.

Continuity: A property describing whether a piecewise function has no breaks or jumps at transition points. A function is continuous at a point if the limit from both sides equals the function value at that point.

Step function: A special type of piecewise function where each piece is a constant value, creating a graph that looks like steps.

Complete methodologies:

Method for Evaluating Piecewise Functions:

  1. Read the function definition: Carefully examine each piece and its corresponding interval
  2. Identify the input value: Determine the specific value of \(x\) for which to evaluate
  3. Determine the correct interval: Check which condition the input value satisfies
  4. Apply the corresponding rule: Use the function expression that corresponds to the identified interval
  5. Perform the calculation: Substitute the input value into the correct rule and compute the result
  6. Verify the result: Ensure the answer makes sense in the context of the problem

Method for Graphing Piecewise Functions:

  1. Identify each piece: List all sub-functions and their respective intervals
  2. Graph each piece separately: Plot each sub-function only on its specified interval
  3. Mark endpoints correctly: Use closed circles (●) for included endpoints (≤ or ≥) and open circles (○) for excluded endpoints (< or >)
  4. Check for continuity: Observe if there are jumps or gaps at transition points
  5. Label the graph: Clearly indicate which rule applies to which interval
Tip 1: Always check which interval your input value belongs to before applying a function rule.
Tip 2: Pay close attention to boundary conditions (≤ vs <) when evaluating at transition points.
Tip 3: When graphing, each piece should only be drawn on its specified interval.
Tip 4: The domain of a piecewise function is the union of all individual piece domains.
Tip 5: Remember that piecewise functions can model real-world scenarios with different rules in different situations.
Common errors: Using the wrong function rule for an input value, misreading boundary conditions, forgetting to consider all pieces when determining domain/range, connecting pieces across intervals when they shouldn't be connected.
Exam preparation: Practice with various function types (linear, quadratic, constant), master interval notation, understand continuity concepts.
Memory aids: "Find the right rule for the right interval" and "Each piece has its own home".
Essential rules and formulas:

Evaluation Rules:

• Interval selection: For any given input value, exactly one condition should be true

• Boundary handling: Carefully observe whether endpoints are included (≤, ≥) or excluded (<, >)

• Unique output: Each input produces exactly one output according to the function definition

Graphing Rules:

• Endpoint representation: Use closed circles (●) for included endpoints and open circles (○) for excluded endpoints

• Disjoint intervals: Do not connect different pieces of the function across intervals

• Domain coverage: The union of all intervals should cover the intended domain

Domain and Range:

• Domain: \(\text{Domain of } f = \bigcup_{i=1}^{n} D_i\) where \(D_i\) is the domain of the \(i\)-th piece

• Range: \(\text{Range of } f = \bigcup_{i=1}^{n} R_i\) where \(R_i\) is the range of the \(i\)-th piece

Piecewise Function Workflow

📊
Evaluation Steps
1
Identify Input
2
Find Interval
3
Apply Rule
Graphing Steps
1
Plot Each Piece
2
Mark Endpoints
3
Check Continuity
Visual Representation
Different rules apply to different intervals | Each piece has its own domain
📚 Practice Makes Perfect!

Questions & Answers

Question: I'm having trouble knowing which piece of a piecewise function to use when evaluating at a boundary point. How do I decide?

Answer: The key is to carefully read the inequality symbols in the function definition:

  • Included endpoints: Use ≤ or ≥ to indicate that the boundary point IS included in that piece
  • Excluded endpoints: Use < or > to indicate that the boundary point is NOT included in that piece
  • Example: If you have a function defined as \(f(x) = \begin{cases} x^2 & \text{if } x \leq 2 \\ 2x & \text{if } x > 2 \end{cases}\), then at \(x = 2\), you would use the first piece because \(x = 2\) satisfies \(x \leq 2\)

The boundary points are where the conditions change. The rule is that each input value must satisfy exactly one condition, so the inequalities are designed to cover all possibilities without overlap.

In most piecewise functions, one piece will include the boundary with ≤ or ≥ while the adjacent piece will exclude it with < or >.

Question: How do I graph a piecewise function correctly? I keep making mistakes with the endpoints.

Answer: Here's the systematic approach to graphing piecewise functions correctly:

  1. Graph each piece separately: Draw each sub-function only within its specified interval
  2. Endpoint notation: Use closed circles (●) for included endpoints (≤ or ≥) and open circles (○) for excluded endpoints (< or >)
  3. Don't connect across intervals: Each piece stands alone within its domain
  4. Check continuity: See if the function values match at transition points

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

  • Graph \(y = x+1\) for \(x < 1\) with an open circle at \((1, 2)\)
  • Graph \(y = x^2\) for \(x \geq 1\) with a closed circle at \((1, 1)\)
  • Notice there's a jump at \(x = 1\) since the pieces don't meet

The key is to be precise about which points belong to which piece of the function.

Question: Can a piecewise function have more than three pieces? How do I handle complex piecewise functions?

Answer: Yes, a piecewise function can have any number of pieces! There's no theoretical limit to how many different rules a function can have across different intervals.

For complex piecewise functions:

  1. Work systematically: Go through each piece one at a time
  2. List all intervals: Make sure you understand where each rule applies
  3. Check completeness: Ensure all possible input values are covered by exactly one rule
  4. Be careful with boundaries: Verify that boundary points are assigned to exactly one piece

Real-world applications often have many pieces. For example, a shipping cost function might have different rates for different weight brackets: 0-1 lbs, 1-5 lbs, 5-10 lbs, 10-20 lbs, and over 20 lbs. Each range would have its own rule.

The evaluation process remains the same regardless of how many pieces: identify which interval contains your input value, then apply the corresponding rule.