CMClearMathAcademy

Piecewise and Absolute Value Functions

A free College Algebra lesson from the “Advanced Function Types” unit, with a worked example and practice problems including step-by-step solutions.

Piecewise functions use different rules on different input intervals. Absolute value functions form V-shaped graphs and measure distance from a center.

What you'll learn

Why it matters: Tax brackets, shipping rates, parking fees, and distance-from-center models all change rules depending on the input. Piecewise notation teaches students to choose the rule first, then calculate.

Worked example

Problem. If f(x) = |x - 4|, find f(10).

  1. Substitute 10.
  2. |10 - 4| = |6|.
  3. The output is 6.

Answer: 6

Practice problems

1. If f(x) = |x + 3|, find f(2).

Show solution
  1. Warm-up: First identify exactly what the question is asking: If f(x) = |x + 3|, find f(2).
  2. For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
  3. |2 + 3| = 5.
  4. Check the result by substituting or estimating: the response should match 5 and make sense in the original problem.

Answer: 5

2. The vertex of y = |x - 5| + 2 is...

Choices: (5, 2) · (-5, 2) · (5, -2) · (-5, -2)

Show solution
  1. Core Practice: First identify exactly what the question is asking: The vertex of y = |x - 5| + 2 is...
  2. For quadratics, track the zeros, vertex, or coefficients so the algebra matches the graph feature being asked about.
  3. Use (h, k).
  4. Verify the selected choice by checking that it satisfies the original prompt and that the other choices fail the same test.

Answer: (5, 2)

3. A piecewise function may use...

Choices: Different rules on different intervals · Only one constant · No input values · Only circles

Show solution
  1. Challenge: First identify exactly what the question is asking: A piecewise function may use...
  2. For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
  3. That is the purpose of piecewise notation.
  4. Verify the selected choice by checking that it satisfies the original prompt and that the other choices fail the same test.

Answer: Different rules on different intervals

4. If f(x) = 2x for x < 0 and f(x) = x + 3 for x >= 0, find f(4).

Show solution
  1. Piecewise Evaluation: First identify exactly what the question is asking: If f(x) = 2x for x < 0 and f(x) = x + 3 for x >= 0, find f(4).
  2. For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
  3. Use the x >= 0 rule.
  4. Check the result by substituting or estimating: the response should match 7 and make sense in the original problem.

Answer: 7

5. The vertex of y = |x - 5| is...

Choices: (5, 0) · (-5, 0) · (0, 5) · (0, -5)

Show solution
  1. Absolute Value Graphs: First identify exactly what the question is asking: The vertex of y = |x - 5| is...
  2. For quadratics, track the zeros, vertex, or coefficients so the algebra matches the graph feature being asked about.
  3. Set the expression inside absolute value equal to 0.
  4. Verify the selected choice by checking that it satisfies the original prompt and that the other choices fail the same test.

Answer: (5, 0)

Practice this interactively with instant feedback and an AI tutor.

Practice Piecewise and Absolute Value Functions Take the free placement check

More College Algebra lessons