Showing posts with label Matrix. Show all posts
Showing posts with label Matrix. Show all posts

27 July 2014

Cramer's Rule to Solve a System of 3 Linear Equation with Step by Step Example

How to Solve a System of 3x3 Matrix Equations using Cramer's Rule with Step by Step Example

Cramer's Rule Matrix method can be used to solve systems of linear equations involving two or more variables.

Example:
3x + 2y - z = 3
x - y + 2z = 4
2x + 3y - z = 3

Solution:

Given matrix


xyzb
132-13
21-124
323-13

Write down the main matrix and find its determinant,

xyz
132-1
21-12
323-1
Determinant D = -10

Replace the 1st column of the main matrix with the solution vector and find its determinant

xyz
132-1
24-12
333-1
D1 = -10

Replace the 2nd column of the main matrix with the solution vector and find its determinant

xyz
133-1
2142
323-1
D2 = -10

Replace the 3rd column of the main matrix with the solution vector and find its determinant

xyz
1323
21-14
3233
D3 = -20
x1 = D1 / D = -10 / (-10) = 1
x2 = D2 / D = -10 / (-10) = 1
x3 = D3 / D = -20 / (-10) = 2

Solution:

x = 1
y = 1
z = 2

Gauss Jordan Matrix Equations Elimination Method Step by Step Example

Jordan Matrix Elimination Method Step by Step Example

Jordan Matrix method can be used to solve systems of linear equations involving two or more variables.

Example:
3x + 2y - z = 3
x - y + 2z = 4
2x + 3y - z = 3

Solution:
Given matrix

xyzb
132-13
21-124
323-13

Find the pivot in the 1st column and swap the 2nd and the 1st rows

xyzb
11-124
232-13
323-13

Multiply the 1st row by 3

xyzb
13-3612
232-13
323-13

Subtract the 1st row from the 2nd row and restore it

xyzb
11-124
205-7-9
323-13

Multiply the 1st row by 2

xyzb
12-248
205-7-9
323-13

Subtract the 1st row from the 3rd row and restore it

xyzb
11-124
205-7-9
305-5-5


Make the pivot in the 2nd column by dividing the 2nd row by 5

xyzb
11-124
201-1.4-1.8
305-5-5

Multiply the 2nd row by -1

xyzb
11-124
20-11.41.8
305-5-5


Subtract the 2nd row from the 1st row and restore it

xyzb
1100.60000000000000012.2
201-1.4-1.8
305-5-5

Multiply the 2nd row by 5

xyzb
1100.60000000000000012.2
205-7-9
305-5-5

Subtract the 2nd row from the 3rd row and restore it

xyzb
1100.60000000000000012.2
201-1.4-1.8
30024


Make the pivot in the 3rd column by dividing the 3rd row by 2

xyzb
1100.60000000000000012.2
201-1.4-1.8
30012

Multiply the 3rd row by 0.6000000000000001

xyzb
1100.60000000000000012.2
201-1.4-1.8
3000.60000000000000011.2000000000000002

Subtract the 3rd row from the 1st row and restore it

xyzb
11001
201-1.4-1.8
30012

Multiply the 3rd row by -1.4

xyzb
11001
201-1.4-1.8
300-1.4-2.8

Subtract the 3rd row from the 2nd row and restore it

xyzb
11001
20100.9999999999999998
30012
Solution set:
x1 = 1
x2 = 0.9999999999999998
x3 = 2