Angles, triangles and waves: rearranging with sin, cos and tan
Why this matters
In trigonometry, the math of angles in triangles, circles and waves, the letter you want often sits inside a sine, a cosine or a tangent. Transposing the formula to free it needs their opposites: arcsin, arccos and arctan. They come with a catch. Many angles share the same sine, so the way back can give only one of them, the principal angle. This lesson turns the shapes module's formulas around for each of their letters, then runs a transformer's angles and a photo's tilt backward.
- Rearrange sin θ = o/h, cos θ = a/h and tan θ = o/a for any letter, using arcsin, arccos and arctan for the angle
- Say which angle inverse trig gives back, the principal value, and find the other angles that share a sine or a cosine
- Turn arc length, sector area, degrees and radians, and the distance formula around, keeping the ± and the conditions
- Get a point's distance and angle from (x, y) with math.atan2, and say why math.atan fails on the left half
- Find when a wave reaches a height, and its period, and run position codes, rotary angles and a photo's tilt backward
The math: undo sin, cos and tan
Purpose. Free a side or an angle from sin, cos or tan, and know which angle comes back.
In a right triangle, name the sides from one sharp angle θ: the opposite side o, the adjacent side a, and the hypotenuse h, the longest. lesson 43 gave two ratios. The third, the tangent, is rise over run:
People remember them as SOH CAH TOA: Sine is Opposite over Hypotenuse, Cosine is Adjacent over Hypotenuse, and Tangent is Opposite over Adjacent. Each has an opposite that turns a ratio back into an angle:
| Done to the angle | Undone by | In Python |
|---|---|---|
| sin | arcsin, also written sin⁻¹ | math.asin |
| cos | arccos, or cos⁻¹ | math.acos |
| tan | arctan, or tan⁻¹ | math.atan |
As in lesson 20, the ⁻¹ means "undo", not "one over".