Integrating hyperbolic functions

Click For Summary

Homework Help Overview

The discussion revolves around the integration of the expression (tanh(x) + coth(x)) / (cosh(x))^2, with participants exploring different approaches and interpretations of the integral's result.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • The original poster attempts substitution with u = tanh(x) and questions the correctness of their resulting expression. Some participants inquire about the choice of substitution and suggest expanding the numerator. Others discuss the differences in results from online calculators and the implications of constants in integration.

Discussion Status

Participants are actively questioning the validity of their approaches and the differences in results from various sources. There is an ongoing exploration of the relationship between the expressions derived and the potential for differing constants in the answers.

Contextual Notes

There is mention of potential ambiguity in notation and the need for clarity in mathematical expressions. The discussion also touches on the identity relating tanh(x) and sech(x), which may influence the interpretation of the results.

peripatein
Messages
868
Reaction score
0
Hi,
I am trying to integrate (tanh(x)+coth(x))/((cosh(x))^2)
I am substituting u=tanh(x), du=dx/((cosh(x))^2)
and end up with 1/2(tanh(x))^2 + ln |tanh(x)| + C
which is incorrect. What am I doing wrong??
 
Physics news on Phys.org
Does someone have an idea what is stymying my answer?
 
Why did you chose u = tanh(x)? What happens if you expand (tanh(x) + coth (x))?
 
I used u=tanhx, as 1/(coshx)^2 is its derivative.
 
peripatein said:
Does someone have an idea what is stymying my answer?

There is nothing wrong with your answer. If the book is giving one that looks different it may differ from yours by a constant.
 
Online calculators claim the integral to be -1/2*(coshx)^2 + ln |tanhx| + c.
1/2*(tanhx)^2 (which is the first term in my answer) is not equal to -1/2*(coshx)^2, is it?
 
peripatein said:
Online calculators claim the integral to be -1/2*(coshx)^2 + ln |tanhx| + c.
1/2*(tanhx)^2 (which is the first term in my answer) is not equal to -1/2*(coshx)^2, is it?

Wolfram Alpha gives the first term as -(sechx)^2/2 and that does differ from (tanhx)^2/2 by a constant. What's the constant? Are you sure the online calculator isn't saying -1/(2*(coshx)^2)? You should use more parentheses when you write something like -1/2*(coshx)^2. It's ambiguous.
 
Last edited:
I am not following your argument. Is the answer which Wolfram's calculator yields equal to mine?
My answer is: (0.5)(tanh(x))^2 + ln |tanh(x)| + C
Wolfram's calculator's answer: (-0.5)(sech(x)^2) + ln [tanh(x)] + C
 
peripatein said:
I am not following your argument. Is the answer which Wolfram's calculator yields equal to mine?
My answer is: (0.5)(tanh(x))^2 + ln |tanh(x)| + C
Wolfram's calculator's answer: (-0.5)(sech(x)^2) + ln [tanh(x)] + C

They are only 'equal' if you consider the '+C' part. (tanhx)^2+(sechx)^2=1. Use that identity.
 
  • #10
I see. Thanks a lot!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
1K