Statics › Section B · Forces and other vectors › Topic B.6
Dot products and projections
How much of a cable's pull actually acts along a strut? What angle do two bracing members make? Both questions come down to one operation, the dot product, which multiplies two vectors to give a single number.
Multiplying two vectors
Ordinary numbers have one kind of multiplication, but vectors have two. The dot product, or scalar product, combines two vectors into a scalar; the cross product, the subject of the topic "Cross products", gives a vector. In statics the dot product answers geometric questions: the angle between two lines, the part of a force that acts along a member, and whether two directions are perpendicular. If you have taken linear algebra, the topics "Inner product, length, and orthogonality" and "Orthogonal projections" treat the same operation, where it is called the inner product; here the emphasis is on forces and structures.
Two ways to compute it
For \(\mathbf{A} = \langle A_x, A_y, A_z \rangle\) and \(\mathbf{B} = \langle B_x, B_y, B_z \rangle\), multiply matching components and add:
An equivalent geometric form uses the magnitudes and the angle \(\theta\) between the vectors, placed tail to tail:
Use the component form when you know components, and the geometric form when you know the angle. The units of the result are the product of the two vectors' units, such as N·m for a force dotted with a position vector.
Unit vectors and the rules
Since \(\cos 0^\circ = 1\) and \(\cos 90^\circ = 0\), the Cartesian unit vectors give \(\mathbf{i} \cdot \mathbf{i} = \mathbf{j} \cdot \mathbf{j} = \mathbf{k} \cdot \mathbf{k} = 1\), while every mixed product, such as \(\mathbf{i} \cdot \mathbf{j}\), is 0. That is exactly why the component formula works. The dot product is commutative, \(\mathbf{A} \cdot \mathbf{B} = \mathbf{B} \cdot \mathbf{A}\); a scalar factor can be applied before or after, \(c(\mathbf{A} \cdot \mathbf{B}) = (c\mathbf{A}) \cdot \mathbf{B}\); and it distributes over addition, \(\mathbf{A} \cdot (\mathbf{B} + \mathbf{C}) = \mathbf{A} \cdot \mathbf{B} + \mathbf{A} \cdot \mathbf{C}\). Dotting a vector with itself gives its magnitude squared, \(\mathbf{A} \cdot \mathbf{A} = A^2\).
Angles and perpendicular lines
Rearranging the geometric form gives the angle between two vectors from their components alone:
The sign of the dot product tells you a lot before you finish. Positive means the angle is less than 90°, so the vectors point roughly the same way. Negative means it is more than 90°. Zero means the vectors are perpendicular, which is the standard test for a right angle in 3D. Because \(\cos^{-1}\) returns angles from 0° to 180°, there is no quadrant ambiguity here, unlike the inverse tangent.
Worked example: the angle between two cables
Two cables leave a mast fitting at A. One runs along \(\mathbf{r}_{AB} = \langle 3, -4, 12 \rangle\) m and the other along \(\mathbf{r}_{AC} = \langle -6, 2, 9 \rangle\) m. Find the angle between them. 1. Dot product:
2. Lengths: \(|\mathbf{r}_{AB}| = \sqrt{9 + 16 + 144} = 13\) m and \(|\mathbf{r}_{AC}| = \sqrt{36 + 4 + 81} = 11\) m. 3. \(\cos\theta = \frac{82}{13 \times 11} = 0.5734\). 4. \(\theta = 55.0^\circ\). 5. Check: the dot product is positive, so the angle must be acute, and it is.
Scalar projection
Imagine a light shining straight down onto the line of vector \(\mathbf{A}\): the shadow that \(\mathbf{B}\) casts on that line is its projection. Its signed length, the scalar projection, is the component of \(\mathbf{B}\) along \(\mathbf{A}\), which equals \(B\cos\theta\). Dividing the dot product by \(A\) gives it directly:
So to find how much of a force acts along any line, dot the force with that line's unit vector. A positive result means the component points along \(\hat{\mathbf{u}}_A\); a negative one means it points the opposite way. Its size can never exceed \(B\).
Vector projection and the perpendicular part
Multiplying the scalar projection by the unit vector turns it back into a vector, the vector projection:
What remains of \(\mathbf{B}\) after removing that part is perpendicular to the line:
Together they split a force into a part along a member, which pushes or pulls on it, and a part across it, which tends to bend it. Two checks follow: \(\mathbf{B}_{\perp} \cdot \hat{\mathbf{u}}_A = 0\), and the squares of the two magnitudes add to \(B^2\).
Worked example: splitting a force on a strut
A force \(\mathbf{F} = \langle 120, -80, 200 \rangle\) N acts on the end of a strut that points along \(\langle 2, 2, 1 \rangle\). Find the parts of F along and across the strut. 1. Unit vector: the length is 3, so \(\hat{\mathbf{u}} = \langle \frac{2}{3}, \frac{2}{3}, \frac{1}{3} \rangle\). 2. Scalar projection: \(\frac{240 - 160 + 200}{3} = 93.33\) N. 3. Vector projection: 93.33 N times \(\hat{\mathbf{u}}\), which is \(\langle 62.22, 62.22, 31.11 \rangle\) N. 4. Perpendicular part:
5. Checks: \(\mathbf{F}_{\perp} \cdot \hat{\mathbf{u}} = 0\), and the two parts rebuild the whole:
Reading a negative projection
Suppose a strut lies along \(\hat{\mathbf{u}} = \langle 0.8, 0.6, 0 \rangle\) and a force \(\langle -150, 40, 0 \rangle\) N acts on its end. The scalar projection is
The minus sign is information, not an error: the part of the force along the strut has size 96 N and points opposite to \(\hat{\mathbf{u}}\). If \(\hat{\mathbf{u}}\) points away from the strut's other end, a force pointing the opposite way pushes the strut together. That kind of reasoning about pushing and pulling returns in the topic "How trusses work".
Common mistakes to avoid
First, forgetting to divide by the magnitude, which gives a 'projection' larger than the force itself. Second, dotting with a position vector instead of its unit vector and then reporting N·m as a force. Third, treating the dot product as a vector; it is a single number. Fourth, dropping a negative sign, which reverses the meaning of a projection. Fifth, rounding the unit vector too soon, which makes the perpendicular check fail.
Key takeaways
The dot product is a scalar:
It is commutative and distributive, \(\mathbf{i} \cdot \mathbf{i} = 1\) and \(\mathbf{i} \cdot \mathbf{j} = 0\), and \(\mathbf{A} \cdot \mathbf{A} = A^2\). It gives the angle between two lines, and it is zero exactly when they are perpendicular. The scalar projection \(\hat{\mathbf{u}} \cdot \mathbf{F}\) is the signed component of a force along a line; times \(\hat{\mathbf{u}}\) it becomes the vector projection, and subtracting that from \(\mathbf{F}\) leaves the perpendicular part.
Flashcards
Flashcard
AxBx + AyBy + AzBz
Test your understanding
Question 1 of 5
What is the dot product of A = ⟨2, −3, 1⟩ and B = ⟨4, 1, −2⟩?
Question 2 of 5
Which pair of vectors is perpendicular?
Question 3 of 5
What is the angle between ⟨2, 2, 1⟩ and ⟨0, 3, 4⟩?
Question 4 of 5
What is the scalar projection of F = ⟨60, −30, 90⟩ N onto a line along ⟨1, 2, 2⟩?
Question 5 of 5
The scalar projection of a force onto a strut's unit vector û comes out as −96 N. What does this mean?
