Matrix Algebra: Matrix Factorizations and the LU Factorization Method

Introduction to Matrix Factorizations

  • Definition of Matrix Factorization: A factorization of a matrix AA is an equation that expresses AA as a product of two or more matrices.
  • Synthesis vs. Analysis of Data:
    • Synthesis: Matrix multiplication involves the synthesis of data, combining the effects of two or more linear transformations into a single matrix.
    • Analysis: Matrix factorization is considered an analysis of data, as it breaks down a complex matrix into simpler, constituent components.

The Motivation for LU Factorization

  • Industrial and Business Application: The LU factorization is motivated by the common problem of solving a sequence of equations that all share the same coefficient matrix:
    1. Ax=b1Ax = b_{1}
    2. Ax=b2Ax = b_{2}
    3. …\dots
    4. Ax=bpAx = b_{p}
  • Efficiency Considerations:
    • If AA is invertible, one theoretically could compute A−1A^{-1} and then calculate each x=A−1bx = A^{-1}b.
    • However, it is significantly more efficient to solve the first equation (Ax=b1Ax = b_{1}) using row reduction and obtain the LU factorization of AA simultaneously.
    • The remaining equations in the sequence (Ax=b2Ax = b_{2} through Ax=bpAx = b_{p}) are then solved using the established LU factorization.

Defining the LU Factorization

  • Structural Assumptions: Assume AA is an m×nm \times n matrix that can be reduced to echelon form without requiring any row interchanges.
  • The Factorization Equation: A=LUA = LU.
  • Characteristics of the Matrices:
    • Matrix L (Unit Lower Triangular): LL is an m×mm \times m lower triangular matrix. It is called a "unit lower triangular matrix" because it features 11's on its main diagonal. Matrix LL is always invertible.
    • Matrix U (Echelon Form): UU is an m×nm \times n matrix that represents an echelon form of AA.

Solving Linear Systems with LU Factorization

  • Two-Step Process: When A=LUA = LU, the equation Ax=bAx = b can be rewritten as L(Ux)=bL(Ux) = b. By substituting y=Uxy = Ux, the solution is found by solving two triangular systems:
    1. Forward Substitution: Solve Ly=bLy = b for yy.
    2. Back Substitution: Solve Ux=yUx = y for xx.
  • Computational Ease: Because both LL and UU are triangular matrices, these equations are computationally simple to solve.

Numerical Efficiency and Flop Counts

  • Flop (Floating Point Operation): An arithmetic operation (addition, subtraction, multiplication, or division).
  • Example 1 Analysis:
    • Solving Ly=bLy = b: Requires only 66 multiplications and 66 additions, as arithmetic only occurs in column 55 (the constants column).
    • Solving Ux=yUx = y: The "backward" phase of row reduction requires 44 divisions, 66 multiplications, and 66 additions.
    • Creating Zeros in Column 4: To create zeros in column 44 of the augmented matrix for Ux=yUx = y requires 11 division in row 44 and 33 multiplication-addition pairs to adjust the rows above it.
    • Total Cost to Find x: Finding xx using a pre-computed LU factorization requires a total of 2828 arithmetic operations.
    • Comparison: Standard row reduction of the augmented matrix [A b][A \, b] takes 6262 operations. Thus, using LU factorization is significantly more efficient for solving systems.

The LU Factorization Algorithm

  • Reduction Condition: Suppose AA can be reduced to an echelon form UU utilizing only row replacement operations (adding a multiple of one row to another row below it).
  • Elementary Matrices: In this scenario, there exist unit lower triangular elementary matrices E1,…,EpE_{1}, \dots, E_{p} such that:     Ep…E1A=UE_{p} \dots E_{1}A = U
  • Inversion and Product: The matrix AA can then be expressed as:     A=(Ep…E1)−1U=LUA = (E_{p} \dots E_{1})^{-1}U = LU     Where:     L=(Ep…E1)−1L = (E_{p} \dots E_{1})^{-1}
  • Properties of L: Because products and inverses of unit lower triangular matrices are themselves unit lower triangular, LL is guaranteed to be unit lower triangular.
  • Algorithm Steps:
    1. Reduce AA to an echelon form UU by a sequence of row replacement operations (if possible).
    2. Construct LL by placing entries such that the same sequence of row operations that reduced AA to UU would reduce LL to the identity matrix II.

Detailed Example: Constructing LU Factorization

  • Example Problem: Find the LU factorization of     A=(24−15−2−4−53−812−5−418−607−31)A = \begin{pmatrix} 2 & 4 & -1 & 5 & -2 \\ -4 & -5 & 3 & -8 & 1 \\ 2 & -5 & -4 & 1 & 8 \\ -6 & 0 & 7 & -3 & 1 \end{pmatrix}
  • Determining L: Since AA has four rows, LL must be a 4×44 \times 4 matrix.
    • Column 1 of L: Take the first column of AA and divide it by the top pivot entry (22).         First Column of A: (2−42−6)\begin{pmatrix} 2 \\ -4 \\ 2 \\ -6 \end{pmatrix}. Divided by 22: (1−21−3)\begin{pmatrix} 1 \\ -2 \\ 1 \\ -3 \end{pmatrix}. These become the entries for the first column of LL.
  • Iterative Process: Highlight the entries in each matrix used to determine the row operations transforming AA to UU. At each pivot column, divide the entries below the pivot (including the pivot itself) by the pivot value and place the results in the corresponding column of LL.
  • Final Matrices:
    • L=(1000−21001−310−3421)L = \begin{pmatrix} 1 & 0 & 0 & 0 \\ -2 & 1 & 0 & 0 \\ 1 & -3 & 1 & 0 \\ -3 & 4 & 2 & 1 \end{pmatrix}
    • U=(24−15−20312−30002100005)U = \begin{pmatrix} 2 & 4 & -1 & 5 & -2 \\ 0 & 3 & 1 & 2 & -3 \\ 0 & 0 & 0 & 2 & 1 \\ 0 & 0 & 0 & 0 & 5 \end{pmatrix}
  • Verification: Calculating the product LULU recovers the original matrix AA.