MatheramaMatherama
← Vector Algebra and Three Dimensional Geometry

Dot Product of Vectors

Angle between Two Vectors§

When we need to measure the angle between two vectors a→\overrightarrow{\mathbf{a}} and b→\overrightarrow{\mathbf{b}} in three-dimensional space, we first place them co-initial, meaning we position them so that they share the same starting point. Once the vectors are co-initial, the angle between them is the smallest angle through which one vector must be rotated to align with the other, measured in the plane containing both vectors. This angle is always taken between 00 and π\pi, ensuring that it represents the true directional difference between the vectors, independent of their magnitudes.

If the two vectors a→\overrightarrow{\mathbf{a}} and b→\overrightarrow{\mathbf{b}} are collinear, meaning they lie along the same line, the angle between them is either 00 or π\pi. If they point in the same direction, the angle is 00, and if they point in opposite directions, the angle is π\pi.

On the other hand, if the vectors are perpendicular, meaning they meet at a right angle, the angle between them is exactly π2\frac{\pi}{2}. If the angle is less than π2\frac{\pi}{2}, the vectors form an acute angle, meaning they are closer to pointing in the same direction. If the angle is greater than π2\frac{\pi}{2} but less than π\pi, they form an obtuse angle, meaning they are more spread apart but not completely opposite in direction.

Thus, we classify the angle between two vectors as:

  • 0≤θ<π20 \leq \theta < \frac{\pi}{2} → Acute angle
  • θ=π2\theta = \frac{\pi}{2} → Right angle (perpendicular vectors)
  • π2<θ≤π\frac{\pi}{2} < \theta \leq \pi → Obtuse angle

The nature of the angle gives insight into how much the vectors are inclined towards or away from each other.

Measuring the Angle between Two Vectors§

To measure the angle between two vectors algebraically, we first express them in their resolved form. Let

u→=x1i+y1j+z1k,v→=x2i+y2j+z2k\overrightarrow{\mathbf{u}} = x_1 \mathbf{i} + y_1 \mathbf{j} + z_1 \mathbf{k}, \quad \overrightarrow{\mathbf{v}} = x_2 \mathbf{i} + y_2 \mathbf{j} + z_2 \mathbf{k}

We position them co-initial at the origin by moving their initial points to the origin. Define:

OP→=u→,OQ→=v→\overrightarrow{\mathbf{OP}} = \overrightarrow{\mathbf{u}}, \quad \overrightarrow{\mathbf{OQ}} = \overrightarrow{\mathbf{v}}

alt text

Let the angle between OP→\overrightarrow{\mathbf{OP}} and OQ→\overrightarrow{\mathbf{OQ}} be θ\theta. The magnitudes of these vectors are:

∣OP→∣=x12+y12+z12,∣OQ→∣=x22+y22+z22|\overrightarrow{\mathbf{OP}}| = \sqrt{x_1^2 + y_1^2 + z_1^2}, \quad |\overrightarrow{\mathbf{OQ}}| = \sqrt{x_2^2 + y_2^2 + z_2^2}

The vector PQ→\overrightarrow{\mathbf{PQ}} is given by:

PQ→=OQ→−OP→=(x2−x1)i+(y2−y1)j+(z2−z1)k\overrightarrow{\mathbf{PQ}} = \overrightarrow{\mathbf{OQ}} - \overrightarrow{\mathbf{OP}} = (x_2 - x_1) \mathbf{i} + (y_2 - y_1) \mathbf{j} + (z_2 - z_1) \mathbf{k}

Its magnitude is:

∣PQ→∣=(x2−x1)2+(y2−y1)2+(z2−z1)2|\overrightarrow{\mathbf{PQ}}| = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}

Applying the cosine law in △OPQ\triangle OPQ:

cos⁡θ=∣OP→∣2+∣OQ→∣2−∣PQ→∣22∣OP→∣∣OQ→∣\cos \theta = \frac{|\overrightarrow{\mathbf{OP}}|^2 + |\overrightarrow{\mathbf{OQ}}|^2 - |\overrightarrow{\mathbf{PQ}}|^2}{2 |\overrightarrow{\mathbf{OP}}| |\overrightarrow{\mathbf{OQ}}|}

Substituting the values:

cos⁡θ=x12+y12+z12+x22+y22+z22−[(x2−x1)2+(y2−y1)2+(z2−z1)2]2∣OP→∣∣OQ→∣\cos \theta = \frac{x_1^2 + y_1^2 + z_1^2 + x_2^2 + y_2^2 + z_2^2 - [(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2]}{2 |\overrightarrow{\mathbf{OP}}| |\overrightarrow{\mathbf{OQ}}|}

Expanding (x2−x1)2+(y2−y1)2+(z2−z1)2(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2:

(x2−x1)2+(y2−y1)2+(z2−z1)2=x22−2x1x2+x12+y22−2y1y2+y12+z22−2z1z2+z12(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2 = x_2^2 - 2x_1x_2 + x_1^2 + y_2^2 - 2y_1y_2 + y_1^2 + z_2^2 - 2z_1z_2 + z_1^2

Substituting this back:

cos⁡θ=x12+y12+z12+x22+y22+z22−(x22−2x1x2+x12+y22−2y1y2+y12+z22−2z1z2+z12)2∣OP→∣∣OQ→∣\cos \theta = \frac{x_1^2 + y_1^2 + z_1^2 + x_2^2 + y_2^2 + z_2^2 - (x_2^2 - 2x_1x_2 + x_1^2 + y_2^2 - 2y_1y_2 + y_1^2 + z_2^2 - 2z_1z_2 + z_1^2)}{2 |\overrightarrow{\mathbf{OP}}| |\overrightarrow{\mathbf{OQ}}|}

Canceling terms:

cos⁡θ=2x1x2+2y1y2+2z1z22∣OP→∣∣OQ→∣\cos \theta = \frac{2x_1x_2 + 2y_1y_2 + 2z_1z_2}{2 |\overrightarrow{\mathbf{OP}}| |\overrightarrow{\mathbf{OQ}}|} cos⁡θ=x1x2+y1y2+z1z2∣OP→∣∣OQ→∣\cos \theta = \frac{x_1 x_2 + y_1 y_2 + z_1 z_2}{|\overrightarrow{\mathbf{OP}}| |\overrightarrow{\mathbf{OQ}}|}

Thus, we obtain:

cos⁡θ=x1x2+y1y2+z1z2x12+y12+z12x22+y22+z22\cos \theta = \frac{x_1 x_2 + y_1 y_2 + z_1 z_2}{\sqrt{x_1^2 + y_1^2 + z_1^2} \sqrt{x_2^2 + y_2^2 + z_2^2}}

which is the formula for the angle between two vectors.

Dot Product of Vectors§

The quantity in the numerator of our formula—x1x2+y1y2+z1z2x_1x_2 + y_1y_2 + z_1z_2—is not just any sum; it is something fundamental. This expression appears naturally when computing the angle between two vectors, and it captures an essential relationship between them.

This motivates us to define a new operation: the dot product of two vectors. We write:

u→⋅v→=x1x2+y1y2+z1z2\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = x_1x_2 + y_1y_2 + z_1z_2

This definition is not arbitrary—it arises precisely because it allows us to express the angle between two vectors in a simple and elegant way. Substituting this into our formula for cos⁡θ\cos \theta, we obtain:

cos⁡θ=u→⋅v→∣u→∣∣v→∣\cos \theta = \frac{\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}}}{|\overrightarrow{\mathbf{u}}| |\overrightarrow{\mathbf{v}}|}

This equation is profound. It tells us that the dot product encodes both the magnitudes of the vectors and the angle between them. Rewriting it, we arrive at a beautiful result:

u→⋅v→=∣u→∣∣v→∣cos⁡θ\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = |\overrightarrow{\mathbf{u}}| |\overrightarrow{\mathbf{v}}| \cos \theta

Properties of Dot Product§

So, we have introduced a new operator on vectors—the dot product. Whenever we learn a new operation, we investigate its properties to understand how it interacts with other vector operations, such as addition and scalar multiplication.

Dot Product Produces a Scalar§

The dot product (or scalar product) of two vectors is not a vector—it results in a scalar. That is, the operation is not closed under vectors:

u→⋅v→=x1x2+y1y2+z1z2\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = x_1x_2 + y_1y_2 + z_1z_2

The result is a real number, not another vector. However, despite being a scalar, this number carries important geometric information about the vectors.

Sign of the Dot Product and the Angle Between Vectors§

The value of u→⋅v→\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} tells us about the angle θ\theta between the two vectors:

  • If u→⋅v→>0\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} > 0, the angle θ\theta is acute (0<θ<π20 < \theta < \frac{\pi}{2}).
  • If u→⋅v→<0\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} < 0, the angle θ\theta is obtuse (π2<θ<π\frac{\pi}{2} < \theta < \pi).
  • If u→⋅v→=0\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = 0, then either one of the vectors is the zero vector or the vectors are perpendicular.

To see why this is true, recall the fundamental formula:

u→⋅v→=∣u→∣∣v→∣cos⁡θ\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = |\overrightarrow{\mathbf{u}}| |\overrightarrow{\mathbf{v}}| \cos \theta

Since the angle θ\theta is always in the range 0≤θ≤π0 \leq \theta \leq \pi, the value of cos⁡θ\cos \theta determines the sign of the dot product:

  • For 0<θ<π20 < \theta < \frac{\pi}{2}, we have cos⁡θ>0\cos \theta > 0, so the dot product is positive.
  • For π2<θ<π\frac{\pi}{2} < \theta < \pi, we have cos⁡θ<0\cos \theta < 0, so the dot product is negative.
  • For θ=π2\theta = \frac{\pi}{2}, we have cos⁡θ=0\cos \theta = 0, so the dot product is zero. This means the vectors are perpendicular.

Thus, from just the sign of the dot product, we can determine whether two vectors form an acute, right, or obtuse angle with each other.

Commutativity and Associativity§

Another fundamental property of the dot product is that it is commutative. That is, for any two vectors u→\overrightarrow{\mathbf{u}} and v→\overrightarrow{\mathbf{v}},

u→⋅v→=v→⋅u→\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = \overrightarrow{\mathbf{v}} \cdot \overrightarrow{\mathbf{u}}

This follows directly from the definition:

u→⋅v→=x1x2+y1y2+z1z2\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = x_1x_2 + y_1y_2 + z_1z_2 v→⋅u→=x2x1+y2y1+z2z1\overrightarrow{\mathbf{v}} \cdot \overrightarrow{\mathbf{u}} = x_2x_1 + y_2y_1 + z_2z_1

Since real numbers satisfy the commutative property of multiplication (ab=baa b = b a), it follows that:

x1x2+y1y2+z1z2=x2x1+y2y1+z2z1x_1x_2 + y_1y_2 + z_1z_2 = x_2x_1 + y_2y_1 + z_2z_1

Thus,

u→⋅v→=v→⋅u→\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = \overrightarrow{\mathbf{v}} \cdot \overrightarrow{\mathbf{u}}

This means that the order in which we take the dot product does not matter—just like how multiplying two numbers does not depend on order. Geometrically, this reflects the fact that the angle between two vectors remains the same regardless of which vector is considered first.

Another important observation is that the dot product is not associative. That is, in general, we cannot write:

(u→⋅v→)⋅w→=u→⋅(v→⋅w→)(\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}}) \cdot \overrightarrow{\mathbf{w}} = \overrightarrow{\mathbf{u}} \cdot (\overrightarrow{\mathbf{v}} \cdot \overrightarrow{\mathbf{w}})

Such an expression is not even defined, because the dot product produces a scalar, not a vector. Once we take the dot product of two vectors, the result is a number, and taking the dot product of a number with another vector does not make sense.

Thus, unlike vector addition or scalar multiplication, associativity does not apply to the dot product. The dot product only works between two vectors at a time, and no further dot product operation can be applied to the result.

Dot product and Scalar Multiplication§

Another key property of the dot product is compatibility with scalar multiplication. That is, for any scalar kk and vectors u→\overrightarrow{\mathbf{u}} and v→\overrightarrow{\mathbf{v}}, we have:

k(u→⋅v→)=(ku→)⋅v→=u→⋅(kv→)k (\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}}) = (k\overrightarrow{\mathbf{u}}) \cdot \overrightarrow{\mathbf{v}} = \overrightarrow{\mathbf{u}} \cdot (k\overrightarrow{\mathbf{v}})

This property tells us that multiplying one or both vectors by a scalar before taking the dot product is equivalent to first computing the dot product and then multiplying the result by the same scalar.

Verification

  1. Left-hand side: Scaling the Dot Product

    k(u→⋅v→)=k(x1x2+y1y2+z1z2)=kx1x2+ky1y2+kz1z2k (\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}}) = k (x_1x_2 + y_1y_2 + z_1z_2) = kx_1x_2 + ky_1y_2 + kz_1z_2
  2. Scaling u→\overrightarrow{\mathbf{u}} First:

    (ku→)⋅v→=(kx1,ky1,kz1)⋅(x2,y2,z2)(k\overrightarrow{\mathbf{u}}) \cdot \overrightarrow{\mathbf{v}} = (kx_1, ky_1, kz_1) \cdot (x_2, y_2, z_2) =kx1x2+ky1y2+kz1z2= kx_1x_2 + ky_1y_2 + kz_1z_2
  3. Scaling v→\overrightarrow{\mathbf{v}} First:

    u→⋅(kv→)=(x1,y1,z1)⋅(kx2,ky2,kz2)\overrightarrow{\mathbf{u}} \cdot (k\overrightarrow{\mathbf{v}}) = (x_1, y_1, z_1) \cdot (kx_2, ky_2, kz_2) =kx1x2+ky1y2+kz1z2= kx_1x_2 + ky_1y_2 + kz_1z_2

Since all three expressions are identical, we conclude:

k(u→⋅v→)=(ku→)⋅v→=u→⋅(kv→)k (\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}}) = (k\overrightarrow{\mathbf{u}}) \cdot \overrightarrow{\mathbf{v}} = \overrightarrow{\mathbf{u}} \cdot (k\overrightarrow{\mathbf{v}})

This property confirms that the dot product distributes over scalar multiplication, maintaining linearity in each argument.

Distributive Property over Vector Addition§

Another fundamental property of the dot product is its distributive property over vector addition:

u→⋅(v→+w→)=u→⋅v→+u→⋅w→\overrightarrow{\mathbf{u}} \cdot (\overrightarrow{\mathbf{v}} + \overrightarrow{\mathbf{w}}) = \overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} + \overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{w}}

This means that taking the dot product with a sum of vectors distributes over addition, much like multiplication distributes over addition in algebra.

Verification

Let the vectors be expressed in unit vector notation:

u→=x1i+y1j+z1k,\overrightarrow{\mathbf{u}} = x_1 \mathbf{i} + y_1 \mathbf{j} + z_1 \mathbf{k}, v→=x2i+y2j+z2k,\overrightarrow{\mathbf{v}} = x_2 \mathbf{i} + y_2 \mathbf{j} + z_2 \mathbf{k}, w→=x3i+y3j+z3k\overrightarrow{\mathbf{w}} = x_3 \mathbf{i} + y_3 \mathbf{j} + z_3 \mathbf{k}

First, compute the left-hand side:

v→+w→=(x2+x3)i+(y2+y3)j+(z2+z3)k\overrightarrow{\mathbf{v}} + \overrightarrow{\mathbf{w}} = (x_2 + x_3) \mathbf{i} + (y_2 + y_3) \mathbf{j} + (z_2 + z_3) \mathbf{k}

Now, take the dot product with u→\overrightarrow{\mathbf{u}}:

u→⋅(v→+w→)=[x1i+y1j+z1k]⋅[(x2+x3)i+(y2+y3)j+(z2+z3)k]\overrightarrow{\mathbf{u}} \cdot (\overrightarrow{\mathbf{v}} + \overrightarrow{\mathbf{w}}) = [x_1 \mathbf{i} + y_1 \mathbf{j} + z_1 \mathbf{k}] \cdot [(x_2 + x_3) \mathbf{i} + (y_2 + y_3) \mathbf{j} + (z_2 + z_3) \mathbf{k}]

Expanding using the definition of the dot product:

=x1(x2+x3)+y1(y2+y3)+z1(z2+z3)= x_1 (x_2 + x_3) + y_1 (y_2 + y_3) + z_1 (z_2 + z_3)

Distributing each term:

=x1x2+x1x3+y1y2+y1y3+z1z2+z1z3= x_1 x_2 + x_1 x_3 + y_1 y_2 + y_1 y_3 + z_1 z_2 + z_1 z_3

Rewriting:

=(x1x2+y1y2+z1z2)+(x1x3+y1y3+z1z3)= (x_1 x_2 + y_1 y_2 + z_1 z_2) + (x_1 x_3 + y_1 y_3 + z_1 z_3)

Recognizing these as dot products:

=(x1i+y1j+z1k)⋅(x2i+y2j+z2k)+(x1i+y1j+z1k)⋅(x3i+y3j+z3k)= (x_1 \mathbf{i} + y_1 \mathbf{j} + z_1 \mathbf{k}) \cdot (x_2 \mathbf{i} + y_2 \mathbf{j} + z_2 \mathbf{k}) + (x_1 \mathbf{i} + y_1 \mathbf{j} + z_1 \mathbf{k}) \cdot (x_3 \mathbf{i} + y_3 \mathbf{j} + z_3 \mathbf{k}) =u→⋅v→+u→⋅w→= \overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} + \overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{w}}

Thus, the distributive property of the dot product is verified:

u→⋅(v→+w→)=u→⋅v→+u→⋅w→\overrightarrow{\mathbf{u}} \cdot (\overrightarrow{\mathbf{v}} + \overrightarrow{\mathbf{w}}) = \overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} + \overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{w}}

This property ensures that the dot product interacts linearly with vector addition.

Cauchy–Schwarz Inequality§

A fundamental property of the dot product is the Cauchy–Schwarz inequality, which states that for any two vectors:

∣u→⋅v→∣≤∣u→∣∣v→∣|\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}}| \leq |\overrightarrow{\mathbf{u}}| |\overrightarrow{\mathbf{v}}|

This inequality establishes an upper bound on the absolute value of the dot product, ensuring that it never exceeds the product of the magnitudes of the two vectors.

Proof

Let

u→=x1i+y1j+z1k,v→=x2i+y2j+z2k\overrightarrow{\mathbf{u}} = x_1 \mathbf{i} + y_1 \mathbf{j} + z_1 \mathbf{k}, \quad \overrightarrow{\mathbf{v}} = x_2 \mathbf{i} + y_2 \mathbf{j} + z_2 \mathbf{k}

From the fundamental formula for the dot product:

u→⋅v→=x1x2+y1y2+z1z2\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = x_1x_2 + y_1y_2 + z_1z_2

we also have the expression:

u→⋅v→=∣u→∣∣v→∣cos⁡θ\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}} = |\overrightarrow{\mathbf{u}}| |\overrightarrow{\mathbf{v}}| \cos \theta

Since ∣cos⁡θ∣≤1|\cos \theta| \leq 1 for any angle θ\theta, it follows that:

∣u→⋅v→∣=∣u→∣∣v→∣∣cos⁡θ∣≤∣u→∣∣v→∣|\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}}| = |\overrightarrow{\mathbf{u}}| |\overrightarrow{\mathbf{v}}| |\cos \theta| \leq |\overrightarrow{\mathbf{u}}| |\overrightarrow{\mathbf{v}}|

which is exactly the Cauchy–Schwarz inequality.

When does equality hold?

The equality holds in the Cauchy–Schwarz inequality, i.e.,

∣u→⋅v→∣=∣u→∣∣v→∣|\overrightarrow{\mathbf{u}} \cdot \overrightarrow{\mathbf{v}}| = |\overrightarrow{\mathbf{u}}| |\overrightarrow{\mathbf{v}}|

if and only if u→\overrightarrow{\mathbf{u}} and v→\overrightarrow{\mathbf{v}} are collinear, meaning one is a scalar multiple of the other:

v→=ku→for some scalar k\overrightarrow{\mathbf{v}} = k \overrightarrow{\mathbf{u}} \quad \text{for some scalar } k

Dot Products of Standard Unit Vectors along axes§

i⋅i=j⋅j=k⋅k=1\mathbf{i} \cdot \mathbf{i} = \mathbf{j} \cdot \mathbf{j} = \mathbf{k} \cdot \mathbf{k} = 1

This follows directly from the definition:

i⋅i=∣i∣∣i∣cos⁡0=1⋅1⋅1=1\mathbf{i} \cdot \mathbf{i} = |\mathbf{i}| |\mathbf{i}| \cos 0 = 1 \cdot 1 \cdot 1 = 1

since cos⁡0=1\cos 0 = 1, and similarly for j⋅j\mathbf{j} \cdot \mathbf{j} and k⋅k\mathbf{k} \cdot \mathbf{k}.

For the dot products of different unit vectors, we use the fact that these vectors are perpendicular to each other:

i⋅j=j⋅k=k⋅i=0\mathbf{i} \cdot \mathbf{j} = \mathbf{j} \cdot \mathbf{k} = \mathbf{k} \cdot \mathbf{i} = 0

Since the angle between any two different unit vectors is 90∘90^\circ, we have:

cos⁡90∘=0⇒i⋅j=∣i∣∣j∣cos⁡90∘=1⋅1⋅0=0\cos 90^\circ = 0 \quad \Rightarrow \quad \mathbf{i} \cdot \mathbf{j} = |\mathbf{i}| |\mathbf{j}| \cos 90^\circ = 1 \cdot 1 \cdot 0 = 0

and similarly for j⋅k\mathbf{j} \cdot \mathbf{k} and k⋅i\mathbf{k} \cdot \mathbf{i}.

Thus, the fundamental dot product relations among the unit vectors are:

i⋅i=j⋅j=k⋅k=1,i⋅j=j⋅k=k⋅i=0\mathbf{i} \cdot \mathbf{i} = \mathbf{j} \cdot \mathbf{j} = \mathbf{k} \cdot \mathbf{k} = 1, \quad \mathbf{i} \cdot \mathbf{j} = \mathbf{j} \cdot \mathbf{k} = \mathbf{k} \cdot \mathbf{i} = 0

Square of a Vector§

A particularly useful property of the dot product arises when a vector is dotted with itself:

a→⋅a→=∣a→∣∣a→∣cos⁡0=∣a→∣2\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{a}} = |\overrightarrow{\mathbf{a}}| |\overrightarrow{\mathbf{a}}| \cos 0 = |\overrightarrow{\mathbf{a}}|^2

Since cos⁡0=1\cos 0 = 1, this simplifies to:

a→⋅a→=∣a→∣2\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{a}} = |\overrightarrow{\mathbf{a}}|^2

Thus, taking the dot product of a vector with itself gives the square of its magnitude. We often write:

a→⋅a→=a→2\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{a}} = \overrightarrow{\mathbf{a}}^2

but be careful—this notation does not extend naturally to higher powers. There is no meaningful way to define something like a→3\overrightarrow{\mathbf{a}}^3 in the same way.

Using this property, we derive several key vector identities that resemble algebraic identities in real numbers:

Expansion of (a→+b→)2(\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}})^2

∣a→+b→∣2=(a→+b→)⋅(a→+b→)|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 = (\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}) \cdot (\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}})

Expanding using the distributive property:

=a→⋅a→+a→⋅b→+b→⋅a→+b→⋅b→= \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{b}}

Since the dot product is commutative:

=a→2+b→2+2(a→⋅b→)= \overrightarrow{\mathbf{a}}^2 + \overrightarrow{\mathbf{b}}^2 + 2 (\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}})

Thus, we obtain the parallelogram identity:

∣a→+b→∣2=a→2+b→2+2a→⋅b→|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 = \overrightarrow{\mathbf{a}}^2 + \overrightarrow{\mathbf{b}}^2 + 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}}

Expansion of (a→−b→)2(\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}})^2

Similarly, applying the same steps to a→−b→\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}}:

∣a→−b→∣2=(a→−b→)⋅(a→−b→)|\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}}|^2 = (\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}}) \cdot (\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}})

Expanding:

=a→⋅a→−a→⋅b→−b→⋅a→+b→⋅b→= \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} - \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{b}} =a→2+b→2−2a→⋅b→= \overrightarrow{\mathbf{a}}^2 + \overrightarrow{\mathbf{b}}^2 - 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}}

Product of Sum and Difference

(a→+b→)⋅(a→−b→)(\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}) \cdot (\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}})

Expanding:

=a→⋅a→−a→⋅b→+b→⋅a→−b→⋅b→= \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{b}}

Since a→⋅b→=b→⋅a→\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} = \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{a}}, we get:

=a→2−b→2= \overrightarrow{\mathbf{a}}^2 - \overrightarrow{\mathbf{b}}^2

Thus:

(a→+b→)⋅(a→−b→)=a→2−b→2(\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}) \cdot (\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}}) = \overrightarrow{\mathbf{a}}^2 - \overrightarrow{\mathbf{b}}^2

No Higher Powers Like ∣a→+b→∣3|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^3

While these identities look similar to algebraic identities, there is no direct analog to expressions like:

∣a→+b→∣3|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^3

because dot product expansion works only for quadratic expressions. There is no meaningful way to generalize it to cubic or higher powers in the same way as algebraic multiplication.

Expansion of the square of sum of Three Vectors

∣a→+b→+c→∣2=∣a→∣2+∣b→∣2+∣c→∣2+2(a→⋅b→+b→⋅c→+c→⋅a→)|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{c}}|^2 = |\overrightarrow{\mathbf{a}}|^2 + |\overrightarrow{\mathbf{b}}|^2 + |\overrightarrow{\mathbf{c}}|^2 + 2 (\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{c}} + \overrightarrow{\mathbf{c}} \cdot \overrightarrow{\mathbf{a}})

Proof

Expanding the squared magnitude using the dot product definition:

∣a→+b→+c→∣2=(a→+b→+c→)⋅(a→+b→+c→)|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{c}}|^2 = (\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{c}}) \cdot (\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{c}})

Applying the distributive property:

=a→⋅a→+a→⋅b→+a→⋅c→= \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{c}} +b→⋅a→+b→⋅b→+b→⋅c→+ \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{c}} +c→⋅a→+c→⋅b→+c→⋅c→+ \overrightarrow{\mathbf{c}} \cdot \overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{c}} \cdot \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{c}} \cdot \overrightarrow{\mathbf{c}}

Since the dot product is commutative (a→⋅b→=b→⋅a→\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} = \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{a}}), we rewrite:

=∣a→∣2+∣b→∣2+∣c→∣2+2(a→⋅b→+b→⋅c→+c→⋅a→)= |\overrightarrow{\mathbf{a}}|^2 + |\overrightarrow{\mathbf{b}}|^2 + |\overrightarrow{\mathbf{c}}|^2 + 2 (\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} + \overrightarrow{\mathbf{b}} \cdot \overrightarrow{\mathbf{c}} + \overrightarrow{\mathbf{c}} \cdot \overrightarrow{\mathbf{a}})

This identity generalizes the earlier two-vector expansion:

∣a→+b→∣2=∣a→∣2+∣b→∣2+2a→⋅b→|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 = |\overrightarrow{\mathbf{a}}|^2 + |\overrightarrow{\mathbf{b}}|^2 + 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}}

to three vectors, showing how the squared magnitude of a sum involves both the squared magnitudes of individual vectors and pairwise dot products.

Parallelogram Identity§

A fundamental identity in vector algebra is:

∣a→+b→∣2+∣a→−b→∣2=2(∣a→∣2+∣b→∣2)|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 + |\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}}|^2 = 2 (|\overrightarrow{\mathbf{a}}|^2 + |\overrightarrow{\mathbf{b}}|^2)

This identity is known as the parallelogram identity, as it arises naturally from the geometry of a parallelogram formed by two vectors. It establishes a relationship between the sums and differences of vectors and their magnitudes.

Proof

Expanding both squared terms using the previously derived formulas:

∣a→+b→∣2=a→2+b→2+2a→⋅b→|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 = \overrightarrow{\mathbf{a}}^2 + \overrightarrow{\mathbf{b}}^2 + 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} ∣a→−b→∣2=a→2+b→2−2a→⋅b→|\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}}|^2 = \overrightarrow{\mathbf{a}}^2 + \overrightarrow{\mathbf{b}}^2 - 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}}

Adding both equations:

∣a→+b→∣2+∣a→−b→∣2=(a→2+b→2+2a→⋅b→)+(a→2+b→2−2a→⋅b→)|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 + |\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}}|^2 = (\overrightarrow{\mathbf{a}}^2 + \overrightarrow{\mathbf{b}}^2 + 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}}) + (\overrightarrow{\mathbf{a}}^2 + \overrightarrow{\mathbf{b}}^2 - 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}})

Since +2a→⋅b→+ 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} and −2a→⋅b→- 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} cancel out:

∣a→+b→∣2+∣a→−b→∣2=2a→2+2b→2|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 + |\overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{b}}|^2 = 2 \overrightarrow{\mathbf{a}}^2 + 2 \overrightarrow{\mathbf{b}}^2 =2(∣a→∣2+∣b→∣2)= 2 (|\overrightarrow{\mathbf{a}}|^2 + |\overrightarrow{\mathbf{b}}|^2)

This proves the identity. It confirms that the sum of the squares of the diagonals of a parallelogram equals the sum of the squares of all four sides, a result that also holds in classical Euclidean geometry.

Triangle Inequality§

For any two vectors a→\overrightarrow{\mathbf{a}} and b→\overrightarrow{\mathbf{b}}, the triangle inequality states:

∣∣a→∣−∣b→∣∣≤∣a→+b→∣≤∣a→∣+∣b→∣||\overrightarrow{\mathbf{a}}| - |\overrightarrow{\mathbf{b}}|| \leq |\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}| \leq |\overrightarrow{\mathbf{a}}| + |\overrightarrow{\mathbf{b}}|

This inequality expresses the fundamental geometric fact that the length of one side of a triangle cannot exceed the sum of the lengths of the other two sides, nor can it be smaller than the absolute difference of the two.

Proof

We start with the identity:

∣a→+b→∣2=∣a→∣2+∣b→∣2+2a→⋅b→|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 = |\overrightarrow{\mathbf{a}}|^2 + |\overrightarrow{\mathbf{b}}|^2 + 2 \overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}}

Since the dot product satisfies:

a→⋅b→=∣a→∣∣b→∣cos⁡θ\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} = |\overrightarrow{\mathbf{a}}| |\overrightarrow{\mathbf{b}}| \cos \theta

where −1≤cos⁡θ≤1-1 \leq \cos \theta \leq 1, we substitute:

∣a→+b→∣2=∣a→∣2+∣b→∣2+2∣a→∣∣b→∣cos⁡θ|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 = |\overrightarrow{\mathbf{a}}|^2 + |\overrightarrow{\mathbf{b}}|^2 + 2 |\overrightarrow{\mathbf{a}}| |\overrightarrow{\mathbf{b}}| \cos \theta

Since −1≤cos⁡θ≤1-1 \leq \cos \theta \leq 1, we obtain two inequalities:

∣a→∣2+∣b→∣2−2∣a→∣∣b→∣≤∣a→+b→∣2≤∣a→∣2+∣b→∣2+2∣a→∣∣b→∣|\overrightarrow{\mathbf{a}}|^2 + |\overrightarrow{\mathbf{b}}|^2 - 2 |\overrightarrow{\mathbf{a}}| |\overrightarrow{\mathbf{b}}| \leq |\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 \leq |\overrightarrow{\mathbf{a}}|^2 + |\overrightarrow{\mathbf{b}}|^2 + 2 |\overrightarrow{\mathbf{a}}| |\overrightarrow{\mathbf{b}}|

Rewriting these:

(∣a→∣−∣b→∣)2≤∣a→+b→∣2≤(∣a→∣+∣b→∣)2(|\overrightarrow{\mathbf{a}}| - |\overrightarrow{\mathbf{b}}|)^2 \leq |\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}|^2 \leq (|\overrightarrow{\mathbf{a}}| + |\overrightarrow{\mathbf{b}}|)^2

Taking square roots on all sides:

∣∣a→∣−∣b→∣∣≤∣a→+b→∣≤∣a→∣+∣b→∣||\overrightarrow{\mathbf{a}}| - |\overrightarrow{\mathbf{b}}|| \leq |\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}| \leq |\overrightarrow{\mathbf{a}}| + |\overrightarrow{\mathbf{b}}|

which is the required result. ■\blacksquare

Equality Conditions in the Triangle Inequality

The right-hand equality in the triangle inequality:

∣a→+b→∣=∣a→∣+∣b→∣|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}| = |\overrightarrow{\mathbf{a}}| + |\overrightarrow{\mathbf{b}}|

occurs when the vectors a→\overrightarrow{\mathbf{a}} and b→\overrightarrow{\mathbf{b}} point in the same direction, meaning the angle between them is 00. This happens when:

cos⁡θ=1⇒b→=ka→,k>0\cos \theta = 1 \quad \Rightarrow \quad \overrightarrow{\mathbf{b}} = k\overrightarrow{\mathbf{a}}, \quad k > 0

which means the vectors are collinear and positively proportional.

The left-hand equality:

∣a→+b→∣=∣∣a→∣−∣b→∣∣|\overrightarrow{\mathbf{a}} + \overrightarrow{\mathbf{b}}| = ||\overrightarrow{\mathbf{a}}| - |\overrightarrow{\mathbf{b}}||

occurs when the vectors a→\overrightarrow{\mathbf{a}} and b→\overrightarrow{\mathbf{b}} point in exactly opposite directions, meaning the angle between them is π\pi. This happens when:

cos⁡θ=−1⇒b→=ka→,k<0\cos \theta = -1 \quad \Rightarrow \quad \overrightarrow{\mathbf{b}} = k\overrightarrow{\mathbf{a}}, \quad k < 0

which means the vectors are collinear and oppositely directed.

Thus, the triangle inequality sharpens to an equality only when the two vectors lie along the same line, either in the same direction (θ=0\theta = 0) or in opposite directions (θ=π\theta = \pi).

This inequality confirms that the length of the resultant vector from adding two vectors always lies between the absolute difference and the sum of their magnitudes, reinforcing the fundamental triangle inequality in Euclidean geometry.

Projections: The Shadow of a Vector§

We came up with the idea of the dot product when we tried to measure the angle between two vectors. This remains one of its most fundamental and important applications. However, there is another powerful use of the dot product—one that plays a crucial role in geometry, physics, and engineering. This is the idea of projections.

Let a→\overrightarrow{\mathbf{a}} and b→\overrightarrow{\mathbf{b}} be two nonzero vectors making some angle between them. Imagine the head of a→\overrightarrow{\mathbf{a}}. From this point, drop a perpendicular onto the line of support of b→\overrightarrow{\mathbf{b}}. Let the foot of this perpendicular be N.

Now, from the tail of a→\overrightarrow{\mathbf{a}}, drop another perpendicular onto the line of support of a→\overrightarrow{\mathbf{a}}. Let the foot of this perpendicular be M.

alt text

The length of MN is what we call the projection of a→\overrightarrow{\mathbf{a}} on b→\overrightarrow{\mathbf{b}}. It represents the part of a→\overrightarrow{\mathbf{a}} that "aligns" with b→\overrightarrow{\mathbf{b}}.

It is like the shadow of a→\overrightarrow{\mathbf{a}} cast onto the direction of b→\overrightarrow{\mathbf{b}}, if the "light" were shining perpendicular to b→\overrightarrow{\mathbf{b}}. This concept of projection captures how much of a→\overrightarrow{\mathbf{a}} points along b→\overrightarrow{\mathbf{b}}, making it one of the most powerful applications of the dot product.

projection animation

Scalar Projection§

To compute the projection of a vector a→\overrightarrow{\mathbf{a}} along another vector b→\overrightarrow{\mathbf{b}}, we first make them co-initial at a common point, say OO. This simplifies calculations and allows us to directly analyze their geometric relationship. Define:

a→=OA→,b→=OB→\overrightarrow{\mathbf{a}} = \overrightarrow{\mathbf{OA}}, \quad \overrightarrow{\mathbf{b}} = \overrightarrow{\mathbf{OB}}

From the head of a→\overrightarrow{\mathbf{a}}, i.e., point AA, drop a perpendicular onto the line of support of b→\overrightarrow{\mathbf{b}}. Let the foot of this perpendicular be N. The quantity we seek to compute is ON, the projection of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}}.

Since the vectors form an angle θ\theta, we apply the definition of cosine in right-angled △OAN\triangle OAN:

cos⁡θ=ONOA\cos \theta = \frac{\text{ON}}{\text{OA}}

Since OA=∣a→∣\text{OA} = |\overrightarrow{\mathbf{a}}|, this gives:

ON=∣a→∣cos⁡θ\text{ON} = |\overrightarrow{\mathbf{a}}| \cos \theta

Thus, the projection of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}} is:

∣a→∣cos⁡θ|\overrightarrow{\mathbf{a}}| \cos \theta

However, this is only half the truth. The projection is not merely a length—it is a signed quantity that depends on the sign of cos⁡θ\cos \theta:

  • If 0∘≤θ<90∘0^\circ \leq \theta < 90^\circ, then cos⁡θ>0\cos \theta > 0, making the projection positive.
  • If 90∘<θ≤180∘90^\circ < \theta \leq 180^\circ, then cos⁡θ<0\cos \theta < 0, making the projection negative.
  • If θ=90∘\theta = 90^\circ, then cos⁡θ=0\cos \theta = 0, meaning the projection vanishes—there is no component of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}}.

Thus, the projection is not just a length, but a signed scalar quantity that can be positive, negative, or zero, depending on the angle between the vectors.

Projection in Terms of the Dot Product

Since the dot product satisfies:

a→⋅b→=∣a→∣∣b→∣cos⁡θ\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}} = |\overrightarrow{\mathbf{a}}| |\overrightarrow{\mathbf{b}}| \cos \theta

dividing by ∣b→∣|\overrightarrow{\mathbf{b}}| gives:

∣a→∣cos⁡θ=a→⋅b→∣b→∣|\overrightarrow{\mathbf{a}}| \cos \theta = \frac{\overrightarrow{\mathbf{a}} \cdot \overrightarrow{\mathbf{b}}}{|\overrightarrow{\mathbf{b}}|}

Now, recalling that the unit vector along b→\overrightarrow{\mathbf{b}} is:

b^=b→∣b→∣\hat{\mathbf{b}} = \frac{\overrightarrow{\mathbf{b}}}{|\overrightarrow{\mathbf{b}}|}

we rewrite the projection as:

a→⋅b^\overrightarrow{\mathbf{a}} \cdot \hat{\mathbf{b}}

This formula expresses the signed projection of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}} purely in terms of the dot product. It tells us exactly how much of a→\overrightarrow{\mathbf{a}} lies along b→\overrightarrow{\mathbf{b}}, considering both magnitude and direction. This is one of the most powerful applications of the dot product.

Vector Projection§

The projection of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}} is a signed scalar quantity, which is why it is often referred to as the scalar projection of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}}. This scalar value tells us how much of a→\overrightarrow{\mathbf{a}} lies in the direction of b→\overrightarrow{\mathbf{b}}, including its sign, which depends on whether the vectors form an acute or obtuse angle.

In contrast, the vector projection of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}} gives us the actual vector in the direction of b→\overrightarrow{\mathbf{b}} that represents the component of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}}. Geometrically, this is the vector ON, where NN is the foot of the perpendicular dropped from the head of a→\overrightarrow{\mathbf{a}} onto the line of support of b→\overrightarrow{\mathbf{b}}.

Since the scalar projection is given by:

a→⋅b^\overrightarrow{\mathbf{a}} \cdot \hat{\mathbf{b}}

the vector projection of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}} is obtained by multiplying this scalar by b^\hat{\mathbf{b}}, ensuring the result is a vector in the direction of b→\overrightarrow{\mathbf{b}}:

Projb→(a→)=(a→⋅b^)b^\text{Proj}_{\overrightarrow{\mathbf{b}}} (\overrightarrow{\mathbf{a}}) = (\overrightarrow{\mathbf{a}} \cdot \hat{\mathbf{b}}) \hat{\mathbf{b}}

This formula expresses the vector ON, which is the component of a→\overrightarrow{\mathbf{a}} in the direction of b→\overrightarrow{\mathbf{b}}. Unlike the scalar projection, which only tells us the magnitude and sign, the vector projection retains both magnitude and direction. This makes it useful in applications where we need to decompose vectors into components along different directions, such as resolving forces in mechanics or analyzing motion in physics.

Decomposition of a Vector into Parallel and Orthogonal Components§

Given two nonzero vectors a→\overrightarrow{\mathbf{a}} and b→\overrightarrow{\mathbf{b}}, the vector a→\overrightarrow{\mathbf{a}} can be expressed as the sum of two components:

  1. A parallel component along b→\overrightarrow{\mathbf{b}}, which represents the part of a→\overrightarrow{\mathbf{a}} that lies in the same direction as b→\overrightarrow{\mathbf{b}}.
  2. An orthogonal component with respect to b→\overrightarrow{\mathbf{b}}, which represents the part of a→\overrightarrow{\mathbf{a}} that is perpendicular to b→\overrightarrow{\mathbf{b}}.

To obtain this decomposition, place the vectors so that they start from the same point OO. From the head of a→\overrightarrow{\mathbf{a}} (point AA), drop a perpendicular onto the line of support of b→\overrightarrow{\mathbf{b}}, meeting it at NN. The vector ON→\overrightarrow{\mathbf{ON}} represents the parallel component of a→\overrightarrow{\mathbf{a}} along b→\overrightarrow{\mathbf{b}}.

alt text

Now, from AA, drop another perpendicular to a line perpendicular to the line of support of b→\overrightarrow{\mathbf{b}}, within the plane containing a→\overrightarrow{\mathbf{a}} and b→\overrightarrow{\mathbf{b}}. Let the foot of this perpendicular be MM. Since both NA→\overrightarrow{\mathbf{NA}} and OM→\overrightarrow{\mathbf{OM}} are perpendicular to the line of support of b→\overrightarrow{\mathbf{b}}, they are equal in magnitude and direction, meaning:

NA→=OM→\overrightarrow{\mathbf{NA}} = \overrightarrow{\mathbf{OM}}

Thus, using parallelogram law of vectors, the vector a→\overrightarrow{\mathbf{a}} can be written as:

a→=ON→+OM→\overrightarrow{\mathbf{a}} = \overrightarrow{\mathbf{ON}} + \overrightarrow{\mathbf{OM}}

where:

  • ON→\overrightarrow{\mathbf{ON}}, the parallel component, is given by:

    ON→=Projb→(a→)=(a→⋅b^)b^\overrightarrow{\mathbf{ON}} = \text{Proj}_{\overrightarrow{\mathbf{b}}} (\overrightarrow{\mathbf{a}}) = (\overrightarrow{\mathbf{a}} \cdot \hat{\mathbf{b}}) \hat{\mathbf{b}}

    This vector lies in the direction of b→\overrightarrow{\mathbf{b}}.

  • OM→\overrightarrow{\mathbf{OM}}, the orthogonal component, is given by:

    OM→=a→−ON→=a→−(a→⋅b^)b^\overrightarrow{\mathbf{OM}} = \overrightarrow{\mathbf{a}} - \overrightarrow{\mathbf{ON}} = \overrightarrow{\mathbf{a}}-(\overrightarrow{\mathbf{a}} \cdot \hat{\mathbf{b}}) \hat{\mathbf{b}}

    This vector is perpendicular to b→\overrightarrow{\mathbf{b}}, satisfying:

    OM→⋅b→=0\overrightarrow{\mathbf{OM}} \cdot \overrightarrow{\mathbf{b}} = 0

Since OM→\overrightarrow{\mathbf{OM}} represents the component of a→\overrightarrow{\mathbf{a}} that is independent of b→\overrightarrow{\mathbf{b}}, this decomposition separates a→\overrightarrow{\mathbf{a}} into two distinct parts:

  • The parallel part, fully aligned with b→\overrightarrow{\mathbf{b}}.
  • The orthogonal part, completely independent of b→\overrightarrow{\mathbf{b}}.
Section 7 of 15 · Vector Algebra and Three Dimensional Geometry

Mark this section complete when you have worked through its proofs.