Singular Value Decomposition
Every matrix, of any shape, is a rotation, then a stretch along perpendicular axes, then another rotation.
Needs a step first: 13
The singular value decomposition writes any matrix as , with and orthogonal and the singular values down the diagonal of ; they are the square roots of the eigenvalues of . Keeping only the largest few gives the best low-rank approximation of , which is how data, images and models are compressed. It works where eigenvectors fail: for matrices that are not square or not symmetric.
Where it shows up: PCA is the SVD of a centred data matrix, and LoRA fine-tunes a large language model by learning a low-rank update to its weights.
How to hold it: Give it to the machine, then check
Let a computer compute the SVD; know that it turns the unit circle into an ellipse with semi-axes , and check that and are orthogonal, that rebuilds , and that dropping the small singular values changes little.
What knowing it looks like
- Find the singular values of a matrix from the eigenvalues of .
- Build the best rank-one approximation and say how large its error is.
- Describe what a matrix does to the unit circle: it becomes an ellipse with semi-axes and .
Test yourself
Let . Find its singular values and its best rank-one approximation.
Show the worked answer
Needs a step first: 13
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 "Singular Value Decomposition" (Undergraduate II tier): Every matrix, of any shape, is a rotation, then a stretch along perpendicular axes, then another rotation.
I already know: The Spectral Theorem.
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 $A=\begin{pmatrix}3&0\\4&5\end{pmatrix}$. Find its singular values and its best rank-one approximation.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.Needs first
Leads 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.