UNIT 1 Matrix Introduction
UNIT 1 Matrix Introduction
What is a matrix?
A rectangular array of numbers (we will concentrate on
real numbers). A nxm matrix has ‘n’ rows and ‘m’
columns
M 11 M 12 M 13 M 14 First row
M 3x4 M 21 M 22 M 23 M 24 Second row
M 31 M 32 M 33 M 34 Third row
a 1 a2 a3 a4
A column vector of length ‘m’ is a mx1 matrix
a1
a
2
a3
Special matrices
0 0 0 0
03x 4 0 0 0 0
0 0 0 0
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
Matrix operations
Equality of matrices
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 .
Matrix operations Addition of two
matrices
1 2 4
A 3
0 7 c 3
9 1 5
3 6 12
cA 9 0 21
27 3 15
Multiplication by a
scalar
Matrix operations
Special case
1 2 4
A 3 0 7 c 1
9 1 5
1 2 4
cA -A 3 0 7
9 1 5
Matrix operations Subtraction
1 2 4 1 3 10
A 3 0 7 B 3 1 0
9 1 5 1 0 6
2 1 6
C A B 0 1 7
8 1 1
Note that A - A 0 and 0 - A -A
Transpose
Special
operations
If A is a mxn matrix, then the transpose of A is
the nxm matrix whose first column is the first
row of A, whose second column is the second
column of A and so on.
1 2 4 1 3 9
A 3 0 7 T
A 2 0 1
9 1 5 4 7 5
Transpose
Special
operations
A B = AB
mxr rxn mxn
inside
outside
Matrix operations Matrix multiplication
AB BA I
Then
(a)The matrix A is called invertible, and
(b) the matrix B is the inverse of A and is
denoted as A-1.
AB BA I
AC CA I
(BA)C IC C
B(AC) BI B
B C
Hence a matrix cannot have two or more
inverses.
Some properties
Inverse of a
matrix
1 -1
k A 1
A
k
Properties
Inverse of a
matrix
Property 3: If A and B are invertible square
matrices then
1
A B 1 -1
B A
(AB) AB I
1
A ABAB
-1 1
A 1
BAB A 1
1
a 11 a 1 2
A ; det( A ) a 11a 2 2 a 1 2 a 2 1
a 21 a 22
1 3
det( A ) 1 7 3 5 8
5 7
det( A ) a 11a 2 2 a 3 3 a 1 2 a 2 3a 3 1 a 1 3a 2 1a 3 2
a 1 3a 2 2 a 3 1 a 11a 2 3a 3 2 a 1 2 a 2 1a 3 3
This technique works only for 3x3 matrices
Example
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
2 7 8
3 2 4 0
2 7 8
a 21 a 23 a 21 a 23
M 12 a 2 1a 3 3 a 2 3a 3 1 C 12 M 12
a 31 a 33 a 31 a 33
What is a cofactor?
Sign of cofactor -
- -
-
Find the minor and cofactor of a33
2 4 -3
A 1 0 4
Minor 2 4
2 - 1 2 M 33 2 0 4 1 4
1 0
Cofactor C ( 1 ) ( 3 3 ) M
33 33 M 33 4
Cofactor method of obtaining the
determinant of a matrix
d e t ( A ) a 1 jC 1 j a 2 jC 2j a n jC n j
d e t ( A ) a i 1C i 1 a i 2 C i 2 a i n C i n
Example: evaluate det(A) for:
1 0 2 -3
A= 3 4 0 1
det(A) = a11C11 +a12C12 + a13C13 +a14C14
-1 5 2 -2
0 1 1 3
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
Example : evaluate
1 5 -3
det(A)= 2
1 0
2
By a cofactor along the third column
3 -1
det(A)=a13C13 +a23C23+a33C33
1 0 1 5 1 5
det(A)= -3* (-1)4 +2*(-1)5 +2*(-1)6
3 -1 3 -1 1 0
= det(A)= -3(-1-0)+2(-1)5(-1-15)+2(0-5)=25
Quadratic form
The scalar T
U d k d d v ector
k square m atrix
Is known as a quadratic form
d1 k 11 k 12
Let d k Symmetric
d 2 k 21 k 22 matrix
Then
k11 k12 d 1
U d k d d 1 d 2
T
k12 k 22 d 2
k11 d 1 k12 d 2
d 1 d 2
k12 d 1 k 22 d 2
d 1 ( k11 d 1 k12 d 2 ) d 2 ( k12 d 1 k 22 d 2 )
2 2
k11 d 1 2k12 d 1 d 2 k 22 d 2
Differentiation of quadratic form
Differentiate U wrt d1
U
2 k 11 d 1 2 k 1 2 d 2
d 1
Differentiate U wrt d2
U
2 k12 d 1 2 k 22 d 2
d 2
Differentiation of quadratic form
Hence
U
U d 1 k11 k12 d 1
2
d U k12 k 22 d 2
d 2
2 k d
Outline
http://www.airbus.com/en/aircraftfamilies/a380/
Drag Force Analysis
of Aircraft
• Question
What is the drag force distribution on the aircraft?
• Solve
– Navier-Stokes Partial Differential Equations.
• Recent Developments
– Multigrid Methods for Unstructured Grids
San Francisco Oakland Bay Bridge
• Question
– What is the load-deformation relation?
• Solve
– Partial Differential Equations of Continuum Mechanics
• Recent Developments
– Meshless Methods, Iterative methods, Automatic Error Control
Engine Thermal
Analysis
Picture from
http://www.adina.com
• Question
– What is the temperature distribution in the engine block?
• Solve
– Poisson Partial Differential Equation.
• Recent Developments
– Fast Integral Equation Solvers, Monte-Carlo Methods
Electromagnetic
Analysis of Packages
Thanks to
Coventor
http://www.cov
entor.com
• Solve
– Maxwell’s Partial Differential Equations
• Recent Developments
– Fast Solvers for Integral Formulations
Micromachine Device
Performance Analysis
From www.memscap.com
• Equations
– Elastomechanics, Electrostatics, Stokes Flow.
• Recent Developments
– Fast Integral Equation Solvers, Matrix-Implicit Multi-level Newton
Methods for coupled domain problems.
Radiation Therapy of
Lung Cancer
http://www.simulia.com/academics/research_lung.html
Virtual Surgery
General scenario..
Engineering design
Physical Problem
Questions:
1. What is the bending moment at section AA?
2. What is the deflection at the pin?
Finite Element Procedures, K J Bathe
Example: A bracket
Engineering design Mathematical model 1:
beam
Moment at section AA M W L
27,500 N cm
1 W (L rN )3 W (L rN )
Deflection at load at load W
3 EI 5
AG
6
How reliable is this model? 0.053 cm
Physical Problem
Mathematical model
Governed by differential
equations
Numerical model
e.g., finite element
model
..General scenario..
Engineering design Finite element analysis
PREPROCESSING
1. Create a geometric model
2. Develop the finite element model
POSTPROCESSING
Preprocessing
Step 1
Step 2
Analysis
Step 3
Postprocessing
Example: A bracket
Engineering design Mathematical model 2:
plane stress
FEM solution to mathematical model 2 (plane stress)
Moment at section AA M 27 ,500 N c m
Deflection at load at load W 0 . 064 c m
Mathematical Improve
Model mathematical
model
Numerical model
No!
Does answer
Refine analysis
make sense?
Physical Problem
Validation
Mathematical
Model
Verification
Numerical model
Critical assessment of the FEM
Reliability:
For a well-posed mathematical problem the numerical
technique should always, for a reasonable discretization,
give a reasonable solution which must converge to the
accurate solution as the discretization is refined.
e.g., use of reduced integration in FEM results in an
unreliable analysis procedure.
Robustness:
The performance of the numerical method should not be
unduly sensitive to the material data, the boundary
conditions, and the loading conditions used.
e.g., displacement based formulation for incompressible
problems in elasticity
Efficiency:
Gaussian Elimination
Naïve Gaussian Elimination
A method to solve simultaneous linear
equations of the form [A][X]=[C]
Two steps
1. Forward Elimination
2. Back Substitution
Forward Elimination
The goal of forward elimination is to
transform the coefficient matrix into an
upper triangular matrix
25 5 1 x1 106.8
64 8 1 x 177.2
2
144 12 1 x3 279.2
25 5 1 x1 106.8
0 4.8 1.56 x 96.21
2
0 0 0.7 x3 0.735
Forward Elimination
A set of n equations and n unknowns
a11 x1 a12 x2 a13 x3 ... a1n xn b1
a21 x1 a22 x2 a23 x3 ... a2 n xn b2
. .
. .
. .
an1 x1 an 2 x2 an 3 x3 ... ann xn bn
a21
a ( a11 x1 a12 x2 a13 x3 ... a1n xn b1 )
11
a21 a21 a21
a21 x1 a12 x2 ... a1n xn b1
a11 a11 a11
Forward Elimination
Subtract the result from Equation 2.
a21 x1 a22 x2 a23 x3 ... a2 n xn b2
a21 a21 a21
− a21 x1 a a12 x2 ... a a1n xn a b1
11 11 11
_________________________________________________
a21 a21 a21
a22 a12 x2 ... a2 n a1n xn b2 b1
a11 a11 a11
End of Step 1
Forward Elimination
Step 2
Repeat the same procedure for the 3rd
term of Equation 3.
a11 x1 a12 x2 a13 x3 ... a1n xn b1
' '
a22 x2 a23 x3 ... a2' n xn b2'
"
a33 x3 ... a3" n xn b3"
. .
. .
. .
n 1 n 1
ann xn bn
Example of a system of 3
equations
Back Substitution Starting Eqns
a11 x1 a12 x 2 a13 x3 ... a1n x n b1
' '
a22 x2 a23 x3 ... a2' n xn b2'
"
a33 x3 ... an" xn b3"
. .
. .
. .
n 1 n 1
ann xn bn
Back Substitution
Start with the last equation because it has only one unknown
( n 1)
b n
xn ( n 1)
a nn
Solve the linear system by Gauss elimination method.
Example 1.
x+y+z=5
2x + 3y + 5z = 8
4x + 5z = 2
Example 2
Consider the system of equations