Polar Decomposition Calculator

Free online Polar Decomposition Calculator. Factor any 2×2 or 3×3 matrix A into an orthogonal matrix U and a positive semi-definite matrix P with step-by-step output.

480.0K uses Updated · 2026-05-05 Runs locally · zero upload
AD

How to Use Polar Decomposition Calculator

The Polar Decomposition Calculator factors a square matrix A into A = UP, where U is orthogonal and P is positive semi-definite. Select a 2×2 or 3×3 matrix size, fill in the entries, and the Polar Decomposition Calculator returns U, P, a verification product U·P, and the full computation trace.

  1. Choose matrix size – Select 2×2 or 3×3 from the dropdown.
  2. Enter matrix A – Type each element. Decimal and negative values are accepted.
  3. Read the decomposition – The Polar Decomposition Calculator shows U, P, and U·P in a readable matrix format.
  4. Check invertibility – The tool reports whether A is invertible, which determines uniqueness of the decomposition.

Adjust the entries to explore how rotation and stretch components change as A varies.

Formula & Theory - Polar Decomposition Calculator

The Polar Decomposition Calculator implements the right polar decomposition:

A = UP
P = √(AᵀA)           (symmetric positive semi-definite)
U = A · P⁻¹           (orthogonal if A is invertible)
SymbolMeaning
AInput m×m real matrix
UOrthogonal factor: UᵀU = I
PSymmetric positive semi-definite factor
AᵀAGram matrix; its square root gives P

Computing P = √(AᵀA):
The Polar Decomposition Calculator uses the Denman-Beavers iteration, which starts from X₀ = AᵀA and Y₀ = I, then repeats:

Xₙ₊₁ = ½(Xₙ + Yₙ⁻¹)
Yₙ₊₁ = ½(Yₙ + Xₙ⁻¹)

This converges quadratically to P = √(AᵀA). Once P is known, U = A·P⁻¹.

Uniqueness: If A is invertible (non-zero determinant), the polar decomposition is unique. If A is singular, P still exists but U may not be unique.

Assumptions and Limits

The current Polar Decomposition Calculator supports 2×2 and 3×3 square matrices. The iteration runs for 30 steps; for most well-conditioned inputs this is more than enough. Near-zero pivots during matrix inversion (threshold 10⁻¹⁰) are treated as numerical singularities.

Use Cases for Polar Decomposition Calculator

The Polar Decomposition Calculator serves a range of applications in linear algebra and engineering:

  • Computer graphics – Decompose affine transformation matrices into rotation and scale for animation interpolation (slerp).
  • Continuum mechanics – The deformation gradient F = RU (right polar decomposition) separates rigid rotation from pure stretch.
  • Matrix analysis – Study properties of U and P separately to understand spectral and geometric properties of A.
  • Robotics – Recover the nearest rotation matrix to a noisy orientation estimate by extracting U from the polar decomposition.
  • Numerical linear algebra – Use polar decomposition as a preprocessing step before computing the SVD.

After using the Polar Decomposition Calculator, you can verify that UᵀU ≈ I (U is orthogonal) and that P is symmetric and positive semi-definite by checking that all eigenvalues of P are non-negative.

Frequently asked questions about Polar Decomposition Calculator

How accurate is the Polar Decomposition Calculator?

The Polar Decomposition Calculator uses the Denman-Beavers matrix square root iteration with 30 steps, which converges to machine precision for well-conditioned matrices.

What does the polar decomposition mean geometrically?

The factor U represents a rotation or reflection (pure directional change), while P encodes the stretching or scaling. Together, A = UP decomposes any linear map into a stretch followed by a rotation.

When does the polar decomposition fail?

If A is singular (det A = 0), its polar decomposition still exists but U is not unique. The Polar Decomposition Calculator reports when P is non-invertible and returns null in that case.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.