Course contentsShow
← Mathematics
Lesson 591 of 3,12114. Functions in DepthFree lesson

Evaluating Piecewise Functions

Practice evaluating piecewise functions by determining which piece applies for a given input value.

Evaluating Piecewise Functions

What you'll learn: You'll practice finding the output of a piecewise function by first identifying which "piece" or rule to use based on the input value.

The Core Idea

A piecewise function is like a rulebook with different instructions for different situations. To evaluate it, you need to:

  1. Check your input against the conditions for each piece
  2. Find which condition is true for your input
  3. Use that piece's formula to calculate the output

Think of it like a movie ticket price chart: kids under 12 pay 8,ages12–64pay8, ages 12–64 pay 15, and seniors 65+ pay $10. To find the price, you first determine which age bracket applies, then use that specific price.

Step-by-Step Process

Let's say you have this piecewise function:

f(x) = { 2x + 1,  if x < 0
       { x²,      if x ≥ 0

Example 1: Evaluate f(-3)

  • Is -3 < 0? Yes! Use the first piece: 2x + 1
  • f(-3) = 2(-3) + 1 = -6 + 1 = -5

Example 2: Evaluate f(5)

  • Is 5 < 0? No
  • Is 5 ≥ 0? Yes! Use the second piece: x²
  • f(5) = 5² = 25

Example 3: Evaluate f(0)

  • Is 0 < 0? No
  • Is 0 ≥ 0? Yes! Use the second piece: x²
  • f(0) = 0² = 0

Watch the Boundaries

Pay special attention to the boundary values (like x = 0 in our example). The inequality symbols (< , ≤, >, ≥) tell you exactly which piece includes that boundary point.

Key Takeaway: To evaluate a piecewise function, identify which condition your input satisfies, then apply only that piece's formula—never mix pieces together.