Right triangle trigonometry in 2D and 3D

The entirety of trigonometry is based on similarity and right triangles.

Last modified: 2025-10-23 included angles between lines and flat surfaces, with illustrations

Contents

Trigonometric ratios

Hypotenuse is longest side in right triangle; opposite and adjacent are in relation to the angle in question
Hypotenuse, opposite and adjacent in relation to an acute angle in a right triangle

For an acute angle θ\theta in a right triangle, we define

sinθ=oppositehypotenuse\sin\theta = \frac{\text{opposite}}{\text{hypotenuse}}
cosθ=adjacenthypotenuse\cos\theta = \frac{\text{adjacent}}{\text{hypotenuse}}
tanθ=oppositeadjacent\tan\theta = \frac{\text{opposite}}{\text{adjacent}}

as ratios of side lengths in a right triangle.

For similar triangles, sinθ\sin\theta, cosθ\cos\theta, and tanθ\tan\theta remain the same, despite changes in side lengths. In other words, the trigonometric ratios only depend on the angle, so they are also called trigonometric functions.

In right triangles, trig ratios are useful when you need to find a missing side.

To find the angle, use the arcsin\arcsin, arccos\arccos, and arctan\arctan functions of the ratio of the sides.

Example: Using a diagram or otherwise, simplify

arctan1+cosθsinθ,0<θπ2\arctan\frac{1+\cos\theta}{\sin\theta},\,0 < \theta \leq \frac\pi2

From the Pythagorean identity, we have

sin2θ+cos2θ=1\sin^2\theta + \cos^2\theta = 1

which corresponds to a right triangle ABC{ABC} with θ=AC^B{\theta = A\hat{C}B} and legs AB=sinθ{AB = \sin\theta}, BC=cosθ{BC = \cos\theta}, and hypotenuse AC=1AC = 1. 1+cosθ{1+\cos\theta} can be interpreted as the base of a larger triangle ABDABD while keeping the height of sinθ\sin\theta. Here is a diagram.

Initial diagram showing angle theta
Initial diagram showing right triangle ABC inside right triangle ABD

From sum of angles in triangle ABCABC, we have BA^C=90°θ.B\hat{A}C = 90\degree - \theta.

From supplementary angles and sum of angles in triangle ACDACD, we have θ=CA^D+CD^A\theta = C\hat{A}D + C\hat{D}A

Since AC=AD=1AC = AD = 1, triangle ACDACD is isosceles, meaning the two remaining angles are equal and must be θ2\frac{\theta}{2}. Here is a diagram with all the new information as well.

Final diagram with all angles labelled in terms of theta
Final diagram with all angles labelled in terms of theta

Then by definition of tan\tan, the desired angle is BA^DB\hat{A}D with opposite side 1+cosθ1 + \cos \theta and adjacent sinθ\sin\theta.

arctan1+cosθsinθ=90°θ+θ2=90°θ2\begin{align*} \arctan\frac{1+\cos\theta}{\sin\theta} &= 90\degree - \theta + \frac{\theta}2 \\ &= 90\degree - \frac{\theta}2 \qed \end{align*}

Inverse trigonometric functions

Inverse trig functions sin1(x)\sin^{-1}(x), cos1(x)\cos^{-1}(x), tan1(x)\tan^{-1}(x) return the angle when you have the ratio xx. They are useful for missing angles.

Applications

definitions

The angle of elevation is the angle from horizontal up to some point of interest. The angle of depression is the angle from horizontal down to some point of interest.

Congruent due to alternative interior angles
Angle of elevation from A to C is angle of depression from C to A

angle between two lines in 3D

This does not require special consideration, other than that you should use the plane containing the angle, then find the angle as usual.

angle between a line and a flat surface

Use a second surface that is perpendicular to the first surface and containing the line in equestion. The angle is the angle between the line and the intersection line.

line and plane intersection
line that intersects a surface
line and plane intersection find second plane containing line and perpendicular to first
find a perpendicular surface to find angle
Open line-surface illustration with Desmos 

angle between two flat surfaces

You need to find a third surface perpendicular to both surfaces. This new surface intersects either surface at straight lines. The angle between the two flat surfaces is the angle between the two lines.

plane and plane intersection
two intersecting surfaces
plane and plane intersection find third plane perpendicular to both
find a perpendicular surface to both to find angle

Open surface-surface illustration with Desmos 

See angles using vectors for advanced angle-finding using vectors (HL).

strategies

  • Draw a diagram, label important points and given angles and sides (distances).
  • Light travels in a straight line.
  • Identify right angles.
  • Identify similar triangles.
  • Reuse variables when possible. For example if total distance is 1010, you can label part of it xx and the remaining 10x10 - x.
  • Verify your calculator is in degrees mode, when working with angles in degrees.

See also

For exact trigonometric ratios that you should remember, see Exact ratios