0% found this document useful (0 votes)
14 views15 pages

Solving Systems of Equations Methods

Chapter Three discusses various methods for solving systems of equations, including direct methods like Gauss Elimination, Gauss-Jordan, and Matrix Inverse Method, as well as iterative methods such as Jacobi and Gauss-Seidel. It provides examples and exercises for each method, emphasizing the importance of reordering equations when necessary and the simplicity of using software like MATLAB for implementation. Additionally, it introduces Newton's Method for solving systems of nonlinear equations, with exercises to reinforce learning.

Uploaded by

Hailu Feleke
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views15 pages

Solving Systems of Equations Methods

Chapter Three discusses various methods for solving systems of equations, including direct methods like Gauss Elimination, Gauss-Jordan, and Matrix Inverse Method, as well as iterative methods such as Jacobi and Gauss-Seidel. It provides examples and exercises for each method, emphasizing the importance of reordering equations when necessary and the simplicity of using software like MATLAB for implementation. Additionally, it introduces Newton's Method for solving systems of nonlinear equations, with exercises to reinforce learning.

Uploaded by

Hailu Feleke
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Chapter Three

System of Equations
[Link] Methods

1
3.1.1 Gauss Elimination method

Example 1: Solve the following system

2
In the example, we had a11  0 . Otherwise we would not have been able to eliminate x1 by
using the equations in the given order. Hence if a11  0 in the system of equations, we have to
reorder the equations ( and perhaps even the unknowns in each equation) in a suitable fashion.

3
Exercise: Using Gauss elimination method solve

y  3z  9
2x  2 y  z  8
 x  5z  8

 x  2
Answer:  y   3
 z  2

3.1.2 Gauss elimination with partial pivoting

3.1.3 Jordan Method ( Gauss-Jordan method)

4
Example:- Solve the following system of equations by Gauss Jordan method

x yz 5
2 x  3 y  5z  8
4 x  5z  2

Exercise

Answer: x1  1, x2  1, x3  5
5
3.1.4 Matrix inverse Method

So that in order to solve a system of linear equations Ax  b , if A is invertible the solution will
be x  A 1b . Getting a solution by such procedure is called Matrix inverse method. To use this
method, the challenge is getting an inverse of a matrix, especially when the order is getting
larger and larger. As you recall from linear algebra one of the method is using elementary
operation, that is writing [ A I ]  [ I A1 ] .

Once if we get A1 we can multiply it with b and determine the solution of the system.

Example:- Solve the following system using matrix inverse method

x yz 4
2 x  y  3z  0
x yz 2

Solution

1  1 1   x 4
First let us write in AX  b form where A  2 1  3, X   y  , and B  0 now to apply
   

1 1 1   z  2
the matrix inverse method we have to get A1 . We can get it (by whatever method you use) as

4 2 2  x 4 2 2 4  2 
A 1   5 0 5 , so that our solution will be  y    5 0 5 0   1
1 1
10   10     
 1  2 3  z   1  2 3 2  1 

Note that this method is so simple if you use the matlab program in the lab.

Reading Assignment
 Write a program for Gauss elimination & Matrix inverse method and check it by
solving system of equations given as an example.

6
3.2. Iterative Methods

3.2.1 Gauss Jacobi Method( Jacobi’s iterative method) and 3.2.2 Gauss Seidel Method

7
8
9
Example:-Solve the following system of linear equations using (a) Jacobi’s iteration method and
(b) Gauss-Seidel iteration method

10
Exercise

1. Solve the following system using Jacobi’s iteration method


6 x  y  3z  3
3x  7 y  2 z  20 ( Ans. X=1,y=1, and z=2)
 5 x  12 y  24 z  13
2. Solve the following system using Gauss-Seidel iteration method
2 x1  x2  x3  1
x1  2 x2  x3  6 ( Ans. x1  1, x2  2 and x3  1)
x1  x2  2 x3  3

Comp. Lab Exercise

Write a program to Gauss-Seidel iteration method using Matlab software and solve the above
problems
11
3.3 System of Non Linear equations using Newton’s Method

12
13
14
Example:-

Exercise፡- 1. Solve the system

x2  y2  1 x   0. 5
using Newton’s method by taking initial guess  0    
yx 2
 y 0   0. 5

2. Write a Matlab program for iterative Newton’s method and solve the above problems

15

Common questions

Powered by AI

MATLAB optimizes the computational processes involved in both Gauss and Matrix Inverse methods through built-in functions like 'inv' for matrix inversion and 'lgsolve' for Gauss elimination, which take advantage of efficient algorithms and optimized linear algebra libraries. This reduces manual coding effort, minimizes human error, and speeds up computations, which is advantageous for handling large-scale problems and performing repeated calculations .

The initial guess critically impacts the convergence of Newton's method as a poor choice can lead to divergence or convergence to an unintended solution. A good initial guess should ideally be close to the actual solution to exploit Newton's method's quadratic convergence rate. Evaluating the behavior of the function and plotting them when possible can aid in selecting a suitable starting point .

Writing MATLAB programs allows students to deepen their understanding of numerical methods by translating theoretical concepts into practical algorithms, thereby enhancing problem-solving skills. This hands-on approach fosters critical thinking, reinforces conceptual knowledge, and improves computational literacy, which are crucial for tackling complex mathematical problems in professional environments .

The Gauss-Seidel method can be enhanced with Successive Over-Relaxation (SOR) by accelerating convergence through overestimation of the update to each variable. SOR involves introducing a relaxation factor that adjusts each iteration's step size, effectively balancing the speed and stability of convergence, which is especially beneficial for sparse or diagonally dominant systems .

The matrix inverse method is preferable when the system of equations involves a constant matrix that must be repeatedly solved for different right-hand side vectors, as it allows the inverse to be reused. This method is particularly advantageous in computational environments, such as MATLAB, where inverse calculations are optimized. However, it may not be ideal for larger systems where calculating the inverse is computationally intensive .

The Gauss-Jacobi method uses the previous iteration's values for all variables to calculate the new ones simultaneously, making it straightforward but potentially slower in terms of convergence. Conversely, the Gauss-Seidel method updates each variable sequentially using the most recent updates, which often accelerates convergence by incorporating the latest information. This makes Gauss-Seidel generally more efficient for large systems with well-conditioned diagonal dominance .

The Gauss-Jordan method extends the Gauss elimination method by not only transforming the coefficient matrix into an upper triangular matrix but further into the reduced row echelon form. This provides solutions directly without requiring back substitution, making it advantageous for systems where obtaining the explicit inverse of the matrix is beneficial or when solutions need to be verified swiftly .

In the Gauss Elimination method, if a leading coefficient is zero, the method cannot proceed with eliminating variables using the given order of equations. This necessitates reordering the equations, and possibly the unknowns, to ensure that a non-zero coefficient can be used effectively for elimination. This step is crucial in maintaining the functionality and accuracy of the elimination process .

Calculating the inverse of large-scale matrices can be computationally demanding due to the extensive operations required, which may lead to numerical instability and increased computational time. Mitigation strategies include using numerical software optimized for such calculations (e.g., MATLAB), employing decomposition methods like LU decomposition, and applying iterative methods that are stability-focused to approximate solutions .

Newton's method is favored for non-linear systems due to its quadratic convergence rate, which rapidly decreases the error after a few iterations when close to the actual solution. This method is particularly useful for systems where local linear approximations provide adequate progression towards the solution, but it requires good initial guesses and can be computationally expensive due to the calculation of derivatives .

You might also like