How the Cosh Calculator works
This tool evaluates the hyperbolic cosine function, written cosh(x), for any real number x you enter. Alongside cosh(x) it also reports the two other core hyperbolic functions - sinh(x) and tanh(x) - plus the exponential term e^x that all three are built from.
Formula and method
The hyperbolic cosine is defined directly from the exponential function:
cosh(x) = (e^x + e^-x) / 2
where e is approximately 2.718281828, Euler's number. The two related functions shown alongside it are:
- sinh(x) = (e^x - e^-x) / 2 - the hyperbolic sine
- tanh(x) = sinh(x) / cosh(x) - the hyperbolic tangent, always between -1 and 1
These functions satisfy the identity cosh^2(x) - sinh^2(x) = 1, which is why the point (cosh(t), sinh(t)) traces out the hyperbola x^2 - y^2 = 1 as t varies - the same way (cos t, sin t) traces a circle. That parallel with circular trigonometry is where the name "hyperbolic" comes from.
Common sources of error
- Confusing cosh with cos: the circular cosine cos(x) oscillates between -1 and 1; the hyperbolic cosine cosh(x) never oscillates and is always at least 1.
- Overflow at large |x|: e^x grows so fast that cosh(x) exceeds the range double-precision numbers can represent once |x| is roughly 710 or more, so this calculator limits x to between -700 and 700.
- Sign errors in sinh: sinh is an odd function (sinh(-x) = -sinh(x)), so flipping the sign of x flips the sign of sinh(x) but leaves cosh(x) unchanged.
Checking your result
A quick sanity check: cosh(x) should always be at least 1, and always at least as large as the absolute value of sinh(x). At x = 0, cosh should read exactly 1 and sinh exactly 0. For any x, squaring the reported cosh and sinh values and subtracting should land on 1 (cosh^2(x) - sinh^2(x) = 1), which is a reliable way to confirm the numbers are internally consistent.
Applications
The hyperbolic cosine describes the catenary curve of a hanging cable or chain under its own weight, appears in the equations of special relativity (rapidity) and electrical transmission lines, and is the real-axis counterpart of the circular cosine, since cos(ix) = cosh(x) for the imaginary unit i.