Let $f:[0,1] \to \mathbb{R}, f(x) = e^x \cdot \cos(x)$. I want to find a sharp upper bound for the absolute value of the remainder term of the second order Taylor polynomial of $f$ around $0$, on the interval $[0,1]$.
It's pretty straightforward to see that the second order Taylor polynomial of $f$ is $P_2(x) = 1 + x, \forall x \in [0,1].$
Now, by the definition of the remainder (Lagrange remainder), for every $x \in (0,1)$ there is some $c_x \in (0,x)$ such that $$f(x) - P_2(x) = R_2(x) = \frac{f'''(c_x)}{3!} \cdot x^3 = -\frac{1}{3}e^{c_x}(\sin(c_x) + \cos(c_x)) \cdot x^3,$$ so $$|R_2(x)| = \frac{1}{3}e^{c_x} (\sin(c_x) + \cos(c_x)) \cdot x^3, $$ since $\sin(t), \cos(t) \geq 0, \forall t \in [0,1]$. Hence, we can deduce an upper bound for $R_2$: $$|R_2(x)| \leq \frac{1}{3}e(\sin(\pi/4) + \cos(\pi/4)) = \frac{\sqrt{2}}{3} e, \forall x \in [0,1], $$ since $x^3 \leq 1, \forall x \in [0,1]$, $e^{c_x} \leq e, \forall x \in [0,1]$ and $\sin(c_x) + \cos(c_x) \leq \sin(\pi/4) + \cos(\pi/4), \forall x \in [0,1]$. Can we make this sharper?
If you look at the $e^c(\sin c+\cos c)$ part, you can see that it's strictly increasing in the $[0,1]$ interval. Take the derivative with respect to $c$, you can see that it's always positive. That means that the maximum value is at $c=1$. And $\sin 1+\cos 1\approx 1.38<\sqrt 2$