Lesson Objectives
- Learn how to identify the absolute value function
- Learn how to identify the greatest integer function
- Learn how to evaluate a piecewise-defined function
How to Graph and Evaluate a Piecewise-Defined Function
In this lesson, we will learn about the piecewise-defined function, which is also known as the split-definition function. This type of function is defined by different rules over different intervals of the domain. Let's begin with the absolute value function.
The absolute value function is an example of a piecewise-defined function. It has different rules across different intervals of the domain. $$\ f(x)=|x|=\begin{cases}x, & \text{if}\hspace{.2em}x ≥ 0 \\ -x & \text{if}\hspace{.2em}x < 0 \end{cases}$$
The greatest integer function is another example of a piecewise-defined function. This function pairs every real number x with the greatest integer that is less than or equal to x.
Example #1: Find f(-1) and f(3). $$\ f(x)=\begin{cases}4 - x^3, & \text{if}\hspace{.2em}x ≤ 2 \\ -6 & \text{if}\hspace{.2em}x > 2 \end{cases}$$ Let's begin with f(-1). To find f(-1), we think about the rule associated with an x-value of -1. $$\text{if}\hspace{.2em}x ≤ 2 :$$ $$f(x)=4 - x^3$$ So we want to plug in a -1 for x here: $$f(-1)=4 - (-1)^3$$ $$f(-1)=4 + 1=5$$ $$f(-1)=5$$ Our second task is to find f(3). Here, the process is a bit easier. When x is larger than 2, f(x) or the function's value is just -6. $$f(3)=-6$$
The Absolute Value Function
$$f(x)=|x|$$ $$domain:(-\infty, \infty)$$ $$range : [0, \infty)$$The Greatest Integer Function
$$f(x)=[x]$$ $$domain: (-\infty, \infty)$$ $$range: \{y | y ∈ \mathbb{Z}\}$$Evaluating a Piecewise-Defined Function
In some cases, we may be asked to evaluate a piecewise-defined function for a given value of the domain. Let's look at an example.Example #1: Find f(-1) and f(3). $$\ f(x)=\begin{cases}4 - x^3, & \text{if}\hspace{.2em}x ≤ 2 \\ -6 & \text{if}\hspace{.2em}x > 2 \end{cases}$$ Let's begin with f(-1). To find f(-1), we think about the rule associated with an x-value of -1. $$\text{if}\hspace{.2em}x ≤ 2 :$$ $$f(x)=4 - x^3$$ So we want to plug in a -1 for x here: $$f(-1)=4 - (-1)^3$$ $$f(-1)=4 + 1=5$$ $$f(-1)=5$$ Our second task is to find f(3). Here, the process is a bit easier. When x is larger than 2, f(x) or the function's value is just -6. $$f(3)=-6$$
Skills Check:
Example #1
Find f(-1) $$\ f(x)=\begin{cases}x^2, & \text{if}\hspace{.2em}x ≤ 0 \\ 2x - 4 & \text{if}\hspace{.2em}x > 0 \end{cases}$$
Please choose the best answer.
A
$$f(-1)=-6$$
B
$$f(-1)=1$$
C
$$f(-1)=-1$$
D
$$f(-1)=3$$
E
$$f(-1)=2$$
Example #2
Find f(3) $$\ f(x)=\begin{cases}x - 1, & \text{if}\hspace{.2em}x ≤ -3 \\ x + 4 & \text{if}\hspace{.2em}x > -3 \end{cases}$$
Please choose the best answer.
A
$$f(3)=7$$
B
$$f(3)=2$$
C
$$f(3)=-4$$
D
$$f(3)=1$$
E
$$f(3)=9$$
Example #3
Find f(-2) $$\ f(x)=\begin{cases}x^2 - 3, & \text{if}\hspace{.2em}x ≤ 3 \\ (x - 3)^2 & \text{if}\hspace{.2em}x > 3 \end{cases}$$
Please choose the best answer.
A
$$f(-2)=25$$
B
$$f(-2)=13$$
C
$$f(-2)=9$$
D
$$f(-2)=1$$
E
$$f(-2)=8$$
Congrats, Your Score is 100%
Better Luck Next Time, Your Score is %
Try again?
Ready for more?
Watch the Step by Step Video Lesson Take the Practice Test