Skip to content
← All questions

What is the formula for the orthogonal projection of a vector y onto a line spanned by a nonzero vector v?

The orthogonal projection of yy onto the line spanned by a nonzero vector vv is given by the formula y⋅vv⋅vv\frac{y \cdot v}{v \cdot v} v. This formula scales the vector vv by the ratio of the dot product of yy and vv to the dot product of vv with itself.

Conditions

  • The vector vv must be nonzero.
  • The projection is onto the line spanned by vv.

Reasoning, step by step

  1. Identify the vector yy to be projected.
  2. Identify the nonzero vector vv that spans the target line.
  3. Compute the dot product y⋅vy \cdot v.
  4. Compute the dot product v⋅vv \cdot v.
  5. Divide the result of step 3 by the result of step 4 to get the scalar coefficient.
  6. Multiply the vector vv by this scalar coefficient to obtain the projection vector.

Example

The script states: 'For the line spanned by a nonzero v, the projection of y is [(y⋅vy\cdot v)/(v⋅vv\cdot v)]v.'

Common misconceptions

  • Using v⋅vv \cdot v in the numerator instead of the denominator.
  • Forgetting to multiply the scalar coefficient by the vector vv at the end.
  • Assuming the formula works if vv is the zero vector (division by zero).

Watch the explanation

Connected concepts

Explore next

Related questions

Find a method

↗
Understand why

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.