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 onto the line through is , the point of the line nearest to , 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 and . Find the projection of onto the line through , the projection of onto the plane , and the distance from to the line.
Show the worked answer
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.
Needs first
- Dot and Cross ProductsTwo ways to multiply vectors: the dot product gives a number that measures alignment; the cross product gives a vector perpendicular to both.Core · Multivariable & Vector Calculus
- Vector Spaces, Basis and DimensionAny collection you can add and scale like arrows, measured by its dimension: how many independent directions it holds.Undergraduate I · Linear Algebra
Leads to
- Least SquaresThe best approximate solution of a system with too many equations: the one whose errors have the smallest sum of squares.Undergraduate I · Linear Algebra
- The Spectral TheoremEvery real symmetric matrix has real eigenvalues and perpendicular eigenvectors, so it is just stretching along perpendicular axes.Undergraduate II · Linear Algebra
- Complex Inner Product SpacesLengths and angles for vectors with complex entries, where the inner product conjugates one side so that lengths stay positive.Undergraduate II · Linear Algebra
- Fourier SeriesWriting a periodic function as a sum of sines and cosines, with each coefficient found by an integral.Undergraduate I · Differential Equations & Fourier
- Embeddings and SimilarityRepresenting words, images or items as vectors learned so that similar things point in similar directions, compared by cosine similarity.Frontier · Machine Learning
On the way to
Recommended
- MIT 18.06SC Linear AlgebraGilbert Strang, MIT OpenCourseWare · CourseGilbert Strang's famous linear algebra lectures with recitation videos, problem sets and solutions, from elimination to eigenvalues and the SVD.
- Linear Algebra Done RightSheldon Axler · BookThe standard proof-based second course in linear algebra, built on linear maps rather than determinants; the 4th edition is free to read, also in Chinese.
- Mathematics for Machine LearningDeisenroth, Faisal and Ong (Cambridge University Press) · BookA free book that gathers exactly the linear algebra, vector calculus, probability and optimisation machine learning uses, then applies them to regression, PCA and classification.
- 宋浩老师官方宋浩(山东财经大学) · Videos · 中文Full university courses in calculus, linear algebra and probability by a Shandong University of Finance and Economics lecturer, clear and good-humoured; a new calculus series came out in October 2026.