Geometry

We must start with the most basic definition.

Lemma 1: In a right triangle, given angle θ\theta, sinθ=oppositehypotenuse\sin \theta = \frac{\text{opposite}}{\text{hypotenuse}} and cosθ=adjacenthypotenuse\cos \theta = \frac{\text{adjacent}}{\text{hypotenuse}}

But it’s definitely best to visualize:

Basic geometric definition of sine and cosine

Basic geometric definition of sine and cosine

From the definitions, we get that the green side is hcosθh\cos \theta because cosθ=adjacenthypotenuse    adjacent=hcosθ\cos \theta = \frac{\text{adjacent}}{\text{hypotenuse}} \implies \text{adjacent} = h\cos \theta. Similarly, the blue side is hsinθh\sin \theta. Letting h=1h=1, the adjacent side is just cosθ\cos \theta, and the opposite side is sinθ\sin \theta. With this setup, we can show Lemma 2.

Lemma 2: cosθ=sin(π2θ)\cos \theta = \sin(\frac{\pi}{2} - \theta) and sinθ=cos(π2θ)\sin \theta = \cos(\frac{\pi}{2} - \theta) for arbitrary θ\theta

Proof. Consider α=π2θ\alpha=\frac{\pi}{2}-\theta. In the triangle with hypotenuse 1, the green side is cosθ=adjacent1\cos \theta = \frac{\text{adjacent}}{1}. It is also sinα=opposite1\sin \alpha = \frac{\text{opposite}}{1}. Hence, cosθ=sin(π2θ)\cos \theta = \sin(\frac{\pi}{2} - \theta). Similar reasoning holds for the latter identity and for arbitrary hh.

Geometric proof of separation by 90 degrees

Geometric proof of separation by 90 degrees

Here’s a Desmos graph where you can see the identity for yourself: 1

Back to Lemma 1, why should the basic definition be limited to a static right triangle? What about a dynamic right triangle, perhaps one like this: 2

In this graph, the x coordinates always involve cosθ\cos \theta, and the y coordinates always involve sinθ\sin \theta. Thinking of the black line as a vector 3, we see that to get the horizontal component of the vector, we multiply its length by cosθ\cos \theta. To get its vertical component, we multiply its length by sinθ\sin \theta. In other words, cosθ\cos \theta projects to xx, and sinθ\sin \theta projects to yy.

This applies to the graph of a circle as well. Note that, again, xx always goes with cosθ\cos \theta, and yy always goes with sinθ\sin \theta.

To make this idea even more clear, you should take a look at this circle animation on Khan Academy. 4

Algebra

There is an algebraic symmetry that is, in my opinion, as beautiful as the symmetries above. This symmetry also allows us to prove eix=cosx+isinxe^{ix} = \cos x + i\sin x for any xx.

Lemma 3: cosx=1x22+x44!x66!+\cos x = 1 - \frac{x^2}{2} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots, and sinx=xx33!+x55!x77!+\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots 5

Proof. Consider that the Taylor series 6 expansion of f(x)f(x) about the point aa is f(a)+f(a)(xa)+f’’(a)2!(xa)2+f’’’(a)3!(xa)3++f(n)(a)n!(xa)n+f(a)+f’(a)(x-a) + \frac{f’’(a)}{2!}(x-a)^2 + \frac{f’’’(a)}{3!}(x-a)^3 + \cdots + \frac{f^{(n)}(a)}{n!}(x-a)^n + \cdots

The Maclaurin expansion is the Taylor series centered at a=0a=0, so the Maclaurin expansion of f(x)f(x) is f(0)+f(0)x+f’’(0)2!x2+f’’’(0)3!x3++f(n)(0)n!xn+f(0) + f’(0)x + \frac{f’’(0)}{2!}x^2 + \frac{f’’’(0)}{3!}x^3 + \cdots + \frac{f^{(n)}(0)}{n!}x^n + \cdots

Let f(x)=cosxf(x) = \cos x. We know that 7

Derivatives of cosine

Derivatives of cosine

Using that cos(0)=1\cos(0) = 1 and sin(0)=0\sin(0) = 0, we have that the first few terms of the Maclaurin series are 1+0xx22+0x3+x44!1 + 0x -\frac{x^2}{2} + 0x^3 + \frac{x^4}{4!}. Now, we write the pattern: cosx=n=0(1)n2n!x2n\cos x = \sum_{n=0}^{\infty} \frac{(-1)^n}{2n!} x^{2n}

Any odd power will have sin(0)=0\sin(0)=0 and so can be ignored. Hence, we use only the even numbers 2n2n in our summation. Using that f(x)=cosxf(x)=\cos x and f’’(x)=cosxf’’(x) = -\cos x, we note that the signs alternate each (even) term, so we also have (1)n(-1)^n in the summation.

Similar reasoning holds for sinx=n=0(1)n(2n+1)!x2n+1\sin x = \sum_{n=0}^{\infty} \frac{(-1)^n}{(2n+1)!}x^{2n+1}.

Lastly, there are also two trigonometric identities that I have always found interesting, in terms of symmetry.

Lemma 4: Angle sum and difference identities

sin(α+β)=sin(α)cos(β)+cos(α)sin(β)\sin(\alpha + \beta) = \sin(\alpha) \cos(\beta) + \cos(\alpha) \sin(\beta)

sin(αβ)=sin(α)cos(β)cos(α)sin(β)\sin(\alpha - \beta) = \sin(\alpha) \cos(\beta) - \cos(\alpha) \sin(\beta)

cos(α+β)=cos(α)cos(β)sin(α)sin(β)\cos(\alpha + \beta) = \cos(\alpha) \cos(\beta) - \sin(\alpha) \sin(\beta)

cos(αβ)=cos(α)cos(β)+sin(α)sin(β)\cos(\alpha - \beta) = \cos(\alpha) \cos(\beta) + \sin(\alpha) \sin(\beta)

I won’t prove these identities here, but I will write about the symmetries. Note that the sin\sin identities have matching signs; that is, if there is a ++ on the left side, there’s a ++ on the right side. However, the multiplications are mismatched in that sin\sin is multiplied by cos\cos and vice versa.

On the other hand, the cos\cos identities have matching multiplication in that cos\cos multiplies cos\cos, and sin\sin multiplies sin\sin. The signs, however, are mismatched.


  1. You can press the ▶️ on the left to view the animation. ↩︎

  2. Note that there is no magic going on here. There’s nothing in Desmos that specifically generates an arbitrary right triangle - this graph uses only the sine and cosine knowledge shown above! ↩︎

  3. Since we can vary its length rr and its angle tt ↩︎

  4. A still screenshot of unit circle animation on Khan Academy

    A still screenshot of unit circle animation on Khan Academy

    Link to animation ↩︎

  5. Note that the cosine expansion contains only even powers of xx (including x0=1x^0 = 1) divided by even factorials, and the sine expansion contains only odd powers of xx divided by odd factorials. ↩︎

  6. I might write an article about the Taylor series! For now, the tl;dr is that the Taylor expansion of a complicated function is a highly accurate approximation that is made up of less complicated polynomial terms, which are much easier to work with. ↩︎

  7. Note here that the cycle length is 4, which is the same as that of the powers of ii↩︎