So I wonder how can I use Maclaurin expansion to get an approx answer for this equation:
$ 10x^2 = \cos(x)$
The error must be no bigger than $10^{-4}$
I know that I need to use Lagrange error bound. But I have no idea how to implement this idea here.
I started with writing Maclaurin expansion of order 3 for $\cos(x)$:
$\cos(x)$ = $ 1 - \frac{x^2}{2} + R_3(x)$
Where $R_3(x)$ is the remainder.
$ 10x^2 = 1 - \frac{x^2}{2} + R_3(x)$
But from here I have no idea what to do, I don't think that's even the right approach to this problem.
Can someone explain to me how can I use Maclaurin expansion to find an approx answer to equations?
Thank you.
Yes, we may use the Maclaurin expansion but we need an explicit form for the remainder. By Taylor's theorem, $$\cos(x)=1-\frac{x^2}{2}+R_4(x)=1-\frac{x^2}{2}+\frac{\cos(t)x^4}{4!}$$ where $0<t<x$. Let $x_0$ be the positive solution of $10x^2 = \cos(x)$ and let $x_1$ be the positive solution of the approximate equation $10x^2 = 1-\frac{x^2}{2}$ i.e. $x_1=\sqrt{2/21}\approx 0.3086067$. Note that $f(x)=10x^2-\cos(x)$ is an even continuous function which is increasing for $x\geq 0$. Since $f(0.3)<0$, $f(0.31)>0$ it follows that $x_0\in(0.3,0.31)$.
Now we try to bound the distance $|x_0-x_1|$. We have that $$\frac{21x_0^2}{2}=1+\frac{\cos(t)x_0^4}{4!}\quad\text{and}\quad \frac{21x_1^2}{2}=1$$ and therefore $$0<x_0^2-x_1^2=\frac{\cos(t)x_0^4}{252}$$ or $$0<x_0-x_1=\frac{\cos(t)x_0^4}{252 (x_0+x_1)}< \frac{x_0^4}{504\sqrt{2/21}}<10^{-4}.$$ where at the last step we used the rough estimate $x_0\in (0.3,0.31)$.