Evaluate $\ln(\cos x)$ at $x_0=0$ and with the order of $n=4$.
Noticing that $\ln(\cos x) = \ln(1+ \cos x - 1)$ we can use $\ln(1+x)$ Taylor series.
Now, I've read I should use:
$$\ln(1+x) = x - \frac{x^2}{2} + R_2(x)$$
$$\cos x -1 = -\frac{x^2}{2} + \frac{x^4}{4!} + R_4(x)$$
Questions:
- If the demand was $n=4$, why did the author expand $\ln(1+x)$ for only two terms?
- Following the author's way, how to plug $\cos x$ evaluation?
$$\ln(1+\cos x -1) = -\frac{x^2}{2} + \frac{x^4}{4!} + R_4(x) - \frac{\left(-\frac{x^2}{2} + \frac{x^4}{4!} + R_4(x) \right)^2}{2} + R_2(-\frac{x^2}{2} + \frac{x^4}{4!} + R_4(x))$$
Is this what I should do? Because it's getting kinda messy..
So far so good---the key observations remaining are:
Applying these facts to simplify the second and third terms gives that the polynomial you seek is $\left(-\frac{x^2}{2} + \frac{x^4}{4!}\right) - \left(\frac{x^4}{8}\right) = -\frac{x^2}{2} - \frac{x^4}{12}$.