What is the derivative of tanh(x)?

Redirected from "Suppose that I don't have a formula for g(x) but I know that g(1) = 3 and g'(x) = sqrt(x^2+15) for all x. How do I use a linear approximation to estimate g(0.9) and g(1.1)?"
1 Answer
Dec 22, 2014

The derivative is: 1-tanh^2(x)

Hyperbolic functions work in the same way as the "normal" trigonometric "cousins" but instead of referring to a unit circle (for sin, cos and tan) they refer to a set of hyperbolae.

enter image source here
(Picture source: Physicsforums.com)

You can write:
tanh(x)=(e^x-e^(-x))/(e^x+e^-x)

It is now possible to derive using the rule of the quotient and the fact that:
derivative of e^x is e^x and
derivative of e^-x is -e^-x

So you have:
d/dxtanh(x)=[(e^x+e^-x)(e^x+e^-x)-(e^x-e^-x)(e^x-e^-x)]/(e^x+e^-x)^2
=1-((e^x-e^-x)^2)/(e^x+e^-x)^2=1-tanh^2(x)