01 / 21

Dot Product:
Projections & Angles

Master the dot product to compute angles between vectors and scalar projections: essential tools for solving statics problems.

Engineering Statics

What Is the Dot Product?

The dot product (also called the scalar product) takes two vectors and returns a single scalar number. It captures how much two vectors "agree" in direction.

The Geometric Interpretation

\(\mathbf{A}\) \(\mathbf{B}\) \(|\mathbf{B}|\cos\theta\) \(\theta\)

Why It Matters in Statics

Angles Between Forces
Determine the angle between any two force vectors acting on a structure.
Force Components
Project a force onto a line of action to find the component along that direction.
Work Calculations
Work done by a force: \(W = \mathbf{F} \cdot \mathbf{d}\), the dot product of force and displacement.

Core Formulas

Algebraic Form
$$ \mathbf{A} \cdot \mathbf{B} = A_x B_x + A_y B_y + A_z B_z $$
Geometric Form
$$ \mathbf{A} \cdot \mathbf{B} = |\mathbf{A}|\,|\mathbf{B}|\,\cos\theta $$

Finding the Angle Between Vectors

\(\mathbf{A}\) \(\mathbf{B}\) \(\theta\) \(\theta = \cos^{-1}\!\left(\frac{\mathbf{A}\cdot\mathbf{B}}{|\mathbf{A}|\,|\mathbf{B}|}\right)\)

Scalar Projection

The scalar projection of \(\mathbf{B}\) onto \(\mathbf{A}\) gives the signed length of the shadow of \(\mathbf{B}\) along the direction of \(\mathbf{A}\):

Positive when the component points in the same direction as \(\mathbf{A}\). Negative when it points opposite. Zero when the vectors are perpendicular.

Vector Projection

\(\mathbf{A}\) \(\mathbf{B}\) \(\text{proj}_{\mathbf{A}}\,\mathbf{B}\)

Scalar vs Vector Projection

Scalar Projection Vector Projection
Result type A number (scalar) A vector
Formula \(\frac{\mathbf{A} \cdot \mathbf{B}}{|\mathbf{A}|}\) \(\frac{\mathbf{A} \cdot \mathbf{B}}{|\mathbf{A}|^2}\,\mathbf{A}\)
What it tells you Length of shadow along \(\mathbf{A}\) The shadow as a vector along \(\mathbf{A}\)
Can be negative? Yes (opposite direction) Yes (vector flips)

How to Apply the Dot Product

1
Write the vectors in component form: \(\mathbf{A} = \langle A_x, A_y, A_z \rangle\) and \(\mathbf{B} = \langle B_x, B_y, B_z \rangle\).
2
Compute the dot product: Multiply matching components and sum: \(A_x B_x + A_y B_y + A_z B_z\).
3
Compute magnitudes: \(|\mathbf{A}| = \sqrt{A_x^2 + A_y^2 + A_z^2}\), same for \(|\mathbf{B}|\).
4
For angle: \(\theta = \cos^{-1}\!\left(\frac{\mathbf{A}\cdot\mathbf{B}}{|\mathbf{A}|\,|\mathbf{B}|}\right)\). For projection: divide by \(|\mathbf{A}|\) (scalar) or \(|\mathbf{A}|^2\) (vector).

Example 1: Angle in 2D

Find the angle between \(\mathbf{A} = \langle 3,\,4 \rangle\) and \(\mathbf{B} = \langle -2,\,5 \rangle\).

1
Dot product: \(\mathbf{A}\cdot\mathbf{B} = (3)(-2) + (4)(5) = -6 + 20 = \) 14
2
Magnitudes: \(|\mathbf{A}| = \sqrt{9+16} = 5\), \(|\mathbf{B}| = \sqrt{4+25} = \sqrt{29}\)
3
Angle: \(\cos\theta = \frac{14}{5\sqrt{29}} \approx 0.5198\), so \(\theta \approx\) \(58.7^\circ\)

Example 2: Projection in 3D

Find the scalar and vector projection of \(\mathbf{F} = \langle 6,\,-3,\,2 \rangle\) N onto \(\mathbf{u} = \langle 1,\,2,\,2 \rangle\).

1
Dot product: \(\mathbf{F}\cdot\mathbf{u} = (6)(1)+(-3)(2)+(2)(2) = 6 - 6 + 4 = \) 4
2
Magnitude of u: \(|\mathbf{u}| = \sqrt{1+4+4} = 3\)
3
Scalar projection: \(\frac{\mathbf{F}\cdot\mathbf{u}}{|\mathbf{u}|} = \frac{4}{3} \approx\) 1.33 N
4
Vector projection: \(\frac{4}{9}\,\langle 1,2,2\rangle = \langle \frac{4}{9},\,\frac{8}{9},\,\frac{8}{9}\rangle\) N

Example 3: Checking Perpendicularity

Are \(\mathbf{A} = \langle 2,\,-1,\,3 \rangle\) and \(\mathbf{B} = \langle 1,\,5,\,1 \rangle\) perpendicular?

1
Dot product: \(\mathbf{A}\cdot\mathbf{B} = (2)(1)+(-1)(5)+(3)(1) = 2 - 5 + 3 = \) 0
2
Conclusion: Since \(\mathbf{A}\cdot\mathbf{B} = 0\), the vectors are perpendicular (\(\theta = 90^\circ\)).

Special Cases of \(\mathbf{A}\cdot\mathbf{B}\)

\(\theta = 0^\circ\) (Parallel, same dir)
\(\mathbf{A}\cdot\mathbf{B} = |\mathbf{A}||\mathbf{B}|\)
Maximum positive value.
\(\theta = 90^\circ\) (Perpendicular)
\(\mathbf{A}\cdot\mathbf{B} = 0\)
Vectors share no component.
\(\theta = 180^\circ\) (Opposite)
\(\mathbf{A}\cdot\mathbf{B} = -|\mathbf{A}||\mathbf{B}|\)
Maximum negative value.

Common Mistakes

✕ Confusing Dot and Cross Product
The dot product gives a scalar. The cross product gives a vector. Don't mix the formulas.
✕ Forgetting to Square in \(|\mathbf{A}|^2\)
The vector projection divides by \(|\mathbf{A}|^2\), not \(|\mathbf{A}|\). Missing the square changes the result entirely.
✕ Wrong Angle Range
The dot product angle is always \(0^\circ \le \theta \le 180^\circ\). Don't report angles outside this range.

Summary of Key Formulas

Quantity Formula Result Type
Dot Product \(A_xB_x + A_yB_y + A_zB_z\) Scalar
Angle \(\cos^{-1}\!\left(\frac{\mathbf{A}\cdot\mathbf{B}}{|\mathbf{A}|\,|\mathbf{B}|}\right)\) Angle (\(0^\circ\) to \(180^\circ\))
Scalar Projection \(\frac{\mathbf{A}\cdot\mathbf{B}}{|\mathbf{A}|}\) Scalar (signed)
Vector Projection \(\frac{\mathbf{A}\cdot\mathbf{B}}{|\mathbf{A}|^2}\,\mathbf{A}\) Vector
Perpendicularity \(\mathbf{A}\cdot\mathbf{B} = 0\) Boolean test

Question 1 of 5

What is \(\langle 2,\,-3,\,1 \rangle \cdot \langle 4,\,1,\,-5 \rangle\)?

Question 2 of 5

If \(\mathbf{A}\cdot\mathbf{B} = -15\), \(|\mathbf{A}| = 5\), and \(|\mathbf{B}| = 6\), what is \(\theta\)?

Question 3 of 5

What is the scalar projection of \(\mathbf{F} = \langle 6,\,8 \rangle\) onto \(\mathbf{u} = \langle 3,\,4 \rangle\)?

Question 4 of 5

The vector projection of \(\mathbf{B}\) onto \(\mathbf{A}\) uses which denominator?

Question 5 of 5

Two forces satisfy \(\mathbf{F}_1 \cdot \mathbf{F}_2 = 0\). What does this tell you about their directions?