Alex Loftus
← Back to the lesson

Cosine as a moving coordinate

A unit vector's horizontal component is cosine. Projection makes the coordinate visible.
A unit vector's horizontal component is cosine. Projection makes the coordinate visible.

Cosine is a horizontal coordinate

Picture an arrow of length one rotating around the origin. Its tip traces the unit circle. Measure the angle θ\theta from the positive horizontal axis. The tip has coordinates

(cos⁡θ,sin⁡θ).(\cos\theta,\sin\theta).

Cosine is the horizontal coordinate of that moving point. At zero degrees the arrow points entirely right, so cosine is 1. At a quarter turn it points upward, so cosine is 0. At a half turn it points left, so cosine is −1-1.

Stretch the arrow

If the arrow has length rr instead of one, multiply both coordinates by rr:

(rcos⁡θ,rsin⁡θ).(r\cos\theta,r\sin\theta).

Its horizontal component is therefore rcos⁡θr\cos\theta. Think of this as its signed shadow on the horizontal axis: rightward is positive, leftward is negative.

Turn this into a dot product

Now place a second vector uu along that horizontal direction. If uu has length aa and the rotating vector vv has length rr, their dot product is

u⋅v=a rcos⁡θ.u\cdot v=a\,r\cos\theta.

The factor rcos⁡θr\cos\theta measures how much of vv lies along uu. The remaining factor aa scales that amount. We could rotate the coordinate axes with both vectors and the angle between them would stay the same.

Predict before calculating

Two nonzero vectors meet at a right angle. What is their dot product?

Answer: Zero. Neither has a component along the other's direction, and cos⁡(90∘)=0\cos(90^\circ)=0.