Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Statistics LibreTexts

3.11: Piecewise-Definition Functions

( \newcommand{\kernel}{\mathrm{null}\,}\)

Definition: Piecewise-Defined Functions

Piecewise-Defined Functions are functions that are defined using different equations for different parts of the domain.

Example 4.11.1

Evaluate the following piecewise-defined function for the given values of x, and graph the function:

f(x)={2x+11x<0x2+20x2

Solution

To graph this function, make a table of solutions:

Table of Solutions for f(x)=2x+1

Domain 1x<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 0x2

 
x f(x)
0 2
1 3
2 6
clipboard_e94fd5197718a7373772af1280306cf06.png Figure 4.11.1
Example 4.11.2

Evaluate the following piecewise-defined function for the given values of x, and graph the function:

f(x)={x+1x121<x1x+3x>1

Solution

To graph this function, once again make a table of solutions:

Table of Solutions for f(x)=x+1

Domain x1

 
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<x1

 
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
clipboard_e795cd2fce50083772c8741bdcad72855.png Figure 4.11.2
Exercise 4.11.1

Evaluate the following piecewise-defined functions for the given values of x, and graph the functions:.

  1. f(x)={xx<02x+1x0
  2. g(x)={4xx<22x2x2
  3. h(x)={x1x<101x1x+1x>1
  4. g(x)={68x<434x5
  5. f(x)={x+11x<1x11x5

  • Was this article helpful?

Support Center

How can we help?