Singular Values Calculator

Enter the four entries of a 2×2 matrix to compute its singular values (σ₁, σ₂), condition number, and determinant from the eigenvalues of AᵀA.

Quick Facts

Definition
σᵢ = √(eigenvalues of AᵀA)
Singular values are always real and non-negative, unlike eigenvalues.
2×2 closed form
σ² = (T ± √(T²−4D)) / 2
T = trace(AᵀA) = a²+b²+c²+d², D = det(A)².
Determinant link
σ₁ × σ₂ = |det(A)|
The largest singular value σ₁ equals the spectral norm ‖A‖₂.

Your Results

Calculated
Largest singular value (σ₁)
-
Spectral norm ‖A‖₂
Smallest singular value (σ₂)
-
√(smaller eigenvalue of AᵀA)
Condition number (σ₁ ÷ σ₂)
-
Sensitivity to input error
|det(A)| = σ₁ × σ₂
-
Determinant magnitude check

Ready

Enter the four matrix entries, then press Calculate.

How Singular Values Are Calculated for a 2×2 Matrix

The singular value decomposition (SVD) writes any matrix A as A = UΣVᵀ, where U and V are orthogonal matrices and Σ is a diagonal matrix of non-negative singular values. For a 2×2 matrix A = [[a, b], [c, d]], the singular values σ₁ ≥ σ₂ ≥ 0 are the square roots of the eigenvalues of AᵀA. This calculator uses a closed-form shortcut so you never have to build AᵀA or solve a quadratic by hand.

Formula and method

Rather than multiplying AᵀA explicitly, the singular values can be read off from two scalar quantities: the trace T = trace(AᵀA) = a² + b² + c² + d², and D = det(A)² = (ad − bc)². The eigenvalues of the symmetric matrix AᵀA are λ₁,₂ = (T ± √(T² − 4D)) / 2, and the singular values follow as σ₁ = √λ₁ and σ₂ = √λ₂ (taking the larger root first). Because AᵀA is positive semi-definite, T² − 4D is always ≥ 0 in exact arithmetic, so the square root is always real.

Common sources of error

  • Row/column mix-up: make sure a, b, c, d are entered in row-major order — a and b form the first row, c and d the second row.
  • Confusing singular values with eigenvalues: for a non-symmetric matrix, the eigenvalues of A itself can be negative or complex, but singular values are always real and non-negative.
  • Floating-point noise: for a nearly singular matrix, T² − 4D can round to a tiny negative number; this calculator clamps it to zero before taking the square root.

Checking your result

Two quick sanity checks confirm a correct calculation. First, σ₁² + σ₂² should equal a² + b² + c² + d² (the squared Frobenius norm). Second, σ₁ × σ₂ should equal |ad − bc| (the absolute value of the determinant). If a and d are large relative to b and c, expect σ₁ to be close to the larger diagonal term and σ₂ close to the smaller one.

Applications

Singular values measure how much a matrix stretches space along its principal axes, which makes them central to numerical linear algebra: the condition number σ₁/σ₂ predicts how much error amplifies when solving a linear system or inverting a matrix, the smallest singular value flags near-singular (rank-deficient) matrices before they cause numerical instability, and the largest singular value gives the matrix's spectral (operator 2-) norm, used in stability analysis, PCA, and low-rank approximation.

Frequently Asked Questions

What are the singular values of a matrix?
The singular values of a matrix A are the non-negative square roots of the eigenvalues of AᵀA. For an m×n matrix they form the diagonal of the Σ matrix in the singular value decomposition A = UΣVᵀ and describe how much the matrix stretches vectors along each principal direction.
How do you compute singular values for a 2×2 matrix by hand?
Form AᵀA, then find its trace T = a²+b²+c²+d² and determinant D = det(A)². The eigenvalues are λ = (T ± √(T²−4D))/2, and the singular values are σ = √λ. This avoids computing AᵀA as a full matrix product.
What does the condition number tell you?
The condition number κ = σ₁/σ₂ (largest singular value divided by smallest) measures how sensitive the matrix is to small changes in input. A condition number close to 1 means the matrix is well-conditioned; a very large value means it is nearly singular and numerically unstable to invert.
How are singular values related to eigenvalues and the determinant?
For a square matrix, the product of all singular values equals the absolute value of the determinant (σ₁ × σ₂ = |det(A)| for a 2×2 matrix). Singular values differ from eigenvalues in general — eigenvalues can be negative or complex, while singular values are always real and non-negative.