Professional Documents
Culture Documents
LINEAR ALGEBRA........................................................................................................ 2
1.0 INTRODUCTION................................................................................................. 2
2.0 PROBLEM STATEMENT....................................................................................... 3
3.0 SETTING UP THE EQUATION..............................................................................4
4.0 MATLAB PROGRAMMING.................................................................................... 6
5.0 FURTHER INVESTIGATION OF MASS-SPRING-DAMPER SYSTEM........................10
1 | Page
LINEAR ALGEBRA
1.0 INTRODUCTION
The history of modern linear algebra dates back to the early 1840s. In 1843, William
Rowan Hamilton introduced quaternions, which describe mechanics in three-
dimensional space. In 1844, Hermann Grassmann published his book Die lineale
Ausdehnungslehre (see References). Arthur Cayley introduced matrices, century. It
was the focus of one of the first international mathematical societies, the
Quaternion Society (1899 - 1913), which aimed to study allied systems of
mathematics.
Matrices were poorly-defined before the development of ring theory within abstract
algebra. With the coming of special relativity, many practitioners gained
appreciation of the subtleties of linear algebra. For instance, in 1914 Ludwik
Silberstein included an introduction to matrices in his Theory of Relativity
2 | Page
(pp.60-2). Meanwhile, in pure mathematics the routine application of Cramer's rule
to solve partial differential equations led to the inclusion of linear algebra in
standard coursework at universities. Edward Thomas Copson wrote, for instance,
More recent developments followed the formulation of the vector space concept into
an algebraic structure, and the growth of functional analysis. One can see a diverse
set of applications in the list of matrices.
[ m ] a+ [ c ] v + [ k ] x=0 (a)
Defining
{}
t = x ,
v (b)
[ A ] t =[ B ] t (c)
[ B ] X
[ A ] X=
3 | Page
[
[ m ] = 10
0
0
10 ] , [ ] [
[ c ] = 10 5 , [ k ] = 4 2 ,
5 5 2 2 ]
Identify the matrices [ A ] and [ B ] and find the eigenvalues of and the
4 | Page
3.0 SETTING UP THE EQUATION
m2
m1
m1 m2
k 1 x1 c 1 x 1
ma
m1 x 1=k 2 ( x 2x 1 ) +c 2 ( x 2 x 1 ) c 1 x 1k 1 x 1
m2 x 2=c 2 ( x 2 x 1 )k 2 ( x 2x 1)
5 | Page
Or we can write in the form
[ 0 m2 x 2][ ] [
c 2 c 2 x 2
+
k 2][ ] [
m1 0 x 1 c1 +c 2 c 2 x 1 k 1+ k 2 k 2 x 1
+
k2 x2
=0
0 ][ ] [ ]
Or
[ m1 0 x 1
][ ] [
c
+ 11
c 12 x 1 k
+ 11
][ ] [
k 12 x 1
0 m2 x 2 c 21 c 22 x 2 k 21 k 22 x 2
=0
0 ][ ] [ ]
[ ][ ] [ ][ ] [
10 0 x 1 + 10 5 x 1 + 4 2 x 1 = 0
0 10 x 2 5 5 x 2 2 2 x 2 0 ][ ] [ ]
Let
z 1=x 1 ; z 2=x 1 ; z 3=x 2 ; z 4= x 2
z 1=x 1=z 2
1
m1 [ 2 2 1 2 4 3
z 2=x 1= k ( z z ) +c ( z z ) c 1 z 3k 1 z 1 ]
z 3=x 2=z 4
1
m2 [ 2 3 1 2 4 2 ]
z 4= k ( z z ) +c ( z z )
[][ ][ ]
0 1 0 0
z1 k 11 c 11 k 22 c 22 z1
z 2 m1 m1 m1 m1 z2
=
z3 0 0 0 1 z3
z 4 k 22 c 22 k 22 c 22 z4
m2 m2 m2 m2
6 | Page
This equation is similar with equation (c) in the problem statement. To solve the
above equation we introduce identity matrices;
[ A ] t =[ B ] t
[ ][ ]
0 1 0 0
[ ][ ]
1 0 0 0 z 1 k 11 c11 k 22 c22 z1
0 1 0 0 z 2 m1 m1 m1 m1 z2
=
0 0 1 0 z 3 0 0 0 1 z3
0 0 0 1 z 4 k 22 c22 k 22 c 22 z4
m2 m2 m2 m2
[ ][ ]
0 1 0 0 0 1 0 0
[ ]
1 0 0 0 k 11 c 11 k 22 c 22 2 1 1 1
m1 m1 m1 m1
[ A ]= 0 1 0 0 , [ B ]= = 5 1 5 2
0 0 1 0 0 0 0 1 0 0 0 1
0 0 0 1 k 22 c 22 k 22 c 22 1 1 1 1
m2 m2 m2 m2 5 2 5 2
clc;clear
clear all;
disp('Enter the combination of m, c and k')
7 | Page
end
8 | Page
end
xm =
9 | Page
0.2788 - 0.1314i 0.2788 + 0.1314i 0.0783 - 0.2127i 0.0783 + 0.2127i
lambda =
-0.6545 + 0.3086i 0 0 0
0 -0.6545 - 0.3086i 0 0
0 0 -0.0955 + 0.2594i 0
0 0 0 -0.0955 - 0.2594i
eigen =
-0.6545 + 0.3086i
-0.6545 - 0.3086i
-0.0955 + 0.2594i
-0.0955 - 0.2594i
xm1 =
1.0000
1.6180 - 0.0000i
-0.0955 + 0.2594i
-0.1545 + 0.4197i
xm1 =
1.0000 1.0000
1.6180 - 0.0000i 1.6180 + 0.0000i
-0.0955 + 0.2594i -0.0955 - 0.2594i
-0.1545 + 0.4197i -0.1545 - 0.4197i
xm1 =
xm1 =
10 | P a g e
The eigenvectors Xs are
eivec =
11 | P a g e
5.0 FURTHER INVESTIGATION OF MASS-SPRING-DAMPER SYSTEM
We introduce a function to keep all the variables of the system, and another
one function to investigate the graphical results of system with a several
different input of variable m, c and k.
Variable Function
function z = msdivc(t,x)
global m1 m2 c11 c12 c21 c22 k11 k12 k21 k22
A=[0, 0, 1, 0; 0, 0, 0, 1; -k11/m1, -k12/m1, -c11/m1, -c12/m1; -k21/m2,
-k22/m2,-c21/m2, -c22/m2];
z=A*x
Calculation Program
clc;clear;
global m1 m2 c11 c12 c21 c22 k11 k12 k21 k22
m1=10; m2=10; c11=40; c12=-20; c21=-20; c22=20; k11=4; k12=-2; k21=-2;
k22=2;
[t,x]=ode23('msdivc',[0,50],[0 0 0 0])
plot(t,x),xlabel('time(s)')
legend('displacement 1','velocity 1','displacement 2','velocity 2')
12 | P a g e
13 | P a g e
a) Case 1
Initial value of displacement set to 1mm for mass 1, we have
As we can see from figure 1, the response of the system last only up to
1.2
displacement 1
velocity 1
1
displacement 2
velocity 2
0.8
0.6
0.4
0.2
-0.2
0 5 10 15 20 25 30 35 40 45 50
time(s)
Figure 2: Initial displacement 1=1mm
25 seconds, but for mass 1; the response last until 50s. The system is
giving less response for initial displacement set to mass 1. To further
see the behavior of the system we include initial velocity at mass 1,
which is 1mm/s. The figure 3 below shows how the system response to
the given initial conditions.
14 | P a g e
1.4
displacement 1
1.2 velocity 1
displacement 2
velocity 2
1
0.8
0.6
0.4
0.2
-0.2
0 5 10 15 20 25 30 35 40 45 50
time(s)
Now we can notice the response of the system, which more obvious
from figure 2. Giving more initial values of displacement or velocity will
lead the system to vibrating at certain period of time. But high values
of displacement or velocity can lead to system failure since the system
would vibrate at its natural frequencies.
15 | P a g e