WEBVTT
00:00:01.340 --> 00:00:10.600
In this lesson, weβll learn how to identify, write, and evaluate a piecewise function given both the function equation and the graph of the function.
00:00:11.310 --> 00:00:13.000
Letβs begin with a definition.
00:00:13.380 --> 00:00:18.300
A piecewise function is a function thatβs made up from pieces of more than one different function.
00:00:18.620 --> 00:00:22.040
And each part of the function is defined on a given interval.
00:00:22.490 --> 00:00:35.010
For example, letβs imagine we have the function π of π₯, and itβs a piecewise function defined by π₯ plus one when π₯ is less than three and two π₯ minus two if π₯ is greater than or equal to three.
00:00:35.380 --> 00:00:44.600
In other words, for all values of π₯ up to but not including π₯ equals three, we would use the function π of π₯ equals π₯ plus one.
00:00:45.000 --> 00:00:50.660
Then, when π₯ is equal to and greater than three, we use the function two π₯ minus two.
00:00:51.210 --> 00:00:58.110
And then if we wanted to evaluate the function at a specific value of π₯, we need to be careful to follow these rules.
00:00:58.720 --> 00:01:01.450
We can also sketch the graph of this piecewise function.
00:01:01.890 --> 00:01:07.740
Up to but not including π₯ equals three, we use the function π of π₯ equals π₯ plus one.
00:01:08.160 --> 00:01:10.320
The graph of this function looks as shown.
00:01:10.630 --> 00:01:19.600
Notice that Iβve included an empty dot at π₯ equals three, and thatβs because the function isnβt defined by π of π₯ equals π₯ plus one here.
00:01:20.070 --> 00:01:25.730
It is, however, defined at π₯ equals three but by the function two π₯ minus two.
00:01:26.130 --> 00:01:28.820
And so the graph could look a little something like this.
00:01:29.210 --> 00:01:35.900
We could also include a solid dot at π₯ equals three to show that the function is defined here if we chose.
00:01:36.910 --> 00:01:42.900
Letβs have a look at an example of how to evaluate a piecewise function at a given value of π₯.
00:01:44.220 --> 00:02:04.530
Given that the function π of π₯ is equal to six π₯ minus two if π₯ is less than negative six, negative nine π₯ squared minus one if π₯ is greater than or equal to negative six and less than or equal to eight, and negative five π₯ cubed plus four if π₯ is greater than eight, find the value of π of four.
00:02:05.000 --> 00:02:10.680
We see that π of π₯ is a piecewise function, and itβs defined by three separate functions.
00:02:10.990 --> 00:02:17.230
When π₯ is less than negative six, weβre going to use the function π of π₯ equals six π₯ minus two.
00:02:17.620 --> 00:02:25.590
When π₯ is between negative six and eight and including those values, we use the function negative nine π₯ squared minus one.
00:02:25.830 --> 00:02:31.900
And when π₯ is greater than eight, we use the function π of π₯ is negative five π₯ cubed plus four.
00:02:32.380 --> 00:02:34.920
Now we want to find the value of π of four.
00:02:35.170 --> 00:02:41.400
And so we need to make sure that we correctly select the function that we need to use when π₯ is equal to four.
00:02:41.810 --> 00:02:44.910
Well, four is between negative six and eight.
00:02:45.190 --> 00:02:51.070
So weβre going to use this part of the function: π of π₯ is negative nine π₯ squared minus one.
00:02:51.610 --> 00:02:57.740
And so, π of four is found by substituting π₯ equals four into this function.
00:02:58.040 --> 00:03:01.770
Itβs negative nine times four squared minus one.
00:03:02.090 --> 00:03:13.150
Now, of course, the order of operations, which is sometimes abbreviated to PEMDAS or BIDMAS, tells us to begin by working out the value of the number being raised to some exponent.
00:03:13.490 --> 00:03:16.680
So in this case, we begin by working out four squared.
00:03:17.080 --> 00:03:19.060
Thatβs four times four which is 16.
00:03:19.460 --> 00:03:23.870
And so our calculation becomes negative nine times 16 minus one.
00:03:24.350 --> 00:03:31.170
We then perform the multiplication part of this calculation, remembering that a negative multiplied by a positive is a negative.
00:03:31.450 --> 00:03:34.060
We get negative 144 minus one.
00:03:34.440 --> 00:03:39.470
Negative 144 minus one is negative 145.
00:03:40.010 --> 00:03:46.210
And so, given the piecewise function π of π₯, we see that π of four is negative 145.
00:03:48.860 --> 00:03:57.270
Weβre now going to look at how to apply this process but when working with composite functions based off of an individual piecewise function.
00:03:59.710 --> 00:04:14.150
Consider the function π of π₯ is equal to π₯ plus four if π₯ is greater than four, two π₯ if π₯ is greater than or equal to negative one and less than or equal to four, and negative three if π₯ is less than negative one.
00:04:14.680 --> 00:04:16.760
Find π of π of two.
00:04:17.430 --> 00:04:21.440
π of π of two is a composite function.
00:04:21.630 --> 00:04:23.930
Itβs a function of a function.
00:04:24.310 --> 00:04:30.660
Weβre going to begin by looking at the inner function first, so weβre going to begin by thinking about π of two.
00:04:31.420 --> 00:04:39.230
Now, our π of π₯ is a piecewise function, and itβs defined by different functions on different intervals of π₯.
00:04:39.530 --> 00:04:43.720
Weβre told that when π₯ is greater than four to use the function π₯ plus four.
00:04:44.050 --> 00:04:48.570
When π₯ is between and including negative one and four, we use the function two π₯.
00:04:48.960 --> 00:04:53.960
And when π₯ is less than negative one, we use the function π of π₯ equals negative three.
00:04:54.620 --> 00:05:00.480
Two, of course, lies between negative one and four, and so weβre going to use the second part of our function.
00:05:00.920 --> 00:05:06.230
That is, when π₯ is equal to two, π of π₯ is equal to the function two π₯.
00:05:06.570 --> 00:05:11.710
And so, π of two is found by substituting two into this equation.
00:05:12.030 --> 00:05:14.660
We get two times two, which is four.
00:05:14.860 --> 00:05:16.950
So we found π of two; itβs four.
00:05:17.250 --> 00:05:24.210
If we replace π of two with its value of four, we see that we now need to evaluate π of four.
00:05:24.590 --> 00:05:26.140
And we need to be really careful here.
00:05:26.350 --> 00:05:29.700
Weβre actually still using this second part of the function.
00:05:30.050 --> 00:05:35.140
And this is because we only use the first part of the function when π₯ is strictly greater than four.
00:05:35.380 --> 00:05:38.740
When itβs less than or equal to four, we use the function two π₯.
00:05:39.010 --> 00:05:48.080
And so once again, we substitute our value of π₯ into the function π of π₯ equals two π₯, so itβs two times four which is equal to eight.
00:05:48.800 --> 00:05:52.930
Given our piecewise function, π of π of two is eight.
00:05:55.000 --> 00:06:00.000
In our next example, weβll see how to complete a table of values for a piecewise function.
00:06:02.370 --> 00:06:19.320
Find the missing table values for the piecewise function π of π₯, which is equal to two to the power of π₯ if π₯ is less than negative two, three to the power of π₯ if π₯ is greater than or equal to negative two and less than three, or two to the power of π₯ if π₯ is greater than or equal to three.
00:06:19.550 --> 00:06:24.090
And then we have a table with the values of π₯, negative three, zero, and three.
00:06:24.600 --> 00:06:32.310
Remember, when we have a function defined by different functions depending on its value of π₯, we call it a piecewise function.
00:06:32.640 --> 00:06:38.510
And according to our table, weβre looking to find the value of π of π₯ when π₯ is negative three.
00:06:38.830 --> 00:06:40.330
So thatβs π of negative three.
00:06:40.720 --> 00:06:43.740
We also want to find π of zero and π of three.
00:06:44.190 --> 00:06:50.100
And so we need to pay extra careful attention to the part of the function weβre going to use for each value of π₯.
00:06:50.370 --> 00:06:52.690
Letβs begin with π of negative three.
00:06:53.060 --> 00:06:55.470
Here, π₯ is equal to negative three.
00:06:55.910 --> 00:07:04.840
And so, since negative three is less than negative two, we need to use the first part of our function, that is, two to the power of π₯.
00:07:05.210 --> 00:07:12.240
And so to find π of negative three, weβre going to substitute π₯ equals negative three into that part of the function.
00:07:12.610 --> 00:07:16.120
And we get π of negative three is two to the power of negative three.
00:07:16.650 --> 00:07:21.620
And at this stage, we might recall that a negative power tells us to find the reciprocal.
00:07:21.910 --> 00:07:26.440
So π to the power of negative π, for instance, is one over π to the power of π.
00:07:26.790 --> 00:07:33.790
And this means then that two to the power of negative three is one over two cubed, which is equal to one over eight.
00:07:34.060 --> 00:07:37.200
And so the first value in our table is one-eighth.
00:07:37.470 --> 00:07:40.660
Letβs repeat this process for π₯ equals zero.
00:07:41.080 --> 00:07:47.310
This time zero is between negative two and three, so weβre going to use the second part of our function.
00:07:48.200 --> 00:07:56.030
And so, π of zero is found by substituting π₯ equals zero into the function π of π₯ equals three to the power of π₯.
00:07:56.250 --> 00:07:57.840
So thatβs three to the power of zero.
00:07:58.210 --> 00:08:06.100
Now, of course, at this stage, we might recall that anything to the power of zero is equal to one, so π to the power of zero is simply equal to one.
00:08:06.380 --> 00:08:08.170
And thatβs the second value in our table.
00:08:08.800 --> 00:08:12.440
Letβs repeat this process for the third and final column in our table.
00:08:12.810 --> 00:08:19.180
The third part of our piecewise function is used when π₯ is greater than or equal to three.
00:08:19.620 --> 00:08:22.290
So weβre going to use this value when π₯ is equal to three.
00:08:22.640 --> 00:08:27.450
And this means that π of three is two cubed, which is simply equal to eight.
00:08:27.750 --> 00:08:30.550
And so we pop eight in the final part of our table.
00:08:31.090 --> 00:08:37.180
The missing table values for our piecewise function π of π₯ are one-eighth, one, and eight.
00:08:38.630 --> 00:08:44.680
Weβre now going to look at a couple of examples on evaluating a function at a point given its graph.
00:08:46.710 --> 00:08:50.000
Determine π(0) using the graph.
00:08:50.320 --> 00:08:52.080
Letβs look at the graph of our function.
00:08:52.470 --> 00:09:01.530
It must be a piecewise function, and this is because itβs made up of pieces of graphs of various functions over various intervals on π₯.
00:09:01.880 --> 00:09:05.320
For instance, letβs take the first portion of graph here.
00:09:05.900 --> 00:09:12.260
This portion is defined by a specific function over the interval from negative 10 to eight.
00:09:12.740 --> 00:09:17.490
In fact, we could even define this as the left-closed, right-open interval.
00:09:17.520 --> 00:09:27.130
And thatβs because the solid dot tells us that itβs defined at π₯ equals negative 10 but not defined by this part of the function at π₯ equals negative eight.
00:09:27.470 --> 00:09:34.730
Then, the second part of the function allows us to define π of π₯ at π₯ equals negative eight with the solid dot here.
00:09:34.950 --> 00:09:40.560
But when π₯ is equal to zero, we canβt use this part of the graph to determine π of zero.
00:09:40.980 --> 00:09:44.770
The empty dot tells us itβs not defined by this part of our function.
00:09:45.030 --> 00:09:47.960
So, how are we going to determine π of zero?
00:09:48.240 --> 00:09:53.920
Well, when π₯ is zero, weβre looking for a part of the function that lies on the π¦-axis.
00:09:54.140 --> 00:10:00.000
Weβve already seen this canβt be defined by this function here, but we do have a solid dot here.
00:10:00.320 --> 00:10:03.990
And so, the function is actually defined when π₯ is equal to zero.
00:10:04.330 --> 00:10:06.870
This point has coordinates zero, four.
00:10:07.270 --> 00:10:10.120
So we see that π of zero must be equal to four.
00:10:11.670 --> 00:10:14.520
Letβs consider one further example of this type.
00:10:16.480 --> 00:10:18.100
Determine π of one.
00:10:18.450 --> 00:10:21.740
Here we see the function π of π₯ is a piecewise function.
00:10:22.070 --> 00:10:25.710
We know this because itβs made up of the graphs of two different functions.
00:10:25.950 --> 00:10:30.660
The first part of the graph is defined over the interval from negative two to one.
00:10:31.050 --> 00:10:35.990
But of course, this empty circle tells us that itβs not defined by this graph at this point.
00:10:36.230 --> 00:10:41.030
Then the second part of the function is defined over the interval from one to eight.
00:10:41.390 --> 00:10:47.290
Once again, the empty dot tells us that itβs not defined at π₯ equals one by this portion of the graph.
00:10:47.520 --> 00:10:50.470
And so, how are we going to determine π of one?
00:10:50.860 --> 00:10:51.800
Well, we canβt.
00:10:51.840 --> 00:10:55.410
π of one is totally undefined according to our graph.
00:10:55.470 --> 00:10:58.120
There are plenty of values that we can find.
00:10:58.390 --> 00:11:03.110
For example, π of five is equal to one, as is π of negative one.
00:11:03.410 --> 00:11:06.870
But π of one is completely undefined according to our graph.
00:11:09.950 --> 00:11:15.920
In this video, we learned that a piecewise function is a function made up from pieces of more than one different function.
00:11:16.290 --> 00:11:20.590
We saw that each function is defined on some given interval.
00:11:20.870 --> 00:11:31.920
Finally, we saw that we can evaluate a piecewise function using the graph or its individual function parts, but we must be careful to ensure the function is actually defined at that point.