SVD Calculator
Singular value decomposition A = U Σ Vᵀ.
About this tool
Enter a matrix to get its singular value decomposition. [1 2; 3 4] has singular values 5.46499 and 0.365966, whose product 2 equals the absolute determinant.
How to use
How it works
SVD writes A as U·S·Vᵀ, with U and V orthogonal and S diagonal with non-negative singular values sorted from large to small. The ratio of largest to smallest singular value is the condition number, a measure of how sensitive solving Ax = b is.
A = UΣVᵀ |det(A)| = product of singular values condition = σmax ÷ σmin
Worked example
A diagonal matrix
- Input
- [3 0; 0 4]
- Output
- S = [4 0; 0 3]
- Walkthrough
- The singular values of a diagonal matrix are the absolute diagonal entries, sorted descending, so 4 comes before 3 and U, V swap the axes.
Limitations
- Entries must be real numbers; complex entries are refused.
- Results are numerical, shown to about six significant digits.
- Singular vectors are only determined up to sign.
Questions
What are the singular values of [1 2; 3 4]?
What are the singular values of [3 0; 0 4]?
How are singular values related to the determinant?
Features
- U, Σ and V shown
- Sorted singular values
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Variables, expressions, and equations
Khan Academy
Expression language for scientific and expression calculators.
Watch on YouTubeIntroduction to scientific notation
Khan Academy
Scientific notation for calculator and number tools.
Watch on YouTube
- Data Index
Math is Fun
Stats and probability explainers for data tools.
- OpenStax Math
OpenStax
Free textbooks for algebra through calculus.