Understanding Sine and Cosine: SOH, CAH, Vector Components, and the Dot Product

An intuitive derivation of sine and cosine from right triangles and rotating circles, explaining SOH, CAH, vector components, why cosine appears in the dot product, and why sin 60° = √3/2.

Understanding Sine and Cosine: SOH, CAH, Vector Components, and the Dot Product

Why this topic became important

While studying orthogonality in linear algebra, the formula

\[ v\cdot w=\|v\|\|w\|\cos\theta \]

raised a deeper question:

Why does cosine appear here? Why not sine?

To answer that properly, we first needed to understand what sine and cosine actually measure.


Start with a right triangle

Consider a right triangle with angle \(\theta\):

  • the hypotenuse is the full slanted length,
  • the adjacent side lies along the horizontal/reference direction,
  • the opposite side rises perpendicular to that direction.

The two important ratios are

\[ \sin\theta=\frac{\text{Opposite}}{\text{Hypotenuse}} \]

and

\[ \cos\theta=\frac{\text{Adjacent}}{\text{Hypotenuse}}. \]

These are remembered as

\[ \boxed{\text{SOH: Sine = Opposite / Hypotenuse}} \]

and

\[ \boxed{\text{CAH: Cosine = Adjacent / Hypotenuse}}. \]


What SOH and CAH actually tell us

Suppose a vector has length \(L\) and makes an angle \(\theta\) with the horizontal direction.

Then

\[ \sin\theta=\frac{\text{vertical part}}{L}. \]

Therefore

\[ \boxed{\text{vertical part}=L\sin\theta}. \]

Similarly,

\[ \cos\theta=\frac{\text{horizontal part}}{L}, \]

so

\[ \boxed{\text{horizontal part}=L\cos\theta}. \]

This gives a very useful interpretation:

\[ \boxed{\sin\theta=\text{vertical fraction of the slanted length}} \]

and

\[ \boxed{\cos\theta=\text{horizontal fraction of the slanted length}}. \]


Why these ratios depend only on the angle

Suppose two right triangles have the same angle \(\theta\), but one is much larger than the other.

The triangles have the same shape. Their corresponding sides scale by the same factor.

So although the actual lengths change, the ratios

\[ \frac{\text{Opposite}}{\text{Hypotenuse}} \]

and

\[ \frac{\text{Adjacent}}{\text{Hypotenuse}} \]

stay unchanged.

That is why sine and cosine are functions of the angle rather than the absolute size of the triangle.

The logic is

\[ \boxed{\text{same angle} \Rightarrow \text{same shape} \Rightarrow \text{same side ratios}}. \]


The rotating-circle picture

A particularly useful way to understand sine and cosine is to put the triangle inside a circle.

Imagine a radius rotating around a circle.

At each angle \(\theta\):

  • the radius is the hypotenuse,
  • the horizontal reach is the adjacent side,
  • the vertical height is the opposite side.

If the circle has radius 1, then

\[ \text{hypotenuse}=1. \]

Therefore

\[ \sin\theta=\frac{\text{vertical height}}{1} =\text{vertical height}, \]

and

\[ \cos\theta=\frac{\text{horizontal reach}}{1} =\text{horizontal reach}. \]

So on the unit circle,

\[ \boxed{\cos\theta=\text{horizontal coordinate}} \]

and

\[ \boxed{\sin\theta=\text{vertical coordinate}}. \]

As the radius keeps rotating and those coordinates are plotted against the changing angle, the familiar cosine and sine waves appear.

The triangle does not come from the sine wave. The wave can be understood as the record of the changing horizontal or vertical component of a rotating radius.


Why cosine appears in the dot product

Suppose vector \(v\) defines the reference direction, and vector \(w\) makes an angle \(\theta\) with it.

The part of \(w\) pointing along \(v\) is its parallel component.

Because this is the adjacent side relative to the angle between the vectors,

\[ \boxed{\text{parallel part of }w=\|w\|\cos\theta}. \]

The perpendicular part is

\[ \boxed{\text{perpendicular part of }w=\|w\|\sin\theta}. \]

The dot product is designed to measure how much one vector points along the direction of the other.

Therefore it uses the parallel component:

\[ v\cdot w = \|v\|\left(\|w\|\cos\theta\right). \]

So

\[ \boxed{v\cdot w=\|v\|\|w\|\cos\theta}. \]

Cosine appears because \(\theta\) is defined as the angle between the two vectors, making the aligned component the adjacent side.


Why not sine?

Sine is not wrong; it measures a different component.

With \(\theta\) measured from the direction of \(v\),

\[ \|w\|\sin\theta \]

gives the part perpendicular to \(v\), not the part along \(v\).

If instead we measured the complementary angle

\[ \phi=90^\circ-\theta, \]

then the same parallel component could be written using sine:

\[ \|w\|\sin\phi. \]

Since

\[ \sin(90^\circ-\theta)=\cos\theta, \]

both descriptions agree.

So cosine is used mainly because the angle is measured directly between the vectors.


Connection to Pythagoras

For a vector

\[ w=\begin{bmatrix}a\\b\end{bmatrix}, \]

its length is

\[ \|w\|=\sqrt{a^2+b^2}. \]

This is exactly the Pythagorean theorem.

So the roles are different:

\[ \boxed{\text{Pythagoras tells us the total length}} \]

while

\[ \boxed{\sin\theta\text{ and }\cos\theta\text{ tell us how that length is split into components}}. \]


Example: a vector of length 10 at 60 degrees

Suppose

\[ L=10, \qquad \theta=60^\circ. \]

The horizontal component is

\[ 10\cos60^\circ. \]

Since

\[ \cos60^\circ=\frac12, \]

we get

\[ \boxed{\text{horizontal component}=5}. \]

The vertical component is

\[ 10\sin60^\circ. \]

Since

\[ \sin60^\circ=\frac{\sqrt3}{2}\approx0.866, \]

we get

\[ \boxed{\text{vertical component}\approx8.66}. \]

Together,

\[ 5^2+8.66^2\approx10^2, \]

which reconnects the components to Pythagoras.


Why sin 60 degrees equals sqrt(3)/2

Start with an equilateral triangle whose side length is 2.

Every angle is

\[ 60^\circ. \]

Cut the triangle vertically in half.

The base is split into two pieces of length 1, and the hypotenuse of the resulting right triangle remains 2.

Let the vertical side be \(h\).

By Pythagoras,

\[ 1^2+h^2=2^2. \]

Therefore

\[ 1+h^2=4, \]

so

\[ h^2=3 \]

and

\[ h=\sqrt3. \]

For the \(60^\circ\) angle,

\[ \sin60^\circ = \frac{\text{opposite}}{\text{hypotenuse}} = \frac{\sqrt3}{2}. \]

Numerically,

\[ \sqrt3\approx1.732, \]

so

\[ \boxed{\sin60^\circ\approx\frac{1.732}{2}=0.866}. \]

Thus the value 0.866 comes directly from geometry rather than from an arbitrary table.


Connection back to orthogonality

The dot-product formula is

\[ v\cdot w=\|v\|\|w\|\cos\theta. \]

If the vectors are perpendicular,

\[ \theta=90^\circ. \]

Since

\[ \cos90^\circ=0, \]

we get

\[ v\cdot w=0. \]

Therefore

\[ \boxed{v\perp w\iff v\cdot w=0} \]

for nonzero real vectors.

Geometrically, a vector perpendicular to another has zero component along that vector's direction.

That is why its dot product is zero.


Main mental model

Instead of memorizing sine and cosine as unexplained formulas, remember one slanted vector being split into two pieces:

\[ \boxed{\text{horizontal part}=L\cos\theta} \]

\[ \boxed{\text{vertical part}=L\sin\theta}. \]

SOH tells us how much of the vector goes perpendicular to the reference direction.

CAH tells us how much remains along the reference direction.

The dot product uses cosine because it measures alignment along another vector's direction.


Note metadata

  • Note type: learning-note
  • Subject: learning-notes
  • Source: Introduction to Linear Algebra learning discussion with learner-supplied sine and cosine explanation

Related notes