Matrices Notes
Matrices Notes
we will restrict access to material only to the DUT community: academic staff, staff
related to teaching & learning and students enrolled in courses. Students are advised
to limit their use of material provided to them only for the purpose of their own private
study, and refrain from sharing with persons not enrolled for the class. We will maximize
the full extent of compliance in accordance with Copyright law.
MATRICES
2 Equal Matrices
Two matrices A and B are equal if corresponding elements ineach of the matrices
are equal i.e
2 x −3 a −1 b
A=B if and only if aij = bij for all i and j. For example, If = ,
y 0 z 5 c 4
then a = 2, b = −3, x = −1, y = 5 and z = 4
2 −3 5 1 4 −2 3 1 3
B+D = −1 0 4 + 1 −2 −1 = 0 −2 3
6 −1 −1 5 −2 1 11 −3 0
C + D is not possible because the orders of the two matrices are not the same. C has order
3 × 2 while D has order 3 × 3
1 4 −2 2 −3 5 −1 7 −7
D−B = 1 −2 −1 − −1 0 4 = 2 −2 −5
5 −2 1 6 −1 −1 −1 −1 2
4 Multiplication
4.1 Scalar Multiplication
Multiplication of a matrix by a scalar (constant). When a matrix is multiplied by a scalar,
each element in the matrix is multiplied by the scalar quantity.
1 −2 3 −6
1) 3· −1 0 = −3 0
−5 −1 −15 −3
1
1 4 −2 2 −1
2
1
2) 1 −2 −1 = 2 · −1 − 21
2
5 1
5 −2 1 2
−1 2
A · B = C
(m × n) (n × p) (m × p)
=
In practice, it is useful to write down the orders of the two matrices to be multiplied as done
for A · B above.
If the two inner values in the two orders are equal, then the multiplication is possible.
The two outer values in the two orders of A and B, give the values of the order of the
product C
Note that matrix multiplication is not Commutative for all matrices A and B. For the
products AB and BA to both exist, one matrix must have order (m × n) while the other
matrix must have order (n × n). Then, even if both products exist, it does not automatically
follow that AB = BA
4.2.2 Method
Each element cij in the product C = A · B is calculated as follows for each i and j:
In other words, to find the value of cij , choose row i from the first matrix (A) and column j
from the second matrix (B). Multiply the first element of row i to the first element of column
j, then multiply the second element from rowi to the second element from column j and so on
until you have multiplied the last element from row i to the last element from column j. Add
these products together to get the value of cij .
Example:
1 −2 3 2 4
If A = 0 4 −5 and B = −1 −3 , find (i) B · A and (ii) A · B
−1 1 0 1 2
(i) B · A is not possible (number of columns in B (i.e 2) does not equal the number of rows in
A (i.e 3) )
B · A
(3 × 2) (3 × 3)
̸=
(ii) A · B is possible (number of columns in A (i.e 3) equals the number of rows in B (i.e 3) )
1 −2 3 2 4 c11 c12
0 4 −5
−1 −3
=
c21 c22
−1 1 0 1 2 c31 c32
Now multiply element 1 from the chosen row, i.e (0) to element 1 from the chosen column, i.e
(2), then multiply element 2 from the chosen row, i.e (4) to element 2 from the chosen column,
i.e (-1), then multiply element 3 from the chosen row, i.e (-5) to element 3 from the chosen
column, i.e (1). Adding these products together gives the value of c21 (see below)
0×2=0
−4
=
4 × −1 c11 c12
2
0 4 −5
−1
=
−9 c22
1 c31 c32
−5 ×
1 = −5
−9
(− 5) =
−4) +
0+(
Now multiply element 1 from the chosen row, i.e (-1) to element 1 from the chosen column, i.e
(4), then multiply element 2 from the chosen row, i.e (1) to element 2 from the chosen column,
i.e (-3), then multiply element 3 from the chosen row, i.e (0) to element 3 from the chosen
column, i.e (2). Adding these products together gives the value of c21 (see below)
= −4
−1 × 4
−3
= c11 c12
−3
1 ×
4
−3 = −9 c22
−1 1 0
2 c31 −7
0×2=0
−7
) + (0) =
−4 + (−3
Note that because matrix multiplication is not commutative, the order in which matrices are
multiplied together is important. Suppose for example that we wish to multiply the matrix C
to both sides of the matrix equation
A·X =B
If C is multiplied on the left of the left side of the equation then it must also be multiplied on
the left of the right hand side as well i.e
C ·A·X =C ·B
Another important aspect of matrix algebra is that there is no such thing as Matrix Division.
However, multiplication by the inverse of a matrix is possible. If A is a square matrix then
it’s inverse, if it exists, is denoted by A−1 and A · A−1 = A−1 · A = I. The inverse of a matrix
will be discussed in a later section of these notes.
−3
aij = aji (an element in row i and column j will be the same as the element in row j and
column i).
A = AT
Example
1 −2 3 −1 1 −2 3 −1
−2 0 −2 8 −2 0 −2 8
A=
3 −2 −1
and AT =
3 −2 −1
5 5
−1 8 5 −4 −1 8 5 −4
Notice that the matrix is symmetric about the main diagonal. The Main Diagonal consists
of elements aii . In the example above the elements in the main diagonal are a11 = 1, a22 =
0, a33 = −1, a44 = −4
aij = −aji (an element in row i and column j will be the negative of the element in row
j and column i).
A = −AT
Example
1 2 −3 1 1 −2 3 −1
−2 0 2 −8 2 0 −2 8
A=
3 −2 −1 −5 and AT =
−3
2 −1 5
−1 8 5 −4 1 −8 −5 −4
Notice that the matrix is symmetric about the main diagonal in terms of numerical value of
the elements but opposite in sign.
0 0 0 1
The unit matrix behaves in the same way in matrix multiplication as the number 1 does in the
multiplication of numbers, hence the name Identity Matrix.
Note
The Matrix of cofactors of matrix A is a square matrix C, of the same order as A in which
each element
cij = cofactor(aij ) = (−1)i+j · minor(aij )
9 −5 −1
i.e C = 1 3 7
−14 −10 −2
Now, the Adjoint of A is the transpose C T of the matrix of cofactors C of matrix A i.e
adj(A) = C T
Example
9 1 −14
The adjoint of matrix A above is adj(A) = C T = −5 3 −10
−1 7 −2
1. Find det(A) = |A| to test if it is non-singular and hence invertible. If det(A) ̸= 0 then
matrix A is non-singular and A is invertible. If so, then;
1
A−1 = · adj(A)
det(A)
Example
1 1 −1
Find the inverse matrix of A = 2 0 −2
1 1 1
1 −1 1 1
det(A) = |A| = (−1)2+1 (2) + 0 + (−1)2+3 (−2)
1 1 1 1
= −(2)(2) − (−2)(0) = −4
2 −4 2 2 −2 −2
C = −2 2 0 and adj(A) = cT = −4 2 0
−2 0 −2 2 0 −2
− 21 1 1
2 −2 −2 2 2
∴ A−1 = 1
· adj(A) = 1
· −4 2 0 or A−1 = 1 − 12 0
|A| −4
2 0 −2 − 21 0 1
2
You can check the correctness of this answer by showing that A · A−1 = I3 or A−1 · A = I3
Method
Given a square matrix A of order n.
1. Find det(A) = |A| to test if it is non-singular and hence invertible. If det(A) ̸= 0 then
matrix A is non-singular and A is invertible. If so, then;
2. form the extended matrix (A | I) of order n × 2n, where I is the identity matrix of order
n
Examples
Find the inverse matrices of;
3 −2
1) A =
9 5
1 −3 −1
2) A = 2 3 −3
−3 1 2
Solution
1)
3 −2 1 0
(A|I) =
9 5 0 1
− 23 1
1 3
0
= [ (row 1) ÷ 3]
9 5 0 1
− 23 1
1 3
0
= [ (−9) · (row 1) + (row 2)]
0 11 −3 1
− 23 1
1 3
0
= [(row 2) ÷ 11]
3 1
0 1 − 11 11
5 2
1 0 33 33
= [ 32 · (row 2) + (row 1)]
3 1
0 1 − 11 11
= (I|A−1 )
5 2
33 33
∴ A−1 =
3 1
− 11 11
(A|I) = 2 3 −3 0 1 0
−3 1 2 0 0 1
1 −3 −1 1 0 0
0 −8 −1 3 0 1
1 −3 −1 1 0 0
= 0 1 − 19 − 29 1
0 [ (row 2) ÷ 9]
9
0 −8 −1 3 0 1
1 0 − 34 1 1
0
3 3
= 0 1 − 91 − 29 1
0 [ (row 1) + 3 · (row 2)] & [(row 3) + 8 · (row 2)]
9
0 0 − 17
9
11
9
8
9
1
1 0 − 43 1 1
0
3 3
= 0 1 − 19 − 29 1 9
0 [(− 17 ) · (row 3)]
9
0 0 1 − 11
17
8
− 17 9
− 17
9 5
1 0 0 − 17 − 17 − 12
17
5 1 1
= 0 1 0 − 17 − 17 [ (row 1) + 43 · (row 3)] & [(row 2) + 91 · (row 2)]
17
0 0 1 − 11
17
8
− 17 9
− 17
= (I|A−1 )
9 5
− 17 − 17 − 12
17
∴ A−1 = − 17
5 1 1
17
− 17
11 8 9
− 17 − 17 − 17
You should check both of the answers by showing that A · A−1 = A−1 · A = I in both cases.
x + y − z = −2
2x − 2z = −2
x + y+z =2
Solving the system of equations is achieved by solving the matrix equation as follows;
1. Find A−1
2. Multiply A−1 on the left of both sides of the equation. By doing so, the matrix equation
is solved for the column matrix X as follows;
A·X =B
−1 −1
| {z· A} ·X = A · B
A
I
· X} = A−1 · B
∴ I| {z
X
∴ X = A−1 · B
Since these are equal matrices the corresponding elements in the matrices are equal.
Thus x = 1, y = −1 and z = 2
x + y − z = −2
2x − 2z = −2
x + y+z =2
A vertical line can also be inserted just before the last column to separate the coefficients of
variables on the left hand side of the equations from the right hand side constants. Either of
these representations is valid.
Another concept we need to consider before solving the system by Gaussion Elimination is the
concept of Echelon form of a matrix.
The solutions of a system of equations are not affected in any way by the application of any of
the following row operations to the system
Interchange any two rows
3. Beginning with the last row of the matrix, form the equation it represents and solve for
the unknown. Then by substituting this value into the equation of the next row up in the
matrix, solve for the next unknown. Continue in this manner until all unknown values
are found
During the process of solving the system by this method, it is useful to make a note of each row
operation which is applied. It is convenient to make these notes on the right hand side of the
matrices. In the example below, R1 , R2 and R3 refer to row 1, row 2 and row 3 respectively.
x + y − z = −2
2x − 2z = −2
x + y+z =2
1 1 −1 −2 R1
2 0 −2 −2 R2
1 1 1 2 R3
1 1 −1 −2 R1 use R1 and element a11 to
0 −2 0 2 R2′ = −2 · R1 + R2 get zero’s in position a21 and
0 0 2 4 R3′ = −1 · R1 + R3 a31
R2′ ⇒ −2y = 2 ⇒ y = −1
R1 ⇒ x + y − z = −2
⇒ x + (−1) − 2 = −2
⇒x=1
∴ x = 1, y = −1, z=2
2x − y + 3z = 9
− 3x + 2y + z = 4
5x − 3y + 4z = 11
2 −1 3 9 R1
−3 2 1 4 R2
5 −3 4 11 R3
2 −1 3 9 R1 use R1 and element a11 to
0 1 11 35 R2′ = 3 · R1 + 2 · R2 get zero’s in position a21 and
0 −1 −7 −23 R3′ = −5 · R1 + 2 · R3 a31
2 −1 3 9 R1
use R2 and element a22 to
0 1 11 35 R2′
get a zero in position a32
0 0 4 12 R3′′ = −R2′ + R3′
R2′ ⇒ y + 11z = 35
⇒ y + 11(3) = 35
⇒y=2
R1 ⇒ 2x − y + 3z = 9
⇒ 2x − 2 + 3(3) = 9
⇒ 2x = 2
⇒x=1
∴ x = 1, y = 2, z=3
Example
Solve
2x + 3y − z = 1
2x + 5y + 9z = −1
x + 2y + 2z = 0
2 3 −1 1 R1
2 5 9 −1 R2
1 2 2 0 R3
2 3 −1 1 R1 use R1 and element a11 to
0 2 10 −2 R2′ = −1 · R1 + R2 get zero’s in position a21 and
0 −1 −5 1 R3′ = R1 − 2 · R3 a31
The matrix is now in echelon form and row 3 implies an infinite number
of solutions
∴ R3′′ ⇒ z = α where α ∈ R
R2′ ⇒ 2y + 10z = −2
⇒ 2y = −2 − 10α
⇒ y = −1 − 5α
R1 ⇒ 2x + 3y − z = 1
⇒ 2x = 1 − 3y + z
⇒ 2x = 1 − 3(−1 − 5α) + α = 4 + 16α
⇒ x = 2 + 8α
9 Equivalent matrices
Two matrices are Row Equivalent if one of the matrices can be obtained by performing
elementary row operations on the other.
Example
1 −1 0
A = −2 1 1
0 2 3
1 −1 0 R1 1 −1 0 R1
−2 1 1 R2 ∼ 0 −1 1 R2′ = 2R1 + R2
0 2 3 R3 0 2 3 R3
| {z } | {z }
A B
1 −1 0 R1
∼ 0 −1 1 R2′
0 0 5 R′ = 2R2′ + R3
| {z } 3
C
If similar operations to row operations are performed on the columns of a matrix we term them
Column Operations. It is also true that two matrices are column Equivalent if one of the
matrices can be obtained by performing elementary column operations on the other.
10 Rank of a matrix
The Rank of an n × m matrix is defined to be the number of linearly independent rows (or
columns) in the matrix.
It follows from this definition that the null(zero) matrix has rank equal to zero.
There are two equivalent methods for finding the Rank of a matrix;
1. Apply row (column) operations successively to A until the equivalent matrix in ehelon
form is found.
2. Count the number of non-zero rows (columns) in this equivalent matrix. This number is
the Rank of A.
The example in section 9 above, illustrates this method. Matrix C is equivalent to matrix A
and is in echelon form. The number of non-zero rows in C is 3, hence Rank(A)=3
Example
1 −1 0
Find the rank of A = −2 1 1 using column operations. Note that this is the same
0 2 3
matrix as in section 9 above.
1 −1 0
A= −2 1 1
0 2 3
1 0 0
= −2 −1 1 col. 2 = col. 1 + col. 2
0 2 3
The final matrix is in column-echelon form and has 3 non-zero columns. Therefore Rank(A) = 3
Example
2 −1 −4 1 R1
Find the rank of B = 3 0 1 −2 R2
12 −3 −10 −1 R3
2 −1 −4 1 R1 2 −1 −4 1 R1
B= 3 0 1 −2 R2 ∼ 0 −3 −14 7 R2′ = 3R1 − 2R2
12 −3 −10 −1 R3 0 3 14 −7 R3′ = R3 − 6R1
2 −1 −4 1 R1
∼ 0 −3 −14 7 R2′
0 0 0 0 R3′ = R2′ + R3′
The final matrix is in row-echelon form and has 2 non-zero rows.
Therefore, Rank(B) = 2
1. Successively find the values of the determinants of sub-matrices of order s until a non-zero
determinant is found. If one of these sub-matrices is non-singular, then Rank(A) = s. If
all sub-matrices of order s are singular, then Rank(A) < s.
∴ Rank(B) = 2
∴ Rank(C) < 3
∴ Rank(C) = 2
Exercises:
Find the rank for each of the following matrices;
1 −2
(a) Answer: Rank = 1
−3 6
1 −3 2
(b) 0 5 −4 Answer: Rank = 3
−1 1 0
1 −2 3 5
(c) 2 6 −1 4 Answer: Rank = 2
−3 −14 5 −3
or as an Augmented matrix;
a11 a12 a13 b1
Ab = a21 a22 a23 b2
a31 a32 a33 b3
Example
Determine the rank of A and Ab for the following system and determine the nature of the
solution
x−y−z =1
−3x − y + z = 2
2y + z = 1
1 −1 −1 1 −1 −1 1
A = −3 −1 1 and Ab = −3 −1 1 2
0 2 1 0 2 1 1
⇒ Rank(A) < 3
1 −1
det = 1(−1) − (−3)(−1) = −4 ̸= 0
−3 −1
⇒ Rank(A) = 2
⇒ Rank(Ab ) = 3
Exercises:
Determine the rank of A and Ab for the following systems of equations, and determine the
nature of the solution. Then, use Gauss Elimination to find the solution, if it exists
1.
2x + 3y − z = −2
x − y + 3z = 12
x+z =5
Answer:
Rank(A)=Rank(Ab )=3, Unique solution, x = 2, y = −1 z = 3
2.
3x − y + 3z = −4
2x − 2z = 3
8x − 2y + 4z = −5
Answer:
3+2α
Rank(A)=Rank(Ab )=2. Infinite solutions, x = 2
,
12α+17
y= 2
, z = α, for α ∈ R
Ax = λx
where In is the identity matrix of order n and 0 is the zero column vector.
In order to obtain non-trivial solutions of the equation, the Characteristic determinant
|A − λIn | must equal 0, i.e
det(A − λIn ) = 0
This equation is called the Characteristic Equation.
Solving this equation for λ gives the values of all the Eigenvalues of A. Substituting each
eigenvalue into the equation
(A − λIn )x = 0
gives the corresponding eigenvector for each eigenvalue.
Examples
Find the Eigenvalues and Eigenvectors of the following matrices
2 1
1) A =
2 3
2−λ 1
det(A − λI) = det =0
2 3−λ
⇒ (2 − λ)(3 − λ) − (2)(1) = λ2 − 5λ + 4 = 0
⇒ (λ − 1)(λ − 4) = 0
⇒ λ = 1 or λ = 4
For λ = 4
−2 1 0 R1 −2 1 0 R1
∼
2 −1 0 R2 0 0 0 R2′ = R1 + R2
Let x2 = α; α ∈ R ⇒ x1 = 21 x2 = 12 α
1
2
α 1 1
∴ x= = 2α
α 2
2−λ −2 −1
det(A − λI) = det −2 2−λ 1 =0
−1 1 5−λ
⇒ (2 − λ)[(2 − λ)(5 − λ) − 1] − (−2)[−2(5 − λ) − (−1)]
+ (−1)[−2 − (−1)(2 − λ)] = 0
⇒ λ3 − 9λ2 + 18λ = 0
⇒ λ(λ − 3)(λ − 6) = 0
⇒ λ = 0 or λ = 3 or λ = 6
9x3 = 0 ⇒ x3 = 0.
For λ = 3
−1 −2 −1 0 R1 −1 −2 −1 0 R1
−2 −1 1 0 R2 ∼ 0 3 3 0 R2′ = −2R1 + R2
−1 1 2 0 R3 0 −3 −3 0 R3′ = R1 − R3
−1 −2 −1 0 R1
∼ 0 3 3 0 R2′
0 0 0 0 R3′′ = R2′ + R3′
Let x3 = α; α ∈ R, then 3x2 + 3x3 = 0 ⇒ x2 = −x3 = −α
and − x1 − 2x2 − x3 = 0 ⇒ x1 = −2x2 − x3 = α
α
∴ x = −α
α
For λ = 6
−4 −2 −1 0 R1 −4 −2 −1 0 R1
−2 −4 1 0 R2 ∼ 0 6 −3 0 R2′ = R1 − 2R2
−1 1 −1 0 R3 0 −6 3 0 R3′ = R1 − 4R3
−4 −2 −1 0 R1
∼ 0 6 −3 0 R2′
0 0 0 0 R3′′ = R2′ + R3′
Let x3 = α; α ∈ R, then 6x2 − 3x3 = 0 ⇒ x2 = 12 x3 = 12 α
and − 4x1 − 2x2 − x3 = 0 ⇒ 4x1 = −2x2 − x3 = −2α ⇒ x1 = − 12 α
1
−2α
∴ x = 12 α
α
Exercises
Find Eigenvalues and Eigenvectors for the following matrices
−2 −9
1.
−6 1
1 3
Answer: λ1 = 7, x1 = . λ2 = −8, x2 =
−1 2
3 1
2.
5 −1
1 1
Answer: λ = 4, x = and λ = −2, x =
1 −5
0 −1 0
3. 3 4 0
−1 1 2
1 0 1
Answer: λ = 1, x = −1 , λ = 2, x = 0 and λ = 3, x = −3
2 1 −4
1 0 1
4. 0 2 0
3 −1 −1
1 1
Answer: λ = −2, x = 0 , and λ = 2, x = 0
−3 1
12 Cayley-Hamilton Theorem
The Cayley-Hamilton Theorem is stated below without proof.
Now, consider the solution (solving for y1 (x) and y2 (x)) of the folllowing system of ordinary
differential equations;
y1′
a11 a12 y1
= ·
y2′ a21 a22 y2
i.e
Y ′ = Y ′ (x) = AY (x) = AY ··· (iii)
where
′
′ y1 a11 a12 y1 y1 (x)
Y = , A= and Y = =
y2′ a21 a22 y2 y2 (x)
subject to initial conditions
y1 (0) m1
Y (0) = =
y2 (0) m2
Where a and b are constants found after applying the initial conditions
y1 (0) m1
Y (0) = =
y2 (0) m2
Example
Solve
y1′
′ 2 4 y1
Y (x) = AY (x) ⇒ = subject to
y2′ 1 −1 y2
y1 (0) 1
Y (0) = =
y2 (0) 0
λ1 = −2
4 4 0 R1 4 4 0 R1
∼
1 1 0 R2 0 0 0 R2′ = R1 − 4R2
Let c2 = α ⇒ 4c1 + c2 = 0 ⇒ c1 = −α
−α 1
C1 = , and the simple specific Eigenvector is C1 =
α −1
∴ Y = C1 eλ1 x is a solution to the system of differential equations
e−2x
y1 1 −2x
i.e Y = = e =
y2 −1 −e−2x
So, y1 = e−2x and y2 = −e−2x satisfy the system of differential
equations.
λ2 = 3
−1 4 0 R1 −1 4 0 R1
∼
1 −4 0 R2 0 0 0 R2′ = R1 + R2
Let c2 = α ⇒ −c1 + 4c2 = 0 ⇒ c1 = 4c2 = 4α
4α 4
C2 = , and the simple specific Eigenvector is C2 =
α 1
∴ Y = C2 eλ2 x is a solution to the system of differential equations
3x
y1 4 3x 4e
i.e Y = = e =
y2 1 e3x
So, y1 = 4e3x and y2 = e3x satisfy the system of differential
equations.
The general solution to the system is:
λ1 x λ2 x 1 −2x 4
Y = aC1 e + bC2 e = a e +b e3x
−1 1
y1 (0) 1
Apply initial conditions Y (0) = =
y2 (0) 0
1 1 −2(0) 4 3(0) a + 4b
Y (0) = =a e +b e =
0 −1 1 −a + b
a + 4b = 1
−a + b = 0
1 1
which have solutions, a = 5
and b = 5
1 −2x 4 3x
!
e + e
y1 5 5
i.e Y = =
y2 − e1 −2x
+ 1 e3x
5 5
Therefore, y1 = 51 e−2x + 45 e3x and y2 = − 51 e−2x + 15 e3x are the specific solutions to the system.
Exercises
Solution:
2x 5x
y1 2 1 2ae + be
Y = =a e2x + b e5x =
y2 −1 1 −ae2x + be5x
2. Solve the system
Solution:
2 2x 2 −3x
y1 1 2 2x 2 1 −3x 5
e + 5e
Y = =5 e +5 e =
y2 1 −2 5
e − 45 e−3x
1 2x
14 Diagonalisation of a Matrix
If λ1 , λ2 , λ3 · · · λn are Eigenvalues and x1 , x2 , x3 · · · xn the corresponding Eigenvectors of
a matrix A of order n, then;
x11 x12 x13 · · · x1n
x21 x22 x23 · · · x2n
M = (x1 , x2 , x3 , · · · , xn ) =
x31 x32 x33 · · · x3n
.. .. .. .. ..
. . . . .
xn1 xn2 xn3 · · · xnn
where the elements in column j are the elements of the eigenvector xj , is defined as the Modal
Matrix (M ) of A
The Spectral Matrix (S) of A is defined to be the diagonal matrix with the eigenvalues of A
on the main diagonal, i.e
λ1 0 0 · · · 0
0 λ2 0 · · · 0
S = 0 0 λ3 · · · 0
.. .. .. .. ..
. . . . .
0 0 0 · · · λn
Theorem
If M and S are the modal and spectral matrices respectively of A, then
M −1 AM = S
Proof:
AM = A(x1 , x2 , x3 , · · · ; xn )
= (Ax1 , Ax2 , Ax3 , · · · , Axn )
= (λ1 x1 , λ2 x2 , λ3 x3 , · · · , λn xn ), (since Ax = λx)
Also, M S = (x1 , x2 , x3 , · · · , xn )S = (λ1 x1 , λ2 x2 , λ3 x3 , · · · , λn xn )
∴ AM = M S
⇒ M −1 AM = M −1 M S = IS = S
Before considering the solution of second order ordinary differential equations, we note the
following;
1. eax = cosh ax + sinh ax
eax +e−ax eax −e−ax 2eax
cosh ax + sinh ax = 2
+ 2
= 2
= eax
y1′′
a11 a12 y1
= ·
y2′′ a21 a22 y2
i.e as
Y ′′ = Y ′′ (x) = AY (x) = AY ··· (iii)
where
y1′′
′′ a11 a12 y1 (x)
Y = , A= and Y =
y2′′ a21 a22 y2 (x)
subject to boundary conditions
y1 (0) m1
Y (0) = = and
y2 (0) m2
′
′ y1 (0) n1
Y (0) = =
y2′ (0) n2
Y ′′ = AM G · · · (i)
Y ′′ = M G′′ · · · (ii)
M −1 M G′′ = M −1 AM G
i.e G′′ = SG
which in matrix form is
g1′′ (x)
λ1 0 g1 (x) λ1 g1 (x)
= =
g2′′ (x) 0 λ2 g2 (x) λ2 g2 (x)
We can now find expressions for g1 and g2 by solving the two equations g1′′ = λ1 g and g2′′ = λ2 g2 .
The general solution for the system can now be derived by substituting these functions into
Y = M G. The specific solution can then be established by applying the initial conditions y(0)
and Y ′ (0)
Example
Solve the system
For λ = −1
4 10 0 R1 4 10 0 R1
∼
2 5 0 R2 0 0 0 R2′ = R1 − 2R2
Let c2 = α. R1 ⇒ 4c1 + 10c2 = 0 ⇒ c1 = − 25 c2 = − 52 α
5
∴ λ2 = −1, and C1 =
−2
2 5 8 0
M= and S =
1 −2 0 −1
′′
′′ g1 8 0 g1 8g1
G = = =
g2′′ 0 −1 g2 −g2
√ √ √
g1′′ = 8g1 ⇒ m = ±2 2 ⇒ g1 = A cosh 2 2x + B sinh 2 2x
g2′′ = −g2 ⇒ m = ±j ⇒ g2 = C cos x + D sin x
∴ Y = MG ⇒
√ √
y1 2 5 A cosh 2 2x + B sinh 2 2x
Y = =
y2 1 −2 C cos x + D sin x
√ √
y1 2A cosh 2√2x + 2B sinh √
2 2x + 5C cos x + 5D sin x
=
y2 A cosh 2 2x + B sinh 2 2x − 2C cos x − 2D sin x
This is the general solution, and
′ √ √ √ √
y1 4√2A sinh 2√2x + 4√2B cosh 2√2x − 5C sin x + 5D cos x
=
y2′ 2 2A sinh 2 2x + 2 2B cosh 2 2x + 2C sin x − 2D cos x
Now, applying initial conditions
y1 (0) 0 2A + 5C
Y (0) = = =
y2 (0) 1 A − 2C
Solving simultaneously gives C = − 92 and A = 59
′ √
′ y1 (0) 1 4√2B + 5D
Y (0) = = =
y2′ (0) 0 2 2B − 2D
1 1
Solving simultaneously gives B = √
9 2
and D = 9
Exercises:
Answer: √ √
x(t) = A + Bt − D cosh 3 t − E sinh 3 t
√ √
y(t) = 2A + 2Bt + D cosh 3 t + E sinh 3 t
Answer: √ √ √ √
y1 = − 54 cos 3t + 3√1 3 sin 3 t + 54 cosh 2 t − 3√4 2 sinh 2 t
√ √ √ √
y2 = 54 cos 3t − 3√1 3 sin 3 t + 15 cosh 2 t − 3√1 2 sinh 2 t