### Video Transcript

Find the values of π and π that make π of π₯ which is equal to ln of π₯ minus two if π₯ is less than three and two π plus ππ₯ plus one if π₯ is greater than or equal to three differentiable at π₯ equals three.

For this question, weβ²ve been given a piecewise defined function π of π₯. And weβ²ve been asked to find the values of two constants which would make our piecewise defined function differentiable at the boundary between its two subfunctions. To begin this question, we recall the following general rule, which is if a function is differentiable at some point, which weβll call π₯ nought, it is also continuous at π₯ nought. Taking our value of three as π₯ nought, our steps to solve this problem can be as follows.

Weβll first check that our function π is continuous at the point where π₯ equals three. If this condition is not satisfied, then an implication of our general rule is that π will also not be differentiable at π₯ equals three. If this condition is satisfied, weβll then check that the limit as π₯ approaches three of the derivative of our function π dash of π₯ exists. If the second condition is not satisfied, we again conclude that π is not differentiable at π₯ equals three. However, if this condition is satisfied, we conclude that π is differential at π₯ equals three. This is because in order for a function to be differentiable at a point, we must be able to define the derivative at this point.

Letβ²s begin on our first step, checking the continuity of π at π₯ equals three. Here, we recall the condition for continuity which states that the limit as π₯ approaches π₯ nought of our function π of π₯ must be equal to the function evaluated at π₯ nought. Our value of π₯ nought is three, so letβ²s begin by evaluating π of three. Here, we see that when π₯ is greater than or equal to three, π of π₯ is defined by our second subfunction: two π plus ππ₯ plus one. π of three is therefore two π plus π times three plus one. Here, we can rewrite this as three π to tidy things up.

To check our limit, weβll need to recall the following facts. If the left- and the right-sided limits of our function both exist and are equal to some value πΏ, then the normal limit will also exist and be equal to the same value πΏ. Since we have a piecewise defined function of which the two subfunctions join up at π₯ equals three, the left- and the right-sided limits of π of π₯ will be defined by our two different subfunctions. As π₯ approaches three from the negative direction, π₯ is less than three. And hence, π of π₯ is defined by ln of π₯ minus two.

Here, we can take a direct substitution approach of π₯ equals three. And we find that our limit is equal to ln of three minus two, which is equal to ln of one. And we know that any logarithm of one is equal to zero. Weβ²ve now found the value for our left-sided limit. So letβ²s work on our right-sided limit. When π₯ approaches three from the positive direction, π₯ is greater than three. And hence, π of π₯ is defined by our second subfunction, which is two π plus ππ₯ plus one. To solve this limit, we again take a direct substitution approach. And here, we may recognize that weβ²ve already substituted π₯ equals three into this subfunction when evaluating π of three. We hence know that our answer is the same which is two π plus three π plus one.

Here, we see that both our left and our right limits exist. But in order to satisfy our continuity condition, we need both of these things to be equal to π of three. We can immediately see that π of three and our right-sided limits are equal. However, we also need these to be equal to zero. And hence, we can form the following equation that two π plus three π plus one is equal to zero. Now, this equation gives us a relationship between π and π. But it doesnβ²t yet solve our question since there are infinitely many pairs of values which would satisfy the equation.

To move forward, weβll set this equation aside and move on to our next condition for differentiability. We now need to make sure that the limit as π₯ approaches π₯ nought of the derivative of our function exists. Again, since we have a piecewise defined function, this will involve making sure that our left- and our right-sided limits are equal to each other. First, letβ²s define π dash of π₯ by differentiating our two subfunctions.

First, we must take the derivative of ln of π₯ minus two. Here, we may recall that a standard result is that the derivative of ln of π₯ is one over π₯. Since we have a composition of functions with ln of π₯ minus two, here we must use the chain rule. However, since the derivative of π₯ minus two is just one, our answer is one over π₯ minus two. Next, we must differentiate our second subfunction, which is two π plus ππ₯ plus one. Looking at this expression, we see that we have one π₯ term and two constant terms. The constant terms when differentiated are equal to zero. But using the power rule to differentiate our ππ₯ term, this becomes π.

Now that weβve differentiated our two subfunctions, we can put both of these back into our definition of π dash of π₯. We then have that π dash of π₯ is equal to one over π₯ minus two if π₯ is less than three and π if π₯ is greater than three. Itβ²s worth noting that we do not ordinarily make claims as to the value of our derivative when π₯ is equal to the value π₯ nought until the very end of the question. This is because weβ²re not yet sure whether our function is differentiable at the point in question. In this instance, since we are making π of π₯ differentiable at π₯ equals three, weβ²ll allow ourselves to put this in.

To check that the normal limit exist, weβll need to check the left and right limits as π₯ approaches three. Much like the continuity condition, weβll be using different subfunctions for the left- and the right-sided limits of our derivative π dash of π₯. Much like when checking the continuity condition, the left- and the right-sided limits of π dash of π₯, weβ²ll use different subfunctions because we have a piecewise defined function.

As π₯ approaches from the negative direction, π₯ is less than three. And hence, π dash of π₯ is defined by one over π₯ minus two. Directly substituting π₯ equals three into this, we get that this limit is equal to one over three minus two which is of course just one over one which is one. Moving on to the right-sided limit, here π₯ approaches three from the positive direction. Hence, π₯ is greater than three and π dash of π₯ is defined by our second subfunction π. Of course, the limit as π₯ approaches anything of π is just π. And hence, we have the value of our right-sided limit. In order to satisfy this condition, the normal limit as π₯ approaches three of π dash of π₯ must exist. And hence, both the left- and the right-sided limits must both exist and be equal to each other.

Since weβ²ve just calculated both of these values, we can substitute them in to form an equation. And this equation tells us that π is equal to one. We may now recognize that with this piece of information alongside our earlier equation, weβre now able to answer our question. Given that we now know π is one, we substitute this into our first equation. We then find that two π plus four is equal to zero, two π is negative four, and hence π is negative two.

Upon finding these values, we have now solved our question. And we have found that when π is equal to negative two and when π is equal to one, the function π of π₯ is differentiable at the point where π₯ is equal to three.