Systems of Equations
2.1 Gaussian Elimination
1) Linear System
Linear System: A collection of linear equations written in matrix form as
where:
- is the coefficient matrix.
- is the unknown vector.
- is the right-hand-side vector.
2) Augmented Matrix
Augmented Matrix: A matrix containing both the coefficient matrix and right-hand-side vector.
For example,
3) Elementary Row Operations
The following operations preserve the solution set of a linear system:
- Exchange two rows.
- Add a multiple of one row to another row.
- Multiply a row by a nonzero scalar.
4) Gaussian Elimination
Gaussian Elimination: A direct method that transforms a linear system into an upper-triangular system.
To eliminate below the pivot , define the multiplier
Then perform
After elimination, the system has the form
where is upper triangular.
5) Pivot
Pivot: The diagonal entry used to eliminate entries below it.
At elimination step , the pivot is
Naive Gaussian elimination fails if a zero pivot occurs and may be numerically unstable if a pivot is very small.
6) Upper-Triangular Matrix
Upper-Triangular Matrix: A square matrix satisfying
All entries below the main diagonal are zero.
7) Back Substitution
Back Substitution: The process of solving an upper-triangular system from the last equation upward.
For
the solution components are
Back substitution requires nonzero diagonal entries.
8) Operation Count
The elimination stage requires approximately
arithmetic operations.
Back substitution requires approximately
operations.
Therefore, the total cost is
Gaussian elimination has time complexity
2.2 The LU Factorization
1) Lower-Triangular Matrix
Lower-Triangular Matrix: A square matrix satisfying
All entries above the main diagonal are zero.
2) Unit Lower-Triangular Matrix
Unit Lower-Triangular Matrix: A lower-triangular matrix whose diagonal entries are all .
3) LU Factorization
LU Factorization: A decomposition of a square matrix into a lower-triangular matrix and an upper-triangular matrix.
The matrix contains the result of Gaussian elimination.
The elimination multipliers are stored below the diagonal of .
4) Solving with LU Factorization
Given
and
the system becomes
Introduce an intermediate vector :
followed by
The solution is obtained in two stages:
- Solve using forward substitution.
- Solve using back substitution.
5) Forward Substitution
Forward Substitution: The process of solving a lower-triangular system from the first equation downward.
For
the components are
If is unit lower triangular, then .
6) Complexity of LU Factorization
Computing the factorization costs approximately
operations.
Solving each triangular system costs approximately
operations.
For different right-hand sides,
the total cost is approximately
LU factorization is efficient when several systems share the same coefficient matrix.
7) Existence of LU Factorization
An LU factorization without row exchanges may fail if Gaussian elimination encounters a zero pivot.
Therefore, not every nonsingular matrix has a factorization of the form
without row permutations.
2.3 Sources of Error
1) Vector Norm
Vector Norm: A function that measures the size of a vector and satisfies:
and
2) Infinity Norm of a Vector
Infinity Norm: The largest absolute component of a vector.
For
the infinity norm is
3) Matrix Infinity Norm
Matrix Infinity Norm: The largest absolute row sum of a matrix.
4) Residual
Residual: The difference between the required right-hand side and the right-hand side produced by an approximate solution .
The residual measures how accurately the computed solution satisfies the original system.
5) Backward Error
Backward Error: The norm of the residual.
The relative backward error is
6) Forward Error
Forward Error: The distance between the exact solution and the approximate solution .
The relative forward error is
A small residual does not necessarily imply a small forward error.
7) Error Magnification Factor
Error Magnification Factor: The ratio of relative forward error to relative backward error.
A large value means that small input errors can produce large solution errors.
8) Condition Number
Condition Number: The maximum possible error magnification when solving over all right-hand sides.
For a nonsingular matrix,
Using the infinity norm,
9) Condition Number Properties
For a nonsingular matrix,
If
up to approximately decimal digits may be lost through error magnification.
The expected relative forward error can be as large as
10) Well-Conditioned System
Well-Conditioned System: A system whose solution changes only slightly when the input data changes slightly.
A well-conditioned matrix has a relatively small condition number.
11) Ill-Conditioned System
Ill-Conditioned System: A system in which small input errors can produce large changes in the solution.
An ill-conditioned matrix has a large condition number.
Ill-conditioning is a property of the mathematical problem, not the solution algorithm.
12) Swamping
Swamping: A loss of significant digits caused when a large floating-point number dominates a much smaller number during arithmetic.
In Gaussian elimination, swamping may occur when a very small pivot produces a very large multiplier.
Partial pivoting is used to reduce this problem.
2.4 The Factorization
1) Row Exchange
Row Exchange: Interchanging two rows so that a more suitable pivot is placed in the pivot position.
Row exchanges avoid zero pivots and reduce the use of dangerously small pivots.
2) Partial Pivoting
Partial Pivoting: At elimination step , select the entry with the largest absolute value in column at or below the diagonal.
Choose satisfying
Then exchange rows and .
Partial pivoting keeps elimination multipliers bounded by
3) Permutation Matrix
Permutation Matrix: A matrix obtained by rearranging the rows of the identity matrix.
Multiplying a matrix on the left by permutes its rows.
Permutation matrices satisfy
4) Factorization
Factorization: An LU factorization that records the row exchanges performed during partial pivoting.
Here:
- is a permutation matrix.
- is unit lower triangular.
- is upper triangular.
5) Solving with
Starting from
multiply both sides by :
Using ,
The solution is found by solving
and then
6) Numerical Stability
Gaussian elimination with partial pivoting is numerically stable for most practical systems.
It is the standard general-purpose direct method for solving dense linear systems.
2.5 Iterative Methods
1) Direct Method
Direct Method: A method that obtains the solution after a finite sequence of arithmetic operations in exact arithmetic.
Examples include:
- Gaussian elimination
- LU factorization
- Cholesky factorization
2) Iterative Method
Iterative Method: A method that generates a sequence of approximations
that is expected to converge to the exact solution.
Iterative methods are especially useful for large, sparse systems.
3) Matrix Splitting
Write the coefficient matrix as
where:
- contains the diagonal entries.
- contains the entries below the diagonal.
- contains the entries above the diagonal.
4) Jacobi Method
Jacobi Method: An iterative method that calculates every component of the new approximation using only values from the previous iteration.
For ,
In matrix form,
5) Strict Diagonal Dominance
Strictly Diagonally Dominant Matrix: A matrix satisfying
for every row .
If is strictly diagonally dominant, then:
- is nonsingular.
- The Jacobi Method converges for every initial guess.
- The Gauss-Seidel Method converges for every initial guess.
Strict diagonal dominance is sufficient but not necessary for convergence.
6) Gauss-Seidel Method
Gauss-Seidel Method: An iterative method that immediately uses newly computed component values.
In matrix form,
Therefore,
Gauss-Seidel often converges faster than Jacobi when both methods converge.
7) Successive Over-Relaxation
Successive Over-Relaxation: A weighted version of the Gauss-Seidel Method.
First compute the Gauss-Seidel update , then define
The parameter is the relaxation factor.
- : Gauss-Seidel Method
- : under-relaxation
- : over-relaxation
A suitable value of may accelerate convergence.
8) Iteration Matrix
A stationary iterative method can be written as
The matrix is the iteration matrix.
The error satisfies
Therefore,
9) Spectral Radius
Spectral Radius: The largest absolute value among the eigenvalues of a matrix.
The iteration converges for every initial guess if and only if
10) Sparse Matrix
Sparse Matrix: A matrix in which most entries are zero.
Sparse matrices should be stored using formats that record only nonzero entries.
For a sparse matrix with nonzero entries, a matrix-vector multiplication can require approximately
operations instead of .
11) Fill-In
Fill-In: The creation of new nonzero entries during Gaussian elimination at positions that were originally zero.
Fill-in can greatly increase memory use and computation time for sparse direct methods.
Iterative methods avoid much of this fill-in.
2.6 Symmetric Positive-Definite Matrices
1) Symmetric Matrix
Symmetric Matrix: A square matrix satisfying
Equivalently,
2) Positive-Definite Matrix
Positive-Definite Matrix: A symmetric matrix satisfying
for every nonzero vector .
3) Symmetric Positive-Definite Matrix
Symmetric Positive-Definite Matrix: A matrix that is both symmetric and positive definite.
Such a matrix is nonsingular and has positive eigenvalues.
4) Principal Submatrix
Principal Submatrix: A square submatrix formed by selecting the same index set of rows and columns.
A leading principal submatrix uses the first rows and first columns.
5) Positive-Definite Test
A symmetric matrix is positive definite if and only if all its leading principal determinants are positive.
where is the leading principal submatrix.
6) Cholesky Factorization
Cholesky Factorization: A factorization of a symmetric positive-definite matrix as
where is upper triangular with positive diagonal entries.
Equivalently,
where is lower triangular.
7) Cholesky Factorization Theorem
Every symmetric positive-definite matrix has a unique Cholesky factorization with positive diagonal entries.
The entries of can be calculated by
and, for ,
8) Solving with Cholesky Factorization
For
and
solve
using forward substitution, followed by
using back substitution.
Cholesky factorization requires approximately half the operations and storage of a general LU factorization.
9) -Inner Product
For a symmetric positive-definite matrix , define
This is an inner product induced by .
10) -Conjugate Vectors
-Conjugate Vectors: Two vectors and satisfying
They are also called -orthogonal vectors.
11) Conjugate Gradient Method
Conjugate Gradient Method: A method for solving
when is symmetric positive definite.
Start with an initial guess and define
For , calculate
and
12) Conjugate Gradient Properties
In exact arithmetic, the Conjugate Gradient Method finds the exact solution in at most steps.
The search directions satisfy
The residuals satisfy
In practice, it is used as an iterative method and stopped when the residual becomes sufficiently small.
It is particularly effective for large, sparse, symmetric positive-definite systems.
13) Preconditioning
Preconditioning: Transforming a linear system into an equivalent system with better convergence properties.
Choose a matrix that approximates but is easier to solve with.
The preconditioned system is
A useful preconditioner reduces the condition number while remaining inexpensive to apply.
14) Jacobi Preconditioner
Jacobi Preconditioner: A preconditioner using the diagonal of .
It is simple and inexpensive but may provide limited improvement.
15) Preconditioned Conjugate Gradient Method
For the residual
solve
Then use in place of when constructing the search direction.
Preconditioning can greatly reduce the number of iterations required for convergence.
2.7 Nonlinear Systems of Equations
1) Nonlinear System
A system of nonlinear equations in variables can be written as
where
A solution is a vector satisfying
2) Jacobian Matrix
Jacobian Matrix: The matrix of first-order partial derivatives of a vector-valued function.
The Jacobian is the multivariable analogue of the derivative.
3) Multivariable Taylor Expansion
Near ,
Setting the approximation equal to zero produces the multivariable Newton step.
4) Multivariate Newton’s Method
Multivariate Newton’s Method: An iterative method for solving nonlinear systems.
The formal iteration is
The inverse should not be computed explicitly.
Instead, solve
and update
5) Convergence of Multivariate Newton’s Method
If:
- The initial guess is sufficiently close to a solution .
- is nonsingular.
- The necessary derivatives are continuous.
Then Multivariate Newton’s Method is locally quadratically convergent.
The method may fail if the Jacobian is singular or the initial guess is unsuitable.
6) Broyden’s Method
Broyden’s Method: A quasi-Newton method that approximates the Jacobian instead of recomputing it at every iteration.
It is useful when the Jacobian is unavailable or expensive to calculate.
7) Secant Condition
Let
and
The updated Jacobian approximation is required to satisfy
This is the multidimensional analogue of the secant condition.
8) Broyden’s Method I
Let approximate the Jacobian.
The iteration is
The Jacobian approximation is updated by
In implementation, solve
and set
9) Broyden’s Method II
Let approximate the inverse Jacobian.
The iteration is
The inverse approximation is updated by
Broyden’s Method II avoids solving a new linear system at every iteration.
10) Broyden Convergence
At a simple root, Broyden’s Method generally converges superlinearly.
It is usually slower than Newton’s quadratic convergence but does not require repeated Jacobian evaluations.
Neither Newton’s Method nor Broyden’s Method guarantees convergence from an arbitrary initial guess.
Comparison of Linear System Methods
| Method | Matrix Requirement | Type | Main Cost | Best Use |
|---|---|---|---|---|
| Gaussian Elimination | General nonsingular | Direct | Dense systems | |
| General nonsingular | Direct | Stable general solver | ||
| Cholesky | Symmetric positive definite | Direct | Dense SPD systems | |
| Jacobi | Often diagonally dominant | Iterative | One matrix-vector step | Parallel sparse solving |
| Gauss-Seidel | Often diagonally dominant | Iterative | One sequential sweep | Sparse systems |
| SOR | Suitable convergent splitting | Iterative | One weighted sweep | Accelerated stationary iteration |
| Conjugate Gradient | Symmetric positive definite | Iterative | Matrix-vector products | Large sparse SPD systems |
Essential Concepts
- Linear System: A system written as .
- Gaussian Elimination: Converts a system into upper-triangular form.
- Pivot: The diagonal value used during elimination.
- Back Substitution: Solves an upper-triangular system from bottom to top.
- LU Factorization: Expresses a matrix as .
- Forward Substitution: Solves a lower-triangular system from top to bottom.
- Residual: The vector .
- Forward Error: The difference between the approximate and exact solutions.
- Backward Error: The amount by which the computed solution fails to satisfy the system.
- Condition Number: Measures the sensitivity of a linear system.
- Partial Pivoting: Selects the largest available pivot in the current column.
- Permutation Matrix: Records row exchanges.
- Factorization: Stable LU factorization with row permutations.
- Jacobi Method: Uses only values from the previous iteration.
- Gauss-Seidel Method: Immediately uses newly calculated values.
- SOR: Applies a relaxation factor to Gauss-Seidel updates.
- Strict Diagonal Dominance: A sufficient condition for Jacobi and Gauss-Seidel convergence.
- Spectral Radius: Determines convergence of stationary iterative methods.
- Sparse Matrix: Contains mostly zero entries.
- Fill-In: New nonzero entries created during elimination.
- Symmetric Positive-Definite Matrix: Satisfies and .
- Cholesky Factorization: Expresses an SPD matrix as .
- Conjugate Gradient Method: Solves large sparse SPD systems.
- Preconditioning: Improves convergence by transforming the system.
- Jacobian Matrix: Contains the partial derivatives of a vector-valued function.
- Multivariate Newton’s Method: Solves a Jacobian system at every iteration.
- Broyden’s Method: Approximates the Jacobian or its inverse using rank-one updates.