3.11: Piecewise-Definition Functions
( \newcommand{\kernel}{\mathrm{null}\,}\)
Piecewise-Defined Functions are functions that are defined using different equations for different parts of the domain.
Evaluate the following piecewise-defined function for the given values of x, and graph the function:
f(x)={−2x+1−1≤x<0x2+20≤x≤2
Solution
To graph this function, make a table of solutions:
Table of Solutions for f(x)=−2x+1 Domain −1≤x<0 |
|
x | f(x) |
-1 | 3 |
0 | 1 (open circle here, 0 not in the domain) |
Table of Solutions for f(x)=x2+2 Domain 0≤x≤2 |
|
x | f(x) |
0 | 2 |
1 | 3 |
2 | 6 |

Evaluate the following piecewise-defined function for the given values of x, and graph the function:
f(x)={−x+1x≤−12−1<x≤1−x+3x>1
Solution
To graph this function, once again make a table of solutions:
Table of Solutions for f(x)=−x+1 Domain x≤−1 |
|
x | f(x) |
-3 | 4 |
-2 | 3 |
-1 | 2 (closed circle here, -1 is in the domain) |
Table of Solutions for f(x)=2 Domain −1<x≤1 |
|
x | f(x) |
-1 | 2 (open circle filled in by the previous function, -1 not in the domain) |
0 | 2 |
1 | 2 (closed circle here, 1 is in the domain) |
Table of Solutions for f(x)=−x+3 Domain x>1 |
|
x | f(x) |
1 | 2 (open circle filled in by the previous function, 1 not in the domain) |
2 | 1 |
3 | 0 |

Evaluate the following piecewise-defined functions for the given values of x, and graph the functions:.
- f(x)={xx<02x+1x≥0
- g(x)={4−xx<22x−2x≥2
- h(x)={−x−1x<−10−1≤x≤1x+1x>1
- g(x)={6−8≤x<−43−4≤x≤5
- f(x)={−x+1−1≤x<1√x−11≤x≤5