Course contentsShow
← Mathematics
Lesson 2229 of 3,12146. Linear Algebra — Inner Products and OrthogonalityFree lesson

Orthogonal Projection onto a Line

Project vectors onto one-dimensional subspaces using the inner product formula for scalar projection.

Orthogonal Projection onto a Line

What You'll Learn

You'll learn how to project any vector onto a one-dimensional subspace (a line through the origin) using the inner product.

The Core Idea

Imagine you're standing under a streetlight and your shadow falls on the ground. Your shadow is a "projection" of you onto the flat surface. In vector spaces, orthogonal projection works similarly: given a vector v and a line defined by a direction vector u, we find the "shadow" of v that falls directly onto that line.

The key insight is that this projection is the component of v that points in the direction of u. Everything perpendicular to u is "dropped."

The Formula

To project vector v onto the line spanned by vector u, we use:

proj_u(v) = (⟨v, u⟩ / ⟨u, u⟩) u

Let's break this down:

  • ⟨v, u⟩ measures how much v points in the direction of u (the inner product)
  • ⟨u, u⟩ is the squared length of u (normalizing factor)
  • The ratio gives us the scalar amount to scale u
  • Multiplying by u gives us a vector along the line

Why It Works

The scalar (⟨v, u⟩ / ⟨u, u⟩) tells us "how many u's fit into v" along the direction of u. This is exactly the scalar projection formula you've seen before, now applied geometrically. The resulting vector proj_u(v) lies entirely on the line spanned by u and is the closest point on that line to v.

The difference v - proj_u(v) is orthogonal to u, meaning the projection really is "perpendicular."

Key Takeaway: Orthogonal projection onto a line uses the formula proj_u(v) = (⟨v, u⟩ / ⟨u, u⟩) u to find the component of v parallel to u, dropping everything perpendicular.