### Video Transcript

Determine the range of the function π of π₯ is equal to π₯ if π₯ is greater than or equal to negative two and π₯ is less than four and π of π₯ is equal to eight minus π₯ if π₯ is greater than or equal to four and π₯ is less than or equal to eight.

In this question, weβre given a function π of π₯, and we can see that this function π of π₯ is defined piecewise. We need to use this and the given graph of our function π of π₯ to determine the range of this function. To do this, letβs start by recalling exactly what we mean by the range of a function. We recall that the range of a function means the set of all possible outputs of that function. And thereβs something worth highlighting about this definition. The set of possible outputs of a function are going to depend on the inputs weβre allowed for that function. Another way of saying this is the range of a function is dependent on the domain of that function. So we always need to keep this in mind whenever weβre asked to find the range of a function.

To find the range of our function, we actually have two options. Because weβre given a piecewise definition of π of π₯, we could use this to find the range of our function. However, we can also use the given graph to find this. Either of these will work. However, usually, we have to use both of these together to be sure of our answer.

Letβs start by using just the graph. The range of our function is going to be the set of possible outputs of our function. Remember, the inputs of our function are the values of π₯ and the outputs are the corresponding π¦-coordinates. For example, we can see from the sketch when π₯ is equal to negative two, our function also outputs negative two. And we can also see from our sketch this is the lowest possible output of our function. It doesnβt go any lower.

And this is a very useful piece of information to notice because remember the range is the possible outputs of our function. And we now know that we canβt have a possible output less than negative two. And we can do something very similar to the highest point of our curve. We can see this will be when we input a value of π₯ is equal to four. And we can see from our graph that this outputs a value of four. Once again, this is the largest output of our function. So the range of our function canβt include values bigger than four.

And of course, just by looking at our curve, it appears that any possible output between these two values does have an input. For example, if we wanted to check that two was in the range of our function, we would see that the input of two gives us an output of two. Therefore, it appears the possible outputs of our function is any value between negative two and four. Weβve represented this is as the closed interval from negative two to four.

However, we do need to be careful because remember graphs are not always entirely accurate. We can only get approximate values. This means weβre going to need to use the piecewise definition of our function π of π₯. So letβs start with the first piece of information we notice. We want to know what π evaluated at negative two is. Weβre going to do this by using the piecewise definition of π of π₯.

We can see when π₯ is equal to negative two, π of π₯ is equal to π₯. So π evaluated at negative two is just equal to negative two. And this is exactly what we had in our graph. And in fact, we can notice something very interesting about the piecewise definition of π of π₯. Whenever our input value of π₯ is greater than or equal to negative two and less than four, our function just outputs this value of π₯. Therefore, if we input any value of π₯ greater than or equal to negative two and less than four into our function π of π₯, then it just outputs itself. So this entire set has to be possible outputs for our function π.

But weβre still not done yet. We still want to know what happens for the rest of our input values of π₯. And thereβs a few different ways we could do this. One way to do this is to notice that eight minus π₯ is a linear function. In fact, it has negative slope. And because this has negative slope, as our input values of π₯ get bigger, the outputs are going to get smaller. Therefore, when π₯ is equal to four, eight minus π₯ is going to have its biggest possible output.

So letβs find out what π evaluated at four is equal to. We use our piecewise definition of π of π₯. Itβs equal to eight minus four. And of course, eight minus four is just equal to four. Therefore, because π evaluated at four is equal to four, we can conclude that four is a possible output of our function π. And we might want to check the rest of the input values of π₯. However, we donβt need to because we can see in our graph these wonβt give us any new outputs of our function.

Therefore, because the range is the set of all possible outputs of our function π, we need to combine these two sets. We can combine all of these possible outputs for our function π to just be the closed interval from negative two to four, which is our final answer. Therefore, by using both the graph of our function and the piecewise definition of the function π of π₯ is equal to π₯ when π₯ is greater than or equal to negative two and π₯ is less than four and π of π₯ is equal to π₯ minus eight if π₯ is greater than or equal to four and π₯ is less than or equal to eight to show that its range is the closed interval from negative two to four.