MTH168 Mathematics II

Mathematics IIUnit 68 min read

LU Factorization & Matrix Decomposition: Methods, Applications & Theory

Unit 6 of Mathematics II covers LU decomposition (Doolittle, Crout, Cholesky), partial pivoting, and applications in solving linear systems, determinants, and inverses, with emphasis on computational efficiency and stability.

1. Introduction to Matrix Decomposition

Matrix decomposition breaks a matrix into simpler, factorizable components for easier computation. The LU decomposition expresses a matrix as: where:

  • = Lower triangular matrix (diagonal entries = 1)
  • = Upper triangular matrix
UABL (Lower Triangular), U (Upper Triangular)A (Original Matrix)L, U, A
LU Decomposition: A = LU

Why Decompose?

  • Solves efficiently via forward/backward substitution (O(n²) vs. O(n³) for Gaussian elimination).
  • Computes determinant as .
  • Finds inverse without direct inversion.
  • Used in least squares, eigenvalue problems, and numerical stability.

2. LU Decomposition Methods

(a) Doolittle’s Algorithm (Standard LU)

For a square matrix , compute and such that: Steps:

  1. For to :
    • For to :
    • For to :

Example: Decompose .

Solution:

  1. First column (j=1):
    • , , .
  2. Second column (j=2):
    • , .
    • .
  3. Third column (j=3):
    • .

Result:


(b) Crout’s Algorithm (Alternative LU)

Modifies Doolittle by storing with non-unit diagonal and with zeros below diagonal: where:

  • has arbitrary diagonal entries.
  • is upper triangular with .

Advantage: Useful when ’s diagonal entries are needed explicitly.


(c) Cholesky Decomposition (for Symmetric Positive-Definite Matrices)

For , decompose as: where is lower triangular.

Steps:

  1. For to :
    • For to :

Example: Decompose .

Solution:

  1. ,
  2. ,

Result:


3. Partial Pivoting for Numerical Stability

Without pivoting, LU decomposition can fail or introduce large errors for ill-conditioned matrices. Partial pivoting reorders rows to ensure: where is the matrix after steps.

flowchart TD
    A[Original Matrix A] --> B[Check if a11 = 0]
    B -->|Yes| C[Swap Rows]
    B -->|No| D[Proceed with LU]
    C --> D
    D --> E[Continue Decomposition]
    E --> F[Stable LU Decomposition]
    style C fill:#f9f,stroke:#333

Partial Pivoting Decision Flowchart

Example: Apply partial pivoting to .

Steps:

  1. Swap Row 1 and Row 2 (since ):
  2. Proceed with LU decomposition on .

4. Applications of LU Decomposition

Application Method Advantage
Solving → , Faster than Gaussian elimination.
Determinant Calculation Avoids cofactor expansion.
Matrix Inversion Efficient for multiple RHS vectors.
Least Squares Reduces computational cost.
Eigenvalue Problems Preconditioning for iterative methods Improves convergence.
-4-3-2-11234-5510xyy = x² − 4y = 2x + 1Intersection (LU Solve)
Graphical Interpretation of Solving Ax = b via LU

5. Comparison of Decomposition Methods

Method Applicability Stability Computational Cost Special Case
Doolittle LU General square matrices Needs pivoting O(n³) None
Crout LU General square matrices Needs pivoting O(n³) has unit diagonal
Cholesky Symmetric positive-definite Stable O(n³/2) Faster for SPD matrices

6. Worked Example: Solving Using LU

Given:

Step 1: LU decomposition (from earlier):

Step 2: Solve :

Step 3: Solve : Back-substitute:

Solution:


7. Determinant via LU Decomposition

For , . Since (unit diagonal), .

Example: For the earlier :


8. Limitations and Challenges

  • Singular Matrices: LU fails if any (requires pivoting).
  • Non-Square Matrices: LU is defined only for square matrices (use QR for rectangular).
  • Computational Overhead: Pivoting adds complexity but ensures stability.
  • Memory: Stores two matrices and instead of one.

Exam Tip

  1. Understand the Process:

    • Memorize Doolittle/Crout steps but focus on pattern recognition (e.g., vs. formulas).
    • For Cholesky, verify is symmetric positive-definite first ().
  2. Pivoting is Key:

    • Always check if pivoting is needed (e.g., if ).
    • Partial pivoting swaps rows to maximize .
  3. Applications Over Theory:

    • Exams often ask to solve or compute determinant using LU.
    • Show all steps of forward/backward substitution.
  4. Common Pitfalls:

    • Forgetting has 1s on diagonal (Doolittle) or zeros above (Crout).
    • Misapplying Cholesky to non-SPD matrices (check and ).
    • Arithmetic errors in manual decomposition (double-check calculations).
  5. Past Exam Patterns:

    • Part (a): Decompose a 3×3 matrix (Doolittle/Crout).
    • Part (b): Solve using the LU factors.
    • Part (c): Compute determinant/inverse via LU.
    • Bonus: Prove Cholesky conditions or discuss pivoting necessity.

Note: For numerical methods, always assume partial pivoting unless stated otherwise. Use symbolic computation for small matrices (3×3) and practical software (MATLAB, Python) for larger ones in real-world applications.```

Based on the TU BSc CSIT syllabus for Mathematics II (MTH168), unit 6.

Discussion

Loading…