

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















CIVE 1620: Engineering Mathematics 1.1 1
Notes for
CIVE1620 Engineering Mathematics 1.
Calculus, differentiation and integration Solution of linear equations and Matrix Algebra
January 2008
Dr Andrew Sleigh Room 307 [email protected]
Syllabus
Linear Equations
Solution of systems of linear equations by Echelon method
Matrix Algebra
Operations with matrices Determinants Inverse of a matrix Linear equations (revisited) Eigenvalues and Eigenvectors
Further support material for this module can be found here: www.efm.leeds.ac.uk/CIVE/CIVE
CIVE 1620: Engineering Mathematics 1.1 2
80% of total module mark Mandatory
2 hours.
Answer 4 questions out of 6 3 questions on Calculus, differentiation and integration 3 questions on linear equations and Matrix Algebra
Coursework
20% of total module mark
4 problem sheets, each worth 5%
3 on Calculus, differentiation and integration 1 on linear equations and Matrix Algebra
Linear Equations
x Introduction
x Solution of linear equations in three variables
x Definitions
x Linear equations with no solution
x Linear equations with non unique solutions
x Test for unique solutions
x Linear equations with unknown coefficients
x Engineering problems involving linear equations
Consider the linear simultaneous equations
2 3 b
a
y
y
x
x
replacing the second equation by (b) – 2 × (a)
b
a
back substitution into (a) gives (x, y) = (2, 1)
Graphical solution of x y 3 and 2 x 3 y 7
0
1
2
3
4
5
-1 -0.5 0 0.5 1 1.5 2 2.5 3 3.5 4
x+y= 2x+3y=
(2,1)
In general, to obtain a solution we can x Multiply an equation (i.e. all the terms) by a constant x Subtract one of the simultaneous equations from another x Substitute back the value of one term to obtain the value of the other term
CIVE 1620: Engineering Mathematics 1.1 5
Example Problem
Solve the following linear equations:
c
b
a
z
z
z
y
y
y
x
x
x
Replace (b) with (b) – (a), and (c) with (c) – (a)
c
b
x y z a
c a
b a
This is known as echelon form.
Substituting row by row, starting at the last equation gives
x
y
z
CIVE 1620: Engineering Mathematics 1.1 6
Simultaneous Linear Equations
Definition:
Two sets of simultaneous linear equations are equivalent when they have exactly the same solution.
Definition:
Elementary operations on a set of linear equations are operations that: (i) Switch positions of two equations (ii) Multiply any equation by a non-zero real number (iii) Add (or subtract) two equations
Definition: A set of simultaneous equations is in echelon form when the number of zero coefficients at the start of each equation increases by at least one between subsequent equations in the set.
Method of solutions
1. Apply an appropriate sequence of elementary operations to produce an equivalent set of equations **that are in echelon form.
Note:
Not every set of simultaneous equations has a solution.
Linear equations with no solution.
2 c
b
a
z
z
z
y
y
y
x
x
x
Performing the following operations: (6a) unaltered; (6b)- (6a); (6c) – 2 ×(6a)
c
b
x y z a
Then (7a), (7b) unaltered and 2 × (7b) – (7c)
c
b
x y z a
Notes:
x This is an result.
x This means that there is to this set of equations.
x The three planes that the three equations describe never cross at a single point.
CIVE 1620: Engineering Mathematics 1.1 13
Expanding gives
3 12 1 0
6 1 0
6 0
3 6 2 4 2 0
3 12 2 2 0
2
3 2
3 2 4 4
2 2 3
k k k
k k k
k k k
k k k k k k
k k k k k
So when either
k = k = k =
there is no solution.
When k = 1, from substituting in the echelon form above we
get
z
z
z y
x y
Back substitution gives,
x = y = z =
CIVE 1620: Engineering Mathematics 1.1 14
Engineering Example
Consider the one dimensional system
Spring tensions are calculated from elasticity
3 1
3 2
2 1
1
d d
c c
b b
a a
T k
T k
T k
T k
Equilibrium at each node gives
c d
b c
a b d
node 1
node 2
node 3 W
G 1
G 2
G 3
K (^) a
K (^) b
K (^) d
K (^) c
Combining these equations
k W
k
k
k
k
k k
d
c
d
c
b
a b 0
3 1
3 2
3 1
3 2
2 1
1 2 1
which can be rewritten:
k k W
k
k
k k
k
k
k
k k k
c d
c
c
b c
b
d
b
a b d 0
3
3
2
2
2
1
1
1
Determination of displacements requires the solution of
simultaneous linear equations
Example spring problem
For the spring system shown below, develop a set of simultaneous equations in three nodal displacements į1, į 2 , į 3. Convert these equations to an equivalent set of equations in echelon form (you may use the following spring constants K (^) a = 4 N/mm, K (^) b = 1 N/mm, K (^) c = 2 N/mm, K (^) d = 6 N/mm, K (^) e = 2 N/mm.) Find the nodal displacements when the applied load W = 18 N.
Spring tensions are calculated from elasticity
3 2
3 1
2
2
1
e e
d d
c c
b b
a a
T k
T k
T k
T k
T k
node 1
node 2
node 3
W
G 1 G 2
G 3
K (^) a K^ b K^ c
K (^) d (^) K (^) e
CIVE 1620: Engineering Mathematics 1.1 17
Equilibrium at each node gives
d e
b c e
a d
Combining these equations
k W
k
k
k
k
k
k
e
e
d
d
c
a
b^0
3 2
3 2
3 1
3 1
2
1
2
which can be rewritten:
k k W
k
k
k
k k k
k
k k
d e
e
d
e
b c e
d
a d 0
3
3
3
2
2
1
1
Substituting in the values from the question gives
CIVE 1620: Engineering Mathematics 1.1 18
We need to solve this by reducing the set of simultaneous equation to echelon form:
r1-3 u r2 and 4 u r2+r3 gives
r1/5 and r2/3 gives
adding gives
2
then back-substituting gives
3
1
Matrices
Matrix notation is an easy way of representing an equation in a series of unknowns.
In matrix notation the coefficients are stored separately from the unknowns (for analytical convenience)
d ax by cz d z
y
x
a b c { ¸
This provides a concise way of representing simultaneous linear equations
3 3 3 3
2 2 2 2
1 1 1 1
3
2
1
3 3 3
2 2 2
1 1 1
ax by cz d
ax by cz d
ax by cz d
d
d
d
z
y
x
a b c
a b c
a b c
To handle linear equations in matrix form it is necessary to know a few definitions, and to understand the rules of matrix algebra.
Matrix definitions
Matrix
a rectangular array of numbers (elements)
e.g.
¸¸
Order of a matrix
a matrix order of ( m × n ) denotes m rows and n columns. For example matrix A is a 4 × 3 matrix.
Line matrix
a matrix containing only one row e.g.
Column matrix
a matrix containing only one column e.g.
¸
CIVE 1620: Engineering Mathematics 1.1 25
Matrix multiplication
The product of two matrices, A.B, can only be calculated if
the number of columns in A is equal to the number of rows
in B.
If
21 22 23
11 12 13 a a a
a a a A
32
22
12
31
21
11
b
b
b
b
b
b
B
then
2111 2221 2331 2112 2222 2332
1111 1221 1331 1112 1222 1332 . ab ab ab ab ab ab
ab ab ab ab ab ab A B
CIVE 1620: Engineering Mathematics 1.1 26
Exercise problem
Calculate A.B then B.A
An Application of Matrix Algebra
Change of Coordinate system.
Consider two coordinate systems :
x same origin x different angle
Point P has coordinates (x, y) in one system, and
coordinates (x’,y’) in the other system.
y
x
y’ x’
T
T
T
A
B
C
P
C
O
From geometry we can see that the coordinate are related thus:
T T
T T
T T T
' cos sin
' cos sin
' cos sin sin
x x y
x x BC BP
x x BC BP
x OA AB BC
and
T T
T T
T
T
' sin cos
' tan cos
' cos
' cos
y x y
y y x
y y BC
y BP
y PC
therefore
y
x y
x '
CIVE 1620: Engineering Mathematics 1.1 29
Consider now two coordinate systems
x different origins x parallel axes
Again, point P has coordinates (x, y) in one system and
coordinate (x’, y’) in the other system. Again, from
geometry we can see that the coordinate are related thus:
y y b
x x a
y
x
y
x
y’
P
b x’ a
CIVE 1620: Engineering Mathematics 1.1 30
The two of these situations combined represents the general case of two different coordinate systems
x different origin x different angle
First rotate to an intermediate axes system (x’’, y’’) whose origin is at the same point a the axes (x, y) gives
x ' ' x cos T y sin T
y ' ' x sinT y cosT
The translation required to move the origin to the origin of the (x’, y’) system is
Along the x’’ axis
a cos T b sin T
Along the y’’ axis
a sin T b cos T
y
x
P
y’’ x’’
b a
y’
x’
Combining gives the coordinates in the (x’, y’) axes
x ' x a cosT y b sin T
and
y ' x a sinT y b cos T
therefore
y
x
Conclusion
A change of coordinate system can be conveniently handled by a matrix approach.
Uses in civil engineering
x When surveying it is often convenient to use a local coordinate system on site, then to convert this to a national coordinate system later.
x In stress analysis it is often convenient to analyse individual elements of the structure using a local coordinate system then convert to a global coordinate system to consider overall behaviour.
Example problem
Points A, B and C have coordinates (4, 1), (1, 5) and (8, 4) with respect to the axes (x, y), and points A’ and B’ have coordinates (40, 20) and (43, 24) with respect to the axes (x’, y’).
What will be the coordinate of the point C with respect to the axes (x’, y’).
Solution
This problem will be easiest to solve by first rotating coordinate system (x, y) so that the new axes are parallel to
the (x’, y’) axes, then to translate this new coordinate system so that it maps on to system (x’, y’).
The angle a line joining A to B makes with a vertical on each axis system are
¸^ q ¹
¸ q ¹
tan 1
y
x
y’
A
x’
A
B C B D E
CIVE 1620: Engineering Mathematics 1.1 37
Determinant of a matrix
By considering the solution to a set of linear equations in three variables, we identified the determinant of the matrix
3 3 3
2 2 2
1 1 1
a b c
a b c
a b c
as
3 3
2 2 1 3 3
2 2 1 3 3
2 2 1
3 3 3
2 2 2
1 1 1
a b
a b c a c
a c b b c
b c a a b c
a b c
a b c
3 3
2 2 1 3 3
2 2 1 3 3
2 2 1
1 23 32 1 23 32 1 22 33
123 132 213 312 321 231
a b
a b c a c
a c b b c
b c a
abc bc bac ac cab ab
abc abc abc abc abc abc
Rearranging this equation
3 3
1 1 2 3 3
1 1 2 3 3
1 1 2
2 13 31 2 13 31 2 13 31
213 231 123 321 132 312
a b
a b c a c
a c b b c
b c a
a bc bc b ac ac cab ab
abc abc abc abc abc abc
CIVE 1620: Engineering Mathematics 1.1 38
Alternatively the determinant could have been rearranged to give
2 2
1 1 3 2 2
1 1 3 2 2
1 1 3
3 12 21 3 12 21 3 12 21
321 312 231 132 123 213
a b
a b c a c
a c b b c
b c a
a bc bc b ac ac c ab ab
abc abc abc abc abc abc
In other words, a matrix determinant can be expanded along any row, provided proper account is taken of the sign of each term.
In a 3 u 3 matrix, the sign of each term is given by
Once a row has been selected for the expansion, each term in that row is multiplied by both the relevant minor and the appropriate sign
The Minor is the determinant of the matrix that remains once the row and column where the term resides is deleted
Rules for determinants
a) Two rows (or columns) of a matrix are equal
31 32
21 22 13 31 33
21 23 12 32 33
22 23 11
31 32 33
21 22 23
11 12 13
a a
a a a a a
a a a a c
a c a
a a a
a a a
a a a
21 22
21 22 13 21 23
21 23 12 22 23
22 23 11
21 22 23
21 22 23
11 12 13 a a
a a a a a
a a a a c
a c a
a a a
a a a
a a a
A
Thus, if two rows (or columns) are the same:
b) Multiply a row by a scalar
31 32 33
21 22 23
11 12 13
a a a
a a a
a a a
A
31 32 33
21 22 23
11 12 13
a a a
a a a
If you multiply a row by a scalar the determinant is :
Exercise problem
Evaluate
1 0 2
This example demonstrates a consequence of (a) and (b):
If any row (or column) is a multiple of another row (or column)
then the determinant is __________.
CIVE 1620: Engineering Mathematics 1.1 41
c) Interchange of two rows
consider
31 32 33
21 22 23
11 12 13
a a a
a a a
a a a
A and
31 32 33
11 12 13
21 22 23
a a a
a a a
a a a
B
Expanding A by the first row,
31 32
21 22 13 31 33
21 23 12 32 33
22 23 11 31 32 33
21 22 23
11 12 13
a a
a a a a a
a a a a c
a c a
a a a
a a a
a a a A
And B by the second
31 32
21 22 13 31 33
21 23 12 32 33
22 23 11
31 32 33
11 12 13
21 22 23
a a
a a a a a
a a a a c
a c a
a a a
a a a
a a a B
thus
Interchanging two rows (or columns) changes the:
_______________ of the determinant.
CIVE 1620: Engineering Mathematics 1.1 42
d) Addition rule
(For convenience here we will write A (^) ij = the minor of the matrix element at row i, column j.)
31 32 33
21 22 23
11 12 13
1111 1212 1313 1111 1212 1313
11 11 11 12 12 12 13 13 13 31 32 33
21 22 23
11 11 12 12 13 13
a a a
a a a
a a a
aA aA aA bA bA bA
a b A a b A a b A
a a a
a a a
a b a b a b
(e) Adding multiples of rows (or columns)
31 32 33
21 22 23
11 12 13
a a a
a a a
a a a A
31 32 33
21 22 23
11 21 12 22 13 23
a a a
a a a
Using (d) then (b) we see that
31 32 33
21 22 23
11 12 13
a a a
a a a
a a a
B
and, using (a) since the determinant of the second term is
zero
This means that adding multiples of rows (or columns) to
any other row (or column)
__________________ the determinant.
f) Transpose
g) Product
Although difficult to prove, it can easily be seen by expanding the 2 u 2 matrices:
21 22
11 12
21 22
11 12 b b
b b a a
a a A B
11221122 11221221 12211122 12211221
1111 1221 2112 2222 2111 2221 1112 1222
2111 2221 2112 2222
1111 1221 1112 1222
aabb aabb aabb aab b
ab ab ab ab ab ab ab ab
ab ab ab a b
ab ab ab ab
11221122 11221221 12211122 12211221
1122 1221 1122 2112 aabb aabb aabb aab b
aa aa bb bb
CIVE 1620: Engineering Mathematics 1.1 49
Exercise Problem
Calculate the values of k that satisfy the equation
k
k
c c
c c
CIVE 1620: Engineering Mathematics 1.1 50
Additional Note
You may recall that when we considered the test for a unique solution to the equation
2
1
2
1
2
1 c
c
by
by
ax
ax
or
2
1 2 2
1 1 c
c y
x a b
a b
We found an equation in the following form
a 1 (^) b 2 a 2 b 1 x b 1 c 2 b 2 c 1
a 1 (^) b 2 a 2 b 1 y a 1 c 2 a 2 c 1
Which can be written
2 2
1 1
2 2
1 1
2 2
1 1 c b
c b
b c
b c x a b
a b
2 2
1 1 2 2
1 1 a c
a c y a b
a b
Cramer’s Rule
Cramer’s rule will be illustrated by considering a set of
three equations in three unknowns:
3
2
1
3 3 3
2 2 2
1 1 1
d
d
d
z
y
x
a b c
a b c
a b c
There is a unique solution when
3 3 3
2 2 2
1 1 1 z
a b c
a b c
a b c
When a solution exists it is given by
3 3 3
2 2 2
1 1 1
3 3 3
2 2 2
1 1 1
d b c
d b c
d b c
x a b c
a b c
a b c
3 3 3
2 2 2
1 1 1
3 3 3
2 2 2
1 1 1
a d c
a d c
a d c
y
a b c
a b c
a b c
3 3 3
2 2 2
1 1 1
3 3 3
2 2 2
1 1 1
a b d
a b d
a b d z
a b c
a b c
a b c
Notes on Cramer’s Rule:
1. It is only applicable when the number of unknowns is **equal to the number of equations
CIVE 1620: Engineering Mathematics 1.1 53
Exercise Problem
Use Cramer’s rule to solve the following equation:
y
x
y
x
CIVE 1620: Engineering Mathematics 1.1 54
Homogeneous Equations
We have shown that there is only a unique solution to the general linear equation
3
2
1
3 3 3
2 2 2
1 1 1
d
d
d
z
y
x
a b c
a b c
a b c
when 0
3 3 3
2 2 2
1 1 1 z
a b c
a b c
a b c
This provides a useful test for a non-trivial solution to the homogenous equation
3 3 3
2 2 2
1 1 1
z
y
x
a b c
a b c
a b c
The unique solution is the trivial solution x = y = z = 0****.
Therefore there is a non-trivial solution to a homogenous equation when
3 3 3
2 2 2
1 1 1
a b c
a b c
a b c
Note: although this equation is a test for a non-trivial solution, that solution can only be found by reducing the equation set to echelon form.
The Adjoint Matrix
Definition
T
T
a a
a a a a
a a a a
a a
a a
a a
a a
a a
a a
a a
a a
a a a a
a a a a
a a
adj
21 22
11 12 21 23
11 13 32 33
12 13
31 32
11 12
31 33
11 13
32 33
12 13
31 32
21 22 31 33
21 23 32 33
22 23
31 32 33
21 22 23
11 12 13 A
Properties of the Adjoint Matrix
Consider
Then
T
T
adj A
A adj A
CIVE 1620: Engineering Mathematics 1.1 61
T
T
adj
Thus the inverse is given by
B
1 adj
CIVE 1620: Engineering Mathematics 1.1 62
To demonstrate that B B I 1
3
1 3
2 3
2 3
1
3
1 3
4 3
2 3
2
3
2 3
2 3
4 3
1
1 BB
Eigenvalues and Eigenvectors
Consider the homogeneous equation
y
x
For a non trivial (but non-unique) solution the determinant
of the first matrix must be zero i.e.
2
i.e. Non-trivial solutions occur if O = 4 or O = -
When O = -
y
x
Solving this gives
y x
x y
So
¸ ¹
y
x
When O = 4 then
y
x
Solving this gives
y x
x y
So
y
x
This set of equations only has non-trivial solutions for two values of O , and each of these solutions lie on a straight line through the origin.
The values O = -1 and 4 are called the
for the matrix ¸ ¹
Vectors 1
y
x and ¸ ¹
y
x are the
corresponding****.
CIVE 1620: Engineering Mathematics 1.1 65
Note on Vector Notation
1. Coordinate of a single point:
b
a y
x are the vector coordinates of a point in x, y space.
2. Coordinates of a series of points on a line:
b
a
y
x
x, y space that lie on a straight line through the origin.
Similarly,
c
b
a
z
y
x
that lie on a straight line through the origin in x, y, z space.
CIVE 1620: Engineering Mathematics 1.1 66
Exercise Problem
Find the eigenvalues of and the eigenvectors of
the matrix ¸ ¹
Answer:
y
x
2
2
For O = 6
So the eigenvector associated with
eigenvalue O =
is the
eigenvector
For O = 1
So the eigenvector associated with
eigenvalue O = 1
is the
eigenvector
Example Problem
Find the eigenvalues and eigenvectors of the matrix
To do this we need to expand the determinant and find the roots of the resulting cubic expression.
Expand along the top row
3 2
2
So O = 5 and O = 3 are the eigenvalues. These values should be substituted into the equation
z
y
x
O
O
O
CIVE 1620: Engineering Mathematics 1.1 73
For node 2
2 2
2 1 2
2 1
2 2 21 21
2 2 2 2 1
2 2 2
y m
k y m
k y
my ky ky
my k y y
my T
These can be written as the matrix equation
y Ay 0
where
2
1 y
y
y
¸
2
2 2
2
1
2 1
1 2
m
k m
k
m
k m
k k
2
1 y
y y
Such a differential equation has a general solution of the
form
y x t
y x t
cos
cos 2
Where Ȧ is the natural frequency and x is the normal mode
of vibration of the system.
CIVE 1620: Engineering Mathematics 1.1 74
Substituting these into our matrix equation gives:
cos cos 0 2
where (^) ¸¸ ¹
2
1 x
x x
Simplifying gives: 0 2
or expanded in matrix form:
2
1 2
2
2 2
2
1
(^22)
1
1 2
2
2 1
2
1
2
2 2
2
1
2 1
1 2
x
x
m
k m
k
m
k m
k k
x
x
x
x
m
k m
k
m
k m
k k
This is an eigenvalue problem.
Where the eigenvalue, O = Ȧ 2
Solution for Ȧ 2 , the eigenvalues, and the corresponding eigenvectors, x , give the natural frequency and normal modes of vibration of the system.
Example Problem
Find the natural frequency and normal modes of vibration
of the system shown below with the following constants:
m 1 =1, m 2 = 4, k 1 = 1, k 2 = 4, k 3 = 4 in suitable units.
Solution
The tension in each spring is equal to the spring constant
multiplied by the elongation. So
T 1 k 1 y 1
T 2 (^) k 2 y 2 y 1
T 3 (^) k 3 y 2 k 3 y 2
node 1
node 2 m 2
y 1
y 2
K (^1)
K (^2)
m 1
K (^3)
Considering equilibrium of forces at each node (neglecting masses of the springs and damping) we get
2 1
2 1 1
1 2 1
11 1 2 1 22
11 11 2 2 1
11 1 2
y m
k y m
k k y
my k k y ky
my ky k y y
my T T
For node 2
s
2 2
2 3 1 2
2 1
2 2 21 2 3 1
22 2 2 1 32
22 2 3
y m
k k y m
k y
my ky k k y
my k y y ky
my T T
or
2
1
2
2 3 2
2
1
2 1
1 2
2
1 ¸¸ ¹
y
y
m
k k m
k
m
k m
k k
y
y
Assuming the solution of the form
CIVE 1620: Engineering Mathematics 1.1 77
Then we can write (1) as
2
Therefore the eigenvalues are the roots to the equation
2
2
2 3 2
2
1
2 2 1
1 2
m
k k m
k
m
k m
k k
Substituting actual value in the equation gives
2 2
2 2
2
2
The eigenvalues are Ȧ 2 = 1 or 6.
CIVE 1620: Engineering Mathematics 1.1 78
When Ȧ 2 = 1 equation (2) becomes
2
1 ¸¸ ¹
x
x
So the associated eigenvector is ¸ ¹
by
2
1
2
1 cos
cos
t
t
y
y
When Ȧ 2 = 6 equation (2) becomes
2
1 ¸¸ ¹
x
x
So the associated eigenvector is ¸ ¹
and the motion of the system is given by
2
1 2
1 cos 6
4 cos 6
t
t y
y
Rank of a Matrix
The rank of matrix A is defined as the number of linearly independent row vectors it contains.
A more straight forward explanation is that the rank of matrix A is the number of non-zero rows it contains in equivalent echelon form.
The rank of a matrix of coefficients, A, in the simultaneous equation
Ax B ( 1 )
gives the number of independent equations expressed by this equation.
If the rank of matrix A is equal to the number of variables in
x, there is a unique solution to equation (1).
The Augmented Matrix
The augmented matrix is a concise way of writing an equation.
Consider the equation
3
2
1
3
2
1
31 32 33
21 22 23
11 12 13
b
b
b
x
x
x
a a a
a a a
a a a
the augmented matrix of coefficients for this set of equations is defined as
3
2
1
31 32 33
21 22 23
11 12 13
b
b
b
a a a
a a a
a a a