Skip to content

Hyperbolic function

Hyperbolic sine, cosine and tangent combine opposite exponentials. See their identities, calculus and why equal opposite log shocks do not average to an unchanged price.

A hyperbolic function is a function built from combinations of the exponentials exe^x and e−xe^{-x}. The main three are hyperbolic sine, hyperbolic cosine and hyperbolic tangent. They separate a pair of opposite exponential changes into a symmetric part and a signed part—a useful distinction when converting log-return scenarios into prices.

For a real, dimensionless input xx,

sinh⁡x=ex−e−x2,cosh⁡x=ex+e−x2,tanh⁡x=sinh⁡xcosh⁡x.\sinh x=\frac{e^x-e^{-x}}{2},\qquad \cosh x=\frac{e^x+e^{-x}}{2},\qquad \tanh x=\frac{\sinh x}{\cosh x}.
These are the standard NIST definitions. Read the names as “hyperbolic sine,” “hyperbolic cosine” and “hyperbolic tangent.” The extra h matters: these are different functions from sin⁡\sin, cos⁡\cos and tan⁡\tan.

What the three shapes tell you

FunctionSymmetryRange for real inputValue at zero
cosh⁡x\cosh xEven: cosh⁡(−x)=cosh⁡x\cosh(-x)=\cosh x[1,∞)[1,\infty)11
sinh⁡x\sinh xOdd: sinh⁡(−x)=−sinh⁡x\sinh(-x)=-\sinh xAll real numbers00
tanh⁡x\tanh xOdd: tanh⁡(−x)=−tanh⁡x\tanh(-x)=-\tanh x(−1,1)(-1,1)00

Hyperbolic cosine averages the two exponentials, so reversing the sign of xx changes nothing. Hyperbolic sine takes half their difference, so reversing xx reverses its sign. Their ratio, hyperbolic tangent, increases smoothly toward 11 or −1-1 but never reaches either at a finite real input.

On the real interval minus 2 to 2, cosh is an even U-shaped curve with minimum 1; sinh is an odd increasing unbounded function; tanh is odd and increases between horizontal limits minus 1 and 1.
On the real interval minus 2 to 2, cosh is an even U-shaped curve with minimum 1; sinh is an odd increasing unbounded function; tanh is odd and increases between horizontal limits minus 1 and 1.
Original mathematical curves. Inputs and function values are dimensionless; the plotted interval is only part of each function's domain.

The family also includes reciprocal functions: sech⁡x=1/cosh⁡x\operatorname{sech}x=1/\cosh x, csch⁡x=1/sinh⁡x\operatorname{csch}x=1/\sinh x and coth⁡x=cosh⁡x/sinh⁡x\coth x=\cosh x/\sinh x. The last two are undefined at x=0x=0.

Why “hyperbolic” rather than “trigonometric”?

The defining identity is

cosh⁡2x−sinh⁡2x=1.\cosh^2 x-\sinh^2 x=1.
Thus (cosh⁡x,sinh⁡x)(\cosh x,\sinh x) lies on the right branch of the hyperbola u2−v2=1u^2-v^2=1. By comparison, the trigonometric functions give a point (cos⁡x,sin⁡x)(\cos x,\sin x) on the circle u2+v2=1u^2+v^2=1. The minus sign changes the geometry. NIST records the hyperbolic identity.

You can derive it directly: put a=exa=e^x and b=e−xb=e^{-x}. Then

(a+b2)2−(a−b2)2=ab=1.\left(\frac{a+b}{2}\right)^2- \left(\frac{a-b}{2}\right)^2=ab=1.

For real inputs, none of sinh⁡\sinh, cosh⁡\cosh or tanh⁡\tanh repeats with a nonzero real period. In particular, tanh⁡\tanh is a saturating curve, not an oscillating tangent wave. Statements about imaginary periods belong to their complex extensions.

Two other useful identities reconstruct the original exponentials:

ex=cosh⁡x+sinh⁡x,e−x=cosh⁡x−sinh⁡x.e^x=\cosh x+\sinh x,\qquad e^{-x}=\cosh x-\sinh x.

Equal log shocks do not average to an unchanged price

Start with a synthetic price of USD 100 and two alternative scenarios at the same future horizon. Assume positive prices and no intervening cash distributions. A price log-return is r=ln⁡(S1/S0)r=\ln(S_1/S_0), so S1=S0erS_1=S_0e^r; the logarithm reverses the exponential transformation.

Give the two scenarios equal weight and choose r=+0.2r=+0.2 and r=−0.2r=-0.2. These are log-return units, not simple returns of plus and minus 20%.

ScenarioTerminal price, USDSimple price return
r=+0.2r=+0.2100e0.2=122.140276…100e^{0.2}=122.140276\ldots+22.140276…%+22.140276\ldots\%
r=−0.2r=-0.2100e−0.2=81.873075…100e^{-0.2}=81.873075\ldots−18.126925…%-18.126925\ldots\%
The average log-return is zero. The arithmetic average price is
100e0.2+100e−0.22=100cosh⁡(0.2)=102.00667556…\frac{100e^{0.2}+100e^{-0.2}}{2} =100\cosh(0.2) =102.00667556\ldots

For reference,

cosh⁡(0.2)=1.020066756…,sinh⁡(0.2)=0.201336003…,tanh⁡(0.2)=0.197375320…\cosh(0.2)=1.020066756\ldots,\quad \sinh(0.2)=0.201336003\ldots,\quad \tanh(0.2)=0.197375320\ldots

Here 100sinh⁡(0.2)100\sinh(0.2) is half the difference between the scenario prices, while tanh⁡(0.2)\tanh(0.2) is their difference divided by their sum. These interpretations follow from the definitions; they do not assign probabilities to the scenarios.

A convex synthetic price curve S equals 100 exp(r). At log-return minus 0.2 the price is USD 81.873075; at plus 0.2 it is USD 122.140276. The dashed chord midpoint is their equal-weight mean, USD 102.006676, above USD 100 at zero log-return.
A convex synthetic price curve S equals 100 exp(r). At log-return minus 0.2 the price is USD 81.873075; at plus 0.2 it is USD 122.140276. The dashed chord midpoint is their equal-weight mean, USD 102.006676, above USD 100 at zero log-return.
Original synthetic same-horizon scenarios, with no intervening cash flows. The dashed chord averages two alternative terminal prices.
The gap arises because the exponential is a convex function: equal opposite changes in its input produce unequal changes in its output. The geometric mean of the two prices is exactly (100e0.2)(100e−0.2)=100\sqrt{(100e^{0.2})(100e^{-0.2})}=100. The arithmetic mean exceeds it.
Alternative scenarios are different from consecutive returns. A price that experiences +0.2+0.2 and then −0.2-0.2 as consecutive log-returns returns to 100e0.2e−0.2=100100e^{0.2}e^{-0.2}=100, under the same no-distribution assumption. USD 102.006676 is the average across two alternative endpoints, not the result of that round trip. Equal scenario weights also do not establish a real-world expected gain or alpha. Actual probabilities, financing and a trading rule would require separate assumptions.

Calculus without the familiar sign trap

The derivatives are
ddxsinh⁡x=cosh⁡x,ddxcosh⁡x=sinh⁡x,ddxtanh⁡x=1−tanh⁡2x.\frac{d}{dx}\sinh x=\cosh x,\qquad \frac{d}{dx}\cosh x=\sinh x,\qquad \frac{d}{dx}\tanh x=1-\tanh^2 x.
Unlike the derivative of ordinary cosine, the derivative of hyperbolic cosine has no minus sign. These formulas are listed in NIST's derivative reference. Since cosh⁡′′x=cosh⁡x>0\cosh''x=\cosh x>0, hyperbolic cosine is strictly convex everywhere. Meanwhile the slope of tanh⁡\tanh tends to zero near its limiting levels: bounding an output with tanh⁡\tanh also compresses changes in large inputs.
Near zero, the Maclaurin expansions begin
cosh⁡x=1+x22+x424+⋯ ,sinh⁡x=x+x36+⋯ .\cosh x=1+\frac{x^2}{2}+\frac{x^4}{24}+\cdots,\qquad \sinh x=x+\frac{x^3}{6}+\cdots.

Odd powers cancel from the exponential average. Consequently the leading increase in the equal-weight mean price is quadratic in shock size: 100cosh⁡x≈100(1+x2/2)100\cosh x\approx100(1+x^2/2). At x=0.2x=0.2 this approximation is USD 102, close to the exact USD 102.006676. It explains the curvature effect without treating the approximation as an exact pricing model.

For the exponential and log-return prerequisites, Exponentials and Logarithms develops the price transformation and aggregation through time. The public page is a preview; the full lesson requires membership.

Sources

Last updated
  • hyperbolic functions
  • exponentials
  • calculus
  • log returns
  • convexity
← Back to the glossaryBack to top ↑