---
title: Hyperbolic functions
heading: The shape of a hanging power line
eyebrow: A5 · Lesson 17 · Hyperbolic functions
xp: 50
---

::: hook
A power line strung between two towers doesn't hang in a parabola, though it looks like one. Its exact shape is a catenary, $y = a\cosh(x/a)$, built from exponentials. The same family of functions shows up when a transistor pair steers current from one side to the other, and when voltage travels along a long transmission line. They're called hyperbolic functions, and their calculus looks almost exactly like that of sine and cosine.
:::

::: play
- The solid curve is $a\cosh(x/a) - a$, a cable hanging between towers 200 m apart, measured from its lowest point. The dashed curve is the parabola $x^2/2a$ that matches it at the bottom.
- Change $a$, the ratio of the cable's tension to its weight per meter. A tighter cable has a bigger $a$ and sags less.
- Where do the two curves part company? For a tight cable, the parabola is almost exact; for a slack one, it isn't.
:::

```sim plot
view: graph
x: x = -100..100 m
y: y = 0..120 m
slider: a = 40..400 = 100
plot: a*cosh(x/a) - a | samples: 300 | label: catenary
plot: x^2/(2*a) | dashed | color: ch2 | label: parabola
readout: sag at the towers, m = a*(cosh(100/a) - 1) | digits: 4
readout: cable length, m = 2*a*sinh(100/a) | digits: 5
```

::: predict
## What is the slope of $\cosh x$?

- [ ] $-\sinh x$, like the cosine's slope
- [x] $\sinh x$
- [ ] $\cosh x$, since it's built from $e^x$
- [ ] $\tanh x$

::: reveal
It's $\sinh x$, with no minus sign. $\cosh x = \frac{e^x + e^{-x}}{2}$, so its derivative is $\frac{e^x - e^{-x}}{2} = \sinh x$. And the slope of $\sinh x$ is $\cosh x$. The circular functions trade places with a sign change; the hyperbolic ones trade places without one.
:::
:::

::: nameit
## The definitions

$$\cosh x = \frac{e^x + e^{-x}}{2}, \qquad \sinh x = \frac{e^x - e^{-x}}{2}, \qquad \tanh x = \frac{\sinh x}{\cosh x}$$

$\cosh$ is even, with its minimum $\cosh 0 = 1$; $\sinh$ is odd, through the origin; $\tanh$ climbs from $-1$ to $1$, an S-shaped curve. For large $x$, both $\cosh x$ and $\sinh x$ are close to $e^x/2$.

## Identity and derivatives

Multiplying out the definitions gives

$$\cosh^2 x - \sinh^2 x = 1$$

which is why they're "hyperbolic": the point $(\cosh t, \sinh t)$ traces the hyperbola $x^2 - y^2 = 1$, just as $(\cos t, \sin t)$ traces a circle. The derivatives are

$$\frac{d}{dx}\sinh x = \cosh x, \qquad \frac{d}{dx}\cosh x = \sinh x, \qquad \frac{d}{dx}\tanh x = \frac{1}{\cosh^2 x} = 1 - \tanh^2 x$$

## The inverse functions

$\sinh^{-1} x = \ln\left(x + \sqrt{x^2 + 1}\right)$ and $\tanh^{-1} x = \frac12\ln\frac{1 + x}{1 - x}$ (for $|x| < 1$). They undo the hyperbolic functions the way $\ln$ undoes $\exp$.

## Where they appear

- **The catenary.** A flexible cable under its own weight hangs as $y = a\cosh(x/a)$, where $a$ is its horizontal tension divided by its weight per meter. For a span $L$, the sag is $a(\cosh\frac{L}{2a} - 1)$ and the cable's length is $2a\sinh\frac{L}{2a}$.
- **The differential pair.** Two matched transistors sharing a tail current $I$ split it as $\Delta I = I\tanh\frac{v_d}{2V_T}$ for a differential input $v_d$. Small inputs give a linear response; large ones steer all the current to one side.
- **Long lines.** Voltage along a lossy transmission line follows $\cosh$ and $\sinh$ of the distance, which you'll meet in C10.
:::

::: example
## A cable with $a$ = 100 m hangs between towers 200 m apart. What is its sag, and how long is it?

::: solution
1. **Sag.**
   $$\begin{aligned} \text{sag} &= a\left(\cosh\frac{L}{2a} - 1\right) \\ &= 100(\cosh 1 - 1) \\ &= 100 \times 0.543 \\ &= 54.3\ \text{m} \end{aligned}$$
2. **Length.**
   $$\begin{aligned} \text{length} &= 2a\sinh\frac{L}{2a} \\ &= 200\sinh 1 \\ &= 200 \times 1.1752 \\ &= 235.0\ \text{m} \end{aligned}$$
   35 m more than the span.
3. **Compare with real lines.** A cable this slack sags a lot; real power lines run with $a$ in the hundreds or thousands of meters.

**Answer:** the cable sags 54.3 m and is 235.0 m long.
:::
:::

::: example
## A tight line with $a$ = 500 m spans 300 m. Compare its sag with the parabola's estimate $L^2/8a$.

::: solution
1. **Exact sag.**
   $$\begin{aligned} \text{sag} &= 500(\cosh 0.3 - 1) \\ &= 500 \times 0.045\,34 \\ &= 22.67\ \text{m} \end{aligned}$$
2. **Parabola's estimate.**
   $$\begin{aligned} \frac{L^2}{8a} &= \frac{300^2}{8 \times 500} \\ &= 22.5\ \text{m} \end{aligned}$$
3. **Compare.** They differ by 0.8%. The parabola comes from the first terms of $\cosh u \approx 1 + u^2/2$, so it's excellent when $L/2a$ is small, which is why sag tables for tight lines use it.

**Answer:** the exact sag is 22.67 m and the parabola gives 22.5 m, 0.8% less.
:::
:::

::: example
## A differential pair with a 1 mA tail sees a 10 mV differential input ($V_T$ = 25.85 mV). How much of the current does it steer? What input steers 90%?

::: solution
1. **Fraction steered.**
   $$\begin{aligned} \frac{\Delta I}{I} &= \tanh\frac{10}{51.7} \\ &= \tanh 0.193 \\ &= 0.191 \end{aligned}$$
   so 19.1% of the tail current shifts to one side.
2. **Check.** That's almost exactly $0.193$, since $\tanh u \approx u$ for small $u$.
3. **Input for 90%.**
   $$\begin{aligned} v_d &= 2V_T\tanh^{-1}0.9 \\ &= 51.7 \times 1.472 \\ &= 76.1\ \text{mV} \end{aligned}$$
4. **Full switching.** Past about 100 mV the pair is fully switched, which is how a comparator decides.

**Answer:** a 10 mV input steers 19.1% of the tail current, and 76.1 mV steers 90%.
:::
:::

::: check
given: x = 0.5 | 1 | 1.5 | 2
answer: cosh(x)
tolerance: 0.5%

## What is $\cosh \given{x}$?

::: right
Right. $\cosh x = \frac{e^x + e^{-x}}{2}$ = {answer}.
:::

::: misses
- [sinh(x)] That's $\sinh$, with a minus sign between the exponentials.
- [cos(x)] That's the circular cosine. The hyperbolic one uses real exponentials.
- [any] Not yet. Average $e^x$ and $e^{-x}$.
:::
:::

::: check
given: k = 0.5 | 2 | 3; x0 = 0.5 | 1
answer: k*sinh(k*x0)
tolerance: 0.5%

## What is the slope of $\cosh(\given{k}x)$ at $x$ = {x0}?

::: right
Right. $k\sinh(kx)$ = {answer}.
:::

::: misses
- [-k*sinh(k*x0)] There's no minus sign: the derivative of $\cosh$ is $+\sinh$.
- [sinh(k*x0)] The chain rule brings out {k}.
- [any] Not yet. $\frac{d}{dx}\cosh u = u'\sinh u$.
:::
:::

::: check
given: a = 100 | 300 | 1000; L = 150 | 300
answer: a*(cosh(L/(2*a)) - 1)
unit: m
tolerance: 0.5%

## A cable with $a$ = {a} m hangs across a {L} m span. What is its sag?

::: right
Right. $a(\cosh\frac{L}{2a} - 1)$ = {answer}.
:::

::: misses
- [a*cosh(L/(2*a))] That's the height above the reference, not the sag. Subtract $a$.
- [any] Not yet. Sag is $y$ at the tower minus $y$ at the bottom.
:::
:::

::: check
given: vd = 20 | 50 | 80; I = 1 | 2
answer: I*tanh(vd/(2*25.85))
unit: mA
tolerance: 0.5%

## A differential pair with a {I} mA tail current gets {vd} mV of differential input ($V_T$ = 25.85 mV). How much current, $\Delta I$, does it steer?

::: right
Right. $I\tanh\frac{v_d}{2V_T}$ = {answer}.
:::

::: misses
- [I*vd/(2*25.85)] That's the small-signal line. It's close for small inputs, but $\tanh$ bends over.
- [I*tanh(vd/25.85)] It's $2V_T$ in the denominator.
- [any] Not yet. $\Delta I = I\tanh(v_d/2V_T)$.
:::
:::

::: check
given: x = 0.5 | 1 | 2 | 4
answer: ln(x + sqrt(x^2 + 1))
tolerance: 0.5%

## What is $\sinh^{-1}\given{x}$?

::: right
Right. $\ln(x + \sqrt{x^2 + 1})$ = {answer}.
:::

::: misses
- [1/sinh(x)] That's $1/\sinh x$, not the inverse function.
- [any] Not yet. Solve $\frac{e^y - e^{-y}}{2} = x$ for $y$.
:::
:::

::: check
kind: parts
given: a = 200 | 500; L = 200 | 400

## A power line has $a$ = {a} m across a {L} m span.

::: part
answer: a*(cosh(L/(2*a)) - 1)
unit: m
tolerance: 0.5%

### What is its exact sag?

::: misses
- [any] $a(\cosh\frac{L}{2a} - 1)$.
:::
:::

::: part
answer: 2*a*sinh(L/(2*a))
unit: m
tolerance: 0.5%

### How long is the cable?

::: misses
- [L] The cable is longer than the span because it sags.
- [any] $2a\sinh\frac{L}{2a}$.
:::
:::

::: part
answer: sinh(L/(2*a))
tolerance: 0.5%

### What is the slope of the cable where it meets the tower?

::: misses
- [cosh(L/(2*a))] The slope of $\cosh$ is $\sinh$.
- [any] Differentiate $a\cosh(x/a)$ and put $x = L/2$.
:::
:::
:::

::: check
kind: derivation
vars: x = -3..3

## Derive the identity and a derivative from the definitions.

::: step
answer: 1
form: simplified

### Square $\cosh x$ and $\sinh x$ from their definitions and subtract: what is $\cosh^2 x - \sinh^2 x$?
:::

::: step
answer: 1/cosh(x)^2

### Differentiate $\tanh x = \sinh x/\cosh x$ with the quotient rule and use the identity.
:::

::: step
answer: 1 - tanh(x)^2

### Write that in terms of $\tanh x$ alone.
:::

::: right
Right. $\frac{d}{dx}\tanh x = 1 - \tanh^2 x$: steepest at 0, flattening toward $\pm 1$.
:::
:::

::: explain
## Why does a tight power line hang almost exactly like a parabola, while a slack one doesn't?

::: model
The exact shape is $a\cosh(x/a)$, and near its bottom $\cosh u \approx 1 + u^2/2$, so the curve starts out as the parabola $x^2/2a$ plus a constant. The next term is $u^4/24$, which matters only when $u = x/a$ is no longer small. For a tight line, $a$ is large compared with the span, so $x/a$ stays small all the way to the towers and the parabola is almost exact. A slack line has a small $a$, the cable's own weight steepens it near the towers, and the $\cosh$ climbs much faster than the parabola there. The parabola treats the weight as spread evenly along the span; the catenary spreads it along the cable, which is longer where the cable is steep.
:::
:::

::: practice

::: check
given: x = 0.1..3
answer: sinh(x)
tolerance: 0.5%

## $\sinh \given{x}$?

::: misses
- [any] $\frac{e^x - e^{-x}}{2}$.
:::
:::

::: check
given: a = 50..2000; L = 50..500
answer: a*(cosh(L/(2*a)) - 1)
tolerance: 0.5%

## Sag for $a$ = {a} m, span {L} m?

::: misses
- [any] $a(\cosh\frac{L}{2a} - 1)$.
:::
:::
:::
