Linear Algebra

LU Decomposition

Factor A = LU using the Doolittle algorithm. L is lower triangular with 1s on the diagonal; U is upper triangular. Then solve Ly = b and Ux = y.

Inputs

Warning: Doolittle LU requires no zero pivots. If a pivot is zero, the algorithm fails — try reordering rows manually or use a different method.
Matrix A and vector b
b

L, U and Solution

Matrix Grids: L, U, LU

Step-by-Step

Put It Into Practice

The calculator shows the steps — a quiz proves you can do them on your own.

Stuck on Linear Algebra? Get 1-on-1 help

Alexander tutors all math and CS levels — $55/session, free consultation.