Taylor Series for Cosine and Accuracy of Calculating Cosine 2

In summary, to calculate cosine 2 with an accuracy of 1/10000, the number of terms needed in the Taylor series about c=0 is determined by finding the value of n where the inequality 2^(n+1) <= (n+1)!/10000 holds. This can be done by calculating the left-hand side for various values of n until the inequality is satisfied.
  • #1
stukbv
118
0

Homework Statement


How many terms of the taylor series of the cosine function about c = 0 are needed to calculate cosine 2 to an accuracy of 1 / 10000




The Attempt at a Solution


I have said that |Rn(2)| = |cosn+1(a) 2n+1/(n+1)!|<2n+1/(n+1!)

Now i can't do it ...
 
Physics news on Phys.org
  • #2
Hi stukbv! :smile:

You have correctly calculated that the remainder must be smaller than [itex]\frac{2^{n+1}}{(n+1)!}[/itex]

Now, the only thing you need to do is to see when

[tex]\frac{2^{n+1}}{(n+1)!}\leq \frac{1}{10000}[/tex]

Perhaps calculate the left hand side for some values of n and see when the inequality occurs. Thus, calculate the left-hand side for n=1,2,3,...
 
  • #3
Wouldnt I need a calculator to do this - I am not allowed those in my exams...
 
  • #4
No, you don't. It may help to rewrite the inequality as

[tex]2^{n+1}\le \frac{(n+1)!}{10000}[/tex]
 
  • #5
Sorry if I am being simple but I still don't see how this is meant to be a quick calculation like my exams seem to be implying?? Is there are link I am missing?
 
  • #6
As micromass said, just try increasing values of n until you find one for which the inequality holds. Your instructor probably assumes you have some familiarity with the first handful of powers of 2 and factorials. If not, it's not like it very long to calculate them.
 

FAQ: Taylor Series for Cosine and Accuracy of Calculating Cosine 2

1. What is cosine and how is it related to the Taylor series?

Cosine is a trigonometric function that represents the ratio of the adjacent side to the hypotenuse of a right triangle. It is closely related to the Taylor series, which is a method of representing a function as an infinite sum of simpler functions.

2. What is the formula for the Taylor series of cosine?

The Taylor series for cosine is cos(x) = 1 - (x^2)/2! + (x^4)/4! - (x^6)/6! + ... This can also be written as cos(x) = ∑n=0 (-1)^n (x^2n)/(2n)!

3. How accurate is the Taylor series approximation of cosine?

The accuracy of the Taylor series approximation of cosine depends on the number of terms used in the series. The more terms included, the closer the approximation will be to the actual value. However, since it is an infinite series, it will never be exactly equal to the true value of cosine.

4. Can the Taylor series be used to calculate cosine for any value of x?

Yes, the Taylor series for cosine can be used to calculate the value of cosine for any real number x. However, as mentioned before, the accuracy of the approximation will depend on the number of terms used in the series.

5. How is the Taylor series for cosine derived?

The Taylor series for cosine is derived using the Maclaurin series, which is a special case of the Taylor series where the center of the series is at x=0. By taking the derivatives of the function at x=0 and plugging them into the general formula for the Taylor series, we can obtain the specific series for cosine.

Similar threads

Replies
5
Views
2K
Replies
27
Views
3K
Replies
1
Views
990
Replies
3
Views
1K
Replies
16
Views
17K
Replies
10
Views
1K
Back
Top