Index Ai Academy
Foundation · Foundation mathTransposition of formulas

Angles, triangles and waves: rearranging with sin, cos and tan

About 45 minLooking ahead: some prerequisites aren't done yet

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
Quick check
Have a guess before you start. A ramp is 2 m long along its slope and rises 1 m. What angle does it make with the ground?

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:

sin⁡θ=ohcos⁡θ=ahtan⁡θ=oa\sin\theta = \frac{o}{h} \qquad \cos\theta = \frac{a}{h} \qquad \tan\theta = \frac{o}{a}

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 angleUndone byIn Python
sinarcsin, also written sin⁻¹math.asin
cosarccos, or cos⁻¹math.acos
tanarctan, or tan⁻¹math.atan

As in lesson 20, the ⁻¹ means "undo", not "one over".