






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Systems of Linear Equations
How do we solve a set of them?
This is an system. If , we will not have unique solutions. If , we may get into a situation inconsistency. If , we may get unique set of solutions.
Some observation:
Suppose, the equation is Nothing is changed if we multiply or divide this equation by a constant.
Therefore, can be used to replace. We denote this as
Given two linear equations and , we can form any combination of these two to replace, say,. Thus,
Interchanging the positions of two linear equations does not change anything.
These operations that leave the system of equations invariant are called elementary operations.
a. One unknown, one solution. If we have we have a solution b. Two unknown, two solutions. Assume,
we have here If one equation is the multiple of another equation, we have infinite solutions. e.g.
Geometrically, the two lines are parallel.
The equations have unique
solutions if the determinant of this equation
The determinant of a matrix could also be computed in a similar manner. For instance,
The determinant could be expressed as an expansion Where
A minor is obtained from the original matrix the resultant submatrix obtained by leaving i th row and j th column behind.
An echelon matrix must have all zero rows at the bottom and it must obey the basic format of an echelon as far as the position of the pivots is concerned.
This is an echelon matrix.
The pivots are underlined.
The rank of a matrix is the number of pivots in its echelon form.
A matrix is A is in row-canonical form if (a) it's an echelon matrix, (b) each pivot (leading to non-zero entry) is 1, (c) each pivot is the only nonzero entry in that column.
e.g. is in row-canonical form.
Row equivalence of a matrix. A matrix (row equivalent) if is obtained from by elementary operations.
To set up the Gaussian elimination, work on the augmented matrix and reduce to a triangular matrix (or to an echelon form) by elementary operations. Then solve by back substitution.
Use Gaussian Elimination to solve
The augmented matrix is
back substitution now leads to
Note that the This is prohibitively large for large n.
Secondly, we have to be careful about error. Consider the following.
with the exact solution
Numerical solution using a 4 digit arithmetic gives us
this gives us
We have to come up with a pivoting strategy. Choose the element in column such that This is called " partial pivoting ".
For instance, in our case, We now swap the rows so that the row with this pivot becomes the topmost row.
Thus,
With this arrangement, the GE leads to
This now gives the correct solution
The last column of the matrix is augmented to the original matrix.
The index vector and the scale vector at the first pivoting:
Compute now
Choose the index for which the first maximum is found. In our case, it is 3. Therefore, the first pivot is going to be on the first element of row 3. Exchange in the vector. Now the augmented matrix appears as (after , , )
Now we are to select the pivot number 2 given that the vectors are now
and
obtain the pivot row index from
The largest value corresponds to index 3 (which yields , so we exchange 2nd^ and the 3 rd^ elements of the vector l realizing. The pivot in 2nd^ step is in Row
1 now. In the augmented matrix,
Row 2 and Row 4 under column 2 now become zero. This is done by and.
We select the final pivot now, pivot 3. The vectors are now and.
We now obtain the pivot row index from
Since the first number is bigger and that corresponds to 3, therefore we have now leaving the index vector as before. The pivot equation is. So, our pivot is on the 2 nd^ row. Now the augmented matrix
takes the following shape:
The rest is easy. This gives us through back substitution the solution vector.
More on numerical computation of solution matrix.
Error computation on an iterative framework. Let be the solution vector of the equation on iteration. The difference between this and the actual is the error vector and the residual on the iteration is
e.g.
Given this becomes
This is Gauss-Jacobi. Given the diagonal matrix D , it’s easy to compute. Multiplying matrices is an easier than taking an inverse.
Comparing this with we see Gauss-Jacobi's approach amounts to using
e.g. The equation matrix is
with this , and here
Now,
Therefore,
and
Therefore, our iterative problem appears to be
We start with. The iteration progressed through the following:
Gauss-Seidel's Iteration Method:
From above, we can write
.
Thus, the iterative scheme attempts to get
In computational format, the improved solution is obtained in the following way:
In other words, those next level of computed variables that are already available could be used immediately when situation arises. Apparently, this converges twice as fast as Gauss-Jacobi.
Convergence analysis. Like successive substitution