Title: ECIV 520
1ECIV 520
- Structural Analysis II
- Review of Matrix Algebra
2Linear Equations in Matrix Form
3Linear Equations in Matrix Form
4Linear Equations in Matrix Form
5Linear Equations in Matrix Form
6(No Transcript)
7Matrix Algebra
Rectangular Array of Elements Represented by a
single symbol A
8Matrix Algebra
n x m Matrix
9Matrix Algebra
10Matrix Algebra
1 Row, m Columns
Row Vector
11Matrix Algebra
n Rows, 1 Column
Column Vector
12Matrix Algebra
If n m Square Matrix
e.g. nm5
13Matrix Algebra
Special Types of Square Matrices
Symmetric aij aji
14Matrix Algebra
Special Types of Square Matrices
Diagonal aij 0, i?j
15Matrix Algebra
Special Types of Square Matrices
Identity aii1.0 aij 0, i?j
16Matrix Algebra
Special Types of Square Matrices
Upper Triangular
17Matrix Algebra
Special Types of Square Matrices
Lower Triangular
18Matrix Algebra
Special Types of Square Matrices
Banded
19Matrix Operating Rules - Equality
AmxnBpxq
np
mq
aijbij
20Matrix Operating Rules - Addition
Cmxn AmxnBpxq
np
cij aijbij
mq
21Matrix Operating Rules - Addition
Properties
AB BA
A(BC) (AB)C
22Multiplication by Scalar
23Matrix Multiplication
A n x m . B p x q C n x q
24Matrix Multiplication
25Matrix Multiplication
26Matrix Multiplication - Properties
If dimensions suitable
Associative A(BC) (AB)C
Distributive A(BC) ABA C
Attention AB ? BA
27Operations - Transpose
28Operations - Trace
Square Matrix
trA Saii
29Determinants
Are composed of same elements
Completely Different Mathematical Concept
30Determinants
Defined in a recursive form
2x2 matrix
31Determinants
32Determinants
33Determinants
Defined in a recursive form
3x3 matrix
34Determinants
Minor a11
35Determinants
Minor a12
36Determinants
Minor a13
37Determinants
- Properties
- If two rows or two columns of matrix A are
equal then detA0 - Interchanging any two rows or columns will change
the sign of the det - If a row or a column of a matrix is 0 then
detA0 -
- If we multiply any row or column by a scalar s
then - If any row or column is replaced by a linear
combination of any of the other rows or columns
the value of detA remains unchanged
38Operations - Inverse
A
A-1
A A-1I
If A-1 does not exist A is singular
39Operations - Inverse
Calculation of A-1
40Solution of Linear Equations
41Numerical Solution of Linear Equations
42Solution of Linear Equations
Consider the system
43Solution of Linear Equations
44Solution of Linear Equations
45Solution of Linear Equations
46Solution of Linear Equations
Express In Matrix Form
What is the characteristic?
Upper Triangular
Solution by Back Substitution
47Solution of Linear Equations
Objective
Can we express any system of equations in a form
48Background
Consider
(Eq 1)
2(Eq 1)
(Eq 2)
(Eq 2)
Solution
Solution
!!!!!!
Scaling Does Not Change the Solution
49Background
Consider
(Eq 1)
(Eq 1)
(Eq 2)-(Eq 1)
(Eq 2)
Solution
Solution
!!!!!!
Operations Do Not Change the Solution
50Gauss Elimination
Example
Forward Elimination
51Gauss Elimination
-
52Gauss Elimination
Substitute 2nd eq with new
53Gauss Elimination
-
54Gauss Elimination
Substitute 3rd eq with new
55Gauss Elimination
-
56Gauss Elimination
Substitute 3rd eq with new
57Gauss Elimination
58Gauss Elimination
59Gauss Elimination Potential Problem
Forward Elimination
60Gauss Elimination Potential Problem
Division By Zero!! Operation Failed
61Gauss Elimination Potential Problem
OK!!
62Gauss Elimination Potential Problem
Pivoting
63Partial Pivoting
NO
YES
64Partial Pivoting
65Full Pivoting
- In addition to row swaping
- Search columns for max elements
- Swap Columns
- Change the order of xi
- Most cases not necessary
66EXAMPLE
67 Eliminate Column 1
PIVOTS
68 Eliminate Column 1
69 Eliminate Column 2
PIVOTS
70 Eliminate Column 2
Upper Triangular Matrix
Modified RHS
U
71 LU Decomposition
PIVOTS Column 1
PIVOTS Column 2
72 LU Decomposition
Upper Triangular Matrix
U
As many as, and in the location of, zeros
73 LU Decomposition
PIVOTS Column 2
PIVOTS Column 1
Lower Triangular Matrix
L
74 LU Decomposition
This is the original matrix!!!!!!!!!!
75LU Decomposition
A
x
b
L
y
b
76LU Decomposition
L
y
b
77LU Decomposition
Modified RHS
78LU Decomposition
- Axb
- ALU - LU Decomposition
- Lyb - Solve for y
- Uxy - Solve for x
79Matrix Inversion
80Matrix Inversion
A
A-1
A A-1I
If A-1 does not exist A is singular
81Matrix Inversion
82Matrix Inversion
Solution
83Matrix Inversion
A A-1I
84Matrix Inversion
85Matrix Inversion
86Matrix Inversion
87Matrix Inversion
- To calculate the invert of a nxn matrix solve n
times
88Matrix Inversion
- For example in order to calculate the inverse of
89Matrix Inversion
- First Column of Inverse is solution of
90Matrix Inversion
- Second Column of Inverse is solution of
91Matrix Inversion
- Third Column of Inverse is solution of
92Use LU Decomposition
93Use LU Decomposition 1st column
94Use LU Decomposition 1st column
95Use LU Decomposition 2nd Column
96Use LU Decomposition 2nd Column
97Use LU Decomposition 3rd Column
98Use LU Decomposition 3rd Column
99Result
100Test It
101Iterative Methods
Recall Techniques for Root finding of Single
Equations
Initial Guess New Estimate Error
Calculation Repeat until Convergence
102Gauss Seidel
103Gauss Seidel
First Iteration
104Gauss Seidel
Second Iteration
105Gauss Seidel
Iteration Error
Convergence Criterion
106Jacobi Iteration
107Jacobi Iteration
First Iteration
108Jacobi Iteration
Second Iteration
109Jacobi Iteration
Iteration Error