The dot product: measuring alignment between directions.
You have two bond vectors in a molecule. You can compute their lengths (Lecture 4).
But now you want to know: What is the angle between them?
Or: How much does one vector point in the direction of another?
These questions require a new operation: the dot product.
"It points."
The dot product answers questions about relative direction:
| Question | Dot product gives you |
|---|---|
| "What's the angle between these two directions?" | theta = arccos(v.w / |v||w|) |
| "Are these perpendicular?" | Yes if v.w = 0 |
| "Are these parallel?" | Yes if v.w = +/-|v||w| |
| "How much of v points along w?" | Projection: (v.w)/|w| |
| "What's the work done by a force?" | W = F.d |
Key insight: The dot product measures alignment between vectors.
For vectors v and w, the dot product is:
where theta is the angle between the vectors.
For vectors v = (v1, v2, ..., vn) and w = (w1, w2, ..., wn):
v = (3, -1, 2), w = (1, 4, -1)
v.w = (3)(1) + (-1)(4) + (2)(-1) = 3 - 4 - 2 = -3
The negative value tells us the vectors point "mostly away" from each other.
The geometric and algebraic definitions are equivalent.
Property 4 is particularly useful: |v| = sqrt(v.v)
O-H1: b1 = (0.958, 0, 0), O-H2: b2 = (-0.240, 0.927, 0)
b1.b2 = -0.230, |b1| = |b2| = 0.958
cos theta = -0.230 / 0.918 = -0.251
theta = arccos(-0.251) = 104.5 deg
b1 = (1, 1, 1)/sqrt(3), b2 = (1, -1, -1)/sqrt(3)
b1.b2 = -1/3, theta = arccos(-1/3) = 109.47 deg
Vectors v and w are orthogonal (perpendicular) if v.w = 0.
The projection problem: Find the component of v in the direction of w.
Minimum energy when dipole aligned with field (theta = 0).
| I want to... | Formula |
|---|---|
| Find angle between vectors | theta = arccos(v.w / |v||w|) |
| Check if perpendicular | Test if v.w = 0 |
| Find length of vector | |v| = sqrt(v.v) |
| Project v onto w | proj_w v = (v.w / w.w) w |
| Compute work | W = F.d |
Compute v.w: (a) v=(2,3), w=(4,-1) (b) v=(1,0,0), w=(0,1,0) (c) v=(1,1,1), w=(1,1,1)
(a) 8-3 = 5 (b) 0 (perpendicular) (c) 3
Find the angle between: (a) v=(1,0), w=(1,1) (b) v=(3,4), w=(-4,3)
(a) cos theta = 1/sqrt(2), theta = 45 deg (b) v.w = 0, theta = 90 deg
Project v = (4, 3) onto w = (1, 1). Find the perpendicular component.
v.w = 7, w.w = 2, proj = (7/2)(1,1) = (3.5, 3.5)
v_perp = (4,3) - (3.5,3.5) = (0.5, -0.5)
Force F = (10, -5, 2) N acts as particle moves from (1,2,3) to (4,1,5) m. Find the work.
d = (3, -1, 2), W = F.d = 30 + 5 + 4 = 39 J