### Video Transcript

Find the values of π which make the function π continuous at π₯ equals π, if: π of π₯ is equal to two plus π₯ squared, if π₯ is less than or equal to π; and negative three π₯, if π₯ is greater than π.

For a function π of π₯ to be continuous at π₯ equals π, three things must be true. Firstly, π of π must exist, that is the function π of π₯ is defined at π₯ equals π. Secondly, the limit as π₯ tends to π of π of π₯ must exist, so both the left-hand and right-hand limits exist and are equal. And thirdly, the limit as π₯ tends to π of π of π₯ must equal π of π.

Letβs go through these one by one. First of all, we need π of π to exist. Well, when π₯ is less than or equal to π, which includes when π₯ is equal to π, π of π₯ is equal to two plus π₯ squared. So π of π is equal to two plus π squared. That is defined for any real value of π, so our first criterion is satisfied.

Now we move onto making sure that the limit as π₯ tends to π of π of π₯ exists. First, we evaluate the left-hand limit, the limit as π₯ tends to π from below of π of π₯. For this one-sided limit, weβre only considering values of π₯ for which π₯ is less than π, and so π of π₯ is equal to two plus π₯ squared. And we evaluate this limit by direct substitution, replacing π₯ by π to get two plus π squared. Now we have to find the value of the other one-sided limit, the limit as π₯ tends to π from above of π of π₯. When π₯ is greater than π, π of π₯ is equal to negative three π₯. So this is the limit as π₯ tends to π of negative three π₯, which is negative three π. We have shown that both one-sided limits exist, but for the limit as π₯ tends to π period of π of π₯ to exist, the values of these two one-sided limits have to be equal. Two plus π squared has to be equal to negative three π.

Letβs clear some room and solve this equation. First, we add three π to both sides and rearrange the terms. Now we have a quadratic in π in the form that weβre used to solving. We can factor this quadratic by inspection, and hence we see that these solutions are π equals negative one and π equals negative two. Of course, we couldβve used a different method, maybe completing the square or applying the quadratic formula. We wouldβve got the same solutions. These are the two values of π, for which the limit as π₯ tends to π of π of π₯ will exist.

The only thing left to check is that the limit as π₯ tends to π of π of π₯ is equal to π of π. Recall that two plus c squared was the limit as π₯ tends to π from below of π of π₯ and negative three π was the limit as π₯ tends to π from above of π of π₯. We showed these two were equal when the π is equal to negative one or negative two. And when they are equal, it makes sense to talk about the limit as π₯ tends to π of π of π₯. Letβs first try π equals negative one. In this case, the limit as π₯ tends to π from below of π of π₯ is two plus negative one squared by direct substitution, which is three. We also do direct substitution to find the limit as π₯ tends to π from above, getting a negative three times negative one, which again is three. And as these two one-sided limits agree, we can say that the limit as π₯ tends to π of π of π₯ is three. To satisfy the third criterion, this limit must be equal to the value of the function at π. π of π is two plus π squared, so when π is negative one, π of π is two plus negative one squared, which is three. And we can see that the third criterion is satisfied, the limit as π₯ tends to π of π of π is equal to π of π when π is negative one.

Now we just have to check π equals negative two. When π is equal to negative two, as we know that the values of the two one-sided limits are equal, the limit as π₯ tends to π of π of π₯ is just the value of one of the one-sided limits. Weβll choose the limit as π₯ tends to π from below of π of π₯ which is two plus π squared. Substituting the value of π, negative two in, we get two plus negative two squared, which is six. And of course, you can check this is exactly what we would get by direct substitution into the other one-sided limit. Whatβs the value of π of π in this case? Well, π of π is also equal to two plus π squared. And substituting negative two, we get a value of six. And again, the third criterion is satisfied. The limit as π₯ tends to π of π of π₯ is equal to π of π; theyβre both equal to six when π is equal to negative two. And so in this case, the limit as π₯ tends to π of π of π₯ is equal to π of π whenever the limit as π₯ tends to π of π of π₯ exists, i.e., when π is equal to negative one or π is equal to negative two.

So there are two values of π which make the function π continuous at π₯ equals π, namely π equals negative one and π equals negative two.