I am currently trying to proof the following exercise:
Let $n\in \mathbb N$ and $g:\mathbb R \to \mathbb R$ a $n$-times continuously differentiable function with $g^{(j)}(0) = 0$ for all $j\in \{0, 1, ... ,n-1\}$ where $g^{(j)}$ denotes the $j$-th derivative. Proof that $g(x) = O(\lvert x\rvert^n)$ for $x\to 0$.
I tried to proof this via induction over $n$:
$n=1$: I have to show that there are $C>0, \delta > 0$ with $\lvert x\rvert < \delta \Rightarrow \lvert g(x) \lvert \leq C\lvert x \rvert$.
Since $g$ is continously differentiable on $\mathbb R$ so it is on (without loss of generality) $[0;a]$. Then $g'$ is continuous on $[0;a]$ and in particular $C:=\sup g' \in [0;a]$ with $C<\infty$.
By the mean value theorem there is $\xi \in ]0,a[$ with $$g'(\xi) =\frac{g(0)-g(a)}{0-a} = \frac{g(a)}{a}$$
which implies, choosing $\delta := a$ $$|g(x)| \leq C|x|$$for $|x| < \delta$. Now I don't know if this is correct so far, but assuming it is, I don't know how to proceed with $n \to n+1$. Any hints appreciated!
Here's a proof that uses only the MVT. Fix $x >0$. Then there exists $\xi_1 \in (0,x)$ such that $$ g(x) = g(x) - g(0) = g'(\xi_1)(x-0) = g'(\xi_1) x. $$ Now we apply the MVT again to get $\xi_2 \in (0,\xi_1)$ such that $$ g'(\xi_1) = g'(\xi_1)-g'(0) = g''(\xi_2)(\xi_1-0) = g''(\xi_2)\xi_1. $$ Iterating, we find $0 <\xi_n<\xi_{n-1} < \cdots < xi_1 < x$ such that $$ g^{(k)}(\xi_k) = g^{(k+1)}(\xi_{k+1}) \xi_k. $$
Consequently $$ g(x) = g'(\xi_1)x = g''(\xi_2) \xi_1 x = \cdots = g^{(n)}(\xi_n) x \prod_{i=1}^{n-1} \xi_i $$ and so $$ |g(x)| \le |g^{(n)}(\xi_n)| x^n. $$ The continuity of $g^{(n)}$ at $0$ then shows that $$ |g(x)| = O(x^n). $$ A similar argument works for $x < 0$.