Differentiating sinh x and cosh x

Each becomes the other, and no sign is lost.

The derivative of sinh

Differentiate the definition, sinh x = (eˣ − e⁻ˣ)/2, one term at a time. The derivative of eˣ is eˣ. For e⁻ˣ the chain rule brings out the derivative of −x, which is −1, so the derivative of e⁻ˣ is −e⁻ˣ, and the derivative of −e⁻ˣ is +e⁻ˣ.

So d/dx sinh x = (eˣ + e⁻ˣ)/2, which is cosh x.

Check with a difference quotient at x = 1. (sinh 1.01 − sinh 1)/0.01 = 1.548982, and with a step of 0.001 the quotient is 1.543668. They close in on cosh 1 = 1.543081.

cosh x is never less than 1, so the gradient of sinh x is always at least 1. That is why sinh x increases everywhere. At the origin the gradient is cosh 0 = 1, so the tangent there is y = x.

The derivative of cosh

Differentiate cosh x = (eˣ + e⁻ˣ)/2 the same way. eˣ gives eˣ and e⁻ˣ gives −e⁻ˣ, so d/dx cosh x = (eˣ − e⁻ˣ)/2, which is sinh x.

Unlike cosine, no minus sign appears. The derivative of cos x is −sin x, but the derivative of cosh x is +sinh x. Check at x = 1: (cosh 1.01 − cosh 1)/0.01 = 1.182936, and with a step of 0.001 it is 1.175973. They close in on sinh 1 = 1.175201, which is positive.

The gradient of cosh can still be negative. At x = −1 it is sinh(−1) = −1.175201, because cosh falls as x approaches 0 from the left. The minus there comes from the value of sinh x, not from the rule. At x = 0 the gradient is sinh 0 = 0, at the lowest point of the curve.

Differentiate twice and each function comes back with its own sign: the second derivative of cosh x is cosh x, and the second derivative of sinh x is sinh x. For cos x and sin x, two differentiations change the sign.

xy

The gold curve is y = cosh x and the plain curve is y = sinh x. The gold straight line is the tangent to cosh at x = 1, and its gradient, 1.175201, is the height of the sinh curve at x = 1, the lower marked point. The tangent crosses the y-axis at e⁻¹ = 0.367879. Left of 0, sinh x is negative and cosh falls.

The derivative of tanh

tanh x = (sinh x)/(cosh x), so use the quotient rule: the bottom times the derivative of the top, minus the top times the derivative of the bottom, all over the bottom squared. That is d/dx tanh x = (cosh x × cosh x − sinh x × sinh x)/cosh²x.

The numerator is cosh²x − sinh²x, which the identity says is 1. So d/dx tanh x = 1/cosh²x, which is also written sech²x.

At x = 0 the gradient is 1/cosh²0 = 1. At x = 0.5 it is 0.786448, and at x = 1 it is 0.419974. It is positive everywhere, so tanh x always increases, and it shrinks toward 0 far from the origin, where tanh x levels off toward 1 and −1.

xy

The gold curve is y = tanh x and the plain one is its gradient, y = 1/cosh²x. The gradient is highest, 1, at x = 0, where tanh is steepest, and it is 0.419974 at x = 1. It never drops to 0, and tanh never stops rising.

The integrals

Read each derivative backwards. sinh x differentiates to cosh x, so ∫ cosh x dx = sinh x + c. cosh x differentiates to sinh x, so ∫ sinh x dx = cosh x + c. Again no minus sign appears, where ∫ sin x dx = −cos x + c has one.

For example, the area under y = cosh x from x = 0 to x = 1 is sinh 1 − sinh 0 = 1.175201, and the area under y = sinh x over the same stretch is cosh 1 − cosh 0 = 0.543081. Reading the tanh result backwards gives ∫ 1/cosh²x dx = tanh x + c.

With the chain rule

A hanging cable has the shape y = a cosh(x/a). The chain rule gives d/dx cosh(x/a) = (1/a) sinh(x/a), so the gradient of the cable is a × (1/a) sinh(x/a) = sinh(x/a): the a in front cancels the 1/a from inside.

Backwards, ∫ cosh(x/a) dx = a sinh(x/a) + c, and the a appears in front, because differentiating a sinh(x/a) gives back cosh(x/a).

The usual mistakes

Copying the minus sign from cosine. d/dx cosh x = sinh x, and ∫ sinh x dx = cosh x + c, with no minus sign in either.

Forgetting the chain rule. 36 cosh(x/36) differentiates to sinh(x/36), not to 36 sinh(x/36).

Leaving off the square. d/dx tanh x is 1/cosh²x, not 1/(cosh x).

Two cables

In the first application below, the length of a hanging chain needs its gradient, sinh(x/20). The identity turns √(1 + sinh²u) into cosh u, which integrates back to a sinh.

In the second, the gradient of a footbridge cable at its anchor is a sinh, and the angle it makes with the horizontal follows from a slope triangle whose hypotenuse the identity turns into a cosh.

Worked example: A Chain of Lanterns Across a Courtyard: The Sag, and the Length of Chain to Buy

Question A chain of lanterns is slung between two posts 24 m apart across a courtyard. It hangs as y = 20cosh(x20), with x and y in meters and x measured from the middle of the span. (a) How far does the chain sag below the posts? (b) What length of chain is needed, and how much longer is that than the straight distance between the posts? Give each answer to three significant figures.

  1. 1.Each post stands at x = 12 m from the middle, so the number inside the cosh is 1220 = 0.6. From the exponentials, cosh 0.6 = e0.6 + e−0.62 = 1.82212 + 0.548812 = 1.18547.

    19212325−12−60612x, meters from the middle of the spanheight, mcosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547
    19212325−12−60612x, meters from the middle of the spanheight, mcosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547
    Each post is at x = 12 m, and cosh 0.6 = e0.6 + e−0.62 = 1.18547.
  2. 2.(a) The chain is 20 × 1.18547 = 23.709 m up at each post and 20 m up at its lowest point, so it sags 23.709 − 20 = 3.709 m, which is 3.71 m to three significant figures.

    19212325−12−60612x, meters from the middle of the spanheight, m3.71 mcosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547(a) sag = 20 × 1.18547 − 20 = 3.71 m
    19212325−12−60612x, meters from the middle of the spanheight, m3.71 mcosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547(a) sag = 20 × 1.18547 − 20 = 3.71 m
    (a) The chain is 20 × 1.18547 = 23.709 m up at a post, so it sags 3.71 m.
  3. 3.For the length, differentiate the model. The derivative of cosh u is sinh u, so dydx = sinh(x20), and the arc-length integrand is √1 + sinh2(x20). The identity cosh2 u − sinh2 u = 1 says that root is exactly cosh(x20).

    19212325−12−60612x, meters from the middle of the spanheight, m3.71 mcosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547(a) sag = 20 × 1.18547 − 20 = 3.71 mgradient = sinh(x/20)1 + sinh2= cosh2, so the root is cosh
    19212325−12−60612x, meters from the middle of the spanheight, m3.71 mcosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547(a) sag = 20 × 1.18547 − 20 = 3.71 mgradient = sinh(x/20)1 + sinh2= cosh2, so the root is cosh
    The gradient is sinh(x20), and √1 + sinh2 u = cosh u by the identity.
  4. 4.Integrating cosh(x20) gives 20sinh(x20), so the length from the middle out to one post is 20sinh 0.6 and the whole chain is twice that. From the exponentials, sinh 0.6 = 1.82212 − 0.548812 = 0.63665.

    19212325−12−60612x, meters from the middle of the spanheight, m3.71 mcosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547(a) sag = 20 × 1.18547 − 20 = 3.71 mgradient = sinh(x/20)1 + sinh2= cosh2, so the root is coshsinh 0.6 = (1.82212 − 0.54881)/2 = 0.63665
    19212325−12−60612x, meters from the middle of the spanheight, m3.71 mcosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547(a) sag = 20 × 1.18547 − 20 = 3.71 mgradient = sinh(x/20)1 + sinh2= cosh2, so the root is coshsinh 0.6 = (1.82212 − 0.54881)/2 = 0.63665
    Integrating cosh(x20) gives 20sinh(x20), and sinh 0.6 = 0.63665.
  5. 5.(b) The chain is 2 × 20 × 0.63665 = 25.466 m long, which is 25.5 m to three significant figures. That is 25.466 − 24 = 1.466 m more than the 24 m straight across, so 1.47 m of extra chain. Check: a hanging chain must be longer than the straight line between its ends, and it is.

    19212325−12−60612x, meters from the middle of the spanheight, m3.71 m24 m straight acrosscosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547(a) sag = 20 × 1.18547 − 20 = 3.71 mgradient = sinh(x/20)1 + sinh2= cosh2, so the root is coshsinh 0.6 = (1.82212 − 0.54881)/2 = 0.63665(b) chain = 2 × 20 × 0.63665 = 25.5 m1.47 m more than the 24 m across
    19212325−12−60612x, meters from the middle of the spanheight, m3.71 m24 m straight acrosscosh 0.6 = (1.82212 + 0.54881)/2 = 1.18547(a) sag = 20 × 1.18547 − 20 = 3.71 mgradient = sinh(x/20)1 + sinh2= cosh2, so the root is coshsinh 0.6 = (1.82212 − 0.54881)/2 = 0.63665(b) chain = 2 × 20 × 0.63665 = 25.5 m1.47 m more than the 24 m across
    (b) The chain is 2 × 20 × 0.63665 = 25.5 m, which is 1.47 m more than the 24 m across.

Answer: (a) a sag of 3.71 m; (b) 25.5 m of chain, which is 1.47 m more than the 24 m between the posts

Common mistakes

  • Taking the length to be the span plus twice the sag, 24 + 2 × 3.709 = 31.4 m. That measures a path that goes straight down and straight along, not the curve. The curve is shorter than that and longer than the span, and only the arc length gives it: 25.466 m.
  • Leaving the square root as √1 + sinh2 u and reaching for a calculator or an approximation. The identity makes the root exact: 1 + sinh2 u = cosh2 u, so the integrand is cosh u and the integral is elementary. Nothing here needs estimating.

More hyperbolic functions problems, worked step by step →

Worked example: The Anchor of a Footbridge Cable: How Steep It Is There and the Angle It Makes With the Horizontal

Question A footbridge's suspension cable hangs as y = 36cosh(x36), with x and y in meters and x measured from the middle of the span. Its anchors are at x = 27 m on each side. (a) What is the gradient of the cable at the anchor on the right, where x = 27 m? (b) What angle does the cable make with the horizontal there? Give the gradient to three significant figures and the angle to the nearest tenth of a degree.

  1. 1.Differentiate the model. The derivative of cosh u is sinh u, and the chain rule brings out a factor 136, so dydx = 36 × 136sinh(x36) = sinh(x36).

    38424650−27027x, meters from the middle of the spanheight, my = 36 cosh(x/36), anchors at x = 27
    38424650−27027x, meters from the middle of the spanheight, my = 36 cosh(x/36), anchors at x = 27
    The cable is y = 36cosh(x36), with its anchors at x = 27 m.
  2. 2.At an anchor x = 27, so the number inside the sinh is 2736 = 0.75. From the exponentials, sinh 0.75 = 2.11700 − 0.472372 = 0.82232.

    38424650−27027x, meters from the middle of the spanheight, my = 36 cosh(x/36), anchors at x = 27gradient = sinh(x/36), and 27/36 = 0.75
    38424650−27027x, meters from the middle of the spanheight, my = 36 cosh(x/36), anchors at x = 27gradient = sinh(x/36), and 27/36 = 0.75
    Differentiating gives dydx = sinh(x36), and at an anchor 2736 = 0.75.
  3. 3.(a) The gradient of the cable at the anchor is 0.822 to three significant figures. It is a pure number, a rise of 0.822 m for every meter along.

    38424650−27027x, meters from the middle of the spanheight, my = 36 cosh(x/36), anchors at x = 27gradient = sinh(x/36), and 27/36 = 0.75(a) sinh 0.75 = (2.117 − 0.47237)/2 = 0.822
    38424650−27027x, meters from the middle of the spanheight, my = 36 cosh(x/36), anchors at x = 27gradient = sinh(x/36), and 27/36 = 0.75(a) sinh 0.75 = (2.117 − 0.47237)/2 = 0.822
    (a) The gradient at the anchor is sinh 0.75 = 0.822, drawn here as the tangent.
  4. 4.For the angle, draw the slope triangle: it runs 1 across and sinh 0.75 up, so its hypotenuse is √1 + sinh2 0.75, which the identity makes exactly cosh 0.75. Therefore sinθ = sinh 0.75cosh 0.75 = tanh 0.75.

    38424650−27027x, meters from the middle of the spanheight, my = 36 cosh(x/36), anchors at x = 27gradient = sinh(x/36), and 27/36 = 0.75(a) sinh 0.75 = (2.117 − 0.47237)/2 = 0.822slope triangle: 1 across, 0.822 upits longest side is cosh 0.75
    38424650−27027x, meters from the middle of the spanheight, my = 36 cosh(x/36), anchors at x = 27gradient = sinh(x/36), and 27/36 = 0.75(a) sinh 0.75 = (2.117 − 0.47237)/2 = 0.822slope triangle: 1 across, 0.822 upits longest side is cosh 0.75
    The slope triangle runs 1 across and sinh 0.75 up, so its hypotenuse is cosh 0.75.
  5. 5.(b) tanh 0.75 = 0.822321.29468 = 0.635, so θ = 39.4° to the nearest tenth of a degree. Check the same angle from the gradient itself: tanθ = 0.82232 also gives θ = 39.4°.

    38424650−27027x, meters from the middle of the spanheight, m39.4 degy = 36 cosh(x/36), anchors at x = 27gradient = sinh(x/36), and 27/36 = 0.75(a) sinh 0.75 = (2.117 − 0.47237)/2 = 0.822slope triangle: 1 across, 0.822 upits longest side is cosh 0.75(b) sine of the angle = tanh 0.75 = 0.635so the angle is 39.4 deg
    38424650−27027x, meters from the middle of the spanheight, m39.4 degy = 36 cosh(x/36), anchors at x = 27gradient = sinh(x/36), and 27/36 = 0.75(a) sinh 0.75 = (2.117 − 0.47237)/2 = 0.822slope triangle: 1 across, 0.822 upits longest side is cosh 0.75(b) sine of the angle = tanh 0.75 = 0.635so the angle is 39.4 deg
    (b) sinθ = tanh 0.75 = 0.635, so the cable rises at 39.4° to the horizontal.

Answer: (a) a gradient of 0.822; (b) 39.4°, since sinθ = tanh 0.75 = 0.635

Common mistakes

  • Treating the gradient as the angle, and answering 0.822 radians, which is 47.1°. A gradient is a ratio of two lengths and an angle is not; the angle is the inverse tangent of the gradient, 39.4°.
  • Differentiating 36cosh(x36) to 36sinh(x36) and forgetting the chain rule. That answer, 29.6, is 36 times too large. The 136 from the inside of the bracket cancels the 36 in front, which is why a catenary's gradient is a plain sinh(xa).

More hyperbolic functions problems, worked step by step →

Practice Differentiating sinh x and cosh x in the app