Beruflich Dokumente
Kultur Dokumente
Matrix Analysis of
Structures: Matrix Algebra
What is a vector?
A vector is an array of n numbers
A row vector of length n is a 1n matrix
a 1 a2 a3 a4
A column vector of length m is a m1 matrix
a1
a
2
a3
5
2.2 Type of Matrices
Square matrix : If a matrix has the same number of
rows and columns (i.e., m = n), it is called a square
matrix.
Diagonal element
Off-diagonal element
6
2.2 Type of Matrices
Lower triangular matrix : If all the elements of a square
matrix above its main diagonal are zero, (i.e., Aij = 0 for j
> i), it is referred to as a lower triangular matrix.
Upper triangular matrix: When all the elements of a
square matrix below its main diagonal are zero (i.e., Aij =
0 for j < i), it is called an upper triangular matrix.
Diagonal matrix: A square matrix with all of its off-
diagonal elements equal to zero (i.e., Aij = 0 for i = j ), is
called a diagonal matrix.
0 0 0 0
034
0 0 0 0
0 0 0 0
Unit or Identity matrix: A square matrix which has 1 s on
the diagonal and zeros everywhere else.
1 0 0
I3x 3
0 1 0
0 0 1 8
2.3 Matrix Operations
An important application of matrix multiplication is
to express simultaneous equations in compact
matrix form. Consider the following system of
linear simultaneous equations.
9
2.3 Matrix Operations
In which xs are the unknowns and As and Ps
represent the coefficients and constants,
respectively. By using the definition of
multiplication of matrices, this system of
equations can be expressed in matrix form as
10
2.3 Matrix Operations
Equality of matrices
If A and B are two matrices of the same size, they are equal if
each and every entry of one matrix equals the corresponding
entry of the other.
1 2 4 a b c
A 3 0 7
B d e f
9 1 5 g h i
a 1, b 2 , c 4 ,
A B d 3, e 0 , f 7,
g 9, h 1, i 5. 11
2.3 Matrix Operations
Addition of two matrices
If A and B are two matrices of the same size, the sum of the
matrices is a matrix C=A+B whose entries are the sums of the
corresponding entries of A and B
1 2 4 1 3 10
A 3 0 7 B 3 1 0
9 1 5 1 0 6
0 5 14
C A B 6 1 7
10 1 11 12
2.3 Matrix Operations
Addition and subtraction of two matrices (properties)
1 2 4
A 3
0 7 c 3
9 1 5
3 6 12
cA 9 0 21
27 3 15
14
2.3 Matrix Operations
Transpose
1 2 4 1 3 9
A 3 0
7 A 2
T
0 1
9 1 5 4 7 5
15
2.3 Matrix Operations
Transpose
AA T
16
2.3 Matrix Operations
Scalar (dot) product of two vectors
17
2.3 Matrix Operations
Matrix multiplication
A B = AB
mxr rxn mxn
inside
outside
18
2.3 Matrix Operations
Matrix multiplication
If A is a mr matrix and B is a rn matrix, then the product
C=AB is a mn matrix whose entries are obtained as
follows. The entry corresponding to row i and column j of C
is the dot product of the vectors formed by the row i of A
and column j of B.
1 2 4 1 3
A 33 3 0 7 B32 3 1
9 1 5 1 0
3 1
T
5 1
C32 AB 10 9 notice 2 3 3
7 28 4 1
19
2.3 Matrix Operations
Matrix multiplication (properties)
20
2.3 Matrix Operations
Matrix multiplication (properties)
AB B A
T T T
21
2.3 Matrix Operations
Other properties
22
2.3 Matrix Operations
Inverse of a matrix
AB BA I
(a) The matrix A is called invertible, and
(b) The matrix B is the inverse of A and is
denoted as A-1.
(BA)C IC C
B(AC) BI B
BC
Hence a matrix cannot have two or more
inverses. 24
2.3 Matrix Operations
Inverse of a matrix (properties)
k A 1 1 -1
A
k
25
2.3 Matrix Operations
Inverse of a matrix (properties)
AB
matrices: 1 1 -1
(AB) AB
1
I
B A
Premultiplying both sides by A-1
A-1(AB) AB A 1
1
A ABAB
-1 1
A 1
BAB A 1
1
For a 11 matrix:
A a 1 1 ; det( A ) a 1 1
For a 22 matrix:
a11 a12
A ; det( A ) a11a 22 a12a 21
a 21 a 22
1 3
det( A ) 1 7 3 5 8
5 7
28
2.3 Matrix Operations
Duplicate column method for 3x3 matrix
For a 3x3 matrix (only) write down the first two
columns after the third column
a11 a12 a13 a11 a12 a13 a11 a12
A a 21 a 22 a 23 a
21 a 22 a 23 a 21 a 22
a 31 a 32 a 33 a 31 a 32 a 33 a 31 a 32
2 4 - 3 2 4 3 2 4
A 1 0 4 1 0
4 1 0
2 - 1 2 2 1 2 2 1
0 -8 8 0 32 3
31
2.3 Matrix Operations
Determinant (Cofactor method)
33
Cofactor
C33 ( 1) (3+3)
M33 M33 4
2.3 Matrix Operations
Determinant (Cofactor method)
The determinant of a n n matrix A can be
computed by multiplying ALL the entries in
ANY row (or column) by their cofactors and
adding the resulting products. That is, for
each 1 i n or 1 j n
4 0 1 3 0 1 3 4 1
det(A)=(1) 5 2 -2 - (0) -1 2 -2 +2 -1 5 -2
1 1 3 0 1 3 0 1 3
3 4 0
- (-3) -1 5 2
= (1)(35)-0+(2)(62)-(-3)(13)=198
0 1 1
35