TExcelTAD
Home › Calculus in Depth › Trigonometry Review

Trigonometry Review

This reference lesson gathers the trigonometry that calculus uses: radian measure, the unit-circle definitions, exact values, the identities you need for integration, and inverse functions. In calculus angles are always in radians, because only then is the derivative of sin⁡x\sin x exactly cos⁡x\cos x.

Radians

An angle of θ\theta radians cuts an arc of length rθr\theta from a circle of radius rr. A full turn is 2π2\pi, so

180∘=π rad1 rad≈57.2958∘degrees→radians: multiply by π180arc length s=rθsector area A=12r2θ\begin{aligned} &180^\circ = \pi\ \text{rad} \qquad 1\ \text{rad} \approx 57.2958^\circ \qquad \text{degrees} \to \text{radians: multiply by } \frac{\pi}{180} \\ &\text{arc length } s = r\theta \qquad \text{sector area } A = \tfrac{1}{2}r^2\theta \end{aligned}

Why radians? The limit sin⁡θ/θ→1\sin\theta / \theta \to 1 as θ→0\theta \to 0 holds only in radians (it is proved in Proofs of Theorems). In degrees the derivative of sin⁡\sin would carry a factor π/180\pi/180 forever.

Definitions on the unit circle

For the point (x,y)(x, y) reached by turning θ\theta counter-clockwise from (1,0)(1, 0) on the circle x2+y2=1x^2 + y^2 = 1:

cos⁡θ=xsin⁡θ=ytan⁡θ=yxsec⁡θ=1xcsc⁡θ=1ycot⁡θ=xy\cos\theta = x \qquad \sin\theta = y \qquad \tan\theta = \frac{y}{x} \qquad \sec\theta = \frac{1}{x} \qquad \csc\theta = \frac{1}{y} \qquad \cot\theta = \frac{x}{y}

This works for every angle, not only acute ones, and immediately gives the signs per quadrant (sin⁡\sin is positive in quadrants I and II, cos⁡\cos in I and IV, tan⁡\tan in I and III) and the periodicity: sin⁡\sin and cos⁡\cos have period 2π2\pi, tan⁡\tan has period π\pi.

θ\theta 00 π6\frac{\pi}{6} π4\frac{\pi}{4} π3\frac{\pi}{3} π2\frac{\pi}{2} π\pi
sin⁡θ\sin\theta 00 12\frac{1}{2} 22\frac{\sqrt{2}}{2} 32\frac{\sqrt{3}}{2} 11 00
cos⁡θ\cos\theta 11 32\frac{\sqrt{3}}{2} 22\frac{\sqrt{2}}{2} 12\frac{1}{2} 00 −1-1
tan⁡θ\tan\theta 00 33\frac{\sqrt{3}}{3} 11 3\sqrt{3} undefined 00

Identities you will use

Group Identities
Pythagorean sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1, 1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta, 1+cot⁡2θ=csc⁡2θ1 + \cot^2\theta = \csc^2\theta
Symmetry sin⁡(−θ)=−sin⁡θ\sin(-\theta) = -\sin\theta, cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\theta, sin⁡(π/2−θ)=cos⁡θ\sin(\pi/2 - \theta) = \cos\theta
Addition sin⁡(a±b)=sin⁡acos⁡b±cos⁡asin⁡b\sin(a \pm b) = \sin a \cos b \pm \cos a \sin b, cos⁡(a±b)=cos⁡acos⁡b∓sin⁡asin⁡b\cos(a \pm b) = \cos a \cos b \mp \sin a \sin b
Double angle sin⁡2θ=2sin⁡θcos⁡θ\sin 2\theta = 2\sin\theta\cos\theta, cos⁡2θ=cos⁡2θ−sin⁡2θ=2cos⁡2θ−1=1−2sin⁡2θ\cos 2\theta = \cos^2\theta - \sin^2\theta = 2\cos^2\theta - 1 = 1 - 2\sin^2\theta
Half angle (power reduction) sin⁡2θ=1−cos⁡2θ2\sin^2\theta = \frac{1 - \cos 2\theta}{2}, cos⁡2θ=1+cos⁡2θ2\cos^2\theta = \frac{1 + \cos 2\theta}{2}
Product to sum sin⁡acos⁡b=12[sin⁡(a−b)+sin⁡(a+b)]\sin a \cos b = \frac{1}{2}[\sin(a - b) + \sin(a + b)]
Law of cosines c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C

The power-reduction formulas are the key to Trigonometric Integrals, and the Pythagorean ones drive Trigonometric Substitution. SymPy can confirm any identity: simplify the difference and expect 0.

python · try it yourself
import sympy as sp

a, b, t = sp.symbols('a b theta')
checks = {
    "sin(a+b)": sp.sin(a + b) - (sp.sin(a)*sp.cos(b) + sp.cos(a)*sp.sin(b)),
    "cos 2t": sp.cos(2*t) - (1 - 2*sp.sin(t)**2),
    "1+tan^2": 1 + sp.tan(t)**2 - sp.sec(t)**2,
    "sin^2 half-angle": sp.sin(t)**2 - (1 - sp.cos(2*t)) / 2,
}
for name, diff in checks.items():
    print(f"{name:18} difference simplifies to {sp.simplify(sp.expand_trig(diff))}")
print("exact sin(pi/12) =", sp.expand_trig(sp.sin(a - b)).subs({a: sp.pi/4, b: sp.pi/6}))
sin(a+b)           difference simplifies to 0
cos 2t             difference simplifies to 0
1+tan^2            difference simplifies to 0
sin^2 half-angle   difference simplifies to 0
exact sin(pi/12) = -sqrt(2)/4 + sqrt(6)/4

The last line is sin⁡(15∘)=sin⁡(45∘−30∘)=6−24\sin(15^\circ) = \sin(45^\circ - 30^\circ) = \frac{\sqrt{6} - \sqrt{2}}{4} from the subtraction formula.

Inverse trigonometric functions

To invert, each function is restricted to an interval where it is one-to-one:

Function Domain Range
arcsin⁡x=sin⁡−1x\arcsin x = \sin^{-1} x [−1,1][-1, 1] [−π/2,π/2][-\pi/2, \pi/2]
arccos⁡x\arccos x [−1,1][-1, 1] [0,π][0, \pi]
arctan⁡x\arctan x (−∞,∞)(-\infty, \infty) (−π/2,π/2)(-\pi/2, \pi/2)

So arcsin⁡(sin⁡3)\arcsin(\sin 3) is not 3 but π−3≈0.1416\pi - 3 \approx 0.1416: the answer must lie in [−π/2,π/2][-\pi/2, \pi/2]. Their derivatives appear in Inverse Functions and Logarithms; the gentle version is Trigonometric Functions.

In software: atan2

Turning a direction vector (x,y)(x, y) into an angle with atan(y / x) fails twice: it divides by zero for vertical vectors, and it cannot tell (1,1)(1, 1) from (−1,−1)(-1, -1) since both give y/x=1y/x = 1. math.atan2(y, x) looks at both signs and returns the correct angle in (−π,π](-\pi, \pi]. Games use it to aim turrets and rotate sprites toward the mouse; graphics uses it for polar coordinates and hue in colour wheels.

python · try it yourself
import math

for x, y in [(1, 1), (-1, -1), (0, 2), (-3, 0), (1, -1)]:
    naive = math.degrees(math.atan(y / x)) if x != 0 else float('nan')
    good = math.degrees(math.atan2(y, x))
    print(f"({x:2}, {y:2})  atan(y/x) = {naive:7.1f}   atan2 = {good:7.1f}")
print("arcsin(sin 3) =", round(math.asin(math.sin(3)), 4), " pi - 3 =", round(math.pi - 3, 4))
( 1,  1)  atan(y/x) =    45.0   atan2 =    45.0
(-1, -1)  atan(y/x) =    45.0   atan2 =  -135.0
( 0,  2)  atan(y/x) =     nan   atan2 =    90.0
(-3,  0)  atan(y/x) =    -0.0   atan2 =   180.0
( 1, -1)  atan(y/x) =   -45.0   atan2 =   -45.0
arcsin(sin 3) = 0.1416  pi - 3 = 0.1416

Other places: rotation matrices [cos⁡θ−sin⁡θsin⁡θcos⁡θ]\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}, oscillations sin⁡(2πft)\sin(2\pi ft) in audio and animation, and the sinusoidal positional encodings of transformer models.

Exercises

Exercise 1: Exact values

Find exact values of cos⁡(5π/6)\cos(5\pi/6) and tan⁡(7π/4)\tan(7\pi/4).

Answer

cos⁡(5π/6)=−32\cos(5\pi/6) = -\frac{\sqrt{3}}{2}, tan⁡(7π/4)=−1\tan(7\pi/4) = -1.

Solution

5π/65\pi/6 is in quadrant II with reference angle π/6\pi/6, and cosine is negative there: −32-\frac{\sqrt{3}}{2}. 7π/47\pi/4 is in quadrant IV with reference angle π/4\pi/4; sin⁡=−22\sin = -\frac{\sqrt{2}}{2}, cos⁡=22\cos = \frac{\sqrt{2}}{2}, so tan⁡=−1\tan = -1.

Exercise 2: Prove an identity

Show that 1−cos⁡2θsin⁡2θ=tan⁡θ\frac{1 - \cos 2\theta}{\sin 2\theta} = \tan\theta.

Answer

Both sides equal sin⁡θ/cos⁡θ\sin\theta / \cos\theta (wherever sin⁡2θ≠0\sin 2\theta \ne 0).

Solution
1−cos⁡2θ=1−(1−2sin⁡2θ)=2sin⁡2θsin⁡2θ=2sin⁡θcos⁡θratio=2sin⁡2θ2sin⁡θcos⁡θ=sin⁡θcos⁡θ=tan⁡θ\begin{aligned} 1 - \cos 2\theta &= 1 - (1 - 2\sin^2\theta) = 2\sin^2\theta \\ \sin 2\theta &= 2\sin\theta\cos\theta \\ \text{ratio} &= \frac{2\sin^2\theta}{2\sin\theta\cos\theta} = \frac{\sin\theta}{\cos\theta} = \tan\theta \end{aligned}

Exercise 3: Sector

A sector of a circle of radius 6 has arc length 9. Find its angle in radians and degrees, and its area.

Answer

θ=1.5 rad≈85.94∘\theta = 1.5\ \text{rad} \approx 85.94^\circ, area 27.

Solution

θ=s/r=9/6=1.5\theta = s/r = 9/6 = 1.5. In degrees 1.5⋅180/π≈85.94∘1.5 \cdot 180/\pi \approx 85.94^\circ. Area=12⋅36⋅1.5=27\text{Area} = \frac{1}{2} \cdot 36 \cdot 1.5 = 27.

Exercise 4: Solve an equation (code)

Find all solutions of 2sin⁡2x−sin⁡x−1=02\sin^2 x - \sin x - 1 = 0 in [0,2π)[0, 2\pi). Solve by hand (it is a quadratic in sin⁡x\sin x), then check with SymPy.

Answer

x=π/2,7π/6,11π/6x = \pi/2, 7\pi/6, 11\pi/6.

Solution
(2sin⁡x+1)(sin⁡x−1)=0sin⁡x=1  →  x=π/2sin⁡x=−1/2  →  x=7π/6,11π/6\begin{aligned} &(2\sin x + 1)(\sin x - 1) = 0 \\ &\sin x = 1 \;\to\; x = \pi/2 \\ &\sin x = -1/2 \;\to\; x = 7\pi/6, 11\pi/6 \end{aligned}
python · try it yourself
import sympy as sp

x, s = sp.symbols('x s')
roots = sp.solve(2*s**2 - s - 1, s)            # quadratic in s = sin x
print("sin x =", roots)
for r in roots:
    print(r, "->", sp.solveset(sp.sin(x) - r, x, sp.Interval.Ropen(0, 2*sp.pi)))
sin x = [-1/2, 1]
-1/2 -> {7*pi/6, 11*pi/6}
1 -> {pi/2}

Test yourself

How many radians is 270∘270^\circ?

  1. 3π/43\pi/4
  2. 2π/32\pi/3
  3. 3π/23\pi/2
  4. π/270\pi/270

Which identity turns ∫cos⁡2x dx\int \cos^2 x\,dx into something easy?

  1. cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1 + \cos 2x}{2}
  2. cos⁡2x=1+sin⁡2x\cos^2 x = 1 + \sin^2 x
  3. cos⁡2x=2sin⁡xcos⁡x\cos 2x = 2\sin x \cos x
  4. 1+tan⁡2x=sec⁡2x1 + \tan^2 x = \sec^2 x

Why is atan2(y, x) preferred over atan(y/x) for a direction vector?

  1. It is faster
  2. It returns degrees
  3. It uses both signs to find the quadrant and handles x=0x = 0
  4. It works only for unit vectors