Assume that $f: \mathbb{R} \to \mathbb{R}$ is such that $f^\prime$ and $f^{\prime \prime}$ exist for all $x \in \mathbb{R}$. Taylor's Theorem tells us that, for each $a,h \in \mathbb{R}$ there is a $\theta \in \left( 0 , 1 \right)$ such that $$f \left( a + h \right) = f\left(a\right) + hf^\prime\left( a\right) + \frac{h^2}{2} f^{\prime \prime} \left( a + \theta h \right)$$ Write down the taylor expansions of $f \left( 0\right)$ and $f \left( 2 \right)$ about the point $x \in \left[0,2 \right]$, using the above form of Taylor's Theorem, with a remainder involving $f^{\prime \prime}$.
Please can someone explain where this form of Taylor's Theorem comes from and how to write down the taylor expansions of $f \left( 0\right)$ and $f \left( 2 \right)$.
If you denote $x = a+h$ (and consequently $h = x-a$), the formula reads $$ f(x)=f(a)+ f'(a) (x-a) + \frac 12 f''(\xi) (x-a)^2, \quad \xi \in [a,x] $$