3

Solution of System of Linear Algebraic Equations

3.0 INTRODUCTION

Very often we encounter simultaneous linear equations in various fields of science and engineering. We have seen the analysis of electronic circuits consisting of invariant elements ultimately depend on the solution of such equations by determinant and matrix methods. These methods become tedious for large systems of equations. To solve such equations there are numerical methods which are suitable for computations using computers. The methods of solution of linear algebraic equations may broadly be classified into two types, namely, direct methods and indirect methods.

Direct methods produce exact solution after a finite number of steps (disregarding round off errors). So direct method is also known as exact method.

Indirect methods give a sequence of approcimate solutions, which ultimately approach the actual solution. Iterative method is some times referred to as indirect method.

In this chapter, we also consider eigen value problems and method of factorisation or method of triangularisation to solve the system of equations.

3.1 DIRECT METHODS

3.1.1 Matrix Inverse Method

Consider the system of n linear equations in n variables Eqn2

Eqn3(1)

Eqn4, Eqn5a and Eqn5b

Then the system (1) can be written as a single matrix equation as

Eqn6(2)

If A is non-singular, then Eqn7 and the inverse matrix Eqn8 exists and Eqn9

where

Eqn10

Eqn11 Mij and Mij is the minor of aij in Eqn12.

Pre multiplying (2) by Eqn13 we get

Eqn14 is the solution of (1)

WORKED EXAMPLES

Example 1

Solve the system of equations Eqn16; Eqn17.png; Eqn18.eps.

Solution

Given system is

Eqn19

Here

Eqn20 Eqn21a and Eqn21b

Now

Eqn22a

Eqn23 exists and Eqn24

Now

Eqn25

Eqn26

Eqn26aa

Eqn26c

Eqn26a

∴ the solution is Eqn27

Eqn28

∴ the solution is Eqn28b

Example 2

Solution

Given system is

Eqn32

Here

Eqn33 and Eqn34

∴ the given system is AX= B.

Now

Eqn36

Eqn37 exists and Eqn38

Now

Eqn39

Eqn40

∴ the solution is Eqn41

Eqn42

Eqn42c

Eqn42d

∴ the solution is Eqn43, Eqn44, Eqn45

3.1.2 Gauss Elimination Method

It is a direct method. In this method the unknowns are eliminated in such a way the n equations in n unknowns are reduced to an equivalent upper triangular system which is then solved by back substitution. The method is explained below.

For simplicity, we shall consider a system of 3 equations in 3 unknowns Eqn80.

Eqn81(1)

Eqn82(2)

Eqn83(3)

Let Eqn84

Then the system of equations can be written as a single matrix equation AX = B

The augmented matrix is Eqn85

First step is to eliminate x1 from the 2nd and 3rd equation.

So we multiply (1) by Eqn86 and add with (2).

If Eqn87 then multiply (1) by Eqn88 and add with (3).

Then Eqn89will be eliminated from (2) and (3).

We will get an equivalent system.

Eqn90 is called the first pivot and the equation (1) is called the pivotal equation.

In case Eqn91, we interchange the equations and take the equation for which coefficient of Eqn92 as the first equation.

∴ the augmented matrix will become

Eqn93

Now the second step is to eliminate x2 from the new third equation (or third row in the matrix). For this Eqn94 is the new pivot or second pivot.

Multiply the second row by Eqn95 and add to third row.

So, at the end of second step

Eqn96

Thus the equations are reduced to an equivalent system of equations.

Eqn97

From third equation we get x3, which can be substituted back in 2nd equation we get x2 and then from the first equation we get x1.

This elimination procedure is known as Gauss elimination method.

Partial pivoting: In the first step of elimination, the first column is searched for the numerically largest element and brought it as the first pivot by interchanging the rows. In the second step of elimination, the second column is searched for the numerically largest element among the remaining Eqn98 elements (leaving the first row) and it is brought as the 2nd pivot by interchange and so on. This procedure is continued and the coefficient matrix is reduced to an upper triangular matrix. This modified form of elimination is known as partial pivoting. This method ensures that errors are not propagated by large multipliers.

Complete pivoting: We search the coefficient matrix A for the numerically largest element and brought it as the first pivot, by suitable interchanges of rows and also interchange of position of the elements. At each step if we adopt this procedure the method is known as complete pivoting. But, this procedure is complicated and it does not improve accuracy appreciably.

WORKED EXAMPLES

Example 1

Solve by Gauss elimination method the equations 2 x + y + 4 z = 12; 8 x - 3 y + 2 z = 20; 4 x + 11 y - z = 33.

Solution

Given system is

Eqn99

The augmented matrix is

Eqn100

∴ the equivalent reduced equations are

Eqn101

Eqn102

∴ the solution is Eqn103

Example 2

Solve the equations Eqn104 by Gauss elimination method.

Solution

Given system is

Eqn105

We shall rearrange the equations as

Eqn106

The augmented matrix is

Eqn107

∴ the equivalent equations are

Eqn108

Eqn109

Eqn109a

∴ the solution is Eqn110

Example 3

Solve by Gauss elimination method the equations x 1 + x 2 + x 3 + x 4 = 2; x 1 + x 2 + 3 x 3 − 2 x 4 = −6; 2 x 1 + 3 x 2x 3 + 2 x 4 = 7; x 1 + 2 x 2 + x 3x 4 = −2.

Solution

Given system is

Eqn125

The augmented matrix is

Eqn126a

Eqn126b

∴ the equivalent reduced equations are

Eqn127

Eqn127

Eqn128

∴ the solution is Eqn129

3.1.3 Gauss-Jordan Method

This is a direct method which is a modification of Gauss elimination method. After eliminating one variable by Gauss elimination method, in the subsequent stages the elimination is performed not only in the equations below but also in the equations above. Thus the coefficient matrix is reduced to a diagonal matrix and hence the values of the unknowns are readily obtained. This modification is due to Jordan and hence it is known as Gauss-Jordan method.

Note: For large system of equations the number of algebraic operations involved in this method is more and so Gauss elimination method is preferred.

WORKED EXAMPLES

Example 1

Solve by Gauss-Jordan method the equations x + y + z = 9; 2 x − 3 y + 4 z = 13; 3 x + 4 y + 5 z = 40.

Solution

Given system is

Eqn140

The augmented matrix is

Eqn141a

∴ the solution is Eqn142

Example 2

Using Gauss-Jordan method solve 10 x + y + z = 12; 2 x + 10 y + z = 13; x + y + 5 z = 7.

Solution

Given system is>

Eqn127

Eqn144

Rearranging the equations, we get

Eqn145

The augmented matrix is

Eqn146

∴ the solution is Eqn147

Example 3

Eqn157a

Solution

Given system of equations is

Eqn158

The augmented matrix is

Eqn159

Eqn160

∴ the solution is Eqn161

Example 4

Solve the linear system Eqn162 Eqn162aEqn162b Eqn162c
by Gauss-Jordan method.

Solution

Given system is

Eqn697

Rearranging the system, we get

Eqn704

The augmented matrix is

Eqn163

Eqn163a

Eqn164

Eqn165

∴ the solution is Eqn166

3.1.4 Matrix Inverse by Gauss-Jordan Method

We shall explain the method for 3 × 3 matrix.

Eqn173

If A is non-singular, then there exists a 3 × 3 matrix

Eqn174

such that AX = I

Eqn174

This equation is equivalent to the three equations below:

Eqn175 (1)

Eqn175 (2)

and

Eqn175 (3)

Equation (1) is a system of linear equations. Solving by Jordan’s method (or by Gauss elimination method) we get Eqn176 and so the vector Eqn177 is known. Similarly solving (2) and (3) we get the other columns of X and hence X is known. This matrix X is the inverse of A.

Now to solve the equation (1), we start with the augmented matrix Eqn178 where Eqn179 and transform by row operations so that A is reduced to unit matrix in Jordan’s method, then we write the solution for Eqn180 directly.

The same procedure is applied to solve (2) and (3) by writing Eqn182a and Eqn182.

In practice we will not do this individually and convert A into a unit matrix, but we start with Eqn183 and convert A into unit matrix by row operations and find X.

Working Rule

Consider the augmented matrix [A, I ], where I is the identity matrix of the same order as A. By row operations reduce A into a unit matrix, then correspondingly I will be changed into a matrix X. This matrix X is the inverse of A. It is advisable to change the pivot element to 1 before applying row operations at each step.

WORKED EXAMPLES

Example 1

Using Gauss-Jordan method, find the inverse of the matrix Eqn702

Solution

Given

new1

Consider the augmented matrix

Eqn185

Eqn186a

Eqn186 (The pivot 2 in R2 is reduced to 1)

Eqn187

Eqn187 (The pivot 2 in R3 is reduced to 1)

Eqn188

∴ the inverse matrix of A is Eqn189

Example 2

Find the inverse of the matrix Eqn700 by Gauss-Jordan method.

Solution

Given

new2

Consider the augmented matrix

Eqn191b

Eqn191a ( The pivot 4 in R1 is reduced to 1)

Eqn192 ( The pivot Eqn193 in R2 is reduced to 1) ( The pivot Eqn195_1 in R3 is reduced to 1)

Eqn196

∴ the inverse of A is Eqn197

Example 3

Solve the system of equations Eqn211 by finding the matrix inverse by Gauss-Jordan method.

Solution

The given system of equations is

Eqn212

The coefficient matrix is

Eqn213

∴ the system of equations is Eqn214

We find Eqn215 by the method of matrix inverse by Gauss-Jordan method.

Consider the augmented matrix

Eqn216

Eqn217a

∴ the inverse is

Eqn217b

Eqn217c

Eqn217d

∴ the solution is Eqn218

Example 4

Solve the system of equations Eqn219 by finding the inverse by Gauss-Jordan method.

Solution

The given system of equations is

Eqn220

The coefficient matrix is

Eqn221

∴ the system of equation is Eqn222Eqn701

We find Eqn223 by the method of matrix inverse by Gauss-Jordan method.

Consider the augmented matrix

Eqn224

Eqn225

Eqn225b

∴ the solution is Eqn226

Exercises 3.1

  1. (I) Solve by matrix inversion the following system of equations.
    1. Eqn239
    2. Eqn240
    3. Eqn241
    4. Eqn242
    5. Eqn243
  2. (II) Solve by Gauss-elimination method.
    1. Eqn244
    2. Eqn246
    3. Eqn248
    4. Eqn250
    5. Eqn252
    6. Eqn254
    7. Eqn256
  3. (III) Solve using Gauss-Jordan method.
    1. Eqn258
    2. Eqn260
    3. Eqn262
    4. Eqn264
    5. Eqn266
    6. Eqn268
  4. (IV) Find the Matrix Inverse by Gauss-Jordan method.
    1. Eqn270 (20) Eqn272
    2. Eqn274 (22) Eqn276
    3. (23) Eqn278 (24) Eqn280
    4. (25) Solve the system of linear equations Eqn282 finding the inverse matrix by Gauss-Jordan method.
    5. (26) Solve the system of equations Eqn283, finding the inverse matrix by Gauss-Jordan method.

Answers 3.1

  1. (I)

    (1) Eqn284 (2) Eqn285

    (3) Eqn286 (4) Eqn287

    (5) Eqn288

  2. (II)

    (6) Eqn289 (7) Eqn290

    (8) Eqn291 (9) Eqn292

    (10) Eqn293 (11) Eqn294

    (12) Eqn295

  3. (III)

    (13) Eqn296 (14) Eqn297

    (15) Eqn298 (16) Eqn299

    (17) Eqn300 (18) Eqn301

  4. (IV)

    (19) Eqn302 (20) Eqn303

    (21) Eqn304 (22) Eqn305

    (23) Eqn306 (24) Eqn307

    (25) Eqn308 (26) Eqn309

3.2 ITERATIVE METHODS

We have seen iteration is a successive approximation method. We start with an approximate solution and obtain a sequence of better approximations and stop at the step when two consecutive approximations coincide upto the desired degree of accuracy. The iterative method succeeds if the sequence of approximate solutions approach the actual root. For the iteration method to succeed, each equation of the system must possess one large coefficient and the large coefficient must be attached to different unknowns in the system. In other words, the coefficient matrix A is diagonally dominant.

The system of equations

Eqn2_1

will be solvable if Eqn3_1

For example, the system of equations

Eqn4_1

as such is not diagonally dominant. But it can be rearranged as

Eqn5

This is a diagonally dominant system or the coeff icient matrix

Eqn6_1

3.2.1 Gauss-Jacobi Method

Consider the system

Eqn7_1

We shall assume the system is diagonally dominant,

ie. Eqn8_1

The system can be rewritten as

Eqn9_1

Let Eqn10_1 be the initial values of x, y, z.

Then I Iteration is

Eqn11_1

II Iteration is

Eqn12_1

and proceed this way until we reach the solution.

Note: In the absence of better estimates for the initial values Eqn13_1, we take them as 0, 0, 0.

WORKED EXAMPLES

Example 1

Solve the system of equation correct to 3 decimal places using Jacobi method.

x + 17 y – 2 z = 48; 30 x – 2 y + 3 z = 75; 2 x + 2 y + 18 z = 30

Solution

The equations in diagonally dominant form is

Eqn14_1

In Jacobi method for every iteration, the previous iteration values are used.

Initially take

new3

I Iteration:

Eqn16_1

II Iteration:

Eqn17_1

III Iteration:

Eqn18_1

IV Iteration:

Eqn19_1

V Iteration:

Eqn20_1

new4

∴ the solution correct to 3 decimal places is

Eqn21

3.2.2 Gauss-Seidel Method

Gauss-Seidel method is a refinement of Gauss-Jacobi method.

Consider the system of equations

Eqn7A

we shall assume the system is diagonally dominant,

ie. Eqn8A

The system can be written as

Eqn22

We start with the initial approximation Eqn23_1

I Iteration:

Eqn24_1

II Iteration:

Eqn25_1

At each iteration we use the latest available approximations for x,y,z. So, this method converges faster than the Jacobi method.

Note:

  1. It is found that the Gauss-Seidel iteration method is at least twice as fast as the Jacobi iteration method. So, we use Gauss-Seidel method when the method is not specified.
  2. Iteration is a self correcting method. Errors of computations made at a step will not affect the final answer, the number of iterations may be increased.
  3. In Gauss-seidel method if A is diagonally dominant, then the iteration scheme converges for any initial values of the variables.

WORKED EXAMPLES

Example 1

Eqn26a_1

Solution

We note that the largest coefficient is attached to different variables in different equations.

Also this largest coefficient is numerically larger than the sum of the other two coefficients. So, iteration method can be applied. Rearranging the equations in diagonally dominant form we have

Eqn27_1

Initially take Eqn28_1

I Iteration:

Eqn29_1

II Iteration:

Eqn30_1

III Iteration:

Eqn31_1

IV Iteration:

Eqn32_1

V Iteration:

Eqn33_1

new5

From the table of values we notice that the 4th and 5th iterations coincide upto 4 places of decimals.

So, the solution is x = 2.42548, y = 3.57302, z = 1.92595

Example 2

Apply Gauss-Seidel method to solve the system of equations 20 x + y – 2 z = 17; 3 x + 20 yz = –18; 2 x – 3 y + 20 z = 25.

Solution

We note that the largest coefficient is attached to different variables in the different equations. So the given equations are diagonally dominant.

Eqn34_1

Initially take Eqn35

I Iteration:

Eqn36_1

II Iteration:

Eqn37_1

III Iteration:

Eqn38_1

new6

We shall take the solution as Eqn39_1

It is easily verified that it is the exact solution.

Example 3

Solve by Gauss-Seidel iteration the given system of equations starting with (0, 0, 0, 0) as solution. Do 5 iterations only. 4 x 1 - x 2 - x 3 = 2; - x 1 + 4 x 2 - x 4 = 2; - x 1 + 4 x 3 - x 4 = 1; - x 2 + x 3 + 4 x 4 = 1.

Solution

The given equations are diagonally dominant.

Eqn49

Initially, take Eqn50

I Iteration:

Eqn51

II Iteration:

Eqn52

III Iteration:

Eqn53

IV Iteration:

Eqn54

V Iteration:

Eqn55

new7

∴ the solution is Eqn56

Exercises 3.2

Solve by Gauss-Seidel iteration method or Jacobi method

Solution

  1. Eqn65
  2. Eqn67
  3. Eqn69 starting with Eqn70a Eqn70
  4. Eqn72
  5. Eqn74
  6. Eqn76
  7. Eqn78
  8. Eqn80_1
  9. Eqn82_1
  10. Eqn84_1

Answers 3.2

  1. x1 = 2, y = 1, z = 3 (2) x = y = z = 2
  2. x = 1.23, y = −2.34, z = 3.45 (4) x = 0.3416, y = 0.2851, z = −0.50
  3. x = 3, y = 2, z = 1 (6) x = 1, y = −2, z = 3
  4. x = 1, y = −2, z = 1 (8) x = 1, y = 2, z = 3
  5. x = 2, y = 1, z = 3 (10) x = −13.223, y = 16.766, z = −2.306
3.3 EIGEN VALUE PROBLEM

The problem of determining the eigen values and eigen vectors of a square matrix is known as eigen value problem. This problem occurs frequently in physical and engineering problems.

Definition: Let A be a Eqn86_1 square matrix. A number Eqn87_1 is called an eigen value of A if there exists a non-zero Eqn88_1 column matrix X such that Eqn89_1.

Then X is called an eigen vector of A corresponding to the eigen value l.

3.3.1 Power Method

In practical applications, quite often, it is required to find the numerically largest eigen value. The power method is a simple iterative method which enables us to find the approximate value of the numerically largest eigen value of A. We shall discuss the method.

Let Eqn95_1 be the distinct eigen values of A and let Eqn96_1. So Eqn97_1 is the dominant eigen value of A. Let Eqn98_1 be the corresponding eigen vectors.

Then Eqn99_1.

Note that the Xi are n-component column vectors.

The method is applicable if the complete set of n eigen vectors are linearly independent. Then any vector X(0) in the space of the eigen vectors Eqn100_1 can be written as

Eqn101_1

where Eqn102_1 are constants.

Premultiplying by A, we get,

Eqn103_1

Again applying A and simplifying we get

Eqn104_1

Eqn105_1, where Eqn106_1.

Proceeding this way, after m such multipliers, we get

Eqn107_1

Since Eqn108_1 is numerically largest, taking out Eqn109_1 we get

Eqn110_1

Since Eqn111 for all Eqn112 we get Eqn113 as Eqn114

∴ as Eqn115, Eqn116 if Eqn117 and so Eqn118 is a multiple of the eigen vector Eqn119.

The vector Eqn120;

which is an eigen vector corresponding to Eqn121.

The eigen value Eqn122 is obtained as the ratio of the corresponding components of Eqn123 and Eqn124

Eqn125_1

where the suffix r denotes the rth component of the vector.

Note:

  1. If Eqn126 is much smaller than Eqn127_1, then the convergence will be faster.
  2. In order to keep the round off error in control, we normalise the vector (such that the largest element is 1) before premultiplying by A.
  3. If another eigen value is nearer to Eqn128_1, then convergence will be very slow.
  4. Finding the largest eigen value when the roots are not different is beyond the scope of this book.

Working rule to find the largest eigen-value (numerically)

  1. Let X0 be the initial vector which is usually chosen as a vector with all components equal to 1 (i.e. normalised).

    ie. Eqn129_1

  2. Form the product AX0 and express it in the form Eqn130, where X1 is normalised by taking out the largest component Eqn131.
  3. Form Eqn132, where Eqn133 is normalised in the same way and continue the process.
  4. Thus we have a sequence of equations Eqn134 We stop at the stage where Eqn135 are almost same.

Then Eqn136 is the largest eigen value and Xr is the corresponding eigen vector.

To find the numerically smallest eigen value of A

Method (1): Obtain the dominant eigen value Eqn137 of A and the dominant eigen value Eqn138 of Eqn139. Then the numerically smallest eigen value of A is Eqn140_1

Method (2): Find the dominant eigen value Eqn141 of A–1 and then Eqn143 is the smallest eigen value of A.

WORKED EXAMPLES

Example 1

Find the larger eigen value of the matrix Eqn145A and compare your result with the explicit solution of the characteristic equation.

Solution

Let Eqn145_1

The characteristic equation of A is

Eqn146_1

Eqn147_1

Characteristic equation is

Eqn148

∴ the largest eigen value is Eqn149

We shall now find the largest eigen value by the iterative power method.

Take Eqn150 as the initial vector.

Then

Eqn152

Eqn152a

We find the eigen value is 4.618 correct to 3 places of decimal and the eigen vector is Eqn154

The largest eigen value due to explict method and power method are the same.

Example 2

Find the numerically largest eigen value of Eqn155 and the corresponding eigen vector.

Solution

Given

Eqn156. Take Eqn157 as the initial vector.

Then

Eqn158_1

where

Eqn163_1

Since

Eqn164_1 we stop the iteration and the largest eigen value is 25.1821 and the corresponding eigenvector is

Eqn165_1

Example 3

Find the smallest eigen value of Eqn173_1

Solution

We shall use method (2) That is we shall find the largest eigen value of A1

Given Eqn174_1

then Eqn175_1

Eqn176_1

Take Eqn177_1 as the initial vector

Then

Eqn178_1

Now

Eqn178a

Since Eqn181, we stop the iteration and take Eqn182_1 as the largest eigen value of Eqn183_1

∴ the numerically smallest eigen value of A is Eqn184_1

Example 4

Using power method, find all the eigen values of Eqn185_1

Given

Eqn186_1

First we shall find the numerically largest eigen value.

Let Eqn187_1 be the initial vector.

Eqn188a

Eqn188_1

Approximating to 2 decimals –0.002 is taken as 0, the dominant eigen value of A is

Eqn189_1 and the corresponding vector is Eqn190

To find the smallest eigen of A we shall use method (1). So, we form the matrix

Eqn191 and find the numerically largest eigen value of B.

Take Eqn192_1 as the initial vector.

Then

Eqn193_1

Since Eqn194 we stop the iteration and Eqn195 as the dominant eigen value of B.

∴ the smallest eigen value of A is Eqn196_1

If λ is the third eigen value, then the eigen values of A are 6, –2, λ

Eqn199

∴ the eigen value of A are 6, 4, –2.

Exercises 3.3

  1. Obtain by power method, the numerically largest eigen value of the matrix Eqn208.
  2. Obtain the largest eigen value and the corresponding eigen vector of the matrix Eqn209.
  3. By power method find the largest (numerically) eigen value of the matrix Eqn210. Also the corresponding eigen vector.
  4. Find the dominant eigen value and the corresponding eigen vector of the matrix Eqn211_1.
  5. Find the dominant eigen value and the corresponding eigen vector of the matrix Eqn212_1.
  6. Find the dominant eigen value and eigen vector of the matrix Eqn213_1 by power method and hence find all the eigen values.

Answers 3.3

  1. –20 (2) 3.41; Eqn214_1 (3) 7; Eqn215_1
  2. 8; Eqn216_1 (5) 11.66; Eqn217_1 (6) 7; Eqn218_1 and 1, – 4

3.3.2 Jacobi’s Method to Find the Eigen Values of a Symmetric Matrix

Let A be a real symmetric matrix. We know that the eigen values of a real symmetric matrix are real and there exists an orthogonal matrix S such that S–1 AS is a diagonal matrix D-whose diagonal elements are the eigen values of A.

But in Jacobi’s method the matrix S is formed by a series of orthogonal transformations (or orthogonal matrices) Eqn219_1 such that Eqn220_1. In this method we make all the off-diagonal elements of A as zero in a systematic way as below.

Let Eqn221_1 be Eqn222_1 matrix.

Among all the off-diagonal elements of A, choose the numerically largest element. Let aik be the element such that |aik| is largest. Form a 2 × 2 submatrix with the elements Eqn223_1.

Let Eqn224_1.

Since A is symmetric Eqn225_1 and so Eqn226_1 is symmetric.

Let Eqn227 be the orthogonal matrix which transforms Eqn228 into a diagonal matrix.

Now Eqn229Eqn230

Eqn231

Eqn232(1)

Since this a diagonal matrix, we have

Eqn233

We shall choose the principal value of q. ie. Eqn234

Eqn235(2)

If Eqn236, then Eqn237(3)

When θ is given by (2) or (3) the off-diagonal elements of the matrix (1) are zero and the diagonal elements are simplified.

Geometrically, the matrix Eqn239_1 represents the transformation rotation in the plane. Thus by performing a two-dimenstional rotation, we make the Eqn240_1 element 0. Since Eqn241_1, the rotation is the smallest.

Now coming back to the main problem, if Eqn242_1 is the numerically largest off-diagonal element, then the first rotation matrix Eqn243_1 is taken as

Eqn244_1

where the elements in the positions (i , i), (i , k), (k, i), (k, k) are Eqn245 and Eqn246_1 is found by (2) or (3) and all other elements are 1 or 0 as in a unit matrix.

Let Eqn247

Next we find the largest off-diagonal element in B1 and proceed as above with B1 in the place of A.

Let S2 be the second rotation matrix then

Eqn248_1

Proceeding like this, we get

Eqn249

When n is large (ie. Eqn250_1) Bn approaches a diagonal matrix whose diagonal elements are eigen values of A. The corresponding eigen vectors are the respective columns of Eqn251

Note:

  1. The minimal number of rotations (or transformations) requited to bring A into diagonal form is Eqn252_1.
  2. The drawback of Jacobi’s method is that the clement made 0 by a transformation may not remain 0 during the subsequent transformations.
  3. The value of θ must be checked with Eqn254_1 for the sake of accuracy.

WORKED EXAMPLES

Example 1

Using Jacobi’s method find the eigen values and eigen vectors of Eqn255.

Solution

Let Eqn256_1

The largest off-diagonal element is Eqn257

The rotation matrix Eqn258_1

Since Eqn259 and Eqn260_1 we have Eqn261

Eqn262_1

Then the transformation (or rotation) gives

Eqn263

This is a diagonal matrix. So, the eigenvalues are 3, –1 and the corresponding eigen vectors are the columns of S1. ie. Eqn264_1

Note: These eigen vectors are normalised. The eigen vectors are also given as Eqn265

Example 2

Using Jacobi’s method, find the eigen values and eigen vectors of Eqn266_1.

Solution

Let Eqn267

The largest off-diagonal element is Eqn268_1

And Eqn269. Here Eqn270_1

Let Eqn271 be the rotation matrix.

Since Eqn272_1

Here θ is not a familiar angle. So we proceed as below.

We know Eqn274_1

Eqn275

C03U019

Since θ is the smallest rotation, Eqn277

Eqn278_1

Eqn279

Then the transformation Eqn280_1

Eqn281

Thus B1 is diagonal matrix.

So the eigen values of A are 3, –2 and the corresponding eigen vectors are the columns of S1.

ie. Eqn282_1 or Eqn283_1

Example 3

Using Jacobi’s method find all the eigen values and eigen vectors of the matrix Eqn284_1.

Solution

Let Eqn285_1

The largest off-diagonal element is Eqn286_1 and Eqn287_1

The first rotation matrix S1 will have the (1, 1), (1, 3), (3, 1), (3, 3) positions Eqn288_1 and other places 0 or 1 as in a unit matrix.

Eqn289_1

Since Eqn290_1 and Eqn291_1

Eqn292_1

∴ the first transformation or rotation gives

Eqn293_1

This is not a diagonal matrix. So we make a second rotation or transformation.

The largest off-diagonal element in B1 is Eqn294_1 and Eqn295_1

The second rotation matrix is Eqn296_1

Since Eqn297_1 and Eqn298_1

Eqn299_1

The second transformation gives

Eqn300_1

Eqn300a

∴ the eigen values are 5, 1, –1.

Now

Eqn301_1

∴ the corresponding eigen vectors are

Eqn302_1

Example 4

Using Jacobi’s method, find all the eigen values and eigen vectors of the matrix Eqn326.

Solution

Let Eqn327

The largest off-diagonal element is Eqn328

The first rotation matrix Eqn329

Since Eqn330, we have Eqn331

Eqn332

∴ the first transformation matrix gives

Eqn333

Thus by a single transformation, A is reduced to diagonal form.

∴ The eigen values are 6, –2, 4 and the eigen vectors are the columns of S1

ie. Eqn334 or Eqn335

Exercises 3.4

By Jacobi’s method find all the eigen values and the corresponding eigen vectors of the matrices.

  1. Eqn336 (2) Eqn337 (3) Eqn338
  2. Eqn339 (5) Eqn340

Answers 3.4

  1. (1) Eqn341 (2) Eqn342 (3) Eqn343
  2. Eqn344 (5) Eqn345
3.4 METHOD OF FACTORISATION OR METHOD OF TRIANGULARISATION

Let Eqn310 represent a system of linear equations. We factorise A as Eqn311, where L is a lower triangular matrix and U is an upper triangular matrix.

For simplicity we consider A as 3 × 3 matrix.

Eqn312

Let Eqn313 and Eqn314

Then Eqn315

Equating the elements in A = LU, we will get 9 equations in 12 unknowns (6 lij’s and 6 uij’s) So, it is not possible to get the unique solution.

In order to get unique solution, we have to f ix values for 3 unknowns, so that there are 9 equations in 9 unknowns.

To obtain unique solution

Doolittle chose Eqn317 ie L is chosen as unit lower triangular matrix and U is an upper triangular matrix.

Crout chose Eqn318 so that U is unit upper triangular matrix and L is a lower triangular matrix.

But the LU Decomposition exists if the principal minors of the matrix A are non-singular.

That is

Eqn319

Such a factorisation is unique. However, it is only a sufficient condition.

This method is also known as LU Decomposition method.

3.4.1 Doolittle’s Method

Consider the equations

Eqn320

Here

Eqn321

Eqn322

Let Eqn323, where Eqn324 and Eqn325

Then Eqn326_1.

Put Eqn327_1, where Eqn328_1, then Eqn329_1

Since L and B are known, Y is known.

Substitute in Eqn330_1.

Then U and Y are known and so X is known.

Substitute in Eqn331_1

Then U and Y are known and so X is known.

Note:

(1) In this method, to find the elements of L and U, we equate the corresponding row elements of A and LU.

(2) Eqn332_1 can also be determined, since Eqn333_1

WORKED EXAMPLES

Example 1

Solve the linear system of equations Eqn334_1 Eqn380b by factorisation method.

Solution

The given system of equations is

Eqn335_1

Here

Eqn336_1 and Eqn337_1

Eqn338_1 the given system is AX = B.

We solve the system by Doolittle’s method Eqn339_1 we take Eqn340_1

where

Eqn342_1 and Eqn343_1

Eqn344_1

Equating the elements of I rows, we get Eqn345_1

Equating the elements of II rows, we get

Eqn346

Equating the elements of III rows, we get

Eqn347

Eqn348

Eqn349

Put Eqn350

LY = B

Eqn351

Eqn351a

Eqn353a

and

Eqn352a

Eqn352b

Eqn352

Eqn353

∴ the solution is Eqn354

Example 2

Factorise the matrix Eqn355 and hence solve the system of equations. Eqn356 Eqn380a

Solution

Let Eqn357

We factorize A using Doolittle’s method. Eqn358 we take Eqn359,

where Eqn360 and Eqn361

Eqn362

Equating elements of first rows, we get

Eqn363

Equating elements of second rows, we get

Eqn364

Eqn365

Equating elements of III rows, we get

Eqn366

and

Eqn367

Eqn368 and Eqn369

Given system is

Eqn370

The coefficient matrix is Eqn357a

which is same as A

∴ the matrix equation is Eqn371, where Eqn372 and Eqn373

Now Eqn374

Put Eqn375, then Eqn376 where Eqn377

LY = B

Eqn378

Eqn379a

Eqn379

Eqn379b

Now UX = Y

Eqn380

and

Eqn381

∴ the solution is Eqn382

Example 3

(a) Find the matrices L and R such that LR = A , where

Eqn401 and Eqn402

(b) A system of equations is given by A X = B , where X = { x 1 , x 2 , x 3 } B = { 14, 18, 20 } . Rewrite the equation A X = B as L Z = B and R X = Z where Z = { z 1 , z 2 , z 3 } and for X , determining Z first, the matrices L , R , A being as given in (a).

Solution

(a) Given

Eqn405

By Doolittle’s method, we factorize A and we take A= LR

Eqn406

Equating the corresponding elements row wise on both sides, we get

Eqn406a

Eqn408(3)

(b) Given AX = B, LZ = B and RX = Z

where Eqn409, L and R are given by (3),

Eqn410 and Eqn411

Eqn412

z1 = 14

2z1 + z2 = 18

3z1 2z2 + z3 = 20

∴ 2z1 = 18 = 18 − 28 = − 10

Eqn414

Now Eqn415

Eqn416

Eqn417

and Eqn418

∴ the solution is Eqn419

Example 4

Solve the system of equations by Doolittle’s method.

Eqn420

Solution

The given system of equations is

Eqn421

Here

Eqn422

∴ the given system is AX = B (1)

By Doolittle’s method, we take A = LU

where

Eqn424 and Eqn425

AX = B LUX = B

Now A = LU

Eqn430

Eqn430(a)

Equating, the corresponding elements of I rows, we get

Eqn443b

Equating the corresponding elements of second rows, we get

l21u11 = −6 ⇒ l21 × 10 = − 6 ⇒ l21 = Eqn473_1 = −0.6

l21u12 + u22 = 8

⇒ (-0.6) (-7) + u22 = 8 ⇒ u22 = 8 − 4.2 = 3.8

l21u13 + u23 = −1

(-0.6) (3) + u23 = -1 ⇒ u23 = −1 + 1.8 = 0.8

l21u14 + u24 = −4

⇒(−0.6) (5) + u24 = -4 ⇒ u24 = -4 + 3 = −1

Equating the corresponding elements of third rows, we get

l31u11 = l31 = = 0.3

l31u12 l32u22 = 1

= = l32 = = 0.8158

l31u13 l32u23 u33 = 4

= u33 =−− 0.65264 = 2.4474

l31u14 l32u24 u34 = 11

= u34 =− 1.5 + 0.8158 = 10.3158

Equating the corresponding elements of fourth rows, we get

l41u11 = l41 × l41 = Eqn473_1= 0.5

l41u12 l42u22 = −9

l42 −9

= l42 = = −1.4474

l41u13 l42u23 l43u33 = −2

l43 −2

= −2

= −2.3421

l43 = −0.9570

l42u24 l43u34 u44 = 4

= 4

Eqn435a

Hence

Eqn436

Eqn437

AX = BLUX = B

Put UX = Y, new8LY = B

Eqn438

new9

and Eqn440

Eqn441

Now Eqn442

Eqn443

Eqn443a

and

Eqn444

Eqn445

Eqn446

∴ the solution is Eqn447

3.4.2 Crout’s Method

Consider the system of equations

Eqn448

Now

Eqn449

∴ the system of equations is AX = B

In Crout’s method we factorise A as A = LU, where L is taken as lower triangular matrix and U is taken as unit upper triangular matrix.

That is Eqn450 and Eqn451

Eqn452

Let UX = Y, so that LY = B, where Eqn453

Since L and B are known, Y is known.

Substituting Y in UX = Y, we can find X, since U is known.

Thus, we can find the solution of the given system of equations.

Note:

In Crout’s method to find Eqn454 and Eqn455, we equate the corresponding elements of the columns of A and LU respectively.

That is to find the elements of L and U, we equate the corresponding elements of columns of A and LU.

WORKED EXAMPLES

Example 1

Factorise Eqn456 by Crout’s method.

Solution

Given Eqn457

By Crout’s method, we take A = LU,

Eqn458

Equating elements of I Columns, we get

Eqn459

Equating elements of II Column, we get

Eqn460

Equating elements of III column, we get

Eqn461

Eqn462

Example 2

Solve the system of equations Eqn463 using Crout’s method.

Solution

The given system of equations is

Eqn464

Here

Eqn465

∴ the given system is AX = B.

By Crout’s method, we take A = LU,

Eqn466

Equating the corresponding elements of I column, we get

Eqn467

Equating the corresponding elements of II columns, we get

Eqn468

Equating the corresponding elements of third column, we get

Eqn469

Eqn470

Eqn471

Put Y = UX, where Eqn472

LY = B

Eqn473

Eqn474

Eqn474a

Eqn475

Eqn476.png

and Eqn478

∴ the solution is Eqn479

Example 3

Solve by Crout’s method, the system of equations Eqn480 Eqn480a .

Solution

The given system of equations is

Eqn481

Here

Eqn482 Eqn483

∴ the given system is AX = B

By Crout’s method, we take A = LU

Eqn484

Equating the corresponding elements of the first columns, we get

Eqn485

Equating the corresponding elements of the second columns, we get

Eqn486

Eqn487

Equating the corresponding elements of third columns, we get

Eqn488

Eqn489

Eqn490

NowEqn491

Put UX = Y, where Eqn492LY = B

Eqn493

Eqn493a

Eqn494

Eqn494a

Eqn495

Now

Eqn496

Eqn497

Eqn497a

Eqn497b

Eqn498

∴ the solution is Eqn499

3.4.3 Cholesky Decomposition

We have seen the triangular factorisation of a square matrix by Doolittle’s method and Crout’s method. Cholesky decomposition is slightly different from the two methods.

Cholesky method is commonly used in signal processing.

In Cholesky method, to factorise the square matrix, the matrix should be symmetric and positive definite.

A symmetric matrix is positive definite if all the principal minors are positive.

That is if

Eqn543

The principal minors are

Eqn544 and Eqn545

Definition: Let A be a symmetric matrix and positive definite. Then A can be decomposed as A = LLT, where L is a lower triangular matrix with digonal elements positive.

L and LT are called cholesky factors of A.

Application of Cholesky decomposition to solve the system of linear equations

Consider the system of equations Eqn546

Let Eqn547

∴ the system of equations is AX = B.

By Cholesky decomposition, let A = LLT

where

Eqn548a

Eqn548

Put Eqn549 where Eqn549a Eqn549b

Since L and B are known, Y is known.

Eqn550 gives X.

WORKED EXAMPLES

Example 1

Obtain Cholesky factorisation of the matrix Eqn551.

Solution

Let Eqn552

The elements equidistant from the main diagonal are the same and hence A is symmetrix,

The principal minors are

Eqn553

All the principal minors are positive and so A is positive definite.

So, we can use cholesky method to factorize A. We take A = LLT

where

Eqn554 and Eqn555

Eqn556a

Equating the corresponding elements of I columns, we get

Eqn557

Equating the corresponding elements of second columns

Eqn558

Eqn558a

Equating the corresponding elements of third columns, we get

Eqn559

Eqn559a

Eqn559b

Example 2

Find Cholesky’s factorisation to the matrix Eqn560. Hence solve the equations Eqn561.

Solution

Let Eqn563

A is symmetric and principal minors are Eqn564

and Eqn565 Eqn566

A is symmetric and positive definite:

So, we use cholesky’s method to factorize A. We take A = LLT,

where Eqn568

Eqn569

Equating the corresponding elements of first columns, we get

Eqn570

Equating the corresponding elements of second columns, we get

Eqn571

and Eqn572

Eqn573

Equating the corresponding elements of third columns, we get

Eqn574

Eqn574a

The given system of equations is

Eqn575

The coefficient matrix is Eqn576

This is same as the given matrix A.

∴ the given system of equations is AX = B, where Eqn577

Eqn578

Put Eqn579 where Eqn580 Eqn581

⇒ ∴ Eqn582

Eqn582a

Eqn582b

and Eqn583 = 6

Eqn583a

Eqn584

Eqn584a

Eqn584b

Eqn584c

Eqn584d

Eqn584e

Eqn584f

Eqn584g

∴ the solution is Eqn585

Example 3

Obtain the Cholesky decomposition of Eqn586 and hence solve the system.

AX = b where Eqn587 and Eqn588.

Solution

Given Eqn589 and it is symmetric

The principal minors are Eqn590

Eqn590a

A is symmetric and positive definite.

So, we can use Cholesky’s decomposition to factorize A. We take A = LLT

where

Eqn592

Eqn593

Equating Corresponding elements of first columns, we get

Eqn594

Equating corresponding elements of second columns, we get

Eqn595

Eqn595a

Equating the corresponding elements of third columns, we get

Eqn596

Eqn596a

Given AX = b, where Eqn597 and Eqn598

Now Eqn599

Put Eqn600, where Eqn601Eqn602

Eqn602a

Eqn602b

Eqn602c

and Eqn603

Eqn604

Eqn604a

Eqn604b

Now

Eqn605

Eqn606

Eqn606a

Eqn606b

Eqn606c Eqn606d

and Eqn607

Eqn608

Eqn608a

∴ the solution is Eqn609

Note: In L, if the diagonal elements are not unity, then also we can factorize the given matrix A.

Example 4

Let Eqn643, then find two triangular matrices L (lower triangular) and U (upper triangular) such that A = LU , using the diagonal elements of L as 3, 1, 5. Hence find A –1.

Solution

Given Eqn644

Let A = LU, where Eqn645 and Eqn646

Eqn647

Equating the corresponding elements of each row, we get

Eqn648a Eqn648 Eqn648b

Eqn649 Eqn649bEqn649a

Eqn649c

Since Eqn650 then Eqn651 where Eqn651a

Eqn652

Eqn652a

Exercises 3.5

  1. Determine the LU factorisation of the matrix Eqn653 by Doolittle’s method.
  2. Determine the LU factorisation of the matrix Eqn654 by Doolittle’s method.

    (I) Solve by using Doolittle’s method the following system equations.

  3. Eqn655
  4. Eqn656
  5. Eqn657
  6. Eqn658
  7. Find the LU factorisation of the matrix Eqn659 by Doolittle’s method and hence solve the system of equations Eqn660.
  8. Given Eqn661, find the LU factorisation of A by Doolittle’s method and hence solve the system of equations AX = B where Eqn662.

    (II) Solve by using Crout’s method the following system of equations.

  9. Eqn663
  10. Eqn664
  11. Eqn665
  12. Find the inverse of Eqn666 using crout’s method.
  13. Find the crout’s factorisation of the matrix Eqn703.

    (III) Solve by using Cholesky’s method

  14. Eqn667
  15. Eqn668
  16. Eqn669
  17. Find the Cholesky decomposition of the matrix A = Eqn670 and hence solve the system AX = B, where Eqn671 and Eqn672.
  18. Find the Cholesky factorisation of the matrix Eqn673 and hence solve the system AX = B, where Eqn674 and Eqn675.
  19. Find the Cholesky decomposition for the matrix Eqn676.

Answers 3.5

  1. Eqn677 and Eqn678
  2. Eqn679 and Eqn680
  3. Eqn681 (4) Eqn682
  4. Eqn683 (6) Eqn684
  5. Eqn683a
  6. Eqn683b
  7. Eqn685 (10) Eqn686
  8. Eqn687
  9. Eqn688
  10. Eqn689 (14) Eqn690
  11. Eqn691 (16) Eqn692
  12. Eqn693
  13. Eqn694
  14. Eqn695
Short Answer Questions
  1. What are direct methods?
  2. What are indirect methods?
  3. Give two direct methods to solve a system of linear equations.
  4. Give two indirect methods to solve a system of linear equations.
  5. Using Gauss elimination method solve Eqn1040.
  6. Explain briefly Gauss-Seidel method of solving simultaneous linear equations.
  7. Solve the linear system Eqn1042 by Gauss-Jordan method.
  8. What is the condition for convergence of Gauss-Seidel method?
  9. Why Gauss-Seidel methd is better than Jacobi’s-iterative method?
  10. Compare Gauss elimination and Gauss-Seidel method?
  11. If we start with zero values for x, y, z while solving Eqn1044aEqn1044 by Gauss-Seidel iteration, find the values for x, y, z after one iteration.
  12. Find the inverse of Eqn1048a by Gauss-Jordan method.
  13. Find the first iteration values of x, y, z satisfying Eqn1050aaEqn1051a by Gauss-Seidel method.
  14. Given Eqn1055a find the inverse of the coefficient matrix.
  15. Solve Eqn1058a by Jordan’s method.
  16. Write down the sufficient conditions for the solution of the linear system Ax = B by LU method of Doolittle or Crout.
  17. Write down the sufficient Condition for the solution of the linear system Ax = B by Cholesky’s method.
  18. Factorize Eqn1060a by Doolittle’s method.
  19. Factorize Eqn1068a by Crout’s method.
  20. Factorize Eqn1076a by Choleskey’s method.
  21. What is the drawback of Jacobi’s method in finding the eigen values of a symmetric matrix?
  22. What is the minimum number of rotations required to bring the symmetric matrix A of order n in to diagonal form.
  23. Determine the largest eigen value and the corresponding eigen vector of the matrix Eqn1085 correct to two decimal places using power method.
  24. Write down all possible types of initial vectors to determine the largest eigen value and the corresponding eigen vector of a matrix of size Eqn1092.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.115.154