Professional Documents
Culture Documents
MATRIX MATH
18
Christy
02:10
07/06/17
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
MATRIX MATH
In the Beginning
Solve three equations with three unknowns.
2x + 3y - 1z = -1 line 1
-1x + 5y + 3z = -10 line 2
3x - 1y - 6z = 5 line 3
Solve for z:
13y +5z = -21 13 * -2 +5z = -21
and: z = 1
row 40
To get x:
2x + 3y - 1z = -1 2x + 3 * -2 - 1 * 1 = -1
to get: x = 3 Figure 18-1 The common point of intersecting planes.
These equations each create a family of lines. All of the lines lay within a single
plane as determined by that particular equation. The three planes created by the
equations intersect at a single, finite point.
The following calculations are used to plot the equations in AutoCad. row 50
x y z
-1 -1
3 -1 -6 5
-3 1 row 70
7
z -1.166667
Page 18-2
MATRIX MATH
18
Christy
02:10
07/06/17
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
row 80
Page 18-3
MATRIX MATH
18
Christy
02:10
07/06/17
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
MATRIX SOLUTION
Note that the equations take the form of:
matrix constants vector
a11 a12 a13 A This matrix is of order 3 x 3.
a21 a22 a23 B
a31 a32 a33 C To enter a matrix array: use your cursor to outline an area in
the shape of the array you want. Enter a formula such as
This matrix is of order 3 x 3. =minverse(B89:D91) and press [Ctrl] [Shift] [Enter] all at the
2 3 -1 -1 same time to get {=MINVERSE(B89:D97)} in the array of cells.
-1 5 3 -10 multiply the invert * constants vector row 90
3 -1 -6 5
The quick solution, as explained below, is: invert the matrix constants vector
0.87097 -0.61290 -0.45161 -1 3 x
-0.09677 0.29032 0.16129 x -10 = -2 y
0.45161 -0.35484 -0.41935 5 1 z
A B AB 1x2 + 2x2 + 3 x 3 = 15
1 2 3 2 4 = 15 32 1x4 + 2x5 + 3 x 6 = 32
4 5 6 X 2 5 36 77 4x4 + 5x5 + 6 x 6 = 77
3 6 4x2 + 5x2 + 6 x 3 = 36
B A BA 2x1 + 4 x 4 = 18
2 4 1 2 3 = 18 24 30 2 x 2 + 4 x 5 = 24
2 5 X 4 5 6 22 29 36 2 x 3 + 4 x 6 = 30
3 6 27 36 45 2 x 1 + 5 x 4 = 22
2x2 + 5 x 5 = 29
A' the transpose of matrix A 2x3 + 5 x 6 = 36
A A' 3x1 + 6 x 4 = 27
1 2 3 1 4 3x2 + 6 x 5 = 36
4 5 6 2 5 3x3 + 6 x 6 = 45
3 6
Unit 1 0 0
Page 18-4
MATRIX MATH
18
Christy
02:10
07/06/17
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
Matrix 0 1 0
0 0 1
row 150
Page 18-5
MATRIX MATH
18
Christy
02:10
07/06/17
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
3 x 3 MATRIX -- Circuit Anaylsis, Longhand Matrix Solution
See the chapter Quadratic and Cubic Equations for the
2 x 2 matrix solution of two straight lines.
Cramer's rule E I_2 I_3 I_1 E I_3 I_1 I_2 E row 200
125 4 6 20 125 6 20 4 125
85 34 -20 4 85 -20 4 34 85
70 -20 31 6 70 31 6 -20 70
10400 determinant 10400 10400
34 -20 85 -20 34 85
-20 31 70 31 -20 70
+ 125 654 = 34 *31 --20 *-20 20 4035 20 4080
85 34 4 85 4 34
70 -20 6 70 6 -20
+ 6 -4080 6 -230 125 -284
sum I_1 3.95 amps sum I_2 4.69 amps sum I_3 4.52 amps
Page 18-6
MATRIX MATH
18
Christy
02:10
07/06/17
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
3 x 3 MATRIX MINVERSE and MMULT Excel Method
1. R_1 *I_1 + R_5 *(I_1 + I_2) + R4 *(I_1 + I_2) E_1
2. R_2 *I_2 + R_5 *(I_3 + I_2) + R6 *(I_3 + I_2) E_2
3. R_3 *I_3 + R_6 *(I_3 + I_2) + R4 *(I_3 + I_1) E_3
4 4 -20 14
6 31 -26
3 9 18
6 4 34 14
6 -20 -26
3 25 18
3 4 34 -20
6 -20 31
3 25 9
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
sum 368530 using MDETERM( ) to solve for the determinate of square matrices
row 290
Page 18-9
MATRIX MATH
18
Christy
02:10
07/06/17
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
4 x 4 MATRIX MODEL Longhand Solution -- Continued
Cramer's rule
125 4 6 3 20 125 6 3
85 34 -20 14 4 85 -20 14
70 -20 31 -26 6 70 31 -26
6 25 9 18 3 6 9 18
368530 determinant 368530
row 300
20 4 125 3 20 4 6 125
4 34 85 14 4 34 -20 85
6 -20 70 -26 6 -20 31 70
3 25 6 18 3 25 9 6
368530 368530
34 -20 14 85 -20 14
-20 31 -26 70 31 -26 row 310
25 9 18 6 9 18
+ 125 19358 20 101856
85 -20 14 4 -20 14
70 31 -26 6 31 -26
6 9 18 3 9 18
- 4 101856 125 6342
85 34 14 4 85 14
70 -20 -26 6 70 -26 row 320
6 25 18 3 6 18
+ 6 2686 6 -12582
85 34 -20 4 85 -20
70 -20 31 6 70 31
6 25 9 3 6 9
- 3 -133671 3 8571
34 85 14 34 -20 85
-20 70 -26 -20 31 70
25 6 18 25 9 6
20 -2686 20 -133671
4 85 14 4 -20 85
6 70 -26 6 31 70 row 340
3 6 18 3 9 6
4 -12582 4 -8571
4 34 14 4 34 85
6 -20 -26 6 -20 70
3 25 18 3 25 6
125 -2224 6 16286
4 34 85 4 34 -20
6 -20 70 6 -20 31 row 350
3 25 6 3 25 9
3 16286 125 -6694
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
row 360
Page 18-11
MATRIX MATH
18
Christy
02:10
07/06/17
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
4 x 4 MATRIX MODEL Using MDETERM
x1 20 4 6 3 125
x2 4 34 -20 14 85
x3 6 -20 31 -26 70
x4 3 25 9 18 6
determ 368530
85 34 14 4 85 14 4 34 14 4 34 85
70 -20 -26 6 70 -26 6 -20 -26 6 -20 70 row 380
6 25 18 3 6 18 3 25 18 3 25 6
6 2686 0.04 6 -12582 -0.20 125 -2224 -0.75 6 16286 0.27
20 year old reference books refer to inverting a matrix as computer intensive. row 400
Now, on a common personal computer, the inversion process is transparent.
row 410
row 420
Page 18-12
MATRIX MATH
18
Christy
02:10
07/06/17
1 2 5 -4.0
ENGINEERING with the SPREADSHEET 3 4 6 = 4.5
Copyright 2006 American Society of Civil Engineers 359756822.xls
A B C D E F G H I J K L M N
row 430