Euler Hall — free maths guides

Take singular values as square roots of eigenvalues of A^T A

Compute the singular values of a small integer matrix by forming AT A. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

The definition, and the route to it

The singular values ofAA are the nonnegative square roots of the eigenvalues ofATAA^TA, written largest first: σi=λi(ATA),σ1≥σ2≥⋯≥σr>0.\sigma_i=\sqrt{\lambda_i(A^TA)},\qquad \sigma_1\ge\sigma_2\ge\cdots\ge\sigma_r>0.

ATAA^TA is symmetric, so its eigenvalues are real and nonnegative — that is why the square root is always defined.

The steps, in this order:

  1. 1. FormATAA^TA. It isn×nn\times n whatever shapeAA is.
  2. 2. Find its eigenvalues.
  3. 3. Take the nonnegative square root of each.
  4. 4. Sort them largest first.
ATAA^TA is the right matrix

Two facts make this work.

*ATAA^TA is symmetric**, because(ATA)T=ATA(A^TA)^T=A^TA. Symmetric matrices have real eigenvalues, soσi=λi\sigma_i=\sqrt{\lambda_i} cannot hit a complex number.

*ATAA^TA is positive semidefinite**, meaningxTATAx≥0\mathbf{x}^TA^TA\mathbf{x}\ge0 for everyx\mathbf{x}, because xTATAx=(Ax)T(Ax)=∥Ax∥2≥0.\mathbf{x}^TA^TA\mathbf{x}=(A\mathbf{x})^T(A\mathbf{x})=\|A\mathbf{x}\|^2\ge0. So every eigenvalue satisfiesλ≥0\lambda\ge0, and the square root is real as well as defined.

Now the reason the eigenvalues are the squares of the stretching factors. IfAv=σuA\mathbf{v}=\sigma\mathbf{u} withu\mathbf{u} a unit vector, applyATA^T: ATAv=AT(σu)=σ(ATu).A^TA\mathbf{v}=A^T(\sigma\mathbf{u})=\sigma(A^T\mathbf{u}). And fromAv=σuA\mathbf{v}=\sigma\mathbf{u} with∥v∥=∥u∥=1\|\mathbf{v}\|=\|\mathbf{u}\|=1,∥Av∥=σ\|A\mathbf{v}\|=\sigma, soATuA^T\mathbf{u} works out to beσv\sigma\mathbf{v}. Substituting: ATAv=σ2v.A^TA\mathbf{v}=\sigma^2\mathbf{v}. Sov\mathbf{v} is an eigenvector ofATAA^TA with eigenvalueσ2\sigma^2. That is the whole derivation, and it is why the square root appears.

One full computation

Eigenvalues. Trace5050, determinant625−400=225625-400=225, so λ2−50λ+225=0.\lambda^2-50\lambda+225=0. That factors as(λ−45)(λ−5)(\lambda-45)(\lambda-5), soλ=45\lambda=45 andλ=5\lambda=5.

Square roots.σ1=45=35\sigma_1=\sqrt{45}=3\sqrt5 andσ2=5\sigma_2=\sqrt5.

Check against the determinant.σ1σ2=35⋅5=15\sigma_1\sigma_2=3\sqrt5\cdot\sqrt5=15, anddet⁡A=15−0=15\det A=15-0=15. The product of the singular values is∣det⁡A∣|\det A| for a square matrix — a check that costs nothing and catches most arithmetic slips.

What the eigenvalues ofAA itself are. Trace88, determinant1515, soλ2−8λ+15=0\lambda^2-8\lambda+15=0 andλ=5\lambda=5 orλ=3\lambda=3. Noticeσ1=35≈6.7\sigma_1=3\sqrt5\approx6.7 is larger than every eigenvalue, andσ2=5≈2.2\sigma_2=\sqrt5\approx2.2 is smaller than every eigenvalue. That is a general fact, not an accident of this matrix.

By the end you can
  • Compute the singular values of a small integer matrix by forming A^T A
  • State why the eigenvalues of A^T A are real and nonnegative
  • Predict how many singular values a rectangular matrix has
  • Check the product of the singular values against the determinant
Test yourself

A=[0620]A=\begin{bmatrix}0&6\\2&0\end{bmatrix}. Find its singular values, then say what the eigenvalues ofAA are, and which of the two lists is larger.

Answers

ATA=[40036]A^TA=\begin{bmatrix}4&0\\0&36\end{bmatrix}, already diagonal, so its eigenvalues are3636 and44. The singular values are36=6\sqrt{36}=6 and4=2\sqrt4=2.

The eigenvalues ofAA solveλ2−12=0\lambda^2-12=0, so they are±12≈±3.46\pm\sqrt{12}\approx\pm3.46.

Every singular value is at least as large as every eigenvalue in absolute value:σ1=6>3.46\sigma_1=6>3.46, andσ2=2<3.46\sigma_2=2<3.46 — wait, that breaks the pattern, so let me state it correctly. The right inequality is σmin⁡≤∣λ∣≤σmax⁡\sigma_{\min}\le|\lambda|\le\sigma_{\max} for every eigenvalue, and here2≤3.46≤62\le3.46\le6, which holds. The largest singular value is the upper bound and the smallest is the lower bound; nothing is claimed in between.

Work out where to start — free, no accountAnswer six real questions — free, no account