Calculating \int \frac{dx}{cosh(x)}

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
roam
Messages
1,265
Reaction score
12
1. I am asked to calculate [tex]\int \frac{dx}{cosh(x)}[/tex]



2. Homework Equations



3. The Attempt at a Solution

I know that [tex]\frac{1}{cosh(x)}[/tex] is equivalent to "sech(x)" which by definition is [tex]\frac{2}{e^x+e^{-x}}[/tex].

I'm confused & I don't know which one I need to use for this question:

[tex]\int sech(x) = 2tan{-1}(tanh(\frac{x}{2}))[/tex]

[tex]\int \frac{2}{e^x + e^{-x}} = 2tan^{-1}(e^x)[/tex]

Any help would be greatly appreciated.
 
Last edited:
Physics news on Phys.org
The two answers you got only differ by a constant of [tex]\frac{\pi}{2}[/tex]. Recall that the indefinite integral is only defined up to a constant, so both solutions are correct.