Skip to content

Linear Equations

Systems of linear equations appear in virtually every area of science and engineering: circuit analysis, structural mechanics, computer graphics, and machine learning all reduce to solving Ax=bAx = b at their core. This chapter develops the two main direct methods for solving such systems — Gaussian elimination and LU decomposition — along with the pivoting strategies needed to make them numerically reliable.


Learning Objectives

By the end of this chapter you should be able to:

  1. Write a system of mm linear equations in nn unknowns in the compact matrix form Ax=bAx = b.
  2. State the two conditions a matrix AA must satisfy for a unique solution to exist (square and non-singular).
  3. Identify lower and upper triangular matrices and explain why they simplify solving a linear system.
  4. Apply forward substitution to a lower triangular system and back substitution to an upper triangular system.
  5. Derive the total operation count for forward or back substitution and show it equals n2n^2.
  6. Apply Gaussian elimination row operations to transform an augmented matrix [A ∣ b][A\,|\,b] into upper triangular form.
  7. Define a Frobenius matrix, compute it from the elimination multipliers, and use it to represent one round of Gaussian elimination.
  8. Assemble the LL and UU factors of a matrix from the Frobenius matrices produced during elimination, and use the factorization A=LUA = LU to solve Ax=bAx = b efficiently.
  9. Explain why a zero pivot causes Gaussian elimination to fail and apply both partial pivoting (row swapping) and complete pivoting (column swapping) to resolve it.

Chapter Sections

#SectionKey Concepts
1Systems of Linear EquationsSystem notation, matrix form Ax=bAx=b, solution via A−1A^{-1}, non-singularity
2Gaussian EliminationTriangular matrices, forward/back substitution, operation count n2n^2, augmented matrix example
3LU DecompositionFrobenius matrices, assembling LL and UU, solving Ly=bLy=b then Ux=yUx=y
4PivotingZero pivot failure, partial pivoting (row swap), complete pivoting (column swap)