SlideShare a Scribd company logo
1 of 12
Download to read offline
CHAPTER 3
Solutions of linear system of equations
3.1 Introduction
Systems of equations are associated with many problems in engineering and science ,as well as with
applications of mathematics to the social sciences and quantitative study of business and economic problems.
……………………………………….. (3.1)
.
.
.
Where (
(
( )
In the matrix notation, the system (3.1) can be written as
Ax=b……………………………………………………………………… (3.1a)
[ ⁄ ]
A system of linear equations in n unknowns has a unique solution, provided that determinant of the
coefficient matrix is nonsingular i.e., if |A| .
If the coefficient of matrix is singular, the equations may have infinite number of solutions, or no
solutions at all, depending on the constant vector.
3.2 Methods of solution
There are two classes of methods for solving system of linear equations: direct and iterative methods.
The common characteristics of direct methods are that they transformation the original equations into
equavilalent equations (equations that have the same solution) that can be solve very easily. The
transformation is carried out by applying certain operations.
The solution does not contain any truncation errors but the errors is introduced due to floating point
operations.
Iterative or indirect methods, start with a guesses of the solution x, and then repeatedly refine the
solution until a certain convergence criterion is reached. Iterative methods are generally less efficient than
direct methods due to the large number of operations required. The solution contains truncation error. A
serious drawback of iterative methods is that they do not always converge to the solution. The initial
guess affects only the number of iterations that are required for convergence. The indirect solution
technique (iterative) is more useful to solve a set of ill-conditioned equations.
In this chapter, we will present six direct methods and indirect (iterative) methods.
Direct Methods:
1. Gauss Elimination method
2. Gauss method with partial pivoting
3. Gauss Jordan method
4. Jordan’s method for matrix inversion
5. Matrix decomposition (LU decomposition matrix)
6. Tri-diagonal matrix method
Indirect Methods:
1. Jacobi’s Iteration method
2. Gauss-Seidal Iteration method
3.3 GAUSS ELIMINATION METHOD
Consider the following system of linear simultaneous equations:
Consider the following system of linear simultaneous equations:
(
(
(
Gauss elimination is a popular technique for solving simultaneous linear algebraic equations. It reduces the
coefficient matrix into an upper triangular matrix through a sequence of operations carried out on the matrix. The
vector b is also modified in the process. The solution vector {x} is obtained from a backward substitution procedure.
Two linear systems Ax = b and A' x = b' of equations are said to be equivalent if any solution of one
is a solution of the other. Also, let Ax = b is a linear non-homogeneous system of n equations. Suppose we
subject this system to the system of following operations:
1. Multiplication of one equation by a non-zero constant.
2. Addition of a multiple of one equation to another equation.
3. Interchange of two equations.
If the sequence of operations produce the new system A’x = b’, then both the systems Ax = b and
A’x = b' are equivalent. In particular, then A is invertible if A’is invertible. In Gauss elimination method, we
adopt this and the elimination process is based on this theorem.
In Gauss elimination method, the unknowns are eliminated such that the elimination process leads to an
Upper triangular system and the unknowns are obtained by back substitution. It is assumed . The
method can be described by the following steps:
Step 1: Eliminate x1 from the second and third equations.
Using the first equation (3.2), the following operations are performed:
( ( ) ( ( ( ) (
(
(
(
(
( (
operation:
( ( ) (
To (
(
(
(
Step 3: (
( (
Pivoting:
Gauss elimination method fails if any one of the pivots in the above equations (3.2) to (3.10) becomes
zero.
To overcome this difficulty, the equations are to be rewritten in a slightly different order such that the
pivots are not zero.
Partial pivoting method:
Step 1: The numerically largest coefficient of is selected from all the equations are pivot and the
corresponding equation becomes the first equation (3.2).
Step 2: The numerically largest coefficient of is selected from all the remaining equations as pivot and
the corresponding equation becomes the second equation (3.6). This process is repeated till an equation
into a simple variable is obtained.
Complete pivoting method:
In this method, we select at each stage the numerically largest coefficient of the complete matrix of
coefficients. This procedure leads to an interchange of the equations as well as interchange of the position
of variables.
Example 3:1
Solve the following equations by Gauss elimination method:
– –
Solution:
3.3 Gauss-Jordan method
Gauss-Jordan method is an extension of the Gauss elimination method. The set of equations Ax = b is
reduced to a diagonal set Ix = b', where I is a unit matrix. This is equivalent to x = b'. The solution vector
is therefore obtained directly from b'. The Gauss-Jordan method implements the same series of operations
as implemented by Gauss elimination process. The main difference is that it applies these operations
below as well as above the diagonal such that all off-diagonal elements of the matrix are reduced to zero.
Gauss-Jordan method also provides the inverse of the coefficient matrix A along with the solution vector
{x}. The Gauss-Jordan method is highly used due to its stability and direct procedure. The Gauss-Jordan
method requires more computational effort than Gauss elimination process.
Gauss-Jordan method is a modification of Gauss elimination method. The series of operations performed
are quite similar to the Gauss elimination method. In the Gauss elimination method, an upper triangular
matrix is derived while in the Gauss-Jordan method an identity matrix is derived. Hence, back
substitutions are not required.
Example 3.2
Solve the following equations by Gauss-Jordan method.
–
Solution:
Example 3.3
Solve 2x1 + 6x2 + x3 = 7
x1 + 2x2 – x3 = –1
5x1 + 7x2 – 4x3 = 9
Using (a) Gaussian elimination and (b) Gauss-Jordan elimination.
Solution:
3.3 LU Decomposition:
For instance
[ ] [ ] [ ]
The process of computing L and U for a given A is known as LU Decomposition or LU Factorization. LU
decomposition is not unique (the combinations of L and U for a prescribed A are endless), unless certain
constraints are placed on L or U. These constraints distinguish one type of decomposition from another.
Two commonly used decompositions are given below:
1
2
After decomposing the matrix A, it is easier to solve the equations Ax = b.
We can rewrite the equations as
or
This equation can be solved for y by forward substitution. Then will yield x by the
backward substitution process. The advantage of LU decomposition method over the Gauss elimination
method is that once A is decomposed, we can solve for as many constant vectors b as we please.
Also, the forward and backward substitutions operations are much less time consuming than the
decomposition process.
3.3.1 CHOLESKY’S METHOD
Cholesky’s decomposition method is faster than the LU decomposition. There is no need for pivoting. If
the decomposition fails, the matrix is not positive definite.
Consider the system of linear equations
(
The above system can be written as
Ax= b (3.12)
Where [ ] [ ] [ ]
(
[ ] [ ]
Equations (3.11) can be written as
(
If we write ( 3.15)
Equations (3.14) becomes
(
Equations (3.16) is equivalent to the system
(3.17)
The above system can be solved to find the values of which give us the matrix y.
then becomes
(
This can be solved for
In order to compute the matrices L and U , we write eq.(3.13) as
[ ] [ ] = [ ] (3.19)
Multiplying the matrices on the left and equating the corresponding elements of both sides ,
We obtain
Example3.4 solve the following equations by Cholesky’s method
3.3.2. CROUT’S METHOD
Example 3.5 Solve the following set of equations by Crout’s method.
Solution:
3.4 JACOBI’S ITERATION METHOD
This method is also known as the method of simultaneous displacements. Consider the system of linear
equations
(3.20)
Here, we assume that the coefficients are the largest coefficients in the respective
equations so that
| | | | | |
| | | | | |
| | | | | | (3.21)
Jacobi’s iteration is applicaple only if the conditions given in eq.(3.21) are satisfied. Now, we can write
eq(3.20)
(
( (3.22)
(
Let the initial approximations be The following iterations are then carried out.
Iteration 1 : The first improvements are found as
(
( (3.23)
(
Iteration 2 : The first improvements are found as
(
( (3.23)
(
The above iteration process is continued until the values of x1, x2 and x3 are found to a pre-assigned
degree of accuracy. That is, the procedure is continued until the relative error between two consecutive
vector norm is satisfactorily small. In Jacobi’s method, it is a general practice to assume
. The method can be extended to a system of n linear simultaneous equations in n unknowns.
Example 3:6 .
Solution:
Example 3:7 .
Solution:
3:6 GAUSS-SEIDAL ITERATION METHOD
The Gauss-Seidal method is applicable to predominantly diagonal systems. A predominantly diagonal
system has large diagonal elements. The absolute value of the diagonal element in each case is larger than
the sum of the absolute values of the other elements in that row of the matrix A. For such predominantly
diagonal systems, the Gauss-Seidal method always converges to the correct solution, irrespective of the
choice of the initial estimates. Since the most recent approximations of the variables are used while
proceeding to the next step, the convergence of the Gauss-Seidal method is twice as fast as in Jacobi’s
method. The Gauss-Seidal and Jacobi’s methods converge for any choice of the initial approximations, if
in each equation of the system; the absolute value of the largest coefficient is greater than the sum of the
absolute values of the remaining coefficients. In other words,
∑
| |
| |
Where the inequality holds in case of at least one equation. Convergence is assured in the Gauss-Seidal
method if the matrix A is diagonally dominant and positive definite. If it is not in a diagonally dominant
form, it should be connected to a diagonally dominant form by row exchanger, before starting the Gauss-
Seidal iterative scheme.
Gauss-Seidal method is also an iterative solution procedure which is an improved version of Jacobi’s
method. The method is also known as the method of successive approximations.
Consider the system of linear simultaneous equations
(3.24)
If the absolute value of the largest coefficient in each equation is greater than the sum of the absolute
values of all the remaining coefficients, then the Gauss-Seidal iteration method will converge. If this
condition is not satisfied, then Gauss-Seidal method is not applicable. Here, in Eq.(3.24), we assume the
coefficient a11, a22 and a33 are the largest coefficients.
We can rewrite Eq.(3.24) as
(
( (3.25)
(
Let the initial approximations be The following iterations are then carried out.
Iteration 1 : The first improvements are found as
(
( (3.26)
(
Iteration 2 : The first improvements are found as
(
( (3.27)
(
The above iteration process is continued until the values of x1, x2 and x3 are found to a pre-assigned
degree of accuracy. In general, the initial approximations are assumed as . Gauss-
seidal method generally converges for any initial values of as The convergence rate of
Gauss-Seidal method is found to be twice to that of Jacobi’s method. Like the Jacobi’s method, Gauss-
Seidal method can also be extended to a system of n linear simultaneous equations in n unknowns.
Example 3:9 Solve the following equations by Gauss-Seidal method
Solution:
Example 3:10 Using the Gauss-Seidal method solve the system of equations correct to three decimal
places
Solution:

More Related Content

Similar to CHAPTER 3 numer.pdf

Gauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptxGauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptxAHSANMEHBOOB12
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
System of equations
System of equationsSystem of equations
System of equationsmariacadena
 
Gauss y gauss jordan
Gauss y gauss jordanGauss y gauss jordan
Gauss y gauss jordanjonathann89
 
Iterativos Methods
Iterativos MethodsIterativos Methods
Iterativos MethodsJeannie
 
Iterativos methods
Iterativos methodsIterativos methods
Iterativos methodsJeannie
 
Linear equations
Linear equationsLinear equations
Linear equationsNisarg Amin
 
Chapter 3: Linear Systems and Matrices - Part 1/Slides
Chapter 3: Linear Systems and Matrices - Part 1/SlidesChapter 3: Linear Systems and Matrices - Part 1/Slides
Chapter 3: Linear Systems and Matrices - Part 1/SlidesChaimae Baroudi
 
Pair of linear equations
Pair of linear equationsPair of linear equations
Pair of linear equationsYash Jain
 
Linear equations rev - copy
Linear equations rev - copyLinear equations rev - copy
Linear equations rev - copyYash Jain
 
Directs Methods
Directs MethodsDirects Methods
Directs MethodsUIS
 
Interactives Methods
Interactives MethodsInteractives Methods
Interactives MethodsUIS
 
Some methods for small systems of equations solutions
Some methods for small systems of equations solutionsSome methods for small systems of equations solutions
Some methods for small systems of equations solutionsmarcelafernandagarzon
 

Similar to CHAPTER 3 numer.pdf (20)

Gauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptxGauss Jorden and Gauss Elimination method.pptx
Gauss Jorden and Gauss Elimination method.pptx
 
System of equations
System of equationsSystem of equations
System of equations
 
System of equations
System of equationsSystem of equations
System of equations
 
System of equations
System of equationsSystem of equations
System of equations
 
System of equations
System of equationsSystem of equations
System of equations
 
System of equations
System of equationsSystem of equations
System of equations
 
Gauss y gauss jordan
Gauss y gauss jordanGauss y gauss jordan
Gauss y gauss jordan
 
Iterativos Methods
Iterativos MethodsIterativos Methods
Iterativos Methods
 
Iterativos methods
Iterativos methodsIterativos methods
Iterativos methods
 
Linear equations
Linear equationsLinear equations
Linear equations
 
Chapter 3: Linear Systems and Matrices - Part 1/Slides
Chapter 3: Linear Systems and Matrices - Part 1/SlidesChapter 3: Linear Systems and Matrices - Part 1/Slides
Chapter 3: Linear Systems and Matrices - Part 1/Slides
 
Pair of linear equations
Pair of linear equationsPair of linear equations
Pair of linear equations
 
Linear equations rev - copy
Linear equations rev - copyLinear equations rev - copy
Linear equations rev - copy
 
Directs Methods
Directs MethodsDirects Methods
Directs Methods
 
Interactives Methods
Interactives MethodsInteractives Methods
Interactives Methods
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
01 algebra
01 algebra01 algebra
01 algebra
 
Some methods for small systems of equations solutions
Some methods for small systems of equations solutionsSome methods for small systems of equations solutions
Some methods for small systems of equations solutions
 
ge.ppt
ge.pptge.ppt
ge.ppt
 

Recently uploaded

The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyEthan lee
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Roomdivyansh0kumar0
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdftbatkhuu1
 
Understanding the Pakistan Budgeting Process: Basics and Key Insights
Understanding the Pakistan Budgeting Process: Basics and Key InsightsUnderstanding the Pakistan Budgeting Process: Basics and Key Insights
Understanding the Pakistan Budgeting Process: Basics and Key Insightsseri bangash
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsMichael W. Hawkins
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfPaul Menig
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Roland Driesen
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 DelhiCall Girls in Delhi
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Delhi Call girls
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 

Recently uploaded (20)

The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdf
 
Understanding the Pakistan Budgeting Process: Basics and Key Insights
Understanding the Pakistan Budgeting Process: Basics and Key InsightsUnderstanding the Pakistan Budgeting Process: Basics and Key Insights
Understanding the Pakistan Budgeting Process: Basics and Key Insights
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael Hawkins
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 

CHAPTER 3 numer.pdf

  • 1. CHAPTER 3 Solutions of linear system of equations 3.1 Introduction Systems of equations are associated with many problems in engineering and science ,as well as with applications of mathematics to the social sciences and quantitative study of business and economic problems. ……………………………………….. (3.1) . . . Where ( ( ( ) In the matrix notation, the system (3.1) can be written as Ax=b……………………………………………………………………… (3.1a) [ ⁄ ] A system of linear equations in n unknowns has a unique solution, provided that determinant of the coefficient matrix is nonsingular i.e., if |A| . If the coefficient of matrix is singular, the equations may have infinite number of solutions, or no solutions at all, depending on the constant vector. 3.2 Methods of solution There are two classes of methods for solving system of linear equations: direct and iterative methods.
  • 2. The common characteristics of direct methods are that they transformation the original equations into equavilalent equations (equations that have the same solution) that can be solve very easily. The transformation is carried out by applying certain operations. The solution does not contain any truncation errors but the errors is introduced due to floating point operations. Iterative or indirect methods, start with a guesses of the solution x, and then repeatedly refine the solution until a certain convergence criterion is reached. Iterative methods are generally less efficient than direct methods due to the large number of operations required. The solution contains truncation error. A serious drawback of iterative methods is that they do not always converge to the solution. The initial guess affects only the number of iterations that are required for convergence. The indirect solution technique (iterative) is more useful to solve a set of ill-conditioned equations. In this chapter, we will present six direct methods and indirect (iterative) methods. Direct Methods: 1. Gauss Elimination method 2. Gauss method with partial pivoting 3. Gauss Jordan method 4. Jordan’s method for matrix inversion 5. Matrix decomposition (LU decomposition matrix) 6. Tri-diagonal matrix method Indirect Methods: 1. Jacobi’s Iteration method 2. Gauss-Seidal Iteration method 3.3 GAUSS ELIMINATION METHOD Consider the following system of linear simultaneous equations: Consider the following system of linear simultaneous equations: ( ( ( Gauss elimination is a popular technique for solving simultaneous linear algebraic equations. It reduces the coefficient matrix into an upper triangular matrix through a sequence of operations carried out on the matrix. The vector b is also modified in the process. The solution vector {x} is obtained from a backward substitution procedure. Two linear systems Ax = b and A' x = b' of equations are said to be equivalent if any solution of one
  • 3. is a solution of the other. Also, let Ax = b is a linear non-homogeneous system of n equations. Suppose we subject this system to the system of following operations: 1. Multiplication of one equation by a non-zero constant. 2. Addition of a multiple of one equation to another equation. 3. Interchange of two equations. If the sequence of operations produce the new system A’x = b’, then both the systems Ax = b and A’x = b' are equivalent. In particular, then A is invertible if A’is invertible. In Gauss elimination method, we adopt this and the elimination process is based on this theorem. In Gauss elimination method, the unknowns are eliminated such that the elimination process leads to an Upper triangular system and the unknowns are obtained by back substitution. It is assumed . The method can be described by the following steps: Step 1: Eliminate x1 from the second and third equations. Using the first equation (3.2), the following operations are performed: ( ( ) ( ( ( ) ( ( ( ( ( ( ( operation: ( ( ) ( To ( ( ( ( Step 3: ( ( ( Pivoting: Gauss elimination method fails if any one of the pivots in the above equations (3.2) to (3.10) becomes zero. To overcome this difficulty, the equations are to be rewritten in a slightly different order such that the pivots are not zero. Partial pivoting method: Step 1: The numerically largest coefficient of is selected from all the equations are pivot and the corresponding equation becomes the first equation (3.2). Step 2: The numerically largest coefficient of is selected from all the remaining equations as pivot and the corresponding equation becomes the second equation (3.6). This process is repeated till an equation into a simple variable is obtained. Complete pivoting method: In this method, we select at each stage the numerically largest coefficient of the complete matrix of coefficients. This procedure leads to an interchange of the equations as well as interchange of the position of variables. Example 3:1 Solve the following equations by Gauss elimination method: – – Solution:
  • 4. 3.3 Gauss-Jordan method Gauss-Jordan method is an extension of the Gauss elimination method. The set of equations Ax = b is reduced to a diagonal set Ix = b', where I is a unit matrix. This is equivalent to x = b'. The solution vector is therefore obtained directly from b'. The Gauss-Jordan method implements the same series of operations as implemented by Gauss elimination process. The main difference is that it applies these operations below as well as above the diagonal such that all off-diagonal elements of the matrix are reduced to zero. Gauss-Jordan method also provides the inverse of the coefficient matrix A along with the solution vector {x}. The Gauss-Jordan method is highly used due to its stability and direct procedure. The Gauss-Jordan method requires more computational effort than Gauss elimination process. Gauss-Jordan method is a modification of Gauss elimination method. The series of operations performed are quite similar to the Gauss elimination method. In the Gauss elimination method, an upper triangular matrix is derived while in the Gauss-Jordan method an identity matrix is derived. Hence, back substitutions are not required. Example 3.2 Solve the following equations by Gauss-Jordan method. – Solution: Example 3.3 Solve 2x1 + 6x2 + x3 = 7 x1 + 2x2 – x3 = –1 5x1 + 7x2 – 4x3 = 9 Using (a) Gaussian elimination and (b) Gauss-Jordan elimination. Solution: 3.3 LU Decomposition: For instance [ ] [ ] [ ] The process of computing L and U for a given A is known as LU Decomposition or LU Factorization. LU decomposition is not unique (the combinations of L and U for a prescribed A are endless), unless certain constraints are placed on L or U. These constraints distinguish one type of decomposition from another. Two commonly used decompositions are given below: 1 2 After decomposing the matrix A, it is easier to solve the equations Ax = b. We can rewrite the equations as or
  • 5. This equation can be solved for y by forward substitution. Then will yield x by the backward substitution process. The advantage of LU decomposition method over the Gauss elimination method is that once A is decomposed, we can solve for as many constant vectors b as we please. Also, the forward and backward substitutions operations are much less time consuming than the decomposition process. 3.3.1 CHOLESKY’S METHOD Cholesky’s decomposition method is faster than the LU decomposition. There is no need for pivoting. If the decomposition fails, the matrix is not positive definite. Consider the system of linear equations ( The above system can be written as Ax= b (3.12) Where [ ] [ ] [ ] ( [ ] [ ] Equations (3.11) can be written as ( If we write ( 3.15) Equations (3.14) becomes ( Equations (3.16) is equivalent to the system (3.17) The above system can be solved to find the values of which give us the matrix y. then becomes
  • 6. ( This can be solved for In order to compute the matrices L and U , we write eq.(3.13) as [ ] [ ] = [ ] (3.19) Multiplying the matrices on the left and equating the corresponding elements of both sides , We obtain Example3.4 solve the following equations by Cholesky’s method
  • 7. 3.3.2. CROUT’S METHOD Example 3.5 Solve the following set of equations by Crout’s method. Solution:
  • 8. 3.4 JACOBI’S ITERATION METHOD This method is also known as the method of simultaneous displacements. Consider the system of linear equations (3.20) Here, we assume that the coefficients are the largest coefficients in the respective equations so that | | | | | | | | | | | | | | | | | | (3.21) Jacobi’s iteration is applicaple only if the conditions given in eq.(3.21) are satisfied. Now, we can write eq(3.20) ( ( (3.22) ( Let the initial approximations be The following iterations are then carried out. Iteration 1 : The first improvements are found as ( ( (3.23) ( Iteration 2 : The first improvements are found as ( ( (3.23) (
  • 9. The above iteration process is continued until the values of x1, x2 and x3 are found to a pre-assigned degree of accuracy. That is, the procedure is continued until the relative error between two consecutive vector norm is satisfactorily small. In Jacobi’s method, it is a general practice to assume . The method can be extended to a system of n linear simultaneous equations in n unknowns. Example 3:6 . Solution: Example 3:7 . Solution:
  • 10. 3:6 GAUSS-SEIDAL ITERATION METHOD The Gauss-Seidal method is applicable to predominantly diagonal systems. A predominantly diagonal system has large diagonal elements. The absolute value of the diagonal element in each case is larger than the sum of the absolute values of the other elements in that row of the matrix A. For such predominantly diagonal systems, the Gauss-Seidal method always converges to the correct solution, irrespective of the choice of the initial estimates. Since the most recent approximations of the variables are used while proceeding to the next step, the convergence of the Gauss-Seidal method is twice as fast as in Jacobi’s method. The Gauss-Seidal and Jacobi’s methods converge for any choice of the initial approximations, if in each equation of the system; the absolute value of the largest coefficient is greater than the sum of the absolute values of the remaining coefficients. In other words, ∑ | | | | Where the inequality holds in case of at least one equation. Convergence is assured in the Gauss-Seidal method if the matrix A is diagonally dominant and positive definite. If it is not in a diagonally dominant form, it should be connected to a diagonally dominant form by row exchanger, before starting the Gauss- Seidal iterative scheme. Gauss-Seidal method is also an iterative solution procedure which is an improved version of Jacobi’s method. The method is also known as the method of successive approximations. Consider the system of linear simultaneous equations (3.24) If the absolute value of the largest coefficient in each equation is greater than the sum of the absolute values of all the remaining coefficients, then the Gauss-Seidal iteration method will converge. If this condition is not satisfied, then Gauss-Seidal method is not applicable. Here, in Eq.(3.24), we assume the coefficient a11, a22 and a33 are the largest coefficients. We can rewrite Eq.(3.24) as ( ( (3.25) ( Let the initial approximations be The following iterations are then carried out. Iteration 1 : The first improvements are found as ( ( (3.26) (
  • 11. Iteration 2 : The first improvements are found as ( ( (3.27) ( The above iteration process is continued until the values of x1, x2 and x3 are found to a pre-assigned degree of accuracy. In general, the initial approximations are assumed as . Gauss- seidal method generally converges for any initial values of as The convergence rate of Gauss-Seidal method is found to be twice to that of Jacobi’s method. Like the Jacobi’s method, Gauss- Seidal method can also be extended to a system of n linear simultaneous equations in n unknowns. Example 3:9 Solve the following equations by Gauss-Seidal method Solution:
  • 12. Example 3:10 Using the Gauss-Seidal method solve the system of equations correct to three decimal places Solution: