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 and b with angle θ between them, the dot product is
a⋅b=∣a∣∣b∣cosθ.
The result is a real number (a scalar). Two non-zero vectors are perpendicular exactly when their dot product is zero:
a⋅b=0⟺a⊥b.
Special angles. If θ=0 then a⋅b=∣a∣∣b∣. If θ=π then a⋅b=−∣a∣∣b∣. A vector dotted with itself gives its squared length:
a⋅a=∣a∣2.
Dot products of the unit vectors
^⋅^=^⋅^=k^⋅k^=1,
^⋅^=^⋅k^=k^⋅^=0.
Angle between two vectors
Rearranging the definition gives the cosine of the angle:
cosθ=∣a∣∣b∣a⋅b,θ=cos−1(∣a∣∣b∣a⋅b).
Properties of the dot product
Commutative:a⋅b=b⋅a.
Distributive:a⋅(b+c)=a⋅b+a⋅c.
Scalar multiple:λ(a⋅b)=(λa)⋅b=a⋅(λb).
Dot product from components
If a=a1^+a2^+a3k^ and b=b1^+b2^+b3k^, then
a⋅b=a1b1+a2b2+a3b3.
Projection
The projection of a on b, and of b on a, are
proj of a on b=∣b∣a⋅b,proj of b on a=∣a∣a⋅b.
When θ=π/2 (or 3π/2) the projection is 0.
Direction cosines and unit vector
For a=a1^+a2^+a3k^, the direction cosines are
cosα=∣a∣a1,cosβ=∣a∣a2,cosγ=∣a∣a3,
so that
a^=cosα^+cosβ^+cosγk^.
The magnitude is the square root of the sum of the squares of the components,
∣a∣=a12+a22+a32,
and the unit vector in the direction of a is
a^=∣a∣a.
Vector (cross) product
The cross product of a and b is a vector,
a×b=∣a∣∣b∣sinθn^,
where n^ is the unit vector perpendicular to both a and b. The vectors are parallel exactly when the cross product is the zero vector:
a×b=0⟺a∥b.
In particular a×a=0.
Cross products of the unit vectors
^×^=^×^=k^×k^=0,
^×^=k^,^×k^=^,k^×^=^,
^×^=−k^,k^×^=−^,^×k^=−^.
Angle from the cross product
sinθ=∣a∣∣b∣∣a×b∣.
Areas
For a triangle with adjacent sides a and b,
Area=21∣a×b∣.
For a parallelogram with adjacent sides a and b,
Area=∣a×b∣.
Properties of the cross product
Distributive:a×(b+c)=a×b+a×c.
Scalar multiple:λ(a×b)=(λa)×b=a×(λb).
Cross product from components
If a=a1^+a2^+a3k^ and b=b1^+b2^+b3k^, then
a×b=^a1b1^a2b2k^a3b3.
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θ=∣a∣∣b∣a⋅b and sinθ=∣a∣∣b∣∣a×b∣.
The cross product gives areas: half its magnitude for a triangle, its full magnitude for a parallelogram.