A piecewise-defined function is described by two or more rules, with each rule applying to a specified part of the domain. Different rules may be used for negative and positive inputs, particular intervals, or conditions involving the input. To evaluate a piecewise function, first identify which condition contains the given input, then apply the corresponding rule. When graphing a piecewise function, draw each rule only over its specified interval. Open circles indicate excluded endpoints, while closed circles indicate included endpoints.
Piecewise-Defined Functions
A piecewise-defined function uses different mathematical rules for different parts of its domain.
f(x) = {g(x), when x ∈ A; h(x), when x ∈ B}
Explanation
Variables
| Symbol | Meaning | Unit |
|---|---|---|
x | Input variable | Depends on the context |
g(x), h(x) | Different rules used by the function | Depends on the context |
A, B | Specified parts of the domain | Not applicable |
Example or application
Let f(x) = x + 2 when x < 0, and f(x) = x² when x ≥ 0. Then f(-3) = -1, while f(2) = 4.
Key Properties
Different rules apply to different domain intervals or conditions.
Each permitted input must still have exactly one output.
Evaluate the condition before choosing a rule.
Open and closed circles identify excluded and included graph endpoints.
A piecewise function may be continuous or discontinuous at its boundaries.
Sources and verification
Sources are shown as provided in the project data. Not every source has yet been independently verified. Please report errors or missing citations.
- SCIENEXY Mathematics Reference