Hi I've almost completed a maths question I am stuck on I just can't seem to get to the final result. The question is:
Find the Maclaurin series of $g(x) = \cos(\ln(x+1))$ up to order 3.
I have used the formulas which I won't type out as I'm not great with Mathjax yet sorry. But I have obtained:
$$ \ln(x+1) = x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} $$
$$ \cos x = 1 - \frac{x^2}{2} + \frac{x^4}{24} - \frac{x^6}{720} $$
I'm sure what I have done above is correct however I can't seem to get to the final solution shown in the answers and would like some help please. Thanks
$f(x)=o(x^k)$ if:
$\underset{x\rightarrow 0}{\lim} \frac{f(x)}{x^k}=0$
Since smaller powers of $x$ matter more when tending to $0$, it essentially means that something is negligible relative to $x^k$ when tending to $0$. Moreover by simple calculus one can see that if $f=o(x^m)$ and $g=o(x^\ell)$, then:
$f(x)+g(x)=o(x^{\min \{m,\ell \} })$
And for $k<\ell$ we have that:
$a\cdot x^\ell = o(x^k)$
Therefore by uniqueness of the Taylor series, you want to write your function of the form:
$\cos \big( \ln(1+x) \big)= p_3(x)+o(x^3)$
Where $p_3$ is a polynomial of $x$ with degree at most $3$. If we denote by $T_m^f(x)$ the Taylor polynomial up to order $m$ at $0$. Then by your calculations:
$T_4^{\ln(x+1)}(x)=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}\quad$ and $\quad T_6^{\cos(x)}(x)=1-\frac{x^2}{2}+\frac{x^4}{24}-\frac{x^6}{720}$
Then the function $T_6^{\cos(x)}\circ T_4^{\ln(x+1)}(x) $ is a polynomial, and if you erase the powers negligible to $x^3$ in the final polynomial, then you obtain the Taylor polynomial at $0$ of order $3$. In particular:
$\cos(\ln(1+x))= 1 - \Big( T_4^{\ln(x+1)}(x) \Big)/2 + \Big( T_4^{\ln(x+1)}(x) \Big)^4/24+o(x^4)=$
$=1- \frac{1}{2} \Big( x- \frac{1}{2} x^2+ +\frac{x^3}{3} +o(x^3) \Big)^2 +o(x^4)=$
$=1-\frac{1}{2} \Big( x^2- x^3 +o(x^3) \Big)+ o(x^4)= 1-\frac{x^2}{2}+\frac{x^3}{2}+o(x^3)$
Where I neglected things that I saw which were going to be of powers strictly greater than $3$.
I think it is helpful to go by this algorithm when unsure.