I'm attempting to prove L'Hopital's rule. My solution so far is the following:
Let $f,g:(a,b)\to\mathbb{R}$ be differentiable and continuous on $[a, b]$ with $f(a)=g(a)=0$ and $g(x)\neq0$ for $x\in(a, b)$. Suppose that $\lim_{x\to a^+} \frac{f'(x)}{g'(x)}$ exists.
Let $x_n\in(a,b)$ be a sequence such that $\lim_{n\to\infty}x_n=a.$
Now by Cauchy's mean value theorem there exists $c_n\in(a,x_n)$ such that $$\frac{f'(c_n)}{g'(c_n)}=\frac{f(x_n)-f(a)}{g(x_n)-g(a)}=\frac{f(x_n)}{g(x_n)}$$
By the sandwich rule we also have that $\lim_{n\to\infty}c_n=a.$
I think I'm very nearly there but I can't see how to conclude it.