Lesson 6

Piecewise functions introduction

Theory and examples

One situation, different rules

Imagine a parking meter. For a short stay, the price might be one amount. Stay longer, and the rule changes. Stay even longer, and it changes again.

Parking meter idea

The input is the time you park. The output is the cost. The same machine is being used the whole time, but the rule depends on which time region your parking time belongs to.

hourscost$2$5$812

Key idea

A piecewise function is one function made from different rules on different parts of the domain.

Reading their equations

Piecewise notation looks intimidating at first, but it is really just a list of rules with instructions beside them. Each column has a rule and a region.

f(x)={x+2,x<32x,x≥3f(x)= \begin{cases} x+2, & x<3\\ 2x, & x\ge 3 \end{cases}

If we are in the region: x<3x<3

Use the rule: f(x)=x+2f(x)=x+2.

If we are in the region: x≥3x\ge 3

Use the rule: f(x)=2xf(x)=2x.

Activity: choose the correct rule

Find f(2)f(2) and f(5)f(5)

To calculate f(2)f(2), which rule should we use?

To calculate f(5)f(5), which rule should we use?

The boundary matters

The number where the rule changes is called a boundary. In the example above, the boundary is x=3x=3. The inequality signs decide which rule owns the boundary value.

Now f(3)f(3) is on the border, so which rule do we use?
Click to reveal answer

Since the second rule is inclusive of 3 and since 3≥33\ge 3 is true, use the second rule: f(x)=2xf(x)=2x.

f(3)=2(3)=6f(3)=2(3)=6

What it looks like on a graph

A piecewise graph can look like separate pieces stitched together. The open and closed circles show which endpoint is included.

xyuse rule 1use rule 2x = 3boundary

Open circle

The point is not included. The graph gets close to it, but does not own it.

Closed circle

The point is included. This rule owns that exact input.

Summary

  • A piecewise function is one function made from different rules.
  • The input tells you which rule to use.
  • Always check the condition before calculating.
  • Boundary values are controlled by inequality signs.
  • Open circles mean not included; closed circles mean included.

Optional mastery

Mastery questions

Do you want a high study score? Be disciplined. Do the mastery questions.

Open mastery questions

Checkpoint

Multiple-choice questions

Answer every question correctly to unlock the next lesson. If something is marked red, change your answer and check again.

Question 1
What is the main idea of a piecewise function?
Question 2
For a piecewise rule, what should you check before evaluating f(5)f(5)?
Question 3
In a piecewise graph, what does an open circle usually show?
Question 4
If x=3x=3 is included in the second rule, what should happen at x=3x=3?