Is Cady Right, or Does the Limit Exist?

I recently watched the movie Mean Girls. At the end of the movie, there is a scene where the main character is shown a limit and asked to evaluate it. After quickly working out the problem in a tight competition for the academic decathlon, Cady looks up from her paper and shouts, “THE LIMIT DOES NOT EXIST!”

And of course, being the math oriented person that I am, I just was left wondering whether the limit actually exists after Mean Girls concluded. So I figured I’d share my findings.

First of all, here’s the limit shown at the end of Mean Girls: $$\lim_{x \to 0} \ \frac{ln(1-x) \ – sin(x)}{1-cos^2(x)}$$

Where do we start?

Typically when I’m evaluating limits, I like to assume that the function is continuous at the point we’re evaluating the limit and just plug it in. This usually doesn’t work, but it will frequently give us a hint as to which method we can use to evaluate it. This basically just takes advantage of the basic limit properties of limits if it works out. But we need to make sure we’re not causing any problems when we do this.

So let’s just start with plugging in zero for x in the function who’s limit we’re looking for.

$$ f(x) = \frac{ln(1-x) \ – sin(x)}{1-cos^2(x)}$$ $$f(0)=\frac{ln(1-0) \ – sin(0)}{1-cos^2(0)}$$ $$f(0)=\frac{ln(1-0) \ – sin(0)}{1- \big( cos(0) \big)^2}$$ $$f(0)=\frac{0 \ – 0}{1- 1} = \frac{0}{0}$$

Turns out, this doesn’t really work this time. Because we end up with the indeterminate form of \frac{0}{0}. Since it’s never fine to divide by zero, this isn’t allowed.

So, we’ll need to think of another way to evaluate this limit. But like I said before, the fact that we got this indeterminate form gives us a hint of how we can evaluate this limit properly. This indeterminate form actually is one of the conditions that tells us we can evaluate this limit using L’Hospital’s Rule.

L’Hospital’s Rule

Which means we can create a new limit. We will still have x \to 0 in our new limit. But we’ll take the limit of a different function. And hopefully this one will be easier to evaluate.

This new limit will actually just be made up of a fraction where the top of the fraction is just the derivative of the original numerator. And the bottom of this new faction is just the derivative of the denominator of the original fraction. So we know that $$\lim_{x \to 0} \ \frac{ln(1-x) \ – sin(x)}{1-cos^2(x)} \ = \ \lim_{x \to 0} \ \frac{\frac{d}{dx} \big[ ln(1-x) \ – sin(x) \big] }{\frac{d}{dx} \big[ 1-cos^2(x) \big] }$$

Remember, we are not finding the derivative of the fraction as a whole, so we should not use the quotient rule. We will need to apply the chain rule to find the derivative of a few of these terms. Doing so tells us that $$\lim_{x \to 0} \ \frac{ln(1-x) \ – sin(x)}{1-cos^2(x)} \ = \ \lim_{x \to 0} \ \frac{ – \ \frac{1}{1-x} \ – \ cos(x) }{ 2cos(x) \cdot sin(x) }$$

Now can we evaluate this limit?

The point of using L’Hospital’s Rule is that we should end up with a limit that’s easier to evaluate. So, let’s try the same thing we did earlier and see what happens. Since we have a limit as x \to 0, let’s just plug zero in for x and see what we get. $$\lim_{x \to 0} \ \frac{ – \ \frac{1}{1-x} \ – \ cos(x) }{ 2cos(x) \cdot sin(x) }$$ $$\frac{ – \ \frac{1}{1-(0)} \ – \ cos(0) }{ 2cos(0) \cdot sin(0)}$$ $$\frac{ – \ 1 \ – \ 1 }{ 2(1)(0)} = \frac{-2}{0}$$

And you can see we’ve divided by zero. So, this isn’t going to work. You can’t divide by zero, it breaks the rules of math. Therefore, we can’t just evaluate this limit by plugging in zero for x.

However, we are getting closer. The reason I say this is that we don’t have the indeterminate form of \frac{0}{0} anymore. Since we have some other number divided by zero, that tells us that this limit will likely be either \infty or - \infty.

The reason for this is that the numerator of the fraction is going toward the number -2. Whether you approach from the left or the right of x = 0, the top of our fraction is going to be a number close to -2.

Meanwhile, as x gets really, really close to 0, the denominator is going to also get really close to 0. But we don’t care about what the denominator is when x = 0. Since we’re dealing with a limit we care about the denominator when x is really close to 0. But depending on which side of zero we’re on, the denominator could be positive or negative.

If we have a fraction where the numerator is some non-zero number, and the denominator is getting infinitely close to zero, the fraction as a whole will become infinitely large. We just need to figure out if it’s positive or negative. Well, we can figure this out by splitting the limit up into two one-sided limits and see what those tell us about the two-sided limit.

Left-Sided Limit

Let’s start with the limit where x is approaching zero from the left. $$\lim_{x \to 0^-} \ \frac{ – \ \frac{1}{1-x} \ – \ cos(x) }{ 2cos(x) \cdot sin(x) }$$ We already know that the numerator of this fraction is going to approach -2 as x approaches 0 from either side. So, let’s just look at the denominator of this fraction.

What happens to 2cos(x)sin(x) as x \to 0? Well, we already said it will approach 0, but let’s just consider what’s going on as x approaches 0 from the left. If we’re approaching 0 from the left, that means we want to consider x values that are super close to 0, but will be negative. For negative x values approaching 0, cos(x) will approach 1, and will be slightly smaller than 1. And sin(x) will approach 0, and will be negative numbers very close to 0.

This is because sin(x) is negative for x values very close to 0. We can see this looking at a graph of f(x)=sin(x).

Graph of f(x) = sin(x)

Based on this, as x approaches 0, 2cos(x)sin(x) will become the product of 2, 1, and a negative number very close to 0. The product of two positive numbers and a negative number will be a negative number. So we know that this denominator will be getting closer and closer to 0, but will be a negative number in this left sided limit.

So we can think of the fraction as a whole, as a positive number very close to 2, divided by a negative number very close to 0. As x goes to 0 from the left, this fraction will get infinitely large and will be negative because it’s a positive divided by a negative. In other words, as x \to 0^-, \frac{ - \ \frac{1}{1-x} \ - \ cos(x) }{ 2cos(x) \cdot sin(x) } \to \frac{2}{-0}. Or $$\lim_{x \to 0^-} \ \frac{ – \ \frac{1}{1-x} \ – \ cos(x) }{ 2cos(x) \cdot sin(x) }=-\infty$$

Right-Sided Limit

The right-sided limit will work out very similarly, but with one main difference. $$\lim_{x \to 0^+} \ \frac{ – \ \frac{1}{1-x} \ – \ cos(x) }{ 2cos(x) \cdot sin(x) }$$ Again, the numerator of this fraction is going to approach -2 as x approaches 0 from the right. But let’s look at the denominator.

By the same process as the left-sided limit above, we can see that the denominator of this fraction is going to approach 0. But what we need to figure out is whether it is going to be approaching 0 from the negative side or the positive side. And the only term of our denominator that is going to be different approaching from the right side of 0, is sin(x).

Looking back up at the graph of f(x)=sin(x) you can see that the function is positive (above the x axis) to the right of x=0. Therefore, the denominator of this fraction is going to be the product of three positive numbers, resulting in a positive number. And the fraction as a whole will be a positive number over a positive number. In other words, as x \to 0^+, \frac{ - \ \frac{1}{1-x} \ - \ cos(x) }{ 2cos(x) \cdot sin(x) } \to \frac{2}{+0}. Or $$\lim_{x \to 0^+} \ \frac{ – \ \frac{1}{1-x} \ – \ cos(x) }{ 2cos(x) \cdot sin(x) }=\infty$$

What does this tell us about the two-sided limit?

Remember, for a limit to exist both one-sided limits need to exist AND they both need to be equal to each other. We just figured out that our left-sided limit is -\infty and the right-sided limit is \infty. Since one is positive and one is negative, they clearly aren’t equal. Each one-sided limit does not give the same result. Therefore, the limit we are trying to find indeed does not exist.

So, it turns out Cady was right in the end of Mean Girls. The limit does not exist.

Limits to Infinity

Limits as x approaches infinity can be tricky to think about. This is because infinity is not a number that x can ever be equal to. To evaluate a limit as x goes to infinity, we cannot just simply plug infinity in for x and see what we get. As a result, things like \mathbf{e^{\infty}} and \mathbf{\frac{1}{\infty}} don’t actually have a value.

So how can we deal with infinity?

Although infinity doesn’t have a specific value and can’t be plugged into functions, we can think about what will happen to a given function as x approaches infinity.

All this really means is that x is continually getting infinitely large. And as x gets bigger and bigger and bigger, what y value will our function get closer and closer to?

Let’s look at a few common examples and what they mean.

One Divided by Infinity

Like I said before, infinity is not a value. Therefore, \frac{1}{\infty} isn’t an actual number and doesn’t have a value. However, what we want to think about is what y value 1/x will approach as x goes to infinity. This is exactly what is being asked when we see: $$\lim_{x \to \infty} \frac{1}{x}$$

So let’s think about what happens to 1/x when we plug in bigger and bigger numbers for x.

x\mathbf{\frac{1}{x}}
11
100.1
1000.01
1,0000.001
10,0000.0001
100,0000.00001
1,000,0000.000001
10,000,0000.0000001
100,000,0000.00000001

So you can see in the table above that as x gets bigger and bigger, 1/x gets closer and closer to 0. Or in other words,

as x approaches infinity, 1/x approaches 0

We would write this mathematically as: $$\lim_{x \to \infty} \frac{1}{x} = 0$$

We can also see this graphically using Mathway. Notice in the graph below that as the x value goes toward infinity, you can see the y value getting closer to the y-axis (y=0).

limit as x goes to infinity of 1/x

Limits Going to Infinity

The other common example I mentioned is the limit as x goes to infinity of \mathbf{e^x}. Or $$\lim_{x \to \infty} e^x$$

Again, it doesn’t really make sense to say that we can just plug infinity in for x and get \mathbf{e^{\infty}}. This doesn’t actually have a value. This isn’t a number. Instead, we want to think about what y value \mathbf{e^x} goes toward as x goes to infinity. So let’s look at what happens as we raise e to a larger and larger power.

x\mathbf{e^x}
12.718
27.389
454.598
6403.429
82,980.958
1022,026.466
1002.688 * \mathbf{10^{43}}

So we can see here that \mathbf{e^x} starts giving us very large numbers quite quickly. And as we continue to plug in larger values for x, \mathbf{e^x} will continue to get bigger and bigger and bigger.

as x approaches infinity, \mathbf{e^x} approaches infinity

We would write this mathematically as: $$\lim_{x \to \infty} e^x = \infty$$

Rational Functions

Finding the limit as x approaches infinity of rational functions is a common limit you will run into. This is important because this is how you find horizontal asymptotes of rational functions. You are just looking to see what y value your function will get really close to (without touching that value) as your x goes to infinity.

What is a rational function?

A rational function is a function that is a fraction where the top and bottom of the fraction are polynomials. Basically this just means that the numerator and denominator of the fraction will be a sum of a handful of terms that are a constant times x raised up to some power. So it will look like this: $$f(x)=\frac{a_nx^n + a_{n-1}x^{n-1} + … + a_2x^2 + a_1x + a_0}{b_mx^m + b_{m-1}x^{m-1} + … + b_2x^2 + b_1x + b_0}$$

How do you take the limit of a rational function?

There are really only 3 cases you need to consider and the video above discusses these three cases as well. Any rational function will fall into one of these three categories, and each limit within each category will work out the same.

All you need to do is look at the degree of the polynomial on the top and bottom of the fraction. The degree of a polynomial is the highest power that x is being raised to. So for example, \mathbf{y=-4x^5+6x^2+x-12} is a polynomial of degree 5, because the highest power of x is 5.

Case 1: Degree of numerator is larger than degree of denominator

If the degree of the numerator is higher than the degree of the polynomial on the denominator, then the limit will go to infinity or negative infinity. This will only depend on the sign of the coefficient of the highest power x term on the numerator.

If Degree(P(x)) > Degree(Q(x)), then \mathbf{\lim\limits_{x \to \infty} \frac{P(x)}{Q(x)}= \pm \infty}

Example:

$$\lim_{x \to \infty} \frac{x^4-3x^2+x}{x^3-x+2}$$ $$=\lim_{x \to \infty} \frac{x^4-3x^2+x}{x^3-x+2} \cdot \frac{\frac{1}{x^3}}{\frac{1}{x^3}}$$ $$=\lim_{x \to \infty} \frac{\frac{x^4}{x^3}-\frac{3x^2}{x^3}+\frac{x}{x^3}}{\frac{x^3}{x^3}-\frac{x}{x^3}+\frac{2}{x^3}}$$ $$=\lim_{x \to \infty} \frac{x-\frac{3}{x}+\frac{1}{x^2}}{1-\frac{1}{x^2}+\frac{2}{x^3}}$$ $$= \frac{\lim\limits_{x \to \infty}x-\lim\limits_{x \to \infty}\frac{3}{x}+\lim\limits_{x \to \infty}\frac{1}{x^2}}{\lim\limits_{x \to \infty}1-\lim\limits_{x \to \infty}\frac{1}{x^2}+\lim\limits_{x \to \infty}\frac{2}{x^3}}$$ $$= \frac{\lim\limits_{x \to \infty}x-0+0}{1-0+0}$$ $$=\frac{\lim\limits_{x \to \infty}x}{1}$$ $$=\lim_{x \to \infty}x$$ $$=\infty$$

Case 2: Degree of numerator is smaller than degree of denominator

If the degree of the numerator is smaller than the degree of the denominator then the limit will go to 0.

If Degree(P(x)) < Degree(Q(x)), then \mathbf{\lim\limits_{x \to \infty} \frac{P(x)}{Q(x)}= 0}

Example:

$$\lim_{x \to \infty} \frac{16x^4}{0.0001x^5+18x}$$ $$=\lim_{x \to \infty} \frac{16x^4}{0.0001x^5+18x} \cdot \frac{\frac{1}{x^5}}{\frac{1}{x^5}}$$ $$=\lim_{x \to \infty} \frac{\frac{16x^4}{x^5}}{\frac{0.0001x^5}{x^5}+\frac{18x}{x^5}}$$ $$=\lim_{x \to \infty} \frac{\frac{16}{x}}{0.0001+\frac{18}{x^4}}$$ $$= \frac{\lim\limits_{x \to \infty}\frac{16}{x}}{\lim\limits_{x \to \infty}0.0001+\lim\limits_{x \to \infty}\frac{18}{x^4}}$$ $$= \frac{0}{0.0001+0}$$ $$=0$$

Case 3: Degree of numerator is equal to degree of denominator

If the degree of the numerator is equal to the degree of the denominator then the limit will be equal to the coefficient of the highest power x term in the numerator divided by the coefficient of the highest power x term in the denominator.

If Degree(P(x)) = Degree(Q(x)), then \mathbf{\lim\limits_{x \to \infty} \frac{P(x)}{Q(x)}= \frac{a}{b}} \ where a is the coefficient of the highest power x term in P(x), and b is the coefficient of the highest power x term in Q(x).

$$\lim_{x \to \infty} \frac{x^2+7}{-3x^2}$$ $$=\lim_{x \to \infty} \frac{x^2+7}{-3x^2} \cdot \frac{\frac{1}{x^2}}{\frac{1}{x^2}}$$ $$=\lim_{x \to \infty} \frac{\frac{x^2}{x^2} + \frac{7}{x^2}}{\frac{-3x^2}{x^2}}$$ $$=\lim_{x \to \infty} \frac{1 + \frac{7}{x^2}}{-3}$$ $$= \frac{\lim\limits_{x \to \infty}1 + \lim\limits_{x \to \infty}\frac{7}{x^2}}{\lim\limits_{x \to \infty}-3}$$ $$= \frac{1+0}{-3}$$ $$=-\frac{1}{3}$$

Other Examples

\mathbf{\lim\limits_{x \to \infty} arctan \big( e^x \big)} | Solution

\mathbf{\lim\limits_{x \to \infty} \frac{sin(x)}{x}} | Solution

\mathbf{\lim\limits_{x \to \infty} \frac{ln(x)}{\sqrt{x}}} | Solution

Solutions

Example 1 Solution

\mathbf{\lim\limits_{x \to \infty} arctan \big( e^x \big)}

This is going to be based on the fact that we already discussed above that \mathbf{\lim\limits_{x \to \infty} e^x = \infty}. Since we know that, we can say that \mathbf{y=e^x} and rewrite our limit as: $$\lim_{y \to \infty} arctan(y)$$

This is because y goes to infinity as x goes to infinity since \mathbf{y=e^x}. Now we can find this limit by looking at a graph of y=arctan(x).

limit as x approaches infinity of arctan(x) or tan^{-1}(x)

Looking at this graph we can see that y=arctan(x) has a horizontal asymptote at \mathbf{y=\frac{\pi}{2}}. As x goes toward infinity, you can see that the y value of our function gets closer and close to \mathbf{\frac{\pi}{2}}. So this tells us $$\lim_{y \to \infty} arctan(y)=\frac{\pi}{2}$$ $$\lim_{x \to \infty} arctan \big( e^x \big)=\frac{\pi}{2}$$

Example 2 Solution

\mathbf{\lim\limits_{x \to \infty} \frac{sin(x)}{x}}

This one is going to use Squeeze Theorem. Click here to learn more about Squeeze Theorem and its required conditions if you don’t already know about them, then come back to this problem.

We know that \mathbf{-1 \leq sin(x) \leq 1} for all x. Since we are looking at this limit as x goes to positive infinity, we can also say that $$-\frac{1}{x} \leq \frac{sin(x)}{x} \leq \frac{1}{x}$$

We also know that \mathbf{\lim\limits_{x \to \infty} -\frac{1}{x}=0} and that \mathbf{\lim\limits_{x \to \infty} \frac{1}{x}=0}. Since we know \mathbf{\frac{sin(x)}{x}} is between \mathbf{-\frac{1}{x}} and \mathbf{\frac{1}{x}} we can use Squeeze Theorem to say that $$\lim_{x \to \infty} \frac{sin(x)}{x}=0$$

Example 3 Solution

\mathbf{\lim\limits_{x \to \infty} \frac{ln(x)}{\sqrt{x}}}

For this limit, we will be able to use L’Hospital’s Rule. This is because ln(x) and \mathbf{\sqrt{x}} both go to infinity as x goes to infinity. This gives us an indeterminate form that is a possible application of L’Hospital’s Rule. We can also check to make sure that this meets the other conditions needed to apply L’Hospital’s Rule.

$$\lim_{x \to \infty} \frac{ln(x)}{\sqrt{x}}$$ $$=\lim_{x \to \infty} \frac{\frac{d}{dx}ln(x)}{\frac{d}{dx}\sqrt{x}}$$ $$=\lim_{x \to \infty} \frac{\frac{1}{x}}{\frac{1}{2x^{1/2}}}$$ $$=\lim_{x \to \infty} \frac{1}{x} \cdot \frac{2x^{1/2}}{1}$$ $$=\lim_{x \to \infty} \frac{2}{x^{1/2}}$$ $$=\lim_{x \to \infty} \frac{2}{\sqrt{x}}$$ $$=0$$