The Dot Product in : Angle Between Vectors, Direction Cosines, and Orthogonality
In three-dimensional space, determining whether two vectors are perpendicular, finding the angle between two spatial trajectories, or calculating how much of a force vector acts along a specific structural beam are daily tasks in physics and engineering.
The mathematical tool that unlocks all of these is the dot product (also known as the scalar product or inner product). Unlike standard vector addition, the dot product takes two spatial vectors and produces a single real number (a scalar).
1. Geometric and Algebraic Definitions
There are two equivalent ways to compute the dot product: algebraically via coordinates, and geometrically via lengths and angles.
Algebraic Definition (Component Form)
For any two vectors and in :
Geometric Definition
If is the spatial angle between and with ():
Angle Between Two Spatial Vectors
Equating the two definitions gives the fundamental formula for the spatial angle:
The sign of the dot product immediately reveals the nature of the angle :
Any non-zero vector in forms three angles with the positive coordinate axes:
: angle with the positive -axis ().
: angle with the positive -axis ().
: angle with the positive -axis ().
Each angle lies in . Using the dot product with the standard basis vectors:
These values are called the direction cosines of vector .
The Direction Cosines Sum-of-Squares Identity
Squaring each cosine and summing them produces a vital mathematical identity:
Moreover, the unit vector in the direction of is composed directly of its direction cosines:
4. Geometric Diagram: Direction Angles in Space
5. Projections: Scalar and Vector
When decomposing a vector relative to a reference vector :
Scalar Projection (Component): The signed length of the shadow that casts onto :
Vector Projection: The actual vector lying parallel to that represents this shadow:
Orthogonal Decomposition: Any vector can be broken down into components parallel and perpendicular to :
6. Step-by-Step Paper Notebook Method
Calculating Angle and Projections on Paper
Compute Three Fundamental Scalars:
Compute the Angle Cosine:
Simplify the fraction completely. If it equals a standard trigonometric value (e.g., ), write the exact angle in radians and degrees.
Compute the Vector Projection:
Calculate scalar scale factor (notice: no square root here!). Then multiply each component of by .
Verification Step:
Confirm that .
7. Worked Examples
Example 1: Angle Between Spatial Vectors and Orthogonality Check
Problem: Given vectors and :
Calculate the dot product .
Determine whether the angle between them is acute, right, or obtuse.
Find the exact angle between and .
Solution
Step 1: Dot Product
Step 2: Sign Analysis
Since , the spatial angle is acute.
Step 3: Magnitudes and Angle Calculation
Substituting into the cosine formula:
Therefore:
Example 2: Direction Angles of a Spatial Vector
Problem: A force vector is given by .
Find the magnitude .
Find the direction cosines of .
Verify the sum-of-squares identity .
Solution
Step 1: Magnitude
Step 2: Direction Cosines
Step 3: Verification
The identity holds perfectly.
Example 3: Vector Projection and Orthogonal Decomposition
Problem: Let and .
Compute the scalar projection .
Compute the vector projection .
Decompose into parallel and perpendicular components relative to .
Solution
Step 1: Scalar Projection
Step 2: Vector Projection
Step 3: Orthogonal Decomposition
Check perpendicularity on paper:
The decomposition is rigorously confirmed.
8. Common Mistakes & Paper Traps
[!WARNING]
Trap 1: Dot Product Producing a Vector Instead of a Scalar Never write . The dot product adds the coordinate products together: . It is always a single real number.
[!WARNING]
Trap 2: Projecting onto the Wrong Vector Remember the subscript rule: in , the vector in the subscript () is the track onto which the shadow falls. Hence appears in the denominator, and the result is scaled by .
[!WARNING]
Trap 3: Direction Angles Exceeding Direction angles are defined strictly in the interval (). They can never be negative or exceed .
9. Pencil & Paper Practice
Try these problems on paper before checking the worked solutions below.
Practice Problems
Determine the value of scalar such that vectors and are perpendicular.
A vector makes angles and with the positive and axes, respectively. Find all possible values for its third direction angle .
Compute the work done by constant force in moving an object along the straight displacement vector from to (coordinates in meters).
Worked Solutions
Solution 1:
For and to be perpendicular, their dot product must equal zero:
Solution 2:
Apply the identity :
Since :
If
If
Solution 3:
First find displacement vector :
Work is the dot product of force and displacement:
Test yourself
For which value of are the vectors and orthogonal?