Tutorials › Linear Algebra › The Frobenius Norm From Singular Values

Singular Value Decomposition · Tutorial 798 of 1000

The Frobenius Norm From Singular Values

Use the singular values to compute the Frobenius norm, and understand why the formula works for rectangular and complex matrices.

Advanced 10 min read

What You'll Learn

  • Define the Frobenius norm for real and complex matrices
  • Distinguish the Frobenius norm from its square
  • Prove the identity between squared Frobenius norm and squared singular values
  • Apply the identity to rectangular and complex matrices
  • Check calculations using matrix entries and singular values

Total Matrix Size and the Frobenius Norm

A matrix can be large in several different senses: it can stretch some vectors strongly, or it can have many entries that contribute modestly. The Frobenius norm records the combined size of all its entries. The singular values provide a second way to measure that same total, even when the matrix is rectangular or has complex entries. The link between these descriptions is useful both for calculating a norm and for checking an SVD.

Let \(\mathbf{A}=(a_{ij})\in\mathbb{C}^{m\times n}\), where \(m,n\in\mathbb{N}\). The real case is included by taking all entries to be real. The absolute value of a complex number \(z\) is denoted by \(|z|\), so \(|z|^2=z\overline{z}\). The Frobenius norm squares the absolute value of each entry, adds those squares, and then takes the nonnegative square root.

Definition: The Frobenius norm of \(\mathbf{A}\in\mathbb{C}^{m\times n}\) is \(\|\mathbf{A}\|_F=\left(\sum_{i=1}^{m}\sum_{j=1}^{n}|a_{ij}|^2\right)^{1/2}\). Its square is \(\|\mathbf{A}\|_F^2=\sum_{i=1}^{m}\sum_{j=1}^{n}|a_{ij}|^2\).

For an \(m\times n\) matrix, write \(p=\min(m,n)\). Its singular values are the nonnegative square roots of the eigenvalues of \(\mathbf{A}^{*}\mathbf{A}\), counted with multiplicity and arranged in nonincreasing order. There are \(p\) singular values when zeros are included; any additional eigenvalues of \(\mathbf{A}^{*}\mathbf{A}\) beyond those \(p\) are also zero. Equivalently, a full SVD writes \(\mathbf{A}=\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{*}\), where \(\mathbf{U}\) and \(\mathbf{V}\) are unitary and the diagonal entries of the rectangular matrix \(\boldsymbol{\Sigma}\), up to \(p\), are the singular values. In the real case, the unitary matrices are orthogonal and the conjugate transpose is the transpose.

The Frobenius Norm Identity

Theorem: For every finite matrix \(\mathbf{A}\in\mathbb{C}^{m\times n}\) with singular values \(\sigma_1,\dots,\sigma_p\), where \(p=\min(m,n)\), \(\|\mathbf{A}\|_F^2=\sum_{i=1}^{m}\sum_{j=1}^{n}|a_{ij}|^2=\sum_{k=1}^{p}\sigma_k^2\). Consequently, \(\|\mathbf{A}\|_F=\left(\sum_{k=1}^{p}\sigma_k^2\right)^{1/2}\).

Proof. For a square matrix \(\mathbf{B}\), its trace \(\operatorname{tr}\mathbf{B}\) is the sum of its diagonal entries. First, the diagonal entry in position \(j\) of \(\mathbf{A}^{*}\mathbf{A}\) is \(\sum_{i=1}^{m}\overline{a_{ij}}a_{ij}=\sum_{i=1}^{m}|a_{ij}|^2\). Adding these diagonal entries gives \(\operatorname{tr}(\mathbf{A}^{*}\mathbf{A})=\sum_{j=1}^{n}\sum_{i=1}^{m}|a_{ij}|^2=\|\mathbf{A}\|_F^2\).

Now use a full SVD \(\mathbf{A}=\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{*}\), with \(\mathbf{U}^{*}\mathbf{U}=\mathbf{I}_m\) and \(\mathbf{V}^{*}\mathbf{V}=\mathbf{I}_n\). Then \(\mathbf{A}^{*}\mathbf{A}=\mathbf{V}\boldsymbol{\Sigma}^{*}\boldsymbol{\Sigma}\mathbf{V}^{*}\). For compatible matrices \(\mathbf{X}\) and \(\mathbf{Y}\), the identity \(\operatorname{tr}(\mathbf{X}\mathbf{Y})=\operatorname{tr}(\mathbf{Y}\mathbf{X})\) follows by writing either side as \(\sum_i\sum_j x_{ij}y_{ji}\); both sums contain the same terms. Apply this identity to the product above, using \(\mathbf{V}^{*}\mathbf{V}=\mathbf{I}_n\), to obtain \(\operatorname{tr}(\mathbf{A}^{*}\mathbf{A})=\operatorname{tr}(\boldsymbol{\Sigma}^{*}\boldsymbol{\Sigma})\). The diagonal entries of \(\boldsymbol{\Sigma}^{*}\boldsymbol{\Sigma}\) are \(\sigma_1^2,\dots,\sigma_p^2\), followed, if needed, by zeros. Its trace is therefore \(\sum_{k=1}^{p}\sigma_k^2\). Combining the two trace calculations proves the squared identity. Both sides are nonnegative, so taking their nonnegative square roots gives the norm formula. \(\square\)

The theorem uses the squares of the singular values, not their sum. It also applies without requiring \(\mathbf{A}\) to be square or invertible: zero singular values contribute zero, so rank deficiency causes no exception.

Reading the Identity from a Rectangular Matrix

Worked Example: A Rank-Deficient Rectangular Matrix

Find the Frobenius norm of \(\mathbf{A}=\begin{bmatrix}1&0&1\\0&2&0\end{bmatrix}\) in two ways: from its entries and from its singular values.

There are two rows and three columns, so \(p=2\). Directly from the entries, \(\|\mathbf{A}\|_F^2=|1|^2+|0|^2+|1|^2+|0|^2+|2|^2+|0|^2=6\), and hence \(\|\mathbf{A}\|_F=\sqrt{6}\).

To find the singular values, compute the Gram matrix: \(\mathbf{A}^{*}\mathbf{A}=\begin{bmatrix}1&0&1\\0&4&0\\1&0&1\end{bmatrix}\). The vectors \((0,1,0)^{\top}\), \((1,0,1)^{\top}\), and \((1,0,-1)^{\top}\) are eigenvectors with respective eigenvalues \(4\), \(2\), and \(0\): multiplying the displayed matrix by them gives, respectively, \(4(0,1,0)^{\top}\), \(2(1,0,1)^{\top}\), and \(\mathbf{0}\). Thus the two singular values, including zeros up to \(p=2\), are \(2\) and \(\sqrt{2}\). The third eigenvalue is zero because the Gram matrix has three columns, but it does not add a third singular value when \(p=2\).

Check: The squared singular values sum to \(2^2+(\sqrt{2})^2=4+2=6\), matching the entry calculation. Therefore \(\|\mathbf{A}\|_F=\sqrt{2^2+(\sqrt{2})^2}=\sqrt{6}\).

This example illustrates why a rectangular matrix can have zero singular values even when its displayed Gram matrix has more eigenvalues than there are singular values in the list of length \(p\). Including or omitting extra zeros does not change the sum of squares.

Complex Entries and Absolute Values

Worked Example: A Complex Matrix

Let \(\mathbf{B}=\begin{bmatrix}1&i\\i&1\end{bmatrix}\), where \(i^2=-1\). Compute its Frobenius norm directly, then verify the result from its singular values.

Each of the four entries has absolute value \(1\), since \(|1|^2=1\) and \(|i|^2=i\overline{i}=i(-i)=1\). Therefore \(\|\mathbf{B}\|_F^2=1+1+1+1=4\), so \(\|\mathbf{B}\|_F=2\).

For the singular values, \(\mathbf{B}^{*}=\begin{bmatrix}1&-i\\-i&1\end{bmatrix}\), and multiplication gives \(\mathbf{B}^{*}\mathbf{B}=\begin{bmatrix}2&0\\0&2\end{bmatrix}=2\mathbf{I}_2\). Its eigenvalues are \(2\) and \(2\), so both singular values are \(\sqrt{2}\).

Check: The squared singular values sum to \((\sqrt{2})^2+(\sqrt{2})^2=2+2=4\), agreeing with the sum of squared entry magnitudes. Thus the singular-value calculation gives \(\|\mathbf{B}\|_F=\sqrt{4}=2\).

For complex matrices, replacing \(|a_{ij}|^2\) by \(a_{ij}^2\) is not valid: for example, \(i^2=-1\), whereas \(|i|^2=1\). The conjugation in \(\mathbf{A}^{*}\mathbf{A}\) is what makes its diagonal entries nonnegative and makes the entrywise formula agree with the singular values.

A Square Example and a Useful Entrywise Check

Worked Example: Recovering the Norm from a Gram Matrix

Let \(\mathbf{C}=\begin{bmatrix}2&1\\1&2\end{bmatrix}\). Find its Frobenius norm from both its entries and its singular values.

The sum of squared entries is \(2^2+1^2+1^2+2^2=4+1+1+4=10\), so \(\|\mathbf{C}\|_F=\sqrt{10}\). Since \(\mathbf{C}\) is real, \(\mathbf{C}^{*}=\mathbf{C}^{\top}=\mathbf{C}\), and \(\mathbf{C}^{*}\mathbf{C}=\begin{bmatrix}5&4\\4&5\end{bmatrix}\).

Multiplying this Gram matrix by \((1,1)^{\top}\) gives \((9,9)^{\top}=9(1,1)^{\top}\); multiplying it by \((1,-1)^{\top}\) gives \((1,-1)^{\top}\). These independent eigenvectors account for both eigenvalues, \(9\) and \(1\), so the singular values of \(\mathbf{C}\) are \(3\) and \(1\).

Check: The squared singular values add to \(3^2+1^2=9+1=10\), the same total as the four squared entries. Hence \(\|\mathbf{C}\|_F=\sqrt{3^2+1^2}=\sqrt{10}\).

There is also a direct way to organize the entrywise sum. If \(\mathbf{a}_1,\dots,\mathbf{a}_n\) are the columns of \(\mathbf{A}\), then each column contributes the squared lengths of its entries. In particular, this formula can help catch an omitted entry or an incorrect conjugate.

Proposition: For \(\mathbf{A}\in\mathbb{C}^{m\times n}\), the squared Frobenius norm is the sum of the squared lengths of its columns: \(\|\mathbf{A}\|_F^2=\sum_{j=1}^{n}\|\mathbf{a}_j\|^2\), where \(\mathbf{a}_j\in\mathbb{C}^m\) is column \(j\) and \(\|\mathbf{a}_j\|^2=\sum_{i=1}^{m}|a_{ij}|^2\).

Proof. By the definition of the Frobenius norm, \(\|\mathbf{A}\|_F^2=\sum_{i=1}^{m}\sum_{j=1}^{n}|a_{ij}|^2\). Reordering this finite sum by columns gives \(\sum_{j=1}^{n}\left(\sum_{i=1}^{m}|a_{ij}|^2\right)\). The inner sum is \(\|\mathbf{a}_j\|^2\) by the stated definition of vector length, so the result follows. \(\square\)

Common Mistake: Adding Singular Values

The Frobenius norm is not the sum of the singular values. For example, take \(\mathbf{D}=\begin{bmatrix}3&0\\0&4\end{bmatrix}\). Its singular values are \(4\) and \(3\), since \(\mathbf{D}^{*}\mathbf{D}=\begin{bmatrix}9&0\\0&16\end{bmatrix}\) has eigenvalues \(16\) and \(9\). The incorrect calculation \(\|\mathbf{D}\|_F=4+3=7\) adds the singular values instead of combining their squares.

The correct calculation is \(\|\mathbf{D}\|_F^2=|3|^2+|0|^2+|0|^2+|4|^2=9+16=25\), so \(\|\mathbf{D}\|_F=\sqrt{25}=5\). Using the singular values gives the same answer: \(\sqrt{4^2+3^2}=\sqrt{16+9}=5\). A related error is to report \(25\) as the norm: \(25\) is the squared Frobenius norm, while the Frobenius norm itself is \(5\).

Why the Identity Is Useful

The entry formula is often convenient when a matrix is already written out. The singular-value formula is convenient when an SVD or the eigenvalues of \(\mathbf{A}^{*}\mathbf{A}\) are already known. Agreement between these calculations gives a quick consistency check: a discrepancy signals an error in the entrywise sum, the Gram matrix, or the singular values. For a matrix with many entries, the singular-value expression also summarizes its total squared size using a list of nonnegative numbers.

When checking an answer, keep three details in view: use absolute-value squares for complex entries; include zero singular values if needed to make a list of length \(\min(m,n)\); and take a square root only when moving from the squared norm to the norm itself. These distinctions make the same identity reliable across square, rectangular, real, and complex matrices.

Check Your Understanding

For each question, distinguish the squared Frobenius norm from the Frobenius norm and use exact values.

  1. For \(\mathbf{A}=\begin{bmatrix}1&2\\0&-2\end{bmatrix}\), compute \(\|\mathbf{A}\|_F^2\) and \(\|\mathbf{A}\|_F\) directly from the entries.
  2. A matrix has singular values \(5\), \(1\), and \(0\). What is its Frobenius norm, and what is its squared Frobenius norm?
  3. For \(\mathbf{B}=\begin{bmatrix}i&0\\0&2\end{bmatrix}\), explain why its squared Frobenius norm is \(5\), not \(3\).
  4. In the theorem, why can a zero singular value be included without changing the value of the sum?
  5. For the matrix in the first worked example, verify the eigenvalue \(2\) by multiplying \(\mathbf{A}^{*}\mathbf{A}\) by \((1,0,1)^{\top}\).

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon