3.7 L'Hospital's Rule
Indeterminate forms $\tfrac00$ and $\tfrac\infty\infty$ — replace the quotient of functions by the quotient of their derivatives.
Applying L'Hôpital's Rule
For $\displaystyle\lim_{x\to a}\frac{f(x)}{g(x)}$, if $f\to L_1$ and $g\to L_2\neq0$ the limit is simply $\dfrac{L_1}{L_2}$. But if both $f\to0$ and $g\to0$ we have the indeterminate form $\tfrac00$: we cannot tell what happens without more analysis. We met this before — $\displaystyle\lim_{x\to2}\frac{x^2-4}{x-2}=\lim_{x\to2}(x+2)=4$ by factoring, and $\displaystyle\lim_{x\to0}\frac{\sin x}{x}=1$ by a geometric argument. L'Hôpital's rule handles such limits systematically. The notation $\tfrac00$ does not mean dividing zero by zero; it names a quotient of two limits that are each zero.
- a $\displaystyle\lim_{x\to0}\frac{1-\cos x}{x}$
- b $\displaystyle\lim_{x\to1}\frac{\sin(\pi x)}{\ln x}$
- c $\displaystyle\lim_{x\to\infty}\frac{e^{1/x}-1}{1/x}$
- d $\displaystyle\lim_{x\to0}\frac{\sin x-x}{x^2}$
L'Hôpital's rule also handles quotients where $f\to\pm\infty$ and $g\to\pm\infty$: the indeterminate form $\tfrac{\infty}{\infty}$.
- a $\displaystyle\lim_{x\to\infty}\frac{3x+5}{2x+1}$
- b $\displaystyle\lim_{x\to0^+}\frac{\ln x}{\cot x}$
Exercises
- 1 $\displaystyle\lim_{x\to\infty}\frac{e^x}{x}$
- 2 $\displaystyle\lim_{x\to1}\frac{x-1}{\sin x}$
- 3 $\displaystyle\lim_{x\to\infty}\frac{e^x}{x^k}$
- 4 $\displaystyle\lim_{x\to0}\frac{(1+x)^n-1}{x}$
- 5 $\displaystyle\lim_{x\to\infty}\frac{\ln x}{x^k}$
- 6 $\displaystyle\lim_{x\to0}\frac{(1+x)^n-1-nx}{x^2}$
- 7 $\displaystyle\lim_{x\to a}\frac{x-a}{x^2-a^2}$, $a\neq0$
- 8 $\displaystyle\lim_{x\to0}\frac{\sin x-\tan x}{x^3}$
- 9 $\displaystyle\lim_{x\to a}\frac{x-a}{x^3-a^3}$, $a\neq0$
- 10 $\displaystyle\lim_{x\to0}\frac{\sqrt{1+x}-\sqrt{1-x}}{x}$
- 11 $\displaystyle\lim_{x\to a}\frac{x-a}{x^n-a^n}$, $a\neq0$
- 12 $\displaystyle\lim_{x\to0}\frac{e^x-x-1}{x^2}$
- 1 $\displaystyle\lim_{x\to0^+}\frac{\tan x}{\sqrt x}$
- 2 $\displaystyle\lim_{x\to1}\frac{x-1}{\ln x}$
- 3 $\displaystyle\lim_{x\to0^+}x^2\ln x$
- 4 $\displaystyle\lim_{x\to0}(x+1)^{1/x}$
- 5 $\displaystyle\lim_{x\to\infty}x^{1/x}$
- 6 $\displaystyle\lim_{x\to1}\frac{\sqrt x-\sqrt[3]x}{x-1}$
- 7 $\displaystyle\lim_{x\to0^+}x^{2/x}$
- 8 $\displaystyle\lim_{x\to0^+}x^{2x}$
- 9 $\displaystyle\lim_{x\to0}\frac{x^2}{1/x}$
- 10 $\displaystyle\lim_{x\to\infty}\frac{e^x}{x}$
- 11 $\displaystyle\lim_{x\to0}\frac{\sin x-x}{x^2}$
- 1 $\displaystyle\lim_{x\to0}\frac{e^{2x}-1}{x}$
- 2 $\displaystyle\lim_{x\to0}\frac{1-\cos3x}{x^2}$
- 3 $\displaystyle\lim_{x\to\infty}\frac{x^2}{e^{3x}}$
- 4 $\displaystyle\lim_{x\to\infty}\frac{(\ln x)^2}{x}$
- 5 $\displaystyle\lim_{x\to0}\frac{x-\sin x}{x^3}$
- 1 $\displaystyle\lim_{x\to\infty}x\sin\frac1x$
- 2 $\displaystyle\lim_{x\to0^+}\sin x\,\ln x$
- 3 $\displaystyle\lim_{x\to0^+}\left(\frac1x-\frac1{\sin x}\right)$
- 4 $\displaystyle\lim_{x\to1^+}\left(\frac{1}{\ln x}-\frac{1}{x-1}\right)$
- 5 $\displaystyle\lim_{x\to\infty}\left(1+\frac3x\right)^{x}$
- 6 $\displaystyle\lim_{x\to0^+}x^{\sin x}$
- 7 $\displaystyle\lim_{x\to\infty}(1+x)^{1/\ln x}$
- 1 Show that $\displaystyle\lim_{x\to\infty}\frac{x+\sin x}{x}$ exists, even though L'Hôpital's rule gives a limit that does not exist. Why is there no contradiction?
- 2 Try L'Hôpital's rule on $\displaystyle\lim_{x\to\infty}\frac{\sqrt{x^2+1}}{x}$. What happens? Evaluate the limit another way.
- 3 Use L'Hôpital's rule to order these functions by growth rate as $x\to\infty$ (slowest first): $e^x$, $x^{10}$, $(\ln x)^3$, $x^x$, $\sqrt x$. Show the three comparisons $\displaystyle\lim\frac{(\ln x)^3}{\sqrt x}$, $\displaystyle\lim\frac{x^{10}}{e^x}$ and $\displaystyle\lim\frac{e^x}{x^x}$.
Research question. Which grows fastest: $\ln x$, $x^n$, $e^x$ or $x^x$, and why does this matter for computers?
Why it matters. Computer scientists compare algorithm running times such as $n\ln n$, $n^2$ and $2^n$; the ordering of growth rates decides which programs are practical.
What to do.
- In a spreadsheet, compute $\ln x$, $x^3$, $e^x$ and $x^x$ for $x=1, 5, 10, 20, 50$.
- Find the value of $x$ after which $e^x$ stays larger than $x^3$.
- Use L'Hospital's Rule to show $\lim_{x\to\infty}\frac{\ln x}{x^3}=0$ and $\lim_{x\to\infty}\frac{x^3}{e^x}=0$.
- Explain why $\frac{e^x}{x^x}\to0$ by writing $x^x=e^{x\ln x}$.
Tools: Spreadsheet, calculator
Hand in: A half-page note: your table, the crossover point, and the growth order with a short justification.
Going further. Anywhere: time a simple sorting program on lists of increasing size and compare with these curves.
🧪 Self-check quiz
Q1. L'Hôpital's rule may be applied to $\dfrac{f}{g}$ when the limit has the form:
Q2. $\displaystyle\lim_{x\to0}\frac{1-\cos x}{x}=$
Q3. $\displaystyle\lim_{x\to1}\frac{x^2+5}{3x+4}=$
Q4. $\displaystyle\lim_{x\to0}\frac{e^x-x-1}{x^2}=$
Q5. To handle $\displaystyle\lim_{x\to0^+}x^{2x}$ ($0^0$), first: