ArticleslgStudy

mathematics

Singular value decomposition

Singular value decomposition is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Singular value decomposition rather than just read about it. In short: In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix into a rotation, followed by a scaling, followed by another rotation. It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any ⁠m×n⁠ matrix.

Singular value decomposition — main illustration
Singular value decomposition — illustration

Key takeaways

  • Singular value decomposition belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Singular value decomposition to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Singular value decomposition from memory before moving on to harder problems.

Reference excerpt

In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix into a rotation, followed by a scaling, followed by another rotation. It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any ⁠m×n⁠ matrix. It is related to the polar decomposition, and is a common means for implementing low-rank approximation for matrices. Specifically, the singular value decomposition of an m×n complex matrix ⁠𝐌⁠ is a factorization of the form ⁠𝐌=𝐔𝜮𝐕∗⁠, where ⁠𝐔⁠ is an ⁠m×m⁠ complex unitary matrix, 𝜮 is an m×n rectangular diagonal matrix with non-negative real numbers on the diagonal, ⁠𝐕⁠ is an n×n complex unitary matrix, and ⁠𝐕∗⁠ is the conjugate transpose of ⁠𝐕⁠. Such decompositions always exist for any complex matrix. If ⁠𝐌⁠ is real, then some ⁠𝐔⁠ and ⁠𝐕⁠ can be found which are real (orthogonal) matrices; a real-valued SVD is often denoted ⁠𝐔𝜮𝐕𝖳⁠, where ⁠𝐕𝖳⁠ is the transpose of ⁠𝐕⁠. The diagonal entries σi=𝜮i,i of 𝜮 are uniquely determined by ⁠𝐌⁠, up to reordering, and are known as the singular values of ⁠𝐌⁠. Conventionally they are arranged in descending order (from largest to smallest), which uniquely determines ⁠𝜮⁠. The number of non-zero singular values, allowing repetitions, is equal to ⁠r⁠, the rank of ⁠𝐌⁠. The columns of ⁠𝐔⁠ and the columns of ⁠𝐕⁠ are called left-singular vectors and right-singular vectors of ⁠𝐌⁠, respectively. They form two orthonormal bases, ⁠{𝐮1,…,𝐮m}⁠ and ⁠{𝐯1,…,𝐯n}⁠. In general the SVD is not unique, with certain unitary transformations of ⁠𝐔⁠ and ⁠𝐕⁠ producing valid alternative decompositions. The term SVD sometimes refers to the compact SVD, a similar decomposition ⁠𝐌=𝐔r𝜮r𝐕r∗⁠, in which ⁠𝜮r⁠ is an ⁠r×r⁠ matrix with only the non-zero singular values (allowing repetitions) on its main diagonal. In this variant, ⁠𝐔r⁠ is an ⁠m×r⁠ semi-unitary matrix whose columns ⁠{𝐮1,…,𝐮r}⁠ span the columns of ⁠𝐌⁠, and 𝐕r is an ⁠n×r⁠ semi-unitary matrix whose columns ⁠{𝐯1,…,𝐯r}⁠ span the columns of ⁠𝐌∗⁠. The SVD (with sorted singular values) splits ⁠𝐌⁠ into a sum of ⁠r⁠ rank-⁠1⁠ matrices, 𝐌=σ1𝐮1𝐯1∗+σ2𝐮2𝐯2∗+⋯+σr𝐮r𝐯r∗. Mathematical applications of the SVD include computing the pseudoinverse, matrix approximation, and determining the rank, range, and null space of a matrix. The SVD is also extremely useful in many areas of science, engineering, and statistics, such as signal processing, least squares fitting of data, and process control.

Intuitive interpretations

Rotation/reflection, coordinate scaling, rotation/reflection In the special case when ⁠𝐌⁠ is an ⁠m×m⁠ real square matrix, the matrices ⁠𝐔⁠ and ⁠𝐕∗⁠ can be chosen to be real orthogonal ⁠m×m⁠ matrices. ⁠𝐌⁠ can be interpreted to represent a linear transformation ⁠𝐱↦𝐌𝐱⁠ of the Euclidean space ⁠ℝm⁠; then the matrices ⁠𝐔⁠ and ⁠𝐕∗⁠ represent rotations or reflections of the space, while ⁠𝜮⁠ represents the scaling of each coordinate ⁠𝐱i⁠ by the factor ⁠σi⁠. Thus the SVD decomposition breaks down any linear transformation of ⁠ℝm⁠ into a composition of three geometric transformations: a rotation or reflection ⁠𝐕∗⁠ followed by a coordinate-by-coordinate scaling ⁠𝜮⁠ followed by another rotation or reflection ⁠𝐔⁠. In particular, if ⁠𝐌⁠ has a positive determinant, then ⁠𝐔⁠ and ⁠𝐕∗⁠ can be chosen to be both rotations with reflections, or both rotations without reflections. If the determinant is negative, exactly one of them will have a reflection. If the determinant is zero, each can be independently chosen to be of either type. In the more general case when the matrix ⁠𝐌⁠ is real but not square, namely ⁠m×n⁠ with ⁠m≠n⁠, it can be interpreted as a linear transformation from ⁠ℝn⁠ to ⁠ℝm⁠. Then ⁠𝐔⁠ and ⁠𝐕∗⁠ can be chosen to be rotations/reflections of ⁠ℝm⁠ and ⁠ℝn⁠, respectively; and ⁠𝜮⁠, besides scaling the first ⁠min⁡{m,n}⁠ coordinates, also extends the vector with zeros and Σ, i.e. removes trailing coordinates, so as to turn ⁠ℝn⁠ into ⁠ℝm⁠.

Singular values as semiaxes of an ellipse or ellipsoid As shown in the figure, the singular values can be interpreted as the magnitude of the semiaxes of an ellipse in 2D. This concept can be generalized to ⁠n⁠-dimensional Euclidean space, with the singular values of any ⁠n×n⁠ square matrix being viewed as the magnitude of the semiaxis of an ⁠n⁠-dimensional ellipsoid. Similarly, the singular values of any ⁠m×n⁠ matrix can be viewed as the magnitude of the semiaxis of an ⁠n⁠-dimensional ellipsoid in ⁠m⁠-dimensional space, for example as an ellipse in a (tilted) 2D plane in a 3D space. Singular values encode magnitude of the semiaxis, while singular vectors encode direction. See below for further details.

The columns of U and V are orthonormal bases Since ⁠𝐔⁠ and ⁠𝐕∗⁠ are unitary, the columns of each of them form a set of orthonormal vectors, which can be regarded as basis vectors. The matrix ⁠𝐌⁠ maps the basis vector ⁠𝐯i⁠ to the stretched unit vector ⁠σi𝐮i⁠. By the definition of a unitary matrix, the same is true for their conjugate transposes ⁠𝐔∗⁠ and ⁠𝐕⁠, except the geometric interpretation of the singular values as stretches is lost. In short, the columns of ⁠𝐔⁠, ⁠𝐔∗⁠, ⁠𝐕⁠, and ⁠𝐕∗⁠ are orthonormal bases. When ⁠𝐌⁠ is a positive-semidefinite Hermitian matrix, ⁠𝐔⁠ and ⁠𝐕⁠ are both equal to the unitary matrix used to diagonalize ⁠𝐌⁠. However, when ⁠𝐌⁠ is not positive-semidefinite and Hermitian but still diagonalizable, its eigendecomposition and singular value decomposition are distinct.

Relation to the four fundamental subspaces The first ⁠r⁠ columns of ⁠𝐔⁠ are a basis of the column space of ⁠𝐌⁠. The last ⁠m−r⁠ columns of ⁠𝐔⁠ are a basis of the null space of ⁠𝐌∗⁠. The first ⁠r⁠ columns of ⁠𝐕⁠ are a basis of the column space of ⁠𝐌∗⁠ (the row space of ⁠𝐌⁠ in the real case). The last ⁠n−r⁠ columns of ⁠𝐕⁠ are a basis of the null space of ⁠𝐌⁠.

… excerpt ends here. Continue reading the full article.

Illustrations

Singular value decomposition: Illustration of the singular value decomposition .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}UΣV* of a real 2 × 2 matrix M..mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}Top: The action of M, indicated by its effect on the unit disc D and the two canonical unit vectors e1 and e2.Left: The action of V*, a rotation, on D, e1, and e2.Bottom: The action of Σ, a scaling by the singular values σ1, horizontally, and σ2, vertically.Right: The action of U, another rotation.
Illustration of the singular value decomposition .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}UΣV* of a real 2 × 2 matrix M..mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}Top: The action of M, indicated by its effect on the unit disc D and the two canonical unit vectors e1 and e2.Left: The action of V*, a rotation, on D, e1, and e2.Bottom: The action of Σ, a scaling by the singular values σ1, horizontally, and σ2, vertically.Right: The action of U, another rotation.
Singular value decomposition: Animated illustration of the SVD of a 2D, real shearing matrix M. First, we see the unit disc in blue together with the two canonical unit vectors. We then see the actions of M, which distorts the disk to an ellipse. The SVD decomposes M into three simple transformations: an initial rotation V*, a scaling Σ along the coordinate axes, and a final rotation U. The lengths σ1 and σ2 of the semi-axes of the ellipse are the singular values of M, namely Σ1,1 and Σ2,2.
Animated illustration of the SVD of a 2D, real shearing matrix M. First, we see the unit disc in blue together with the two canonical unit vectors. We then see the actions of M, which distorts the disk to an ellipse. The SVD decomposes M into three simple transformations: an initial rotation V*, a scaling Σ along the coordinate axes, and a final rotation U. The lengths σ1 and σ2 of the semi-axes of the ellipse are the singular values of M, namely Σ1,1 and Σ2,2.
Singular value decomposition: Visualization of the matrix multiplications in singular value decomposition
Visualization of the matrix multiplications in singular value decomposition
Singular value decomposition: If a bitmap image is interpreted as a matrix, the SVD can be used for image compression. Here an original photograph (upper-left) is compared with low-rank approximations of rank 1, 10, and 100.
If a bitmap image is interpreted as a matrix, the SVD can be used for image compression. Here an original photograph (upper-left) is compared with low-rank approximations of rank 1, 10, and 100.
Singular value decomposition: Visualization of Reduced SVD variants. From top to bottom: 1: Full SVD,

2: Thin SVD (remove columns of U not corresponding to rows of V*),

3: Compact SVD (remove null singular values and corresponding columns/rows in U and V*),

4: Truncated SVD (keep only largest t singular values and corresponding columns/rows in U and V*).
Visualization of Reduced SVD variants. From top to bottom: 1: Full SVD, 2: Thin SVD (remove columns of U not corresponding to rows of V*), 3: Compact SVD (remove null singular values and corresponding columns/rows in U and V*), 4: Truncated SVD (keep only largest t singular values and corresponding columns/rows in U and V*).

Worked examples

Example 1 — a first encounter with Singular value decomposition

Start with the simplest possible case. Write down what Singular value decomposition claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Singular value decomposition before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Singular value decomposition ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Singular value decomposition

In research
Singular value decomposition appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Singular value decomposition in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Singular value decomposition is common in secondary-school and first-year university syllabi. It links to neighbouring topics Functional analysis, Linear algebra, Matrix decompositions, so understanding it makes those chapters shorter.
In everyday life
Look for Singular value decomposition outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Singular value decomposition” →

How to study Singular value decomposition in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Singular value decomposition means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Singular value decomposition out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Singular value decomposition in simple terms?

In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix into a rotation, followed by a scaling, followed by another rotation. It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any ⁠m×n⁠ matrix.

Why does Singular value decomposition matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Singular value decomposition?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Singular value decomposition.

Tags

  • Functional analysis
  • Linear algebra
  • Matrix decompositions
  • Matrix theory
  • Numerical linear algebra
  • Singular value decomposition

Keep exploring