The proof of this lemma is based on the mean value theorem. Since
\(f(a) = f'(a) = f''(a) = ... = f^{(n)}(a) = 0\text{,}\) we can apply the mean value theorem repeatedly to show that there exists a number
\(c\) between
\(a\) and
\(x\) such that
\(f^{(n+1)}(c) = 0\text{.}\) Below we will do so step by step.
First, since \(f(a) = f(x) = 0\text{,}\) by the mean value theorem, there exists a number \(c_1\) between \(a\) and \(x\) such that
\begin{equation*}
f'(c_1) = \frac{f(x) - f(a)}{x - a} = 0
\end{equation*}
Second, since \(f'(a) = f'(c_1) = 0\text{,}\) by the mean value theorem, there exists a number \(c_2\) between \(a\) and \(c_1\) such that
\begin{equation*}
f''(c_2) = \frac{f'(c_1) - f'(a)}{c_1 - a} = 0
\end{equation*}
Then by continuing this process, we can show that there exists a number \(c_n\) between \(a\) and \(c_{n-1}\) such that
\begin{equation*}
f^{(n)}(c_n) = 0
\end{equation*}
Since \(f^{(n)}(a) = f^{(n)}(c_n) = 0\text{,}\) by the mean value theorem, there exists a number \(c_{n+1}\) between \(a\) and \(c_n\) such that
\begin{equation*}
f^{(n+1)}(c_{n+1}) = 0
\end{equation*}
Therefore, we have shown that there exists a number
\(c = c_{n+1}\) between
\(a\) and
\(x\) such that
\(f^{(n+1)}(c) = 0\text{.}\)