The simplest method to prove the ±∞±∞ case is to assume the 00 case of L'Hopital's rule:
Given continuous differentiable functions f,g such that f(a)=g(a)=0, x→alimg(x)f(x)=x→alimg′(a)f′(a).
Now, consider continuous differentiable functions f and g that satisfy limx→af(x)=±∞, limx→ag(x)=±∞. It follows that f(a)1=g(a)1=0. By L'Hopital's rule,
x→alimf(x)g(x)=x→alimg(x)1f(x)1=x→alim−g(x)2g′(x)−f(x)2f′(x)=x→alimg′(x)f′(x)(f(x)g(x))2.
If limx→af(x)g(x) approaches a finite value, we may split the limits on the right-hand side (note that, due to the equality, g′(x)f′(x) cannot be infinite if f(x)g(x) is locally finite):
x→alimf(x)g(x)=(x→alimg′(x)f′(x))(x→alimf(x)g(x))2.
Therefore (x→alimf(x)g(x))−1=x→alimg(x)f(x)=x→alimg′(x)f′(x),x→alimf(x)g(x)=±∞.
Now we have proven the theorem for all cases except where limx→ag(x)f(x)=0.
In this case, note that limx→af(x)g(x)=±∞=0 and thus we may apply: x→alimf(x)g(x)=x→alimf′(x)g′(x).
By taking the reciprocal of both sides, we obtain
x→alimg(x)f(x)=x→alimg′(x)f′(x),
with limx→ag(x)f(x)=0.
QED