Linear Algebra For Test and Analysis: Imac - Xix
Linear Algebra For Test and Analysis: Imac - Xix
Linear Algebra For Test and Analysis: Imac - Xix
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
MOTIVATION
The use of matrix and vector algebra is an absolute requirement
for the efficient manipulation of the large sets of data that are
fundamental to applications in structural dynamics, both test
and analysis.
Primary problems to be solved:
[ A]{x} = {b}
Linear Algebra
LECTURE AGENDA
Common Nomenclature and Definitions
Solution of Determined Sets of Equations
Solution of Overdetermined Sets of Equations
Solution of UnderDetermined Sets of Equations
Example Applications
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
NOMENCLATURE
[ A]
{ x}
matrix
vector
n
m
matrix transpose
matrix inverse
complex conjugate
[ A]T
[ A]H
[ A]1
[ A]+
*
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
MATRIX EQUATIONS,
THREE CASES CAN OCCUR
[ A]nm {x}m1 = {b}n1
1. Underdetermined: n < m
Optimization
FEM updating
Projection of data onto subspaces
2. Determined: n = m
3. Overdetermined: n > m
Linear Algebra
BASIC DEFINITIONS
Matrix:
a11
a
21
[ A] =
a31
a
41
Vector:
a12
a22
a32
a42
a13
a23
a33
a43
b1
b
2
{b} =
b3
b4
Linear Algebra
3
2
7
4
0 2
2
x1
5 4 1
x2 =
0 3 3
x3
5
6 2
No Exact
Solution
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
ka31
Multiplication of a matrix by a matrix:
Multiplication by a scalar:
ka12
ka22
ka32
ka13
ka23
ka33
[ A][ B] [ B][ A]
Associative
[ A][ B] = [0]
Implies one
of following
[ A] = [0]
[ B] = [0]
[ A] and [ B] singular
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
MATRIX MULTIPLICATION
[ A][ B] = [C]
a11
a
21
a31
a12
a22
a31
a13
a23
a31
b11
a14
b21
a24
b31
a31
b41
b12
c11
b22
= c21
b32
c31
b42
c21
c22
c32
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
SPECIAL MATRICES
Identity Matrix:
1s on the diagonal, zeros everywhere else.
1 0 0
[ I ] = 0 1 0
0 0 1
Zero Matrix:
Zeros in all locations.
0 0 0
[0] = 0 0 0
0 0 0
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
MATRIX TRANSPOSES
Transpose:
1 2 3
[ A] = 4 5 6
7 8 9
Hermitian Transpose:
1 4 7
[ A]T = 2 5 8
3 6 9
2
3i
1+ i
5
6
[ A] = 4 4i
8 + 8i 9
7
7
1 i 4 + 4i
5
8 8i
[ A]H = 2
6
9
3i
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
[ A] = [ A]T
1 2 3
[ A] = 2 4 5
3 5 6
Hermitian:
[ A] = [ A]H
4 + 3i 5i
1
2
2 + i
[ A] = 4 3i
2i
0
5i
All diagonal terms real
Skew Symmetric: [ A] = [ A]
0 2 3
[ A] = 2 0 5
3 5 0
Skew Hermitian:
All diagonal
terms 0
[ A] = [ A]H
4 + 4i
7
i
(8 8i )
[ A] = ( 4 4i ) 5i
7
8 + 8i
0
Linear Algebra
Unitary
Idempotent
[ A]m = [ A]
Nilpotent
[ A]k = [0]
any integer m
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
Diagonal:
Triangular:
1 0 0
[ A] = 0 2 0
0 0 3
1 4 5
[ A] = 0 2 6
0 0 3
Upper
triangular
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
TOEPLITZ MATRIX
All elements on any superdiagonal and subdiagonal are equal.
t1
t
2
[T ] = t3
t
4
t5
t6
t1
t2
t3
t4
t7
t6
t1
t2
t3
t8
t7
t6
t1
t2
t9
t8
t7
t6
t1
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
Combine to produce
Convolution equation
y( k ) = H ( k )u( k i )
i=0
H0
0
0
0
H1
H0
0
0
0
H2
H1
H0
0
0
H3
H2
H1
H0
0
H4 u4 y4
H3 u3 y3
H2 u2 = y2
H1 u1 y1
H0 u0 y0
Linear Algebra
HANKEL MATRIX
All elements on any superdiagonal and subdiagonal perpendicular
to the main diagonal are equal.
h1
h
2
[ H ] = h3
h
4
h5
h2
h3
h4
h5
h6
h3
h4
h5
h6
h7
h4
h5
h6
h7
h8
h5
h6
h7
h8
h9
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
h1
h
2
[ H (0)] = h3
h
4
M
h2
h3
h4
h5
M
h3
h4
h5
h6
M
h4
h5
h6
h7
M
L
L
L
L
Linear Algebra
VANDERMONDE MATRIX
First column is 1s with successive columns being the second column
with its elements raised to increasing integer powers.
1
[V ] = 1
1
1
v1
v2
v3
v12
v22
v32
v4
v5
v42
v52
v13
v23
v33
v43
v53
Nonsingular iff
All vi distinct
Linear Algebra
y2
y2 = a0 + a1 x 2 + a2 x 22 + a3 x 23
y3 = a0 + a1 x3 + a2 x32 + a3 x33
y4 = a0 + a1 x 4 + a2 x 42 + a3 x 43
y5 = a0 + a1 x5 + a2 x52 + a3 x53
y4
y5 }
y = p( x ) = a0 + a1 x + a2 x 2 + a3 x 3
yi = p( xi )
y1 = a0 + a1 x1 + a2 x12 + a3 x13
y3
1
1
1
1
x1
x12
x2
x3
x4
x5
x 22
x32
x 42
x52
x13
y1
a
3 0
x 2 y2
a
3 1
x3 = y3
a
3 2
y
x4
4
3
3
y5
x5
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
Determinant:
a11
[ A] = a21
a31
a12
a22
a32
a13
a22
a23 = a11
a32
a33
a23
a21
a12
a32
a31
[ A][ B] = [ A] [ B]
[ A] = [ A]T
a23
a21
+ a13
a33
a31
a22
a32
Etc.
[ A]* = [ A]H
k[ A] = k n [ A]
Trace:
Sum of diagonal elements
for a square matrix.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
VECTOR SPACE
The set of all n dimensional vectors make up an n dimensional vector
space, Rn.
n vectors {e}i in Rn are said to be linearly independent if the equation
Linear Algebra
rk ([ A]) = r
rk([A]) = m
R([ A])
N ([ A])
[ A]{x} = {0}
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
EXAMPLE
1
3
[ A] =
8
1
0
7
3 13
4 6
2
1
0.12
0.35
R([ A]) =
0.92
0.12
0.37
0.18
0.55
0.73
rk ([ A]) = 2
[ A]T [ A] = 0
Determinant of any 2-by-2 submatrix
is nonzero.
0.82
N ([ A]) = 0.41
0.41
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
[ A]
Rn
Dim(m-r)
R([A])
N([A]T)
N([A])
Dim(n-r)
Dim(r)
R([A]T)
Dim(r)
[ A]T
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
SPECTRAL DECOMPOSITION
In most cases, a square n-by-n matrix [A] can be decomposed into a product
of three matrices
[ A] = [][][]1
where [] is diagonal with entries called eigenvalues and [] is the
modal matrix containing columns {}i called eigenvectors.
This implies that [A] is diagonalizable.
[]1[ A][] = []
([ A] i [ I ]){}i = {0}
([ A] i [ I ]) = 0
[ A] = i
i =1
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
SPECTRAL DECOMPOSITION
Matrix [A] is diagonalizable iff it possesses n linearly independent
eigenvectors.
If [A] has distinct eigenvalues, it is diagonalizable.
1
a12 11 12 1 0
11
12 a11
a
=0
21
22 21
22 21
22
2
1 2 3
[ A] = 4 5 6
7 8 9
0.41
0.23 0.79
[] = 0.53 0.09 0.82
0.82 0.61 0.41
0
0
16.12
1.12 0
[] = 0
0
0
0
Linear Algebra
SPECIAL CASE
REAL SYMMETRIC MATRICES
Always are diagonalizable.
[]T = []1
[]T [ A][] = []
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
STRUCTURAL DYNAMICS
[ M ]{x} + [ K ]{x} = {0}
it
Assume: {x} = {}e
[M] real symmetric positive definite. [K] real symmetric positive semidefinite.
Multiplying through by [M]-1 and
substituting leads to eigenvalue problem:
([ M ]
[ K ] i [ I ]){}i = {0}
[]T [ M ][] = [ I ]
[]T [ K ][] = []
Y
Z
Linear Algebra
[U ](n n)
[ S](n m)
[V ]( m m)
[ A] = [U ][ S][V ]H
[U ]H [U ] = [ I ]
[V ] H [V ] = [ I ]
[ A] = [[U1 ]
or
H
[ ] [0] [V1 ]
[U2 ]] 0 0 H
[ ] [ ] [V2 ]
[ A] = [U1 ][ ][V1 ]
[ A] = {u1 }i i {v1 }i
i =1
{u1}i is ith
column of [U1]
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
[ ](r r ) =
0 0 O 0
M
M
M r
i2 , {u1 }i
{u2 }i
i2 , {v1 }i
{v2 }i
1 2 L r > 0
Linear Algebra
10
0
10
-2
10
-4
10
SINGULAR VALUE
It is obvious to the
casual observer that
matrix [A] has
a rank of 11
-6
10
-8
10
-10
10
-12
10
-14
10
-16
10
8
10
12
14
SINGULAR VALUE NUMBER
16
18
20
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
10
10
SINGULAR VALUE
-1
10
10
20
40
60
80
100
120
SINGULAR VALUE NUMBER
140
160
180
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
Gives measure of
participation of
modes in system
response.
Use to rank dynamic
importance of modes.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
SOLUTION OF DETERMINED
EQUATIONS
Have as many independent
equations as unknowns.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
MATRIX INVERSE
The inverse of a nonsingular matrix [A]
is a matrix [A]-1 that when multiplied by
[A] is the identity matrix.
Properties:
Application:
([ A] )
([ A] )
T 1
= ([ A]
H 1
= ([ A]1
)
)
[ K ]{x} = {F}
1 T
H
1
k
1
=
[ A]
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
a b
[ A] = d e
g h
c
f
[ ]
e f
+ h i
d f
1
1
[ A] =
[ A] g i
d e
+
g h
h
a
+
g
a
c
i
c
i
b
h
b
+
e
a
d
a
+
d
c
f
c
f
b
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
LU DECOMPOSITION
Any nonsingular matrix square matrix [A] can be factored into the
product of two matrices.
[ A] = [ L][U ]
[L] is a lower triangular matrix and [U] is an upper triangular matrix.
6 2 4 4
3
3 6 1
[ A] =
21 8
12 8
6 0 10 7
2 0 0
1 1 0
[ L] =
4 2 1
2 1 2
0
0
0
2
3 1 2 2
0 2 4
1
[U ] =
0 0 5 2
0 0 0
4
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
LU DECOMPOSITION
WHATS IT GOOD FOR?
Inverse:
Determinant:
Solving determined set
of equations.
[ A]{x} = {b}
[ L]{z} = {b}
Solve using
forward substitution
[U ]{x} = {z}
Solve using
backward substitution
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
BACKWARD SUBSTITUTION
3 1 2 2 x1 1
0 2 4
1 x 2 5
=
0 0 5 2 x3 2
0 0 0
4 x 4 6
[U ]{x} = {z}
Last equation
implies:
x4 =
6
4
Substitute into
third equation, etc.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
TEST-ANALYSIS-MODEL DEVELOPMENT
USING STATIC REDUCTION
[ M ]{x} + [C]{x} + [ K ]{x} = {F(t )}
Objective:
{xo } = [ Koo ]
n dof in FEM
[ K oo ]
K
[ ao ]
1
x o [ K oo ] [ K oa ]
{ x} = =
{x a } = [T ]{x a }
x
[I]
a
[ Koa ]{xa }
[ M ]TAM = [T ]T [ M ][T ]
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
dof location
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
2.0
1.5
1.0
0.5
0.0
1
10 11 12 13 14 15 16 17
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
100,000 Dof
833 modes
below 55.0 Hz.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
4
TAM5
3
MSFC
84
83
81
75
71
68
46
23
22
21
16
15
12
11
Frequency Error - %
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
SOLUTION OF UNDERDETERMINED
EQUATIONS
Have fewer independent
equations than unknowns.
[A] is rectangular with more
columns than rows and is
assumed to be full row rank.
A solution always exists,
but there are infinitely many.
Dim(N([A])) = m - r = m - n
n<m
Linear Algebra
n<m
Define a new
vector:
Inverse of [A]
{x}m = [ A] ([ A][ A]
T
T 1
{b} = [A]{x}s
[ A]{x}s = [ P]{x}s
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
PROJECTORS
{x}m = [ P]{x}s
[ P]mm = [ A] ([ A][ A]
T
T 1
[ A]
N([P])
{x}s
[P] is Idempotent:
[ P][ P] = [ P]
R( [A]T )
{x}m
Linear Algebra
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
102 015
[YS ][ H ] = [YD ]
101 022
101 016
101 014
10 100 9
1 070 12
10 6010
104 014
105 011
X
118009
Z
Y
ys 0
y
s1
ys 2
M
ysnt 1
0
ys 0
ys1
M
ysnt 2
L
0
ys 0
M
L
L
0
H 0 yd 0
L
0
H1 yd1
=
L
M
M M
L
M
H N ydn 1
L ysnt NR R t
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
0.15
0.1
0.05
____ FEM
0
-0.1
-0.15
-0.2
0
5
Seconds
10
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
SOLUTION OF OVERDETERMINED
EQUATIONS
Have more independent
equations than unknowns.
[A] is rectangular with more
rows than columns and is
assumed to be full column rank.
n>m
If {b} is in R([A]):
Linear Algebra
([ A] [ A]){x} = [ A]
T
{b} = {b }
[ P ]
Premultiply by [A]T
n>m
[ A] = ([ A] [ A]) [ A]
+
Left Generalized
Inverse of [A]
is an orthogonal
projector onto R([A])
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
[ ]
Unique solution
to [A]{x}={b}
P {b} = {b}
[ ]
{}
P {b} = b
{x } Minimizes Euclidean
norm (length) of error
vector {e}.
Unique solution
to [A]{x}= b
{}
Least-Squares
Solution
Linear Algebra
CURVE FITTING
M2
YSM
YBMA
M1
Data
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
{b}
o(n 3 )
o(n 2 )
In general, its best not to use the Normal Form of the equations to
obtain the Least-Squares solution.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
SOLUTION OF LEAST-SQUARES
PROBLEM USING QR DECOMPOSITION
Operates directly on matrix
equation for general full
column rank matrix:
[A] can be uniquely
factored in the form:
Premultiply
by [Q]T
n>m
[R] upper
triangular
[U ]
[ R] =
[0]
[Q1 ]T
[U ]
[0] {x} = Q T {b}
[ 2 ]
Solve by
backsubstitution.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
{t1
t
t
M
t m2
10
n 1
1
n 1
2
L t x1 y1
L t x 2 y2
=
O M M M
L t mn1 x n ym
t2 L tm } = {0 1 2 L m 1}
10
-2
10
Direct
Inversion
-4
10
Fractional Error
1 t1
1 t2
M M
1 t m
2
1
2
2
-6
LU
10
-8
10
QR
-10
10
-12
10
-14
{y1
y2 L ym } = {1 1 1 L 1}
10
-16
10
5
6
7
8
Number of Columns in 20 Row Data Matrix
D. C. Kammer
University of Wisconsin - Engineering Physics
10
Linear Algebra
[ A][ A]+ [ A] = [ A]
Infinitely Many
generalized inverses
[ A] [ A] = ([ A] [ A])
+
[ A][ A] = ([ A][ A]
+
+ H
[ A]
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
SVD
[ A] = [U1 ][ ][V1 ]
Moore-Penrose
Inverse given by:
[ A] = [[U1 ]
H
[ ] [0] [V1 ]
[U2 ]] 0 0 H
[ ] [ ] [V2 ]
[ A] = [V1 ][ ]1[U1 ]
0 L
11 0
0 1 0 L
1
2
[ ] (r r ) =
0
0 O 0
M
M
M
Linear Algebra
{x } = [ A] {b}
The following
equivalencies
can be derived.
[ A] = [ A] ([ A][ A]
T 1
[ A] = [V1 ][ ]1[U1 ]
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
2 3 0 0
0 4 5 6
0 0 0 7
2 7 5 6
1
1
{x} = 1
1
6
15
{b} =
7
21
0.3209
0.6419
{x } = [ A] {b} = 1.4651
0.6279
1.0000
U =
1.3032e-01
5.9082e-01
3.3749e-01
7.2114e-01
-4.3184e-01
6.8625e-02
8.2273e-01
-3.6321e-01
6.8059e-01
-5.5937e-01
4.5740e-01
1.2122e-01
-5.7735e-01
-5.7735e-01
-3.5691e-18
5.7735e-01
1.4570e+01
0
0
0
0
5.8276e+00
0
0
0
0
2.9611e+00
0
0
0
0
3.7220e-16
0
0
0
0
5.8442e-02
1.1688e-01
5.3552e-01
4.5024e-01
7.0244e-01
-1.3643e-01
-2.7286e-01
-6.1149e-01
-2.5275e-01
6.8494e-01
2.7078e-01
5.4156e-01
2.2047e-01
-7.3983e-01
1.9349e-01
-6.9696e-01
-3.7060e-01
4.7939e-01
-3.8351e-01
-1.8459e-16
6.4722e-01
-6.9373e-01
2.4674e-01
-1.9740e-01
-1.1620e-16
Minimum
norm
{x} = 2.236
{x } = 2.014
S =
tol = 1.62e-14
V =
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
MATRIX CONDITIONING
[ A]nm {x}m1 = {b}n1
Condition Number:
If
([ A]) =
max
min
1
approaches the computers
([ A])
1.0 ([ A])
Good
Bad
Regularization can help.
Look for solution of well-posed
problem in neighborhood of
ill-posed problem.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
[ H ]{U} = {Y }
45(z)
44(xyz)
49(z)
48(x)
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
Ill-conditioning of
data matrix [H] results
in unstable computation
of input forces.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
Matrix Convolution
Equation
[H] =
[h0 ]
[h1 ]
[h2 ]
[h0 ]
[h1 ]
[h ] [h ]
nt 1
nt 2
L
0
O
L
L
L
L
0
O
[h1 ]
{Y } =
{U} =
[h0 ]
0
M
M
0
{{y(0)}
{{u(0)}
{y(1)}
{u(1)}
}
{u(n 1)} }
{y(nt 1)}
L
L
([ H ] [ H ] + [ I ]){U} = [ H ]
T
{Y }
{U} = ([ H ]T [ H ] + [ I ]) [ H ]T {Y }
1
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
Exact
Predicted
= 0.00005
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
Kvant-1
Core
Spektr
Soyuz
Krystall
Progress
Kvant-2
Shuttle
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
ACCELERATION MEASURED ON
KRISTALL - STS-81
0.015
Acceleration - g
0.01
Response data
filtered to 5.0 Hz.
by NASA.
0.005
-0.005
-0.01
10
15
Seconds
20
25
30
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
0
[H] 0
M
0
[ yr 1 ]
[ yr 0 ]
0
M
L
L
M
M
[ yr 0 ]
L
L
L
L
[ y ]
[y ]
rnt 1
rnt 2
[y
M
M
rnt N R
Compute Moore-Penrose
Inverse of [Yr] using SVD.
Due to ill-conditioning, SVD
algorithm FAILS TO CONVERGE.
= [ ye 0 ]
[ ye1 ]
[ y ]]
ent 1
Regularize data:
Adjust SVD singular
value tolerance.
Add a little artificial noise.
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
0.2
0.15
Compute Markov
parameters and
filter to 5.0 Hz.
0.1
0.05
____ FEM
-0.05
-0.1
-0.15
-0.2
0
5
Seconds
10
D. C. Kammer
University of Wisconsin - Engineering Physics
Linear Algebra
SUMMARY
We have only scratched the surface of what there is to know
about matrix algebra.
As an experimental or analytical structural dynamicist, you
CANNOT do your work without using matrix analysis.
There is a veritable galaxy of neat applications, many of which
have not been thought of yet.
D. C. Kammer
University of Wisconsin - Engineering Physics