Advanced Mathematics

Orthogonality and Projections

Perpendicular vectors, and how to split any vector into a part inside a subspace and a part at right angles to it.

Needs a step first: 9

Two vectors are orthogonal when their dot product is zero. The projection of bb onto the line through aa is a⋅ba⋅a a\frac{a\cdot b}{a\cdot a}\,a, the point of the line nearest to bb, and what is left over is perpendicular to the line. Bases of mutually perpendicular unit vectors make everything simpler, since coordinates are just dot products, and Gram–Schmidt builds one from any basis. Least squares, Fourier series and the spectral theorem are all projections.

Where it shows up: Least squares projects data onto the column space of a model, and a quantum measurement projects the state onto an eigenvector.

How to hold it: In your head

See a projection as the nearest point in a subspace, with the leftover always perpendicular to it, and know that in an orthonormal basis coordinates are just dot products.

What knowing it looks like

  • Project a vector onto a line or a plane and check that the remainder is perpendicular.
  • Turn two or three vectors into an orthonormal basis with Gram–Schmidt.
  • Find the coordinates of a vector in an orthonormal basis using dot products alone.

Test yourself

Let b=(1,2,3)b=(1,2,3) and a=(1,1,1)a=(1,1,1). Find the projection of bb onto the line through aa, the projection of bb onto the plane x+y+z=0x+y+z=0, and the distance from bb to the line.
Show the worked answer
a⋅b=6a\cdot b=6 and a⋅a=3a\cdot a=3, so the projection onto the line is 2a=(2,2,2)2a=(2,2,2). The plane x+y+z=0x+y+z=0 is exactly the set of vectors perpendicular to aa, so the projection onto it is the remainder b−(2,2,2)=(−1,0,1)b-(2,2,2)=(-1,0,1); check that (−1,0,1)⋅a=0(-1,0,1)\cdot a=0. The distance from bb to the line is the length of that remainder, 2\sqrt2.

Needs a step first: 9

Learn it with an AI

Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.

Be my maths tutor. I'm learning "Orthogonality and Projections" (Undergraduate I tier): Perpendicular vectors, and how to split any vector into a part inside a subspace and a part at right angles to it.
I already know: Dot and Cross Products, Vector Spaces, Basis and Dimension.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: Let $b=(1,2,3)$ and $a=(1,1,1)$. Find the projection of $b$ onto the line through $a$, the projection of $b$ onto the plane $x+y+z=0$, and the distance from $b$ to the line.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

On the way to

Recommended