To prove this identity, we will start with the definitions of hyperbolic tangent (tanh) and hyperbolic secant (sech):
tanh x = (e^x - e^(-x)) / (e^x + e^(-x))
sech x = 1 / cosh x = 2 / (e^x + e^(-x))
where cosh x = (e^x + e^(-x)) / 2 is the hyperbolic cosine function.
Now, let's square both sides of the tanh definition:
tanh^2 x = [(e^x - e^(-x)) / (e^x + e^(-x))]^2
Expanding the numerator and simplifying, we get:
tanh^2 x = [(e^2x - 2 + e^(-2x)) / (e^2x + 2 + e^(-2x))]
Next, let's use the definition of sech to write it in terms of cosh:
sech^2 x = (1 / cosh x)^2 = (2 / (e^x + e^(-x)))^2 = 4 / (e^2x + 2 + e^(-2x))
Now, we can add the expressions for tanh^2 x and sech^2 x:
tanh^2 x + sech^2 x = [(e^2x - 2 + e^(-2x)) / (e^2x + 2 + e^(-2x))] + 4 / (e^2x + 2 + e^(-2x))
Combining the fractions, we get:
tanh^2 x + sech^2 x = [(e^2x - 2 + e^(-2x)) + 4] / (e^2x + 2 + e^(-2x))
Simplifying the numerator, we get:
tanh^2 x + sech^2 x = (e^2x + 2 + e^(-2x)) / (e^2x + 2 + e^(-2x))
Therefore, we have shown that:
tanh^2 x + sech^2 x = 1
which is the desired identity.