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

Evaluating Piecewise-Defined Functions

Learn to evaluate functions defined by different formulas on different intervals of the domain.

Evaluating Piecewise-Defined Functions

What you'll learn: You'll learn how to find function values when a function uses different formulas depending on which part of the domain your input falls into.

What Is a Piecewise-Defined Function?

A piecewise-defined function is like a mathematical chameleon—it changes its behavior based on the input value. Instead of using one formula for all inputs, it uses different formulas for different intervals of the domain.

Think of it like a taxi fare system: the price per mile might be 2forthefirst5miles,but2 for the first 5 miles, but 3 per mile after that. The pricing "rule" changes depending on how far you've traveled.

How to Evaluate

To evaluate a piecewise function at a specific input:

  1. Identify which interval your input falls into by checking the conditions
  2. Use the corresponding formula for that interval
  3. Substitute and calculate as you would with any function

Example

Consider this piecewise function:

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

To find f(1): Since 1 < 2, use the first formula: f(1) = 1 + 3 = 4

To find f(5): Since 5 ≥ 2, use the second formula: f(5) = 5² - 1 = 25 - 1 = 24

To find f(2): Since 2 ≥ 2 (the boundary belongs to the second piece), use the second formula: f(2) = 2² - 1 = 4 - 1 = 3

Watch the Boundaries!

Pay close attention to whether boundary points use < or ≤ (and > or ≥). The symbols tell you exactly which formula to use when your input lands right on the dividing line.

Key Takeaway: To evaluate a piecewise function, first determine which piece (interval) contains your input, then use only that piece's formula to calculate the output.