Home › iPhone calculator › Hyperbolic functions
iPhone Calculator Hyperbolic Functions: How to Use sinh, cosh and tanh
A Phoney’s Calculator Class tutorial
Hold a necklace by its two ends and let the middle sag. Look at the curve it makes. Now look at a power line stretched between two poles, or a spider’s thread glistening between two branches. All of these hanging curves share one special shape, and it is not a parabola, even though it looks like one. It is called a catenary, and its equation is built from a function you will meet in this tutorial: the hyperbolic cosine, written cosh.
Your iPhone Calculator has three hyperbolic keys on the bottom row of the scientific keypad: sinh, cosh and tanh. They look like the trigonometry keys from Part 5 with an “h” on the end, and that is no accident. They are close relatives. But where sin, cos and tan describe circles and angles, sinh, cosh and tanh describe hanging cables, curved arches, ocean waves and even the “brains” of some computer programs.
The good news is that using the keys is just as easy as using sin, cos and tan, and you do not need to think about angles at all. In this tutorial you will learn what the hyperbolic functions are, how to use their keys and their inverses, and how to put them to work on a real hanging cable. Turn your iPhone sideways, open Calculator, and let us hang a few cables.
What hyperbolic functions are
The ordinary trigonometry functions come from circles. Pick a point on a circle, and its horizontal and vertical positions give you the cosine and sine of an angle.
The hyperbolic functions come from a different curve, called a hyperbola. They can also be built directly from the special number e, which is about 2.71828 and was met in Part 2 on the eˣ key. Here are the three definitions:
- sinh x = (eˣ − e⁻ˣ) ÷ 2
- cosh x = (eˣ + e⁻ˣ) ÷ 2
- tanh x = sinh x ÷ cosh x
The names are short for “hyperbolic sine,” “hyperbolic cosine” and “hyperbolic tangent.” People say them as “sinch,” “cosh” (rhymes with “posh”), and “tanch” or “than.”
Notice that each definition mixes the growth function eˣ and the shrinking function e⁻ˣ. Sinh takes their difference and cosh takes their sum. That blend of growing and shrinking is what makes a hanging cable sag in just the right way.
The big difference from sin, cos and tan
Here is the most important thing to know before you start: the hyperbolic functions do not use degrees or radians. They take a plain number, not an angle. That means the Rad/Deg setting, which you will study in Part 7, makes no difference to them.
If you type 1 and tap sinh, you get the same answer in degree mode as in radian mode. This is a relief, because it removes the number one source of trigonometry mistakes. It also means you can think of sinh, cosh and tanh as fancy cousins of the exponent key.
Where to find the keys
Turn your iPhone sideways with the orientation lock off to open the scientific keypad. Look at the bottom row on the left. You will see the Rad key, and right next to it sinh, cosh and tanh, followed by π and Rand.
The method is the same one you have used all through this series. Type the number first, and then tap the function key. The key acts immediately, so there is no need to press equals.
Try these:
- Type 0, tap sinh. The screen shows 0.
- Type 0, tap cosh. The screen shows 1.
- Type 0, tap tanh. The screen shows 0.
- Type 1, tap sinh. The screen shows about 1.175201194.
- Type 1, tap cosh. The screen shows about 1.543080635.
- Type 1, tap tanh. The screen shows about 0.7615941559.
Here is a handy table in list form for the number 2: sinh 2 is about 3.626860408, cosh 2 is about 3.762195691, and tanh 2 is about 0.9640275801.
The shape of each function
It helps to picture what each function looks like, even if you only imagine it.
cosh makes a smooth U shape. Its lowest point is at x = 0, where the value is exactly 1. Move away from zero in either direction and the value rises, slowly at first, and then faster and faster. Because it is symmetrical, cosh of a negative number equals cosh of the positive number. Try it: type 1, tap ±, tap cosh. The answer is again about 1.543.
sinh makes a gentle S shape that passes through zero. For negative numbers it goes negative, and for positive numbers it goes positive. It is “odd,” which means sinh of a negative number is the negative of sinh of the positive number. Try 1, ±, sinh, and you will see about −1.1752.
tanh also makes an S shape, but it is squashed flat at the top and bottom. No matter how large the input, the answer never goes above 1, and never below −1. Try 5, tanh: you get about 0.99990920. Try 10, tanh: the screen shows 1, because the answer is so close to 1 that the calculator rounds it. This “squashing” property becomes important later in this tutorial.
For large inputs, sinh and cosh behave almost exactly like eˣ ÷ 2. Try 10, cosh, and you get about 11,013.23. Now type 10, tap eˣ, and then ÷ 2 =. You get about 11,013.23 again.
Checking the definition with your calculator
It is a good habit to test a definition so you believe it. Let us check that sinh 1 really equals (e¹ − e⁻¹) ÷ 2.
- Type 1 and tap eˣ. The screen shows 2.718281828.
- Tap −.
- Type 1, tap ±, and tap eˣ. This calculates e to the power of −1, which is 0.3678794412.
- Tap =. The screen shows 2.350402387.
- Tap ÷, type 2, and tap =.
- The screen shows 1.175201194.
That is exactly what the sinh key gave in the first example. The key is simply a shortcut for this longer sequence. You can do the same for cosh by replacing the minus with a plus: you will get 1.543080635.
Three neat identities
Just as trigonometry has neat patterns, the hyperbolic functions have their own. Each can be confirmed on your calculator.
Identity 1: cosh squared minus sinh squared always equals 1. This looks like the trigonometry identity, but with a minus sign instead of a plus. Test it with x = 2, using the memory keys:
- Tap mc.
- Type 2, tap cosh, tap x², tap m+. The screen shows about 14.1541.
- Type 2, tap sinh, tap x², tap m−. The screen shows about 13.1541.
- Tap mr. The screen shows 1.
Try it with 0.7 or 3.3 or any number you like. The answer is always 1.
Identity 2: cosh x + sinh x = eˣ. For x = 1, add 1.5430806 and 1.1752012, and you get 2.7182818, which is e itself. This works because the e⁻ˣ parts cancel when you add the two definitions together.
Identity 3: tanh x = sinh x ÷ cosh x. Type 1, sinh, ÷, 1, cosh, =. You get 0.7615941559, exactly the same as tanh 1.
Phoney’s tip: these identities are free error checks. If you are ever unsure that you typed a hyperbolic number correctly, compute cosh squared minus sinh squared. If the answer is not 1, something went wrong.
Real use 1: the hanging cable
Now for the application that started this tutorial. A flexible cable, chain or rope hanging under its own weight forms a catenary. Its height is given by:
y = a × cosh(x ÷ a)
Here x is the horizontal distance from the lowest point, a is a number that depends on the tension and weight of the cable (a larger a means a tighter, flatter cable), and y is the height above the ground line used for the curve. The lowest point of the cable is at height a, when x is 0.
Example: a cable 5 meters from the middle
Suppose a = 10 meters. How high is the cable at 5 meters from the lowest point?
- Type 5, tap ÷, type 10, tap =. The screen shows 0.5.
- Tap cosh. The screen shows 1.127625965.
- Tap ×, type 10, tap =.
- The screen shows about 11.276.
The cable is 11.276 meters above the reference line. The lowest point is at 10 meters, so the cable has risen about 1.276 meters over its lowest point. If you were hanging it from a 5-meter-tall frame, that is a noticeable curve.
Example: the sag of a power line
Two poles are 20 meters apart, so the cable runs from x = −10 to x = +10 meters. The cable has a = 50. How much does the cable sag below the height of the poles?
The sag is the difference between the height at the poles and the height at the middle: sag = 50 × (cosh(10 ÷ 50) − 1).
- Type 10, tap ÷, type 50, tap =. The screen shows 0.2.
- Tap cosh. The screen shows 1.020066756.
- Tap −, type 1, tap =. The screen shows 0.020066756.
- Tap ×, type 50, tap =.
- The screen shows about 1.0033.
So the cable sags only about one meter over its 20-meter span.
Example: how long is the cable?
The length of cable from the lowest point to a point x meters away is a × sinh(x ÷ a). For the same power line, the half-length is 50 × sinh(0.2). Type 0.2, tap sinh, tap ×, type 50, tap =. The screen shows about 10.0668. The full cable is twice that, about 20.134 meters. So the cable is only about 13 centimeters longer than the straight 20-meter span, yet it sags a full meter. That is a surprising fact, and your calculator proves it.
Real use 2: arches
Turn the hanging cable upside down and you get a very strong arch. The reason is that a hanging chain is under pure tension, with every link pulling gently on its neighbors. Flip the shape upside down and the same forces become compression, which stone and concrete handle beautifully. This is why famous arches and many bridge designs are close cousins of an upside-down catenary. The same cosh formula, turned upside down, gives their shape.
Real use 3: tanh and the world of smart software
Because tanh squashes any number into the range between −1 and 1, it is very popular in computer science. Some artificial intelligence programs use tanh as a way to decide how strongly a small unit should “fire.” Whatever number goes in, a number between −1 and 1 comes out.
Try a few values:
- tanh 0.5 is about 0.4621.
- tanh 2 is about 0.9640.
- tanh (−2) is about −0.9640.
- tanh 10 is 1, for all practical purposes.
Small inputs produce roughly proportional outputs, while big inputs get “saturated” at 1 or −1. This S-shaped behavior is like a dimmer switch that has a minimum and maximum brightness.
Real use 4 (optional): waves in water
The speed of a water wave depends on its wavelength and the depth of the water. The formula involves tanh: speed = √( (g × wavelength ÷ 2π) × tanh(2π × depth ÷ wavelength) ), where g is 9.81.
Let us find the speed of a wave 50 meters long in water 10 meters deep.
- Tap mc.
- Type 2 × π × 10 ÷ 50 =. The screen shows about 1.256637.
- Tap tanh. The screen shows about 0.8501.
- Tap m+ to store it.
- Type 9.81 × 50 ÷ 2 ÷ π =. The screen shows about 78.065.
- Tap ×, tap mr, tap =. The screen shows about 66.36.
- Tap ²√x. The screen shows about 8.15.
The wave travels at about 8.15 meters per second. In deeper water, tanh gets closer to 1 and the formula simplifies. In shallow water, tanh gets smaller and the wave slows. This is one reason waves bunch up and grow near a beach.
The inverse keys: sinh⁻¹, cosh⁻¹ and tanh⁻¹
Just like the ordinary trigonometry keys, the hyperbolic keys have inverses that run them backwards. They are available through the 2nd key. Tap 2nd, and the labels change to sinh⁻¹, cosh⁻¹ and tanh⁻¹.
These keys answer the question, “which number would produce this result?” For example, if cosh of something is 1.543080635, what is that something? Type 1.543080635, tap 2nd, tap cosh, and the screen shows 1.
Each inverse has an allowed range of inputs:
- sinh⁻¹ accepts any number. Type 1.175201194, tap 2nd, tap sinh: you get about 1.
- cosh⁻¹ needs a number that is 1 or more, because cosh is never smaller than 1. If you type 0.5 and tap 2nd, cosh, you get an error.
- tanh⁻¹ needs a number strictly between −1 and 1, because tanh never reaches either end. Type 0.7615941559, tap 2nd, tap tanh, and you get about 1. Typing 1 gives an error.
Here is a check of the inverse using logarithms. The formula for sinh⁻¹ of x is ln(x + √(x² + 1)). For x = 1:
- Type 1, tap x², tap +, type 1, tap =. The screen shows 2.
- Tap ²√x. The screen shows 1.414213562.
- Tap +, type 1, tap =. The screen shows 2.414213562.
- Tap ln. The screen shows about 0.881374.
Now type 1, tap 2nd, tap sinh. The screen shows the same 0.881374.
Common mistakes and how to avoid them
Mistake 1: mixing up sin and sinh. They are different functions. Sin 1 in degree mode is about 0.01745, while sinh 1 is about 1.1752. Read the key label carefully.
Mistake 2: worrying about Deg or Rad. For the hyperbolic keys, the mode makes no difference. But remember that it does matter for sin, cos and tan.
Mistake 3: expecting cosh to be less than 1. Cosh never goes below 1. If you get a smaller answer, you probably tapped the wrong key.
Mistake 4: using an inverse outside its allowed range. You will see an error if you try cosh⁻¹ of a number below 1, or tanh⁻¹ of a number at or beyond −1 or 1.
Mistake 5: reading sinh⁻¹ as one over sinh. The small ⁻¹ means “the inverse function,” not a reciprocal. For the reciprocal, use the 1/x key after sinh.
Mistake 6: forgetting the a in the cable formula. The formula is a × cosh(x ÷ a), not just cosh(x). Divide first, then take cosh, then multiply by a.
Mistake 7: rounding too early. When you subtract 1 from cosh of a small number, as in the power-line example, you lose digits quickly. Keep every digit on the screen.
Practice questions
Try these before you look at the answers.
Question 1. What are sinh 0, cosh 0 and tanh 0?
Question 2. Find cosh 3.
Question 3. Find tanh 0.5.
Question 4. Check the identity cosh² − sinh² = 1 for x = 1.5.
Question 5. A cable has a = 30. How far above its lowest point is the cable 12 meters to the side? (That is 30 × (cosh(12 ÷ 30) − 1).)
Question 6. Find sinh⁻¹(2).
Question 7. What is tanh 10, to the accuracy of your calculator?
Question 8. What happens if you try cosh⁻¹ of 0.5?
Answers
- Question 1: 0, 1 and 0.
- Question 2: About 10.0677. Type 3, tap cosh.
- Question 3: About 0.4621. Type 0.5, tap tanh.
- Question 4: cosh 1.5 is about 2.3524, sinh 1.5 is about 2.1293. Their squares are about 5.5338 and 4.5338, and the difference is 1.
- Question 5: About 2.43 meters. Type 12 ÷ 30 =, tap cosh, − 1 =, × 30 =.
- Question 6: About 1.4436. Type 2, tap 2nd, tap sinh.
- Question 7: Very close to 1. Tanh squashes big numbers toward 1.
- Question 8: The calculator shows an error, because cosh is never smaller than 1.
Quick reference
- sinh, cosh and tanh are built from eˣ and e⁻ˣ.
- They use plain numbers, not angles. Deg and Rad make no difference.
- Type the number first, then tap the key. No equals needed.
- cosh is a U shape with minimum 1. sinh is an S shape through zero. tanh is an S shape between −1 and 1.
- cosh² − sinh² = 1, and cosh + sinh = eˣ.
- Cable height: a × cosh(x ÷ a). Cable length: a × sinh(x ÷ a).
- Use 2nd for the inverse keys. cosh⁻¹ needs 1 or more, and tanh⁻¹ needs a number between −1 and 1.
Frequently asked questions
Why are they called hyperbolic? Because their values trace out points on a curve called a hyperbola, in the same way that sin and cos trace out a circle.
Do I need these in everyday life? Rarely, but engineers, physicists and computer scientists use them often. If you study electronics, structures or machine learning, you will meet them again.
Is a hanging chain really a catenary and not a parabola? Yes. It looks similar, but a chain hanging under its own weight follows the cosh curve, while a cable that carries a flat load, like a suspension bridge deck, forms a parabola.
Why does tanh 10 show exactly 1? The true answer is a hair under 1, but the difference is smaller than the calculator can display.
What comes next
You have now met every function key on the lower rows of the scientific keypad that involves angles or exponents, apart from the one that decides how angles are measured. In Part 7, you will study the Rad and Deg key. It is a single key that can quietly ruin a whole calculation, and understanding it will make your trigonometry from Part 5 completely reliable. We will explore degrees, radians, and how to convert between them.
Until then, look out for hanging cables on a walk. Estimate how far they sag, and imagine the cosh curve under the wires.