← Back to all lessons
Class 12Geometry6:40Published 21 Nov 2024

Vector Dot Product and Cross Product Formulae

A formula reference for the scalar (dot) product and vector (cross) product of two vectors, including projections, angles, areas, and component formulae.

This lesson gathers the key results for the dot product and cross product of two vectors. It covers when vectors are perpendicular or parallel, how to find the angle between them, the projection of one vector on another, direction cosines, and the unit vector. It then moves to the cross product, the standard products of the unit vectors, and how to use the cross product to find areas of triangles and parallelograms.

What you'll learn

  • How the dot product relates to the angle between two vectors and when it is zero
  • Finding the projection of one vector on another and the angle between them
  • How the cross product gives a perpendicular vector and the areas of triangles and parallelograms
  • Computing both products from the components of the vectors

Lesson chapters

0:00Scalar (dot) product and its meaning
1:53Projection of a vector and direction cosines
3:26Vector (cross) product and perpendicularity
4:24Unit vector products and special angles
5:06Areas of triangles and parallelograms
5:53Cross product from components

Lesson notes

This lesson is a reference of the main formulae for the scalar (dot) product and the vector (cross) product of two vectors, with the results for angles, projections, and areas.

Scalar (dot) product

For two vectors a\vec a and b\vec b with angle θ\theta between them, the dot product is

ab=abcosθ.\vec a \cdot \vec b = |\vec a|\,|\vec b|\cos\theta.

The result is a real number (a scalar). Two non-zero vectors are perpendicular exactly when their dot product is zero:

ab=0    ab.\vec a \cdot \vec b = 0 \iff \vec a \perp \vec b.

Special angles. If θ=0\theta = 0 then ab=ab\vec a \cdot \vec b = |\vec a|\,|\vec b|. If θ=π\theta = \pi then ab=ab\vec a \cdot \vec b = -|\vec a|\,|\vec b|. A vector dotted with itself gives its squared length:

aa=a2.\vec a \cdot \vec a = |\vec a|^2.

Dot products of the unit vectors

ı^ı^=ȷ^ȷ^=k^k^=1,\hat\imath \cdot \hat\imath = \hat\jmath \cdot \hat\jmath = \hat k \cdot \hat k = 1,

ı^ȷ^=ȷ^k^=k^ı^=0.\hat\imath \cdot \hat\jmath = \hat\jmath \cdot \hat k = \hat k \cdot \hat\imath = 0.

Angle between two vectors

Rearranging the definition gives the cosine of the angle:

cosθ=abab,θ=cos1 ⁣(abab).\cos\theta = \frac{\vec a \cdot \vec b}{|\vec a|\,|\vec b|}, \qquad \theta = \cos^{-1}\!\left(\frac{\vec a \cdot \vec b}{|\vec a|\,|\vec b|}\right).

Properties of the dot product

  • Commutative: ab=ba\vec a \cdot \vec b = \vec b \cdot \vec a.
  • Distributive: a(b+c)=ab+ac\vec a \cdot (\vec b + \vec c) = \vec a \cdot \vec b + \vec a \cdot \vec c.
  • Scalar multiple: λ(ab)=(λa)b=a(λb)\lambda(\vec a \cdot \vec b) = (\lambda\vec a)\cdot \vec b = \vec a \cdot (\lambda\vec b).

Dot product from components

If a=a1ı^+a2ȷ^+a3k^\vec a = a_1\hat\imath + a_2\hat\jmath + a_3\hat k and b=b1ı^+b2ȷ^+b3k^\vec b = b_1\hat\imath + b_2\hat\jmath + b_3\hat k, then

ab=a1b1+a2b2+a3b3.\vec a \cdot \vec b = a_1 b_1 + a_2 b_2 + a_3 b_3.

Projection

The projection of a\vec a on b\vec b, and of b\vec b on a\vec a, are

proj of a on b=abb,proj of b on a=aba.\text{proj of }\vec a\text{ on }\vec b = \frac{\vec a \cdot \vec b}{|\vec b|}, \qquad \text{proj of }\vec b\text{ on }\vec a = \frac{\vec a \cdot \vec b}{|\vec a|}.

When θ=π/2\theta = \pi/2 (or 3π/23\pi/2) the projection is 00.

Direction cosines and unit vector

For a=a1ı^+a2ȷ^+a3k^\vec a = a_1\hat\imath + a_2\hat\jmath + a_3\hat k, the direction cosines are

cosα=a1a,cosβ=a2a,cosγ=a3a,\cos\alpha = \frac{a_1}{|\vec a|}, \quad \cos\beta = \frac{a_2}{|\vec a|}, \quad \cos\gamma = \frac{a_3}{|\vec a|},

so that

a^=cosαı^+cosβȷ^+cosγk^.\hat a = \cos\alpha\,\hat\imath + \cos\beta\,\hat\jmath + \cos\gamma\,\hat k.

The magnitude is the square root of the sum of the squares of the components,

a=a12+a22+a32,|\vec a| = \sqrt{a_1^2 + a_2^2 + a_3^2},

and the unit vector in the direction of a\vec a is

a^=aa.\hat a = \frac{\vec a}{|\vec a|}.

Vector (cross) product

The cross product of a\vec a and b\vec b is a vector,

a×b=absinθ  n^,\vec a \times \vec b = |\vec a|\,|\vec b|\sin\theta\;\hat n,

where n^\hat n is the unit vector perpendicular to both a\vec a and b\vec b. The vectors are parallel exactly when the cross product is the zero vector:

a×b=0    ab.\vec a \times \vec b = \vec 0 \iff \vec a \parallel \vec b.

In particular a×a=0\vec a \times \vec a = \vec 0.

Cross products of the unit vectors

ı^×ı^=ȷ^×ȷ^=k^×k^=0,\hat\imath \times \hat\imath = \hat\jmath \times \hat\jmath = \hat k \times \hat k = \vec 0,

ı^×ȷ^=k^,ȷ^×k^=ı^,k^×ı^=ȷ^,\hat\imath \times \hat\jmath = \hat k, \quad \hat\jmath \times \hat k = \hat\imath, \quad \hat k \times \hat\imath = \hat\jmath,

ȷ^×ı^=k^,k^×ȷ^=ı^,ı^×k^=ȷ^.\hat\jmath \times \hat\imath = -\hat k, \quad \hat k \times \hat\jmath = -\hat\imath, \quad \hat\imath \times \hat k = -\hat\jmath.

Angle from the cross product

sinθ=a×bab.\sin\theta = \frac{|\vec a \times \vec b|}{|\vec a|\,|\vec b|}.

Areas

For a triangle with adjacent sides a\vec a and b\vec b,

Area=12a×b.\text{Area} = \tfrac{1}{2}\,|\vec a \times \vec b|.

For a parallelogram with adjacent sides a\vec a and b\vec b,

Area=a×b.\text{Area} = |\vec a \times \vec b|.

Properties of the cross product

  • Distributive: a×(b+c)=a×b+a×c\vec a \times (\vec b + \vec c) = \vec a \times \vec b + \vec a \times \vec c.
  • Scalar multiple: λ(a×b)=(λa)×b=a×(λb)\lambda(\vec a \times \vec b) = (\lambda\vec a)\times\vec b = \vec a \times (\lambda\vec b).

Cross product from components

If a=a1ı^+a2ȷ^+a3k^\vec a = a_1\hat\imath + a_2\hat\jmath + a_3\hat k and b=b1ı^+b2ȷ^+b3k^\vec b = b_1\hat\imath + b_2\hat\jmath + b_3\hat k, then

a×b=ı^ȷ^k^a1a2a3b1b2b3.\vec a \times \vec b = \begin{vmatrix} \hat\imath & \hat\jmath & \hat k \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix}.

Key takeaways

  • The dot product gives a scalar and is zero exactly when the vectors are perpendicular; the cross product gives a vector and is zero exactly when they are parallel.
  • Angles come from cosθ=abab\cos\theta = \dfrac{\vec a \cdot \vec b}{|\vec a|\,|\vec b|} and sinθ=a×bab\sin\theta = \dfrac{|\vec a \times \vec b|}{|\vec a|\,|\vec b|}.
  • The cross product gives areas: half its magnitude for a triangle, its full magnitude for a parallelogram.