0

Here: Is there a formula for sine and cosine?, one of the answers mentioned using the Taylor expansion for approximating $\sin(x)$ and $\cos(x)$, and someone commented pointing out however that this would only work for small values of $x$.

My question is, am I mistaken in thinking that the Taylor Series could be used to approximate the sine (and cosine) function anywhere in $\mathbb R $, as long as the formula $\sum_{k=0}^n {f^{(k)}(x_0)\over k!}(x-x_0)^k$ is used, and not the explicit expansion in $0$?

1 Answers1

0

The Taylor expansions of $\sin$ and $\cos$ always converge, also when taking the explicit expansions in the point $0$. What they were referring to on the other page, is: when you only want to approximate, for example, $\sin(x)$, then you could use $$\sin(x)\approx x-\frac{x^3}{3!}+\frac{x^5}{5!}$$ since for small $x$, the terms after that are so small that they are negligible. But for large $x$, this isn't such a good approximation - however, the infinite sum $$\sin(x)=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots$$ still converges to the exact value for $\sin(x)$, no matter how big $x$ is.


Edit. If we take the Taylor expansion in another point than $0$, say, $2\pi$, then we get $$(x-2\pi)-\frac{(x-2\pi)^3}{3!}+\frac{(x-2\pi)^5}{5!}-\cdots$$ As we can see, taking only the first three terms would approximate $\sin(x)$ differently - it working better for values close to $2\pi$. This way we can intuitively see that yes, taking the Taylor expansion on another point does influence the way $\sin(x)$ approximates $x$.
  • Yes, but I'm talking about being centered in a different point, say $\sqrt2$, it is my understanding that Taylor could be used, but the polynomial that approximates sinx (like in x = $\sqrt2$) changes. Is this true? – Morgormir Feb 13 '16 at 21:38
  • I edited my answer in an attempt to answer the question you asked in your comment - let me know if things are still unclear. –  Feb 13 '16 at 21:44
  • Then use trigonometric theorems, $\sin(x+h)=\sin(x)\cos(h)+\cos(x)\sin(h)$ and use the series in $h$, provided the basis values for $\sin(x)$ and $\cos(x)$ are known. – Lutz Lehmann Feb 13 '16 at 21:45