I'm now stuck on a proof as follows
Suppose $f$ is a smooth function. We define another function $$g(h)=\sup_{x}|f(x+h)-f(x)-f'(x)h-\frac{1}{2}f''(x)h^{2}|$$
Then we have $$g(h)\leq K \min \{h^{2},|h|^{3}\}$$ Where $K$ is a constant depending on $f$ alone.
We have $g(h)\leq Kh^{2}$ for $h$ large and $g(h)\leq K|h|^{3}$ for $h$ near $0$.
The book said we get the conclusion above by using mean value theorems of second and third orders. I don't know how we get that. I think if we use Taylor expansion of $f$ at point $x$, then we get $$f(x+h)=f(x)+f'(x)h+\frac{1}{2}f''(x)h^{2}+o(h^{2})$$ Where $o(h^{2})=\frac{f'''(z)}{6}h^{3}$ for some $z \in (x,x+h)$.
I don't understand why $g(h)\leq Kh^{2}$ works well for $h$ large. I think if $h$ is large, then $$\frac{f'''(z)}{6}h^{3}>Kh^{2}$$ for a constant $K$.
Could someone help me with it? Thanks in advance!