Vectors can be multiplied in two ways. The first, the scalar (or dot) product, outputs a number:
a⋅b=∣a∣∣b∣cosθ
where θ (0≤θ≤π) is the angle between a and b. If either vector is 0, define a⋅b=0.
What the sign tells you
a⋅b>0 — acute angle; a⋅b<0 — obtuse angle.
Perpendicularity test: for nonzero vectors, a⋅b=0⟺a⊥b.
θ=0 gives a⋅b=∣a∣∣b∣; in particular a⋅a=∣a∣2 — dotting a vector with itself squares its length.
θ=π gives a⋅b=−∣a∣∣b∣.
For the axis unit vectors: i^⋅i^=j^⋅j^=k^⋅k^=1 and i^⋅j^=j^⋅k^=k^⋅i^=0.
Properties and the component formula
The dot product is commutative (a⋅b=b⋅a), distributive over addition (a⋅(b+c)=a⋅b+a⋅c), and scalars slide through ((λa)⋅b=λ(a⋅b)). Expanding two component-form vectors using these rules and the axis table collapses nine terms to three:
Key Point: the two most-used identities in the whole chapter come from expanding dots of sums:
a+b2=∣a∣2+2a⋅b+∣b∣2a−b2=∣a∣2−2a⋅b+∣b∣2
They convert between lengths and dot products in both directions — most "find ∣a−b∣" and "find a⋅b" problems are one application of these.
Projection of a Vector
Let a make angle θ with a directed line l. The projection vectorp is the shadow of a on l: magnitude ∣∣a∣cosθ∣, direction along l (or opposite, if cosθ<0). The signed number ∣a∣cosθ is called the projection of a on l.
Formulas
If p^ is the unit vector along l: projection =a⋅p^.
Projection of a on another vector b:
projba=a⋅b^=∣b∣a⋅b
θ=0: the projection vector is a itself; θ=π: it is −a; θ=2π or 23π: it is 0.
Key Point (whose magnitude divides?): projection of aonb divides by ∣b∣ — the magnitude of the vector being projected onto. Swapping the two gives the projection of b on a, a different number unless the magnitudes agree.
Components are projections
For a=a1i^+a2j^+a3k^: a1=a⋅i^, a2=a⋅j^, a3=a⋅k^ — the scalar components are the projections on the axes. The direction cosines are cosα=∣a∣a1 etc., and a unit vector can be written entirely from its direction cosines:
a^=cosαi^+cosβj^+cosγk^
Two famous inequalities
Cauchy-Schwarz:a⋅b≤∣a∣∣b∣ — because ∣cosθ∣≤1.
Triangle inequality:a+b≤∣a∣+∣b∣ — proved by expanding a+b2 and applying Cauchy-Schwarz to the cross term.
Equality in the triangle inequality means the vectors point the same way — used to prove collinearity of points: if AC=AB+BC, then A,B,C lie on one line.
Solved Examples
Example 1: Angle from the definition
Find the angle between two vectors with magnitudes 1 and 2, given that their dot product is 1.
Solution:
Rearrange the definition:cosθ=∣a∣∣b∣a⋅b=1×21=21.
Read the angle:θ=3π.
Answer:3π (60∘).
Example 2: Angle from components
Find the angle between a=i^+j^−k^ and b=i^−j^+k^.
Solution:
Dot product:a⋅b=1−1−1=−1.
Magnitudes:∣a∣=∣b∣=3.
Angle:cosθ=3−1, so θ=cos−1(−31).
Answer:cos−1(−31) — obtuse, as the negative dot product announced in advance.
Example 3: Perpendicular combinations
For a=5i^−j^−3k^ and b=i^+3j^−5k^, show that a+b and a−b are perpendicular.
Solution:
Compute both:a+b=6i^+2j^−8k^ and a−b=4i^−4j^+2k^.
Dot them:24−8−16=0.
Answer: the dot product vanishes, so the vectors are perpendicular. (Deeper reason: (a+b)⋅(a−b)=∣a∣2−∣b∣2, and here ∣a∣=∣b∣=35 — the diagonals of a rhombus are perpendicular.)
Example 4: A projection
Find the projection of a=2i^+3j^+2k^ on b=i^+2j^+k^.
Solution:
Formula: projection =∣b∣a⋅b.
Compute:a⋅b=2+6+2=10 and ∣b∣=6.
Divide:610=356.
Answer:610=356 — division by ∣b∣, the vector being projected onto.
Example 5: Length of a difference
If ∣a∣=2, ∣b∣=3 and a⋅b=4, find a−b.
Solution:
Expand:a−b2=∣a∣2−2a⋅b+∣b∣2.
Substitute:4−8+9=5.
Answer:a−b=5.
Example 6: An unknown magnitude
If a is a unit vector and (x−a)⋅(x+a)=8, find ∣x∣.
Solution:
Expand (difference of squares works for dots):x⋅x−a⋅a=∣x∣2−1.
Solve:∣x∣2−1=8, so ∣x∣2=9.
Answer:∣x∣=3 (magnitudes are non-negative — discard −3).
Example 7: The two inequalities
Prove (i) a⋅b≤∣a∣∣b∣ and (ii) a+b≤∣a∣+∣b∣.
Solution:
(i) For nonzero vectors, a⋅b=∣a∣∣b∣∣cosθ∣≤∣a∣∣b∣ since ∣cosθ∣≤1; the zero cases hold trivially.
(ii) Expand: a+b2=∣a∣2+2a⋅b+∣b∣2≤∣a∣2+2∣a∣∣b∣+∣b∣2=(∣a∣+∣b∣)2, using a⋅b≤a⋅b and then (i).
Take roots (both sides non-negative).
Answer: both inequalities hold; equality in (ii) exactly when the vectors point the same way.
Example 8: Collinearity by lengths
Show that A(−2i^+3j^+5k^), B(i^+2j^+3k^) and C(7i^−k^) are collinear.