L'Hospital's rule provides a method for finding limits for expressions that would otherwise be impossible to calculate. The most basic form of the rule says that if f(x) and g(x) are both differentiable at x=a, and x→alimf(x)=x→alimg(x)=0, then x→alimg(x)f(x)=g′(a)f′(a).
Let's prove this rule. Recall our method of locally linear approximations for differentiable functions: f(a)+f′(a)(x−a)→f(x) as x→a. Thus, we can rewrite the desired limit as x→alim(g(a)+g′(a)(x−a)f(a)+f′(a)(x−a)). Furthermore, as the functions are both continuous, f(a)=g(a)=0, and thus the limit becomes
x→alimg(a)+g′(a)(x−a)f(a)+f′(a)(x−a)=x→alimg′(a)(x−a)f′(a)(x−a)=g′(a)f′(a).
This is L'Hospital's rule, and it allows us to evaluate limits of indeterminate forms! Let's try a familiar example: what is limx→0xx2+x? Taking the derivatives of the numerator and denominator: we get 12x+1=1. But there are other kinds of indeterminate forms. How would we find the limit of a function that converges to 1∞? More concretely, let L=limx→0(ex+x)x1.
If we take the natural logarithm of both sides, we get
lnL=x→0limxln(ex+x)=x→0lim1(ex+xex+1)=2, and L=e2.
There are many other types of indeterminate forms, such as 00,∞0, and ∞−∞, but if you can manipulate them into the form 00, you can use this method to evaluate them.