MA 16500: Analytic Geometry and Calculus I

4.7. L’Hôpital’s Rule

Goal: Apply L’Hôpital’s Rule to evaluate limits of indeterminate forms \(\frac{0}{0}\) and \(\frac{\infty}{\infty}\), and evaluate limits of the indeterminate forms \(0 \cdot \infty\), \(\infty - \infty\), \(1^\infty\), \(0^0\), and \(\infty^0\).

Example 1.1: \(\displaystyle \lim_{x \to \infty} \frac{\ln x}{\sqrt{x}}\)

Evaluate the limit using L’Hôpital’s Rule.

Solution: Direct substitution gives \(\frac{\infty}{\infty}\), so we can apply L’Hôpital’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}{2\sqrt{x}}} = \lim_{x \to \infty} \frac{2\sqrt{x}}{x} = \lim_{x \to \infty} \frac{2}{\sqrt{x}} = 0 \]

Therefore, \(\displaystyle \lim_{x \to \infty} \frac{\ln x}{\sqrt{x}} = 0\).

Example 1.2: \(\displaystyle \lim_{x \to 0} \frac{1 - \cos x}{3x^2}\)

Evaluate the limit using L’Hôpital’s Rule.

Solution: Direct substitution gives \(\frac{0}{0}\), so we can apply L’Hôpital’s Rule.

\[ \lim_{x \to 0} \frac{1 - \cos x}{3x^2} = \lim_{x \to 0} \frac{\frac{d}{dx}(1 - \cos x)}{\frac{d}{dx}(3x^2)} = \lim_{x \to 0} \frac{\sin x}{6x} \]
\[ \lim_{x \to 0} \frac{\sin x}{6x} = \frac{1}{6} \lim_{x \to 0} \frac{\sin x}{x} = \frac{1}{6} \cdot 1 = \frac{1}{6} \]

Therefore, \(\displaystyle \lim_{x \to 0} \frac{1 - \cos x}{3x^2} = \frac{1}{6}\).

Example 1.3: \(\displaystyle \lim_{x \to 0} \frac{e^{7x} - \cos(2x)}{\tan(3x)}\)

Evaluate the limit using L’Hôpital’s Rule.

Solution: Direct substitution gives \(\frac{0}{0}\), so we can apply L’Hôpital’s Rule.

\[ \lim_{x \to 0} \frac{e^{7x} - \cos(2x)}{\tan(3x)} = \lim_{x \to 0} \frac{\frac{d}{dx}\left(e^{7x} - \cos(2x)\right)}{\frac{d}{dx}(\tan(3x))} = \lim_{x \to 0} \frac{7e^{7x} + 2\sin(2x)}{3\sec^2(3x)} \]
\[ \lim_{x \to 0} \frac{7e^{7x} + 2\sin(2x)}{3\sec^2(3x)} = \frac{7 \cdot 1 + 2 \cdot 0}{3 \cdot 1} = \frac{7}{3} \]

Therefore, \(\displaystyle \lim_{x \to 0} \frac{e^{7x} - \cos(2x)}{\tan(3x)} = \frac{7}{3}\).

Example 1.4: \(\displaystyle \lim_{x \to 0} \frac{\sin x}{1 - x^2}\)

Evaluate the limit. Note: Do not apply L’Hôpital’s Rule blindly; consider direct substitution and simplification.

Solution: Direct substitution gives:

\[ \frac{\sin 0}{1 - 0^2} = \frac{0}{1} = 0 \]

Answer: \(\displaystyle \lim_{x \to 0} \frac{\sin x}{1 - x^2} = 0\)

Example 2.1: \(\displaystyle \lim_{x \to 0^+} x \cdot \ln(2x)\)

Evaluate the limit using L’Hôpital’s Rule. Note that this is an indeterminate form \(0 \cdot (-\infty)\).

Solution: Rewrite the product as a quotient to apply L’Hôpital’s Rule:

\[ x \cdot \ln(2x) = \frac{\ln(2x)}{1/x} \]

Now as \(x \to 0^+\), the limit is of the form \(\frac{-\infty}{\infty}\), which is suitable for L’Hôpital’s Rule.

\[ \lim_{x \to 0^+} \frac{\ln(2x)}{1/x} = \lim_{x \to 0^+} \frac{\frac{d}{dx} \ln(2x)}{\frac{d}{dx} (1/x)} = \lim_{x \to 0^+} \frac{1/x}{-1/x^2} = \lim_{x \to 0^+} -x = 0 \]

Therefore, \(\displaystyle \lim_{x \to 0^+} x \cdot \ln(2x) = 0\).

Example 2.2: \(\displaystyle \lim_{x \to \infty} 2x \cdot \tan\left(\frac{1}{3x}\right)\)

Evaluate the limit using L’Hôpital’s Rule. Note this is an indeterminate form \( \infty \cdot 0 \).

Solution: Rewrite the product as a quotient to apply L’Hôpital’s Rule:

\[ 2x \cdot \tan\left(\frac{1}{3x}\right) = \frac{2 \cdot \tan(1/(3x))}{1/x} \]

As \(x \to \infty\), this becomes \(\frac{0}{0}\), which allows L’Hôpital’s Rule.

\[ \lim_{x \to \infty} \frac{2 \tan(1/(3x))}{1/x} = \lim_{x \to \infty} \frac{2 \cdot \frac{d}{dx} \tan(1/(3x))}{\frac{d}{dx} (1/x)} \]
\[ \frac{d}{dx} \tan(1/(3x)) = \sec^2(1/(3x)) \cdot \left(-\frac{1}{3x^2}\right) \]
\[ \lim_{x \to \infty} \frac{2 \cdot \left(-\frac{\sec^2(1/(3x))}{3x^2}\right)}{-1/x^2} = \lim_{x \to \infty} \frac{2 \cdot \sec^2(1/(3x))}{3} = \frac{2}{3} \cdot \sec^2(0) = \frac{2}{3} \]

Therefore, \(\displaystyle \lim_{x \to \infty} 2x \cdot \tan\left(\frac{1}{3x}\right) = \frac{2}{3}\).

Remark: Consider the standard limit for small angles:

\[ \lim_{x \to 0} \frac{\tan x}{x} \]

This is an indeterminate form \(\frac{0}{0}\), so we can apply L’Hôpital’s Rule:

\[ \lim_{x \to 0} \frac{\tan x}{x} = \lim_{x \to 0} \frac{\frac{d}{dx}(\tan x)}{\frac{d}{dx}(x)} = \lim_{x \to 0} \frac{\sec^2 x}{1} = \sec^2(0) = 1 \]

Hence, \(\displaystyle \lim_{x \to 0} \frac{\tan x}{x} = 1\).

This result is useful when handling limits involving \(\tan\) as \(x \to 0\), like in Example 2.2.

Example 3.1: \(\displaystyle \lim_{x \to \infty} \left(\sqrt{x^2 - 5x + 7} - x\right)\)

Evaluate the limit. This is an indeterminate form \(\infty - \infty\).

Solution: When you have \(\infty - \infty\), a common technique is to rationalize using the conjugate:

\[ \sqrt{x^2 - 5x + 7} - x = \frac{(\sqrt{x^2 - 5x + 7} - x)(\sqrt{x^2 - 5x + 7} + x)}{\sqrt{x^2 - 5x + 7} + x} = \frac{x^2 - 5x + 7 - x^2}{\sqrt{x^2 - 5x + 7} + x} = \frac{-5x + 7}{\sqrt{x^2 - 5x + 7} + x} \]

Factor \(x\) from numerator and denominator to simplify the limit:

\[ \frac{-5x + 7}{\sqrt{x^2 - 5x + 7} + x} = \frac{x(-5 + 7/x)}{x(\sqrt{1 - 5/x + 7/x^2} + 1)} = \frac{-5 + 7/x}{\sqrt{1 - 5/x + 7/x^2} + 1} \]

Now take the limit as \(x \to \infty\):

\[ \lim_{x \to \infty} \frac{-5 + 7/x}{\sqrt{1 - 5/x + 7/x^2} + 1} = \frac{-5 + 0}{\sqrt{1 + 0 + 0} + 1} = \frac{-5}{2} \]
Therefore,
\[ \lim_{x \to \infty} \left(\sqrt{x^2 - 5x + 7} - x\right) = -\frac{5}{2}. \]

Alternative Method:

Strategy: Instead of rationalizing, factor \(x\) from the square root to rewrite the limit as a product that gives \(\infty \cdot 0\).

\[ \sqrt{x^2 - 5x + 7} - x = x\left(\sqrt{1 - \frac{5}{x} + \frac{7}{x^2}} - 1\right) \]

Now as \(x \to \infty\), we see it’s an indeterminate form \(\infty \cdot 0\). Rewrite as a quotient for L’Hôpital:

\[ x\left(\sqrt{1 - \frac{5}{x} + \frac{7}{x^2}} - 1\right) = \frac{\sqrt{1 - 5/x + 7/x^2} - 1}{1/x} \]

Now apply L’Hôpital’s Rule to the \(\frac{0}{0}\) form:

\[ \lim_{x \to \infty} \frac{\frac{d}{dx} \left(\sqrt{1 - 5/x + 7/x^2} - 1\right)}{\frac{d}{dx} (1/x)} \]

Compute derivatives carefully and then take the limit. You will get the same answer:

\[ \lim_{x \to \infty} \left(\sqrt{x^2 - 5x + 7} - x\right) = -\frac{5}{2}. \]

Example 4.1: \(\displaystyle \lim_{x \to \infty} \left(1 + \frac{3}{x}\right)^{7x}\)

Evaluate the limit. This is an indeterminate form \(1^\infty\).

Solution: For \(1^\infty\) forms, take the natural logarithm first:

\[ y = \left(1 + \frac{3}{x}\right)^{7x} \implies \ln y = 7x \cdot \ln\left(1 + \frac{3}{x}\right) \]

Now consider the limit of \(\ln y\) as \(x \to \infty\):

\[ \lim_{x \to \infty} \ln y = \lim_{x \to \infty} 7x \cdot \ln\left(1 + \frac{3}{x}\right) \]

This is an indeterminate form \(\infty \cdot 0\). Rewrite it as a quotient for L’Hôpital’s Rule:

\[ 7x \cdot \ln\left(1 + \frac{3}{x}\right) = \frac{\ln\left(1 + \frac{3}{x}\right)}{1/(7x)} \]

Apply L’Hôpital’s Rule to the \(\frac{0}{0}\) form:

\[ \lim_{x \to \infty} \frac{\frac{d}{dx} \ln(1 + 3/x)}{\frac{d}{dx} (1/(7x))} = \lim_{x \to \infty} \frac{-3/x^2 \cdot 1/(1 + 3/x)}{-1/(7x^2)} = \lim_{x \to \infty} \frac{21}{1 + 3/x} = 21 \]

Therefore, \(\ln y \to 21\) as \(x \to \infty\), so

\[ \lim_{x \to \infty} \left(1 + \frac{3}{x}\right)^{7x} = e^{21} \]

Answer: \(\displaystyle \lim_{x \to \infty} \left(1 + \frac{3}{x}\right)^{7x} = e^{21}\)

# Type Example
1 L'Hôpital's Rule (\(0/0\) or \(\infty/\infty\)) \(\displaystyle \lim_{x\to0} \frac{\sin x}{x} = \frac{\cos 0}{1} = 1\)
\(\displaystyle \lim_{x\to\infty} \frac{\ln x}{x} = \lim_{x\to\infty} \frac{1/x}{1} = 0\)
\(\displaystyle \lim_{x\to0} \frac{e^{2x}-1}{x} = \lim_{x\to0} \frac{2 e^{2x}}{1} = 2\)
\(\displaystyle \lim_{x \to 0} \frac{1 - \cos x}{x} = \lim_{x \to 0} \frac{(\,1 - \cos x\,)'}{(x)'} = \lim_{x \to 0} \frac{\sin x}{1} = 0\)
2 Indeterminate form \(\infty \cdot 0\) \(\displaystyle \lim_{x\to 0} x \ln x = \lim_{x\to 0} \frac{\ln x}{1/x} = \lim_{x\to 0} \frac{1/x}{-1/x^2} = \lim_{x\to 0} -x = 0\)
3 Indeterminate exponential \(1^\infty, 0^0, \infty^0\) \(\displaystyle \lim_{x\to 0} (1+x)^{1/x}\)
Let \(\displaystyle y = (1+x)^{1/x}\), then \(\displaystyle \ln y = \frac{\ln(1+x)}{x} \Rightarrow \lim_{x\to 0} \ln y = 1 \Rightarrow \lim_{x\to 0} y = e\)

\(\displaystyle \lim_{x\to\infty} \left(1+\frac{1}{x}\right)^x\)
Let \(\displaystyle y = \left(1+\frac{1}{x}\right)^x\), then \(\displaystyle \ln y = x \ln(1+1/x) \Rightarrow \lim_{x\to\infty} \ln y = 1 \Rightarrow \lim_{x\to\infty} y = e\)

\(\displaystyle \lim_{x\to\infty} x^{1/x}\)
Let \(\displaystyle y = x^{1/x}\), then \(\displaystyle \ln y = \frac{\ln x}{x} \Rightarrow \lim_{x\to\infty} \ln y = 0 \Rightarrow \lim_{x\to\infty} y = e^0 = 1\)
4 Direct substitution \(\displaystyle \lim_{x\to2} (x^2+3) = 2^2 + 3 = 7\)
5 Indeterminate \(0/0\) (factor / simplify) \(\displaystyle \lim_{x\to2} \frac{x^2-4}{x-2} = \lim_{x\to2} \frac{(x-2)(x+2)}{x-2} = \lim_{x\to2} (x+2) = 4\)
6 Limit at infinity (rational) \(\displaystyle \lim_{x\to\infty} \frac{3x^2+1}{2x^2+5x} = \lim_{x\to\infty} \frac{x^2(3+1/x^2)}{x^2(2+5/x)} = \frac{3}{2}\)
7 Root / conjugate \(\displaystyle \lim_{x\to4} \frac{\sqrt{x}-2}{x-4} = \lim_{x\to4} \frac{(\sqrt{x}-2)(\sqrt{x}+2)}{(x-4)(\sqrt{x}+2)} = \lim_{x\to4} \frac{x-4}{(x-4)(\sqrt{x}+2)} = \frac{1}{4}\)