Polar Decomposition Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter an invertible 2×2 matrix A = [[a, b], [c, d]].
Result
U row 1, column 1
P row 1, column 1
- P row 1, column 2 (= row 2, column 1)
- P row 2, column 2
- U row 1, column 2
- U row 2, column 1
- U row 2, column 2
- U is a
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- a (row 1, column 1): enter a number.
- b (row 1, column 2): enter a number.
- c (row 2, column 1): enter a number.
- d (row 2, column 2): enter a number.
- Read the result: U row 1, column 1; the panel also shows P row 1, column 1, P row 1, column 2 (= row 2, column 1), P row 2, column 2, U row 1, column 2, U row 2, column 1, U row 2, column 2 and U is a.
How this calculator works
The polar decomposition writes A = UP, where P = √(AᵀA) is symmetric positive definite (the stretch) and U = AP⁻¹ is orthogonal (a rotation or a reflection). It is the matrix version of writing a complex number as e^(iθ) × r.
For 2×2 matrices the square root has a closed form: with M = AᵀA and s = √(det M) = |det A|, √M = (M + sI) ÷ √(tr M + 2s), where tr M = a² + b² + c² + d². Then U = AP⁻¹, with P⁻¹ = [[p₂₂, −p₁₂], [−p₁₂, p₁₁]] ÷ s.
The decomposition is unique when A is invertible. A singular matrix (det A = 0) shows a dash.
The formula
| Symbol | Meaning |
|---|---|
| a (row 1, column 1) | |
| b (row 1, column 2) | |
| c (row 2, column 1) | |
| d (row 2, column 2) | |
| P row 1, column 2 (= row 2, column 1) | |
| P row 2, column 2 | |
| U row 1, column 1 |
Worked example
| a (row 1, column 1) | 1 |
|---|---|
| b (row 1, column 2) | 2 |
| c (row 2, column 1) | 3 |
| d (row 2, column 2) | 4 |
| P row 1, column 1 | 2.058 |
|---|---|
| P row 1, column 2 (= row 2, column 1) | 2.401 |
| P row 2, column 2 | 3.773 |
| U row 1, column 2 | 0.8575 |
| U row 2, column 1 | 0.8575 |
| U row 2, column 2 | 0.5145 |
| U is a | Reflection (det U = −1) |
U row 1, column 1 -0.5145
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the polar decomposition of [[1, 2], [3, 4]]?
P ≈ [[2.058, 2.401], [2.401, 3.773]] and U ≈ [[−0.5145, 0.8575], [0.8575, 0.5145]], a reflection because det A = −2 is negative.
When is U a rotation?
When det A is positive. Then U turns the plane by an angle and P stretches it along two perpendicular directions.