Taylor series expansion of tangent

Click For Summary

Homework Help Overview

The discussion revolves around finding the first four nonzero terms in the power series expansion of the tangent function, tan(x), about the point a=0. Participants are exploring the derivatives of tan(x) and their contributions to the series expansion.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants are attempting to compute the derivatives of tan(x) to find the series terms, noting that there are zero terms at even indices. There is a specific focus on the calculations for n=5, where discrepancies in results are highlighted. Some participants question the correctness of their differentiation process and seek verification of their derivatives.

Discussion Status

The discussion is ongoing, with participants providing feedback on each other's derivative calculations. There is an acknowledgment of the tedious nature of the method being used, and some participants are looking for alternative approaches to simplify the process.

Contextual Notes

There is a mention of potential errors in the differentiation process, particularly regarding the contributions to the n=3 term. Participants are also considering the implications of their findings on the n=5 term, which has led to confusion and requests for clarification.

kreil
Science Advisor
Insights Author
Messages
665
Reaction score
68

Homework Statement


find the first four nonzero terms in the power series expansion of tan(x) about a=0


Homework Equations


[tex]\Sigma_{n=0}^{\infty} \frac{f^n (a)}{n!}(x-a)^n[/tex]


The Attempt at a Solution



Well the series has a zero term at each even n (0,2,4 etc)

for n=1 I got x, for n=3 I got [itex]\frac{x^3}{3}[/itex]

i ran into a problem while trying to compute n=5, since I got [itex]\frac{x^5}{10}[/itex] rather than [itex]\frac{2x^5}{15}[/itex] which is the answer. I assume that I must have differentiated wrong, so if someone could check the below derivatives I would appreciate it!

[tex]tan(x)[/tex](n=0)

[tex]sec^2(x)[/tex](n=1)

[tex]2tan(x)sec^2(x)[/tex](n=2)

[tex]2tan^2(x)sec^2(x)+2sec^4(x)[/tex](n=3)

[tex]4tan^3(x)sec^2(x)+4tan(x)sec^4(x)+8sec^4(x)tan(x)[/tex](n=4)

[tex]8tan^4(x)sec^2(x)+12tan^2(x)sec^4(x)+16tan^2(x)sec^4(x)+4sec^6(x)+32tan^2xsec^4(x)+8sec^6(x)[/tex](n=5)

As you can see in the n=5 expression plugging in x=0 reduces it to equaling 12; if it were instead equal to 16 I would have the correct expression.

Also, this method is very tedious so if anyone knows of an easier way please let me know!
 
Physics news on Phys.org
kreil said:

Homework Statement


find the first four nonzero terms in the power series expansion of tan(x) about a=0


Homework Equations


[tex]\Sigma_{n=0}^{\infty} \frac{f^n (a)}{n!}(x-a)^n[/tex]


The Attempt at a Solution



Well the series has a zero term at each even n (0,2,4 etc)

for n=1 I got x, for n=3 I got [itex]\frac{x^3}{3}[/itex]

i ran into a problem while trying to compute n=5, since I got [itex]\frac{x^5}{10}[/itex] rather than [itex]\frac{2x^5}{15}[/itex] which is the answer. I assume that I must have differentiated wrong, so if someone could check the below derivatives I would appreciate it!

[tex]tan(x)[/tex](n=0)

[tex]sec^2(x)[/tex](n=1)

[tex]2tan(x)sec^2(x)[/tex](n=2)

[tex]2tan^2(x)sec^2(x)+2sec^4(x)[/tex](n=3)
This is incorrect. Differentiating the "sec^2(x)" part of the first term of the previous derivative gives 2sec(x)(sec(x) tan(x)) so the multiplying by 2tan(x) gives 4tan^2(x)sec^2(x). This should be 4 tan^2(x)sec^2(x)+ 2sec^4(x).


[tex]4tan^3(x)sec^2(x)+4tan(x)sec^4(x)+8sec^4(x)tan(x)[/tex](n=4)

[tex]8tan^4(x)sec^2(x)+12tan^2(x)sec^4(x)+16tan^2(x)sec^4(x)+4sec^6(x)+32tan^2xsec^4(x)+8sec^6(x)[/tex](n=5)

As you can see in the n=5 expression plugging in x=0 reduces it to equaling 12; if it were instead equal to 16 I would have the correct expression.

Also, this method is very tedious so if anyone knows of an easier way please let me know!
 
4tan^2 sec^2 + 2sec^4 (n=3)
 
tan (n=0)
sec^2 (n=1)
2 tan sec^2 (n=2)
4 tan^2 sec^2 + 2 sec^4 (n=3)
16 tan sec^4 + 8 tan^3 sec^2 (n=4)
16 sec^6 + 88 sec^4 tan^2 + 16 sec^2 tan^4 (n=5)
272 sec^6 tan + 416 sec^4 tan^3 + 32 sec^2 tan^5 (n=6)
272 sec^8 + 2880 sec^6 tan^2 + 1824 sec^4 tan^4 + 64 sec^2 tan^6 (n=7)
7936 sec^8 tan + 24576 sec^6 tan^3 + 7680 sec^4 tan^5 + 128 sec^2 tan^7 (n=8)

See attachment,
Ref: Mathematica by Example, (By Martha L. Abell, James P.Braselton), page 188.
 

Attachments

  • Tan Derivatives.png
    Tan Derivatives.png
    54.7 KB · Views: 753

Similar threads

  • · Replies 21 ·
Replies
21
Views
3K
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
13
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 39 ·
2
Replies
39
Views
15K
  • · Replies 2 ·
Replies
2
Views
2K