Docsity

Solving Systems of Linear Equations, Slides of Mathematics

Partial preview of the text

Download Solving Systems of Linear Equations and more Slides Mathematics in PDF only on Docsity!

System of linear equations

Lê Xuân Trường

The system of linear equations

Consider the follwing system of linear equations

a 11

x 1

  • a 12

x 2

  • · · ·a 1 n

x n

= b 1

a 21 x 1 + a 22 x 2 + · · ·a 2 nxn = b 2

am 1 x 1 + am 2 x 2 + · · ·amnxn = bm

We denote

A =

a 11 a 12 · · · a 1 n

a 21 a 22 · · · a 2 n

· · · · · · · · · · · ·

am 1 am 2 · · · amn

X =

x 1

x 2

. . .

xn

and B =

b 1

b 2

. . .

bm

A is called to be the coefficients matrix.

Using matrix multiplications, we can rewrite the above system as a

matrix equation AX = B.

Augmented Matrix and Kronecker-Capelli’s theorem

Associated to the system of linear equation AX = B, we also put

A = [A B]

augmented matrix

Theorem (Kronecker-Capelli)

If rank(A) 6 = rank(A) then the system has no solution

If rank(A) = rank(A) = n, the system has a unique solution

If rank(A) = rank(A) = k < n the system has infinitely many

solutions.

How to solve a system of linear equations?

Gaussian elimination

or Gauss-Jordan elimination

Cramer’s rule

Reduced row echelon form

Example: The following matrix are in RREF

[

]

Example: The following matrix are not in RREF

[

]

Gauss-Jordan elimination

Perform Gaussian elimination to get the matrix in REF

For each non-zero row R i

from bottom to top, perform

R

i

−→ p

− 1

i

.R

i

where p i

is the pivot in the row i.

For each non-zero row R i

from bottom to top, perform

R

j

−→ R

j

− α j

R

i

for all j < i

where α j

is the entry in row j directly above the pivot in row i

Using Row Reduction to Solve Linear Systems

Keep in mind that linear systems for which the matrix coefficient is in row

echelon form are easy to solve

Going from the last equation to the first while solving for the

unknowns is called backsolving.

Example: For the following system

x + y + z = 0

− 3 y + z = 4

− 5 z = 10

From the last equation we derive z = − 2

Replacing z = −2 in the second equation then we have y = − 2

Similarly, let replace y = z = −2 in the first equation. Then x = 4

Using Row Reduction to Solve Linear Systems

Consider the system of linear equation in the form AX = B.

(1) Write the augmented matrix of the system A = [A B]

(2) Using Gaussian elimination to transform A into REF

Decide whether the system has solution using Kronecker-Capelli’s

theorem. If it has not, stop; otherwise go to the next step

(3) Continue row reduction to obtain the reduced row echelon form using

Gauss-Jordan’s method

(4) Write the system of equations corresponding to the matrix obtained

in step 3.

(5) State the solution using the backsolving technique.

Using Row Reduction to Solve Linear Systems

Since rank(A) = rank(A) = 4 the system has a unique solution

system ⇐⇒

x 1

  • 2 x 2

− x 3

  • 2 x 4

x 2 + 2 x 3 − 3 x 4 = 3

− 7 x 3

  • 10 x 4

4 x 4 = 0

x 1

5

7

x 2 =

9

7

x 3

6

7

x 4 = 0

Using Row Reduction to Solve Linear Systems

Example: Solve the following systems of equations

x 1

  • 2 x 2

  • x 3

x 1

  • 3 x 2

  • 2 x 3

2 x 2 + x 3 = 6

x 1 + x 2 + 3 x 3 = 3

2 x 1

  • 2 x 2

  • 3 x 3

x 1

  • x 2

  • x 3

Cramer’s rule

Theorem

If AX = B is a system of n equations in n unknowns such that det(A) 6 = 0

then the system has a unique solution. This solution is

x 1 =

det(A 1

det(A)

, x 2 =

det(A 2

det(A)

, · · · , xn =

det(A n

det(A)

where Aj is the matrix obtained by replacing the entries in the j-th column

of A by the entries in the matrix B.

Cramer’s rule

Use the Cramer’s rule to solve the following system of equations

x 1 + + 2 x 3 = 6

− 3 x 1

  • 4 x 2

  • 6 x 3

−x 1

− 2 x 2

  • 3 x 3

Solution We can calculate

det(A) = 44 , det(A 1 ) = − 40 , det(A 2 ) = 72 , det(A 3 ) = 152

Hence the solution of the system is

x 1 = −

, x 2 = −

, x 3 = −