Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Polar Decomposition Calculator

a (row 1, column 1): enter a number. Prefilled example: 1.

b (row 1, column 2): enter a number. Prefilled example: 2.

c (row 2, column 1): enter a number. Prefilled example: 3.

d (row 2, column 2): enter a number. Prefilled example: 4.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. a (row 1, column 1): enter a number.
  2. b (row 1, column 2): enter a number.
  3. c (row 2, column 1): enter a number.
  4. d (row 2, column 2): enter a number.
  5. 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

  1. P12=a×b+c×da2+b2+c2+d2+2×|a×d−b×c|+0
  2. P22=b2+d2+|a×d−b×c|a2+b2+c2+d2+2×|a×d−b×c|
  3. U11=a×P22−b×P12|a×d−b×c|+0
Symbols used in the formula
SymbolMeaning
aa (row 1, column 1)
bb (row 1, column 2)
cc (row 2, column 1)
dd (row 2, column 2)
P12P row 1, column 2 (= row 2, column 1)
P22P row 2, column 2
U11U 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 12.058
P row 1, column 2 (= row 2, column 1)2.401
P row 2, column 23.773
U row 1, column 20.8575
U row 2, column 10.8575
U row 2, column 20.5145
U is aReflection (det U = −1)
  1. P12=1×2+3×412+22+32+42+2×|1×4−2×3|+0=2.40098
  2. P22=22+42+|1×4−2×3|12+22+32+42+2×|1×4−2×3|=3.77297
  3. U11=1×3.77297−2×2.40098|1×4−2×3|+0=−0.514496

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.

Related calculators