[This is from Shilov’s Real and Complex Analysis book]
Thm: Let functions ${ f, g : [a, b] \to \mathbb{R} }$ be continuous on ${ [a, b] }$ and differentiable on ${ (a, b) . }$ Further say ${ g ^{’} }$ is never ${ 0 }$ on ${ (a, b). }$ Then
$${ \frac{f(b) - f(a)}{g(b) - g(a) } = \frac{f ^{’} (c) }{ g ^{’} (c) } }$$
at some ${ c \in (a, b). }$
Informally, ratio of average rates of change is the ratio of instantaneous rates of change at some point.
Pf: Given the above functions ${ f }$ and ${ g , }$ it is natural to apply Rolles theorem to the linear combination
$${ \varphi(x) := f(x) + \lambda g(x) }$$
where ${ \lambda }$ is such that
$${ \varphi(a) = \varphi(b) }$$
that is
$${ f(a) + \lambda g(a) = f(b) + \lambda g(b) }$$
that is
$${ \lambda := - \left( \frac{f(b) - f(a)}{g(b) - g(a)} \right) . }$$
Now by Rolles theorem, there is a ${ c \in (a, b) }$ such that
$${ \varphi ^{’}(c) = 0 }$$
that is
$${ f ^{’}(c) = - \lambda g ^{’} (c) }$$
that is
$${ \frac{f ^{’} (c)}{g ^{’} (c)} = \frac{f(b) - f(a)}{g(b) - g(a) } }$$
as needed. ${ \blacksquare }$