The following taylor expansion of the function $f(x)$, requires $f(x)$ to have a derivative up to what order? $$ f(x)=f(0)+f'(0)x+f''(0)x^2/2+\mathcal{O}(x^3)$$
My solution: Based on the Taylor's Theorem
$f(x)=f(a)+f'(a)(x-a)+{\frac {f''(a)}{2!}}(x-a)^{2}+\cdots +{\frac {f^{(k)}(a)}{k!}}(x-a)^{k} + \ R_{k}(x)$
where $R_{k}(x)={\frac {f^{(k+1)}(\xi _{L})}{(k+1)!}}(x-a)^{k+1}$ and $ξ_L$ is between a and x. Therefore, the expansion in the question requires $f(x)$ to have up to the third derivative.
Is my solution correct? Is there a way that we need only up to the 2nd derivative?