Factoring a square matrix as A = LU (Doolittle, Crout and Cholesky forms), getting L and U from Gaussian elimination, solving Ax = b by forward and back substitution, and when pivoting is needed.
You check by multiplying, and comes from the diagonal of U.
Triangular systems
Forward and back substitution solve triangular systems one unknown at a time.
Concept notes
1. What LU decomposition is
LU decomposition writes a square matrix as , where is lower triangular and is upper triangular. The split is not unique unless we fix one diagonal, so there are named forms:
Form
Rule
Used for
Doolittle
(unit lower triangular )
the default; matches Gaussian elimination
Crout
(unit upper triangular )
same idea, the pivots sit in
Cholesky
,
symmetric positive definite only
Why factor? To solve for many right-hand sides. Factoring costs once; each new then needs only two triangular solves, each.
Determinant for free: . In Doolittle form , so .
If GATE says "LU decomposition" without naming a form, assume Doolittle, but read the options: if has a unit diagonal in every option, it is Crout.
A = L × U: the shaded parts hold the entries; the white triangles are zeros.
2. Getting L and U from Gaussian elimination
Run Gaussian elimination without row swaps:
Each step uses a multiplier .
The final upper triangular matrix is .
has 1s on the diagonal and below it, in the same position as the entry that was eliminated. Note the sign: you subtract times the pivot row, and stores .
Direct (Doolittle) formulas, row by row of and column by column of :
For a 2 by 2 matrix [acbd] with :
L=[1c/a01],U=[a0bd−bc/a]
Notice , so as it should be.
Crout from Doolittle: if (Doolittle) and is the diagonal of , then Crout's factors are and .
3. Solving Ax = b with the factors
With , the system becomes . Put and solve two triangular systems:
Forward substitution: solve from the top. With Doolittle's unit diagonal, , , and so on.
Back substitution: solve from the bottom: , then upwards.
The vector is exactly what elimination would have produced on the right-hand side, so forward substitution is "replaying the elimination on ".
Step
Work
Factor
, done once
Forward substitution
per
Back substitution
per
So for right-hand sides the total is , much better than eliminating afresh each time. The same trick computes : solve for each column of .
4. When LU exists, pivoting and Cholesky
Existence. An invertible matrix has a Doolittle factorisation (without row exchanges) exactly when every leading principal minor is non-zero: , the top-left 2 by 2 determinant , and so on. Then the factorisation is unique.
A zero pivot stops plain LU. Example: [0111] is invertible but forces a division by zero.
Pivoting. Swapping rows fixes this. Every invertible matrix has for some permutation matrix . Partial pivoting picks the largest available pivot in each column, which also limits rounding error. With row swaps, .
Cholesky. If is symmetric positive definite, with positive diagonal. For 2 by 2:
It needs about half the work of LU and no pivoting. If a square root of a negative number appears, is not positive definite.
Formulas to remember
Factorisation
Doolittle entries of U
Doolittle entries of L
2 by 2 Doolittle
[acbd]=[1c/a01][a0bd−bc/a]
Solving
DeterminantDoolittle form, no row swaps; multiply by after swaps
CholeskySymmetric positive definite
Common mistakes
Storing the negative of the multiplier in L. If you did , then .
Mixing Doolittle and Crout: check which factor is supposed to have the unit diagonal before matching options.
Assuming every invertible matrix has LU without pivoting; a zero leading minor needs a row exchange ().
Doing back substitution before forward substitution. Solve first, then .
Forgetting the sign in the determinant when rows were swapped.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Doolittle factorisation of a 3 by 3 matrix
numerical
Find the Doolittle LU factorisation of A=1232583814.
Step 1: Eliminate below the first pivot and record the multipliers.
Try it on paper first.
Example 2: Solving a system with the factors
numerical
Using the factors from the previous example, solve for .
Step 1: Forward substitution: solve $Ly = b$.
Try it on paper first.
Example 3: Doolittle, Crout and Cholesky on 2 by 2 matrices
numerical
(a) Find the Doolittle and Crout factors of [4633]. (b) Find the Cholesky factor of [4225].
Step 1: Doolittle: use the 2 by 2 formula.
Try it on paper first.
Example 4: When plain LU fails
conceptual
Does A=[0111] have an LU factorisation without row exchanges? If not, how is it handled?
Step 1: Try to match the (1,1) entry.
Try it on paper first.
Previous year questions
2 official GATE CSE questions on this topic, newest first.
10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE CSE syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.