Welcome to the second module of our course. In the previous lesson, we concluded our geometric tour of linear algebra by introducing matrix norms, which measure the "size" of a linear transformation. We saw a tantalizing preview of the singular value decomposition (SVD), noting that a matrix's largest singular value, , corresponds to its spectral norm—the maximum "stretching factor" it can apply to a vector.
In this lesson, we will formally derive the Singular Value Decomposition. We'll move beyond the geometric intuition and construct the SVD from first principles for any matrix . The central goal is to prove that any matrix can be factored into a product of a rotation, a scaling, and another rotation, and to establish the profound connection between a matrix's singular values and the eigenvalues of the related symmetric matrices and .
The Goal: A Universal Decomposition
The eigendecomposition you are familiar with, , is incredibly powerful, but it has its limitations. It only applies to square matrices, and a well-behaved eigenbasis isn't always guaranteed. For symmetric matrices, however, the situation is perfect: the decomposition becomes , where is an orthogonal matrix representing a pure rotation. This cleanly separates the transformation's geometry into a rotation (), an axis-aligned scaling (), and a rotation back ().
What if we could achieve a similarly clean, geometric decomposition for any matrix, even rectangular ones? This is the core problem that SVD solves. The following reading outlines this motivation and the strategy we will use to solve it.
Deriving SVD from First Principles: An Intuitive Guide
This article provides an intuitive, step-by-step derivation of the SVD. We'll start with the sections that frame the problem and outline the clever strategy for solving it.
Please read the sections titled "The Problem to Solve" and "The Strategy". The key insight is that even if A isn't symmetric, we can always construct symmetric matrices from it—namely, A^TA and AA^T—and leverage their "superpowers".
Deriving the SVD from
The strategy is to find a special orthonormal basis for the input space (the row space) and a special orthonormal basis for the output space (the column space) such that the matrix maps basis vectors from the first set to scaled versions of the basis vectors in the second set.
Let be an matrix. We are looking for three matrices, , , and , such that , where:
- is an orthogonal matrix whose columns form an orthonormal basis for the input space .
- is an orthogonal matrix whose columns form an orthonormal basis for the output space .
- is an diagonal matrix containing non-negative "stretching factors" or singular values, .
The core relationship we seek is . Let's see how we can construct these components.
-
Finding the input basis V and singular values :
The key lies in the symmetric, positive semi-definite matrix . Since is symmetric, it has a full set of orthonormal eigenvectors. Let's call them , which will form the columns of our matrix . The corresponding eigenvalues are all non-negative.Now, let's examine the length of the transformed vectors .
This is a remarkable result. The squared length of the transformed vector is simply the corresponding eigenvalue . This naturally leads us to define the singular values as the square roots of these eigenvalues:
-
Finding the output basis U:
We have the input vectors and the scaling factors . All that's left is to define the output vectors . The relationship suggests a natural definition for the . For all singular values , we define as the normalized output vector:By definition, these vectors are unit vectors. But are they orthogonal? Let's check. For :
Since the eigenvectors of the symmetric matrix are orthogonal, for . Therefore, . The set of vectors is indeed orthonormal.
We have now successfully constructed the components. The relation can be rearranged to . If we write this for all vectors in matrix form, we get , which gives our final result by multiplying by :
The following reading walks through this exact derivation in a narrative style.
Deriving SVD from First Principles: An Intuitive Guide
Now let's see the full derivation laid out. This section puts the pieces from our strategy into a formal argument.
Read the text starting from the formal derivation. Pay close attention to how the orthogonality of V is used to show the orthogonality of the resulting vectors AV, which then leads to the definition of U.
The Role of
We built the SVD by analyzing . What happens if we analyze instead? Professor Gilbert Strang offers a particularly elegant perspective that starts with the decomposition and examines and to see what they reveal about the components.
Singular Value Decomposition (the SVD)
In this classic MIT OpenCourseWare video, Gilbert Strang derives the SVD's relationship to both AᵀA and AAᵀ.
Watch the following two segments: Analyzing AᵀA: Here, Strang computes A^TA from A=U\Sigma V^T. The result is A^TA = V(\Sigma^T\Sigma)V^T. This is precisely the eigendecomposition of A^TA, confirming that V is the matrix of eigenvectors and the eigenvalues are \lambda_i = \sigma_i^2. Analyzing AAᵀ: He then does the same for AA^T, yielding AA^T = U(\Sigma\Sigma^T)U^T. This shows that U must be the matrix of eigenvectors for AA^T, and its non-zero eigenvalues are also \sigma_i^2.
This confirms a symmetric and beautiful relationship. The two matrices and , while potentially of different sizes, are intimately linked. They share the same non-zero eigenvalues (), and their respective eigenvector matrices are none other than the and from the SVD of .
The following reading provides one final confirmation of this fact.
Deriving SVD from First Principles: An Intuitive Guide
This short section provides the algebraic proof that U is the eigenbasis of AAᵀ, solidifying the connection.
Please read the section titled "U is an Eigenbasis of AAᵀ". This completes the puzzle, showing how U, V, and Σ tie everything together.
Summary of the SVD
Let's consolidate what we have derived. For any matrix of rank , its Singular Value Decomposition is .

The geometric interpretation of this decomposition is a sequence of three operations:
- Rotation (): An input vector is rotated by without changing its length. The new coordinates are in the basis of the right singular vectors ().
- Scaling (): The rotated vector is stretched along each of the new axes by the corresponding singular values .
- Rotation (): The scaled vector is rotated by to its final position in the output space.

Conclusion
In this lesson, we have formally derived the Singular Value Decomposition, one of the most fundamental and versatile tools in linear algebra.
Key Takeaways:
- Any matrix can be factored as , where and are orthogonal matrices and is a diagonal matrix of non-negative singular values.
- The right singular vectors (columns of ) are the orthonormal eigenvectors of the symmetric matrix .
- The left singular vectors (columns of ) are the orthonormal eigenvectors of the symmetric matrix .
- The non-zero singular values () are the square roots of the non-zero eigenvalues of both and .
So far, we have focused on the existence and derivation of the SVD. In the next lesson, we will put this powerful tool to work, using it to analyze fundamental properties of a matrix, such as its rank, condition number, and the geometry of its four fundamental subspaces.