Skip to lesson content

Lesson 6 of 9

Vector Algebra · Lesson 6 of 9

Projections and Dot Product Applications

“Use projections and dot-product identities to resolve vectors, calculate lengths and explain geometric inequalities.”

Learning Objectives

• Distinguish signed scalar projection, projection length and vector projection. • Resolve a vector into parts parallel and perpendicular to a direction. • Expand squared magnitudes using the dot product. • Explain Cauchy–Schwarz and the triangle inequality, including equality cases. • Use dot-product relations to solve multi-vector problems.

How much of a vector lies along a direction?

Imagine shining light perpendicular to a directed line so that a vector casts a shadow on it. The shadow records only the part along the line. Because the line has a positive direction, this part may be positive, negative or zero.

Definition
Signed scalar projection

For a unit vector along a directed line, the scalar projection of is . It is a signed number. Its absolute value is the nonnegative length of the projected segment.

Projection onto a nonzero vectorLaTeX
The first expression is a scalar. The second multiplies that scalar by the unit direction , so it is a vector.
Positive and negative scalar projectionacute: positive componentobtuse: negative component+u+u
Positive and negative scalar projection— The dashed perpendicular finds the shadow. The projection vector follows the shadow arrow.

For a vector with positive projection, its projection vector points along ; for a negative projection, it points opposite to . If the vectors are perpendicular, both the scalar projection and projection vector are zero. If already lies on the projection line, its vector projection is itself, including when it points opposite to the chosen positive direction.

The familiar scalar components are projections too: , , . This explains why dividing these numbers by gives the cosines of the angles with the positive axes.

Example — A scalar projection and its vector

Problem
Project onto .

  1. 1.The dot product is and .
  2. 2.The signed scalar projection is . It is positive.
  3. 3.The vector projection is . This vector, unlike the scalar answer, includes direction.

Parallel and perpendicular parts

Once the parallel part is known, subtract it from the original vector to get the remaining part. This remainder is perpendicular to the chosen direction. The decomposition gives a geometric meaning to a scalar-product equation.

Resolving a vectorLaTeX
For , dotting the remainder with gives .
Example — Resolving a vector into two parts

Problem
Write as a sum of a vector parallel to and a vector perpendicular to it.

  1. 1.Let the parallel part be . Then .
  2. 2.Perpendicularity requires . Therefore .
  3. 3.Thus and .
  4. 4.Check that their sum is and that for the perpendicularity test.

Lengths hidden inside dot products

The identity turns vector expressions into equations involving lengths. Distribute carefully, keeping both cross terms before combining them. This is the vector counterpart of expanding a square, with a dot product taking the place of ordinary multiplication.

Squared sum and differenceLaTeX
The cross terms combine because the dot product is commutative. Take a nonnegative square root only after finding the squared magnitude.
Example — Length without coordinates

Problem
Find if , and .

  1. 1.Expand the squared difference: .
  2. 2.Substituting gives .
  3. 3.Therefore . A magnitude is nonnegative, so there is no negative-square-root answer.
Example — Cancellation of cross terms

Problem
If is a unit vector and , find .

  1. 1.Expanding gives .
  2. 2.The middle terms cancel by commutativity, and . Thus .
  3. 3.Hence and .

Why a product and a resultant have bounds

The cosine in a dot product can never have absolute value greater than one. This simple fact sets a universal bound on the scalar product. That bound, in turn, explains why taking a detour cannot produce a shorter route than the direct displacement.

Cauchy–Schwarz inequalityLaTeX
For nonzero inputs, divide by the two magnitudes to get . If an input is zero, both sides are zero.

Equality in this product bound holds for nonzero collinear vectors: they may point in the same or in opposite directions. The triangle inequality below has a more restrictive equality condition, because it bounds the magnitude of a sum.

Triangle inequalityLaTeX
Expand the square, use , and compare with .

In detail, . Both compared quantities are nonnegative, so taking square roots preserves the inequality. For two nonzero vectors, equality requires : the directions must agree. If either vector is zero, equality also holds.

The direct route and the detourABC|AB||BC||AC|
The direct route and the detour— The orange displacement AC is no longer than the two-edge route AB followed by BC.
Example — Collinearity from lengths

Problem
For , and , show that the points are collinear.

  1. 1.The successive vectors are , and .
  2. 2.Their magnitudes are , and . Therefore .
  3. 3.Equality in the triangle inequality means the two successive nonzero displacements point in the same direction. Thus the three points are collinear, with B between A and C.
  4. 4.The identity would hold for any three points and would not by itself establish this conclusion.

Several vectors in one relationship

When three vectors are related, expanding a squared sum may be more efficient than finding individual coordinates. Translate each stated perpendicularity into a zero dot product. Then group terms according to the information actually given.

Example — Perpendicular to the other two together

Problem
Let , , , and suppose each vector is perpendicular to the sum of the other two. Find .

  1. 1.The conditions say .
  2. 2.Expand the squared magnitude, grouping it as .
  3. 3.The grouped mixed terms vanish, leaving . Therefore the required magnitude is .
Example — A zero resultant constrains pairwise products

Problem
If and the magnitudes are 3, 4 and 2, find .

  1. 1.Dot the zero-resultant equation with itself. Its left side is zero.
  2. 2.Expand to get .
  3. 3.Thus twice the required sum is , giving . This approach uses the complete relation rather than trying to determine all three products separately.
Common mistake

A signed scalar projection may be negative, but the length of a projected segment cannot be. Also, opposite nonzero vectors give equality in Cauchy–Schwarz but generally do not give equality in the triangle inequality.

Quiz

Quick check

Project as a signed scalar onto the direction . The answer is

Quick check

Which expression is the vector projection of a onto a nonzero b?

Quick check

If , and , then is

Quick check

For two nonzero vectors, equality in the triangle inequality occurs when they are

Quick check

If is resolved relative to nonzero , which must hold?

Practice Problems

Practice Problems
  1. Find the signed scalar and vector projections of onto .
  2. Find the scalar projection of onto .
  3. Resolve into parts parallel and perpendicular to . Verify the perpendicular part using a dot product.
  4. Given , and , find both and .
  5. Prove the triangle inequality from the squared magnitude identity. Explain why opposite directions are not an equality case for two nonzero inputs.
  6. Show that , and are collinear, and identify the point between the other two.
  7. If three vectors have zero sum and squared magnitudes 4, 9 and 16, find the sum of their three pairwise dot products.

Key Takeaways

Key Takeaways

Scalar projection is signed; projection length is its absolute value; vector projection includes direction. Subtracting the parallel projection leaves a perpendicular remainder. A squared vector magnitude is a self-dot product, enabling useful algebraic expansions. Cauchy–Schwarz bounds a dot product; the triangle inequality bounds a resultant length. For nonzero inputs, equality in the triangle inequality requires the same direction.