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.
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.
If we are in the region:
Use the rule: .
If we are in the region:
Use the rule: .
Activity: choose the correct rule
Find and
To calculate , which rule should we use?
To calculate , 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 . The inequality signs decide which rule owns the boundary value.
Now is on the border, so which rule do we use?Click to reveal answer
Since the second rule is inclusive of 3 and since is true, use the second rule: .
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.
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.