# Video: APCALC02AB-P1A-Q17-534182575056

Consider the function 𝑓(𝑥) = (𝑥² + 2𝑥 − 8)/(𝑥 − 2) 𝑥 ≠ 2, and 𝑓(𝑥) = 2𝑘 𝑥 = 2. Find 𝑘 such that 𝑓(𝑥) is continuous for all 𝑥.

05:34

### Video Transcript

Consider the function 𝑓 of 𝑥 is equal to 𝑥 squared plus two 𝑥 minus eight divided by 𝑥 minus two when 𝑥 is not equal to two and two 𝑘 when 𝑥 is equal to two. Find 𝑘 such that 𝑓 of 𝑥 is continuous for all values of 𝑥.

The first thing we can do for this question is to recall the conditions for a continuous function. We say that a function is continuous at a point 𝑥 equals 𝑎 if the limit as 𝑥 approaches 𝑎 of 𝑓 of 𝑥 is equal to the function evaluated at 𝑥 equals 𝑎, 𝑓 of 𝑎. This question is asking us to find the value of 𝑘 such that our function is continuous for all points or all values of 𝑥. Our function 𝑓 of 𝑥 is almost entirely defined by the first subfunction, 𝑥 squared plus two 𝑥 minus eight all divided by 𝑥 minus two. We’ll choose to call this subfunction ℎ of 𝑥. ℎ of 𝑥 takes the form of a rational function. It should be clear to us that this quotient will have a nonzero denominator at all values, where 𝑥 is not equal to two. Luckily, 𝑥 equals two is the only point at which 𝑓 of 𝑥 is not defined by this subfunction.

Given this information, we can conclude that ℎ of 𝑥 will behave like 𝑎 normal polynomial at all points where 𝑥 is not equal to two. A fact that we can then use to help us is that polynomial functions are continuous on the entire set of real numbers. Since 𝑓 of 𝑥 is defined by ℎ of 𝑥 when 𝑥 is not equal to two and ℎ of 𝑥 is continuous when 𝑥 is not equal to two, it therefore follows that 𝑓 of 𝑥 is continuous when 𝑥 is not equal to two. Great! We’re now happy with the fact that of 𝑥 is continuous for all real numbers aside from 𝑥 equals two.

Let’s now deal with this. Let’s now go back to our continuity condition. We need to make sure this is satisfied for 𝑥 equals two in order for 𝑓 of 𝑥 to be continuous for all values of 𝑥. Now remember the limit as 𝑥 approaches two of our function 𝑓 of 𝑥 concerns values of 𝑥 which are arbitrarily close to two, but not equal to two. This means that we’ll be working with our first subfunction ℎ of 𝑥 when looking for the limit as 𝑥 approaches two of 𝑓 of 𝑥.

The right-hand side of our equation for the continuity condition is fairly trivial since 𝑓 of two is simply two 𝑘. And we’ll be setting this value of 𝑘 as desired. The left-hand side of the equation—the limit—is where all the legwork happens. So let’s work on this. As we just said, the limit as 𝑥 approaches two of 𝑓 of 𝑥 is given by the limit as 𝑥 approaches two of our first subfunction, ℎ of 𝑥. Let’s use the expression that we have.

To find this limit, the first thing we may think to do is take a direct substitution approach. If we were to do this, substituting two for 𝑥, and then we were to simplify our answer, we would be left with the indeterminate form of zero over zero. This is not very helpful to us. And in fact, we already knew that 𝑥 equals two would give a denominator of zero for this subfunction. Instead of this, we’re gonna take a different approach, evaluating our limit by factorisation. Let’s rewind back to ℎ of 𝑥.

With a little bit of inspection, we might notice that the numerator of ℎ of 𝑥 can be factorised to 𝑥 minus two times 𝑥 plus four. If we were to then cancel the common factor of 𝑥 minus two from the top and bottom half of our quotient, we get 𝑥 plus four. But here, we should be a little bit careful not to call this 𝑥 plus four ℎ of 𝑥. Let’s call it something different. How about 𝑘 of 𝑥? Now, you might be wondering why we’ve defined these two things in different ways since clearly they are equal. And although this is nearly true, ℎ of 𝑥 is equal to 𝑘 of 𝑥, but only if 𝑥 is not equal to two. Remember we proved that 𝑥 equals two is not in the domain of ℎ of 𝑥 since this gives us a divide by zero. Clearly, 𝑥 equals two is in the domain of 𝑘 of 𝑥.

Now, let’s consult another general rule to move forward. This rule says that the limit as 𝑥 approaches 𝑎 of some function, which we’ve called ℎ of 𝑥, is equal to the limit as 𝑥 approaches 𝑎 of some other function 𝑘 of 𝑥 if these two functions are equal at all values where 𝑥 is not equal to 𝑎. Again, remember this is because limits concern values of 𝑥 which are arbitrarily close to 𝑥 equals 𝑎, but not 𝑥 equals 𝑎 itself. Here, we see the condition for this general rule is the exact same condition to the one we’ve just observed.

This now allows us to move forward with our question in the following way. Here, we see that the limit as 𝑥 approaches two of ℎ of 𝑥 is equal to the Limit as 𝑥 approaches two of 𝑘 of 𝑥. And we remember the steps we took to get here. Since 𝑥 equals two is in the domain of 𝑘 of 𝑥, we can now use the direct substitution approach. Subbing in, we get the limit is equal to two plus four which is of course six. Now, finally, once again, we get back to our condition for continuity.

Now that we know the left-hand side of this equation is equal to six, we must also set the right-hand side of the equation to be six. This means that in order for our continuity condition to be satisfied, 𝑓 of two must be equal to six. Since 𝑓 of 𝑥 is defined by the second subfunction two 𝑘 when 𝑥 equals two, we know that 𝑓 of two is two 𝑘, as we stated earlier. Simply by dividing both sides of this equation by two, we reach the result that 𝑘 must equal three in order for the continuity condition to be satisfied when 𝑥 equals two.

In fact, if 𝑘 equals three, given our previous reasoning, we know that the continuity condition is satisfied over the entire set of real numbers, so for all values of 𝑥. This means that we have answered our question. And we found the value for 𝑘 such that our function 𝑓 of 𝑥 is continuous for all values of 𝑥.