CalcWorldHub
Free online calculator · no signup

Three by three pivoted LU factorization calculator

Inspect a pivoted lower/upper decomposition and the row permutation used in elimination.

4,000 tools
Three by three pivoted LU factorization calculator — Matrix in row order and calculation method
Three by three pivoted LU factorization calculator: inputs and calculation method.

How to use this calculator

Inspect a pivoted lower/upper decomposition and the row permutation used in elimination.

  1. Enter Matrix in row order. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Three by three pivoted LU factorization explained

This guide follows three by three pivoted lu factorization calculator from its stated formula through a worked example, then identifies the assumptions that bound the result.

First U pivot4
First U pivot: 4 in the worked scenario.

Inputs, symbols, and units

a — Matrix in row order
Matrix in row order. Use comma-separated values in the stated order.

Formula and method

PA=LU with partial pivoting

Choose the largest-magnitude remaining entry in each pivot column, swap rows, and eliminate entries beneath it. Previously formed lower-factor entries must follow the same row swaps. The returned permutation satisfies PA=LU.

A worked scenario

Matrix in row order = 2, 1, 1, 4, -6, 0, -2, 7, 2.

  • First U pivot: 4
  • L row-major: 1, 0, 0, 0.5, 1, 0, -0.5, 1, 1
  • U row-major: 4, -6, 0, 0, 4, 1, 0, 0, 1
  • Permutation rows (one based): 2, 1, 3

The first pivot comes from original row 2 and is 4. Multiplying the displayed L and U reproduces the row-permuted input matrix.

Assumptions and edge cases

Nonsingular 3×3 matrices only; pivot tolerance is scaled to the largest input magnitude.

Frequently asked questions

Why is a permutation included?

Pivoting exchanges rows to avoid weak pivots.

Is L diagonal one?

Yes, this uses unit-lower Doolittle factors.

Can this replace a stable large-matrix library?

It is a small educational implementation.

How do I use the Three by three pivoted LU factorization calculator?

Enter Matrix in row order. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Three by three pivoted LU factorization?

Matrix in row order = 2, 1, 1, 4, -6, 0, -2, 7, 2. First U pivot: 4 L row-major: 1, 0, 0, 0.5, 1, 0, -0.5, 1, 1 U row-major: 4, -6, 0, 0, 4, 1, 0, 0, 1 Permutation rows (one based): 2, 1, 3 The first pivot comes from original row 2 and is 4. Multiplying the displayed L and U reproduces the row-permuted input matrix.