What is the Maclaurin Series of Tanh(x)?

In summary, the conversation is about finding the Maclaurin Series of tanhx up to powers of x^5. There is a discrepancy in the textbook about the value of f'(0) and f'''(0). One suggestion is to use a more efficient method such as dividing the series expansions of sinh(x) and cosh(x). Another option is to use a more advanced algorithm for division. It is also noted that the first term in the series for tanh(x) is x, not -x.
  • #1
thomas49th
655
0
Let's find the Maclaurin Series of tanhx up to powers of x^5

Yeah! Good idea!

I know

Right, f(x) = tanh
[tex]f'(x) = sech^{2}(x)[/tex]
[tex]f''(x) = -2sech^{2}(x)tanh(x)[/tex]
[tex]f''(x) = 4sech^{2}(x)tanh^{2}(x) - 2sech^{4}(x)[/tex]

giving f(0) = 0, f'(0) = 1, f''(0) = 0 f'''(-2)

but according to my textbook apparently f'(0) = -1, how can this be. Especially as f'''(0) = -2, not just 2.

Thanks
Thomas
 
Physics news on Phys.org
  • #2
Hi Thomas! :smile:

Looks like they're doing cothx instead of tanhx :confused:
 
  • #3
Yes, something is wrong here...

Another thing is that the Taylor formula is not the most efficient way to derive such series expansions. You can speed things up by dividing the series expansions of sinh(x) and cosh(x). To do that, you can use long division, or similarly, you can equate the fraction to an undetermined series a1 x + a3 x^3 + a5 x^5 + ... (as we know that tanh(x) is an aodd function) and then multiply both sides by the series for cosh(x) and then solve for a1, a3, etc by equating the coefficients of equal powers of x on both sides.

A third way is to use a more advanced algorithm for division, like e.g. Newton-Raphson division. Such algorithms will double the number of correct coefficients at each step, so you can obtain the first million terms in just 20 steps.
 
  • #4
tiny-tim said:
Hi Thomas! :smile:

Looks like they're doing cothx instead of tanhx :confused:

Not if the series is about x = 0!

OP: Are you sure the book claims f'(0) = -1? The first term in the series for tanh(x) is indeed x.
 
  • #5
Mute said:
Not if the series is about x = 0!

oops! :rolleyes: :redface:
 

1. What is a Maclaurin series?

A Maclaurin series is a type of power series expansion used to approximate a function by representing it as an infinite sum of terms involving powers of the independent variable, evaluated at a specific point (usually 0).

2. What is the Maclaurin series of tanh(x)?

The Maclaurin series of tanh(x) is given by: tanh(x) = x - (x^3)/3 + (2x^5)/15 - (17x^7)/315 + ...

3. How is the Maclaurin series of tanh(x) derived?

The Maclaurin series of tanh(x) is derived by using the Taylor series expansion formula for the function f(x) = tanh(x) around x = 0, and then simplifying the resulting expression using the properties of hyperbolic functions.

4. What is the interval of convergence for the Maclaurin series of tanh(x)?

The interval of convergence for the Maclaurin series of tanh(x) is -1 < x < 1, meaning that the series will converge for any value of x within this interval.

5. How accurate is the Maclaurin series approximation of tanh(x)?

The accuracy of the Maclaurin series approximation of tanh(x) depends on the number of terms used in the series. The more terms that are included, the closer the approximation will be to the actual value of tanh(x). However, for values of x outside the interval of convergence, the approximation will not be accurate.

Similar threads

  • Calculus
Replies
2
Views
1K
Replies
1
Views
1K
  • Calculus
Replies
1
Views
1K
  • Calculus
Replies
1
Views
1K
Replies
6
Views
2K
Replies
1
Views
907
  • Calculus
Replies
6
Views
1K
  • Calculus
Replies
1
Views
3K
Back
Top