Hello im new to this forum so im not sure if this is on the right forum. Im having trouble with taylors when 2 functions are combined. E.g. Expand ln(sinx) up to x^3 with a=pi/6. Could someone show me the steps to do this, thank you.
Hello im new to this forum so im not sure if this is on the right forum. Im having trouble with taylors when 2 functions are combined. E.g. Expand ln(sinx) up to x^3 with a=pi/6. Could someone show me the steps to do this, thank you.
[Fixed post based on SammyS's corrections below. Thanks SammyS.]
Just start from the beginning. It is the same as any function.
Take derivatives:
$\displaystyle f(x) = \ln(\sin(x))$
$\displaystyle f'(x) = \frac{1}{\sin(x)}\cos(x) = \cot(x)$
$\displaystyle f''(x) = -\csc^2(x) $
$\displaystyle f'''(x) = 2\csc^2(x)\cot(x)$
Evaluate derivatives:
$\displaystyle f(\frac{\pi}{6}) = \ln(\frac{1}{2})$
$\displaystyle f'(\frac{\pi}{6}) = \sqrt{3}$
$\displaystyle f''(\frac{\pi}{6}) = -4$
$\displaystyle f'''(\frac{\pi}{6}) = 8\sqrt{3}$
Now just write the Taylor expansion:
$\displaystyle
f(x)=f(\frac{\pi}{6}) + f'(\frac{\pi}{6})(x - a) +\displaystyle {{f''(\frac{\pi}{6})}\over{2!}}(x - a)^2 + {{f'''(\frac{\pi}{6})}\over{3!}}(x - a)^3 + ...
$
$\displaystyle
=
-\ln(2) + \sqrt{3}(x - \frac{\pi}{6}) - 2(x - \frac{\pi}{6})^2 + \displaystyle{{{4\sqrt{3}}\over{3}}}\textstyle (x - \frac{\pi}{6})^3 + ...
$
Disclaimer: Note this is just to give an idea (there may be mistakes).
I expect you're supposed to evaluate the derivatives at $\displaystyle \displaystyle \frac{\pi}{2}$ in order to get rational values for the coefficients. The whole point of a Taylor Series is to be able to evaluate the function at any value, it's pretty hard to do that when your coefficients can't even be evaluated...
You forgot the factorials !
Also dropped the $\displaystyle \displaystyle \sqrt3$ from the cubic term.
$\displaystyle
f(x)=f(\frac{\pi}{6}) + f'(\frac{\pi}{6})(x - a) +\displaystyle {{f''(\frac{\pi}{6})}\over{2!}}(x - a)^2 + {{f'''(\frac{\pi}{6})}\over{3!}}(x - a)^3 + ...
$
$\displaystyle
=
-\ln(2) + \sqrt{3}(x - \frac{\pi}{6}) - 2(x - \frac{\pi}{6})^2 + \displaystyle{{{4\sqrt{3}}\over{3}}}\textstyle (x - \frac{\pi}{6})^3 + ...
$