next up previous contents
Next: Optimization Up: Numerical Analysis for Chemical Previous: Roots of Equations

Subsections


Linear Algebraic and Equations

Matrix notation:

Gauss Elimination

Solving Small Numbers of Equations

Problems when solving sets of linear equations

Cramer's Rule : each unknown in a system of linear algebraic equations may be expressed as a fraction of two determinants with denominator D and with the numerator obtained from D by replacing the column of coefficients of the unknown in question by the constant $ b_1, b_2, \ldots, b_n$. For more than three equations, Cramer's rule becomes impractical because, as the number of equations increases, the determinants are time-consuming to evaluate.

Naive Gauss Elimination

The elimination of unknowns consists of two steps
  1. The equations are manipulated to eliminate one of the unknowns from the equations. The result of this elimination step is that we have on equation with one unknown.
  2. This equation can be solved directly and the result back-substituted into one of the original equations to solve for the remaining unknown.
But the above method can't avoid division by zero in computer program. Need more elaborated algorithms !

Pitfalls of Elimination Methods

Techniques for Improving Solutions

However, sometime scaling introduces a round-off error. Thus, it is used as a criterion for pivoting and the original coefficient values are retrained for the actual elimination and substitution computation.

Complex Systems

Convert a complex system into two real system and employ the algorithm for the real system.

Nonlinear Systems of Equations

Use a multidimensional verstion of Newton-Raphson method for nonlinear system. However, there are two major shortcoming. Need optimization techniques !

Gauss-Jordan

Difference between Gauss and Gauss-Jordan

LU Decomposition and Matrix Inversion

LU decomposition provides

LU Decomposition

Gauss elimination is designed to solve system of linear algebraic equations

$\displaystyle [A]\{X\} = \{B\}$ (3.1)

Gauss elimination involves two steps: forward elimination and back substitution. Of these, the forward elimination step require more computation times. LU decomposition methods separate the time-consuming elimination of the matrix $ [A]$ from the manipulations of the right-hand side $ \{B\}$. Thus, once $ [A]$ has ben decomposed, multiple right-hand side vectors can be evaluated in an efficient manner.

Equation (3.1) can be rearranged to give

$\displaystyle [A]\{X\} - \{B\}=0$ (3.2)

The above equation can be reduced into upper triangular form with Gauss elimination.

$\displaystyle [U]\{X\} - \{D\}=0$ (3.3)

And assume a lower triangular matrix $ [L]$ which satisfies the following equation

$\displaystyle [L]\{[U]\{X\} - \{D\}\}=[A]\{X\} - \{B\}$ (3.4)

If this equation holds,

$\displaystyle [L][U]$ $\displaystyle = [A]$ (3.5)
$\displaystyle [L][D]$ $\displaystyle = \{B\}$ (3.6)

A two-step strategy for obtaining solutions with LU decomposition

  1. Decompose $ [A]$into $ [L]$ and $ [U]$
  2. Find a intermediate vector $ \{D\}$ with equation (3.6) and solve equation (3.3) for $ \{X\}$

LU decomposition can be performed in Gauss elimination. $ [U]$ is a direct product of the forward elimination. For example, consider the following $ 3
\times 3$ system

$\displaystyle \begin{bmatrix}A \end{bmatrix} = \begin{bmatrix}a_{11} & a_{12} &...
...13}   a_{21} & a_{22} & a_{23}   a_{31} & a_{32} & a_{33}   \end{bmatrix}$ (3.7)

The forward elimination step reduce the original matrix $ [A]$ to the form

$\displaystyle \begin{bmatrix}U \end{bmatrix} = \begin{bmatrix}a_{11} & a_{12} & a_{13}   0 & a'_{22} & a'_{23}   0 & 0 & a''_{33}   \end{bmatrix}$ (3.8)

which is in the desired upper triangular format. The matrix $ [L]$ is also produced during the step.

$\displaystyle \begin{bmatrix}L \end{bmatrix} = \begin{bmatrix}1 & 0 & 0   f_{21} & 1 & 0   f_{31} & f_{32} & 1   \end{bmatrix}$ (3.9)

LU decomposition algorithm:

The Matrix Inverse

The inverse can be computed in a column-by column fashion by generating solutions tieh unit vector as the right-hand-side constants. The best way to implement such a calculation is with the LU decomposition algorithm and it is one of the great strengths of LU decomposition.

Error Analysis and System Condition

Determination of ill-conditioned system:

The indication of ill-conditioning with a single number

Special Matrices and Gauss-Seidel

Special Matrices

Gauss-Seidel

The Gauss-Seidel method:

Convergence enhancement with relaxation

Linear Algebraic Equation with Libraries and Packages

Engineering Applications: Linear Algebraic Equations

See the textbook


next up previous contents
Next: Optimization Up: Numerical Analysis for Chemical Previous: Roots of Equations
Taechul Lee
2001-11-29