Piecewise-Defined Functions | Algebra 1

Master piecewise-defined functions: basic to advanced problems with detailed solutions, step-by-step methods, and comprehensive explanations.

Solution: Exercises 1 to 3
1 Basic Piecewise Function
Exercise 1
Given f(x) = { 2x + 1 if x < 0, x² if x ≥ 0 }, find f(-3) and f(2).
Definition:

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

Domain restriction: Each expression applies only to a specific subset of the domain

Evaluation method:
  1. Determine which interval the input value belongs to
  2. Select the appropriate function expression for that interval
  3. Substitute the input value into the selected expression
  4. Calculate the result
Function
f(x) = {2x+1 if x<0, x² if x≥0}
Evaluate
f(-3) and f(2)
Results
f(-3)=-5, f(2)=4
Step 1: Evaluate f(-3)

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

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

Step 2: Evaluate f(2)

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

f(2) = (2)² = 4

Step 3: Verify results

For f(-3) = -5: Since -3 < 0, using 2x + 1 gives 2(-3) + 1 = -5 ✓

For f(2) = 4: Since 2 ≥ 0, using x² gives (2)² = 4 ✓

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

f(-3) = -5 and f(2) = 4

Applied rules:

• Domain identification: Check which interval contains the input value

• Function selection: Use the expression that corresponds to the identified interval

• Substitution: Replace x with the input value in the selected expression

Tip: Always check which condition your input value satisfies before selecting the function expression.
Common mistake: Using the wrong function expression by not checking the domain conditions.
2 Three-Piece Function
Exercise 2
Given g(x) = { -x if x < -1, 2 if -1 ≤ x < 3, x + 1 if x ≥ 3 }, find g(-2), g(0), and g(4).
Definition:

Multi-piece function: A piecewise function with more than two pieces, each defined over a specific interval

Interval notation: Using inequalities to specify the domain for each piece

Function
g(x) = {-x if x<-1, 2 if -1≤x<3, x+1 if x≥3}
Evaluate
g(-2), g(0), g(4)
Results
g(-2)=2, g(0)=2, g(4)=5
Step 1: Evaluate g(-2)

Since -2 < -1, we use the first expression: g(x) = -x

g(-2) = -(-2) = 2

Step 2: Evaluate g(0)

Since -1 ≤ 0 < 3, we use the second expression: g(x) = 2

g(0) = 2

Step 3: Evaluate g(4)

Since 4 ≥ 3, we use the third expression: g(x) = x + 1

g(4) = 4 + 1 = 5

Step 4: Verify results

For g(-2) = 2: Since -2 < -1, using -x gives -(-2) = 2 ✓

For g(0) = 2: Since -1 ≤ 0 < 3, using 2 gives 2 ✓

For g(4) = 5: Since 4 ≥ 3, using x + 1 gives 4 + 1 = 5 ✓

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

g(-2) = 2, g(0) = 2, g(4) = 5

Applied rules:

• Three-part evaluation: Check each interval condition sequentially

• Boundary conditions: Pay attention to ≤ and < symbols

• Constant function piece: When f(x) = constant, output is always that constant

Tip: For multi-piece functions, create a table showing each interval and its corresponding expression.
Common mistake: Confusing boundary points and which interval they belong to.
3 Quadratic Piecewise
Exercise 3
Given h(x) = { x² + 1 if x ≤ 1, 3x - 2 if x > 1 }, find h(-1), h(1), and h(2).
Definition:

Quadratic piecewise function: A piecewise function that includes polynomial expressions of degree 2

Boundary point: The point where the function changes its definition (x = 1 in this case)

Function
h(x) = {x²+1 if x≤1, 3x-2 if x>1}
Evaluate
h(-1), h(1), h(2)
Results
h(-1)=2, h(1)=2, h(2)=4
Step 1: Evaluate h(-1)

Since -1 ≤ 1, we use the first expression: h(x) = x² + 1

h(-1) = (-1)² + 1 = 1 + 1 = 2

Step 2: Evaluate h(1)

Since 1 ≤ 1 (boundary point), we use the first expression: h(x) = x² + 1

h(1) = (1)² + 1 = 1 + 1 = 2

Step 3: Evaluate h(2)

Since 2 > 1, we use the second expression: h(x) = 3x - 2

h(2) = 3(2) - 2 = 6 - 2 = 4

Step 4: Verify results

For h(-1) = 2: Since -1 ≤ 1, using x² + 1 gives (-1)² + 1 = 2 ✓

For h(1) = 2: Since 1 ≤ 1, using x² + 1 gives (1)² + 1 = 2 ✓

For h(2) = 4: Since 2 > 1, using 3x - 2 gives 3(2) - 2 = 4 ✓

h(-1) = 2, h(1) = 2, h(2) = 4
Final answer:

h(-1) = 2, h(1) = 2, h(2) = 4

Applied rules:

• Boundary inclusion: Points on the boundary belong to the interval with ≤ or ≥

• Quadratic evaluation: Square the input value before adding constants

• Linear evaluation: Multiply by coefficient before adding constants

Tip: Pay careful attention to boundary points (≤ vs <) when determining which expression to use.
Common mistake: Using the wrong expression for boundary points due to ≤ vs < confusion.
Piecewise Function Properties
\(f(x) = \begin{cases} \text{expression}_1 & \text{if } \text{condition}_1 \\ \text{expression}_2 & \text{if } \text{condition}_2 \\ \vdots & \vdots \\ \text{expression}_n & \text{if } \text{condition}_n \end{cases}\)
General Form
Definition
\( |x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases} \)
Absolute value as piecewise
Domain
\(\bigcup_{i=1}^{n} \text{domain}_i = \text{full domain}\)
Domains cover entire range
Continuity
\(\lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x)\)
Check at boundaries
Key definitions:

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

Domain partition: The way the domain is divided into non-overlapping intervals

Boundary point: The point where the function changes its definition

Discontinuity: A point where the function has a jump or break

Continuity: A function is continuous if there are no jumps or breaks

Complete evaluation procedure:
  1. Identify intervals: List all the conditions and corresponding expressions
  2. Locate input: Determine which interval contains the input value
  3. Select expression: Choose the function expression for that interval
  4. Evaluate: Substitute the input value into the selected expression
  5. Verify: Check that the input value satisfies the condition
  6. Present result: State the final answer clearly
Tip 1: Always write down the conditions and expressions in a clear format.
Tip 2: Pay close attention to boundary points and whether they're included (≤, ≥) or excluded (<, >).
Tip 3: Create a number line showing the intervals to visualize the function.
Tip 4: Remember that each input value maps to exactly one output value.
Common errors: Using wrong expression for boundary points, not checking conditions properly, evaluating multiple expressions.
Success strategies: Practice with diverse functions, pay attention to inequality symbols, verify results.
Essential rules:

• Each input maps to exactly one output

• Domain intervals should not overlap

• Boundary points belong to the interval with ≤ or ≥

• The union of all domains covers the function's entire domain

• Check continuity at boundary points if needed

Solution: Exercises 4 to 5
4 Advanced Piecewise
Exercise 4
Given k(x) = { x³ if x < -2, 2x + 1 if -2 ≤ x < 1, √x if x ≥ 1 }, find k(-3), k(-2), k(0), and k(4).
Definition:

Complex piecewise function: A function combining different types of expressions (polynomial, linear, radical)

Radical function: A function containing roots, defined only for non-negative inputs

Function
k(x) = {x³ if x<-2, 2x+1 if -2≤x<1, √x if x≥1}
Evaluate
k(-3), k(-2), k(0), k(4)
Results
k(-3)=-27, k(-2)=-3, k(0)=1, k(4)=2
Step 1: Evaluate k(-3)

Since -3 < -2, we use the first expression: k(x) = x³

k(-3) = (-3)³ = -27

Step 2: Evaluate k(-2)

Since -2 ≤ -2 < 1, we use the second expression: k(x) = 2x + 1

k(-2) = 2(-2) + 1 = -4 + 1 = -3

Step 3: Evaluate k(0)

Since -2 ≤ 0 < 1, we use the second expression: k(x) = 2x + 1

k(0) = 2(0) + 1 = 1

Step 4: Evaluate k(4)

Since 4 ≥ 1, we use the third expression: k(x) = √x

k(4) = √4 = 2

Step 5: Verify results

For k(-3) = -27: Since -3 < -2, using x³ gives (-3)³ = -27 ✓

For k(-2) = -3: Since -2 ≤ -2 < 1, using 2x + 1 gives 2(-2) + 1 = -3 ✓

For k(0) = 1: Since -2 ≤ 0 < 1, using 2x + 1 gives 2(0) + 1 = 1 ✓

For k(4) = 2: Since 4 ≥ 1, using √x gives √4 = 2 ✓

k(-3) = -27, k(-2) = -3, k(0) = 1, k(4) = 2
Final answer:

k(-3) = -27, k(-2) = -3, k(0) = 1, k(4) = 2

Applied rules:

• Cubic evaluation: Cube the input value

• Linear evaluation: Multiply by coefficient then add constant

• Radical evaluation: Take the square root of the input value

Tip: For radical functions, ensure the input is non-negative (domain restriction).
Common mistake: Trying to evaluate √x for negative x values.
5 Absolute Value Piecewise
Exercise 5
Given m(x) = { |x| + 2 if x ≤ 0, x² - 1 if x > 0 }, find m(-4), m(0), and m(3). Then sketch the graph.
Definition:

Absolute value in piecewise: When absolute value appears within a piecewise function

Compound function: A function that combines multiple operations within a single piece

Function
m(x) = {|x|+2 if x≤0, x²-1 if x>0}
Evaluate
m(-4), m(0), m(3)
Results
m(-4)=6, m(0)=2, m(3)=8
Step 1: Evaluate m(-4)

Since -4 ≤ 0, we use the first expression: m(x) = |x| + 2

m(-4) = |-4| + 2 = 4 + 2 = 6

Step 2: Evaluate m(0)

Since 0 ≤ 0, we use the first expression: m(x) = |x| + 2

m(0) = |0| + 2 = 0 + 2 = 2

Step 3: Evaluate m(3)

Since 3 > 0, we use the second expression: m(x) = x² - 1

m(3) = (3)² - 1 = 9 - 1 = 8

Step 4: Analyze the graph behavior

For x ≤ 0: m(x) = |x| + 2 = -x + 2 (since x ≤ 0, |x| = -x)

For x > 0: m(x) = x² - 1

Step 5: Verify results

For m(-4) = 6: Since -4 ≤ 0, using |x| + 2 gives |-4| + 2 = 6 ✓

For m(0) = 2: Since 0 ≤ 0, using |x| + 2 gives |0| + 2 = 2 ✓

For m(3) = 8: Since 3 > 0, using x² - 1 gives (3)² - 1 = 8 ✓

m(-4) = 6, m(0) = 2, m(3) = 8
Final answer:

m(-4) = 6, m(0) = 2, m(3) = 8

Applied rules:

• Absolute value property: For x ≤ 0, |x| = -x

• Quadratic evaluation: Square the input value before subtracting

• Function composition: Apply operations in the correct order

Tip: When |x| appears in a piecewise function, remember that |x| = -x when x ≤ 0.
Common mistake: Forgetting that |x| = -x when x is negative.
Comprehensive Summary: Piecewise-Defined Functions
\(f(x) = \begin{cases} \text{expression}_1 & \text{if } \text{condition}_1 \\ \text{expression}_2 & \text{if } \text{condition}_2 \end{cases}\)
Standard Notation
Key definitions:

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

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

Boundary point: The point where the function changes its definition (where one interval ends and another begins)

Continuity: A function is continuous at a point if the limit from both sides equals the function value

Discontinuity: A point where the function has a jump, break, or undefined behavior

Function evaluation: The process of finding the output value for a given input in a piecewise function

Complete evaluation methodology:
  1. Read the function: Identify all pieces and their corresponding conditions
  2. Locate the input: Determine which interval contains the input value
  3. Check boundary conditions: Pay attention to ≤ vs < symbols for boundary points
  4. Select appropriate expression: Choose the function expression for the identified interval
  5. Evaluate the expression: Substitute the input value and calculate
  6. Verify the result: Ensure the input satisfies the condition for the chosen expression
  7. State the answer: Present the final result clearly
Tip 1: Create a number line and mark the intervals to visualize the function's behavior.
Tip 2: Pay special attention to boundary points where ≤ or ≥ symbols determine which expression to use.
Tip 3: Remember that each input value maps to exactly one output value in a valid function.
Tip 4: For functions with radicals, ensure the input satisfies the domain restrictions.
Common errors: Using wrong expression for boundary points, not checking conditions, evaluating multiple expressions, domain violations.
Success strategies: Practice with diverse functions, pay attention to inequality symbols, verify results, create visual aids.
Essential rules and properties:

• Each input maps to exactly one output value

• Domain intervals should be mutually exclusive and collectively exhaustive

• Boundary points belong to the interval with ≤ or ≥ (not < or >)

• The union of all domain intervals covers the function's entire domain

• |x| = x when x ≥ 0 and |x| = -x when x < 0

• √x is defined only for x ≥ 0

\(|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}\)
Absolute Value as Piecewise
Memory aids: Think of piecewise functions as "multiple functions in one" - check which "zone" your input falls into, then use that zone's rule.
Real-world applications: Tax brackets, shipping costs, phone plans, utility rates, pricing structures with tiers.

Questions & Answers

Question: I'm confused about how to handle boundary points in piecewise functions. How do I know which expression to use when x equals the boundary value?

Answer: The key is to look at the inequality symbols in the conditions:

  • When you see ≤ or ≥, the boundary point IS included in that interval
  • When you see < or >, the boundary point is NOT included in that interval

Example: f(x) = {x² if x ≤ 1, 2x if x > 1}

  • For x = 1: Since 1 ≤ 1 is true, use f(x) = x², so f(1) = 1² = 1
  • For x = 1.5: Since 1.5 > 1 is true, use f(x) = 2x, so f(1.5) = 3

The boundary point (x = 1) belongs to the first interval because of the ≤ symbol.

Question: Can a piecewise function have overlapping intervals? What happens if there's ambiguity?

Answer: A properly defined piecewise function should NOT have overlapping intervals, as this would violate the definition of a function (one input maps to exactly one output).

However, adjacent intervals can share boundary points, and the convention is:

  • Boundary points belong to the interval that uses ≤ or ≥
  • Intervals using < or > do not include the boundary point

Example of proper definition:

f(x) = {x² if x ≤ 2, 3x - 2 if x > 2}

Here, x = 2 belongs to the first interval, not the second.

If intervals truly overlapped, the relation would not be a function.

Question: When I see |x| in a piecewise function, how do I handle it?

Answer: Remember that absolute value is itself a piecewise function:

|x| = {x if x ≥ 0, -x if x < 0}

When |x| appears in a piecewise function, you can think of it as:

  • For non-negative inputs: |x| = x
  • For negative inputs: |x| = -x (which makes it positive)

Example: If f(x) = |x| + 2 when x ≤ 0

  • For x ≤ 0, since x is negative or zero, |x| = -x
  • So f(x) = -x + 2 when x ≤ 0

Always consider the sign of x in the given interval when working with absolute values.