Module 1 - Matrices
Module 1 - Matrices
Module 1 : Matrices
Problem based Learning
Course Title : Linear Algebra and Calculus
Course Code : U18MAI1202
Pre-requisite : Basics of Matrix theory and Differentiation
Course Description:
This course covers matrix theory and differential equations, emphasizing
topics useful in other disciplines. Linear algebra is a branch of mathematics
that studies systems of linear equations and the properties of matrices. The
concepts of linear algebra are extremely useful in physics, economics and
social sciences, natural sciences, and engineering. The laws of nature are
expressed as differential equations. Scientists and engineers must know
how to model the world in terms of differential equations, and how to solve
these equations and interpret the solutions.
Course Plan
Slide No. Topics Activity/ Lab Assessment
Session 1 Slide 5- 14 Introduction, Vectors Quiz
Session 2 Slide 16- 24 Linearly dependent and Activities Quiz
independent vectors
Session 3, Slide 25- 37 Solving system of linear equations 3 Activities (34, Problem
4 using Rank 38,39,40)/ MATLAB identification
Session 5- Slide 41-62 Eigenvalues and eigenvectors 2 Activities (71,72) – Quiz
8 MATLAB
Session 9- Slide 63-71 Properties of Eigenvalues and Activities (74-77) Quiz
10 eigenvectors
Session Slide 78- Diagonalisation Activities (84-86) Quiz
11 105
Session Slide 106- Quadratic to Canonical Activities Quiz
12-13 125
Session Slide 126- Cayley Hamilton Theorem 2 Activities (129- Quiz
14-15 150 133) – MATLAB
Learning Objectives
After taking this course the students should able to :
Matrix Notation
Characteristic equation
Diagonalization
Rank
Vectors
• What is a vector? - David Huynh – YouTube
Matrix Representation of Vectors
Let X =(x1,x2,x3); Y=(y1,y2,y3); Z=(z1,z2,z3) be three row vectors then the matrix
representation is
𝑋 𝑥1 𝑥2 𝑥3
𝐴 = 𝑌 = 𝑦1 𝑦2 𝑦3
𝑍 𝑧1 𝑧2 𝑧3
Note:
If the vectors are given as column vectors, then convert it to row vectors and then write
the matrix form
Linearly dependent and independent vectors
https://intuitive-math.club/linear-algebra/linear-
independence/
11/2/2022 15
Linearly dependent and independent vectors -
Visualization
Linearly dependent and independent vectors
using Directions
• "North" and "West" are linearly independent of one
another as one can't get to west by going north, and can't
get to north by going west.
• "North" and "South" are not linearly independent of one
another as one can go 1 mile south by going -1 miles north.
• "North" is not linearly independent of "Northwest" and
"West" as one can go 1 mile north by going 2–√2 miles
northwest and then going -1 mile west.
• "Up" is linearly independent of "North" and "East" as one
can't go up by going some combination of north and east.
Linear Independence of vectors
The set of vectors X1,X2,X3,.......Xn are said to be linearly independent if the linear
combination k1X1 + k2X2 + k3X3 +.........knXn =0 implying the scalars k1 = k2 = k3 =....kn = 0
The set of vectors X1,X2,X3,.......Xn are said to be linearly dependent if there exists scalars k1,
k2, k3, ......kn such that their linear combination
k1X1 + k2X2 + k3X3 +.........knXn =0 and atleast one of the scalars being non-zero.
Note:
1.If the set of vectors are linearly dependent, then any vector can be expressed as a linear
combination of remaining vectors.
𝑋
Step1: Write the matrix representation as 𝐴 = 𝑌
𝑍
Step2: Reduce the matrix A to its echelon form
Step3:
i) If the number of non-zero rows of echelon form = number of given vectors, then the
vectors are linearly independent.
ii) If number of non-zero rows of echelon form is less than the number of given vectors,
then the vectors are linearly dependent.
Note: (For lower order matrices)
1. The set of vectors are linearly independent if 𝐴 ≠ 0
2. The set of vectors are linearly dependent if 𝐴 = 0
1. Show that the vectors X1=(1,-1,-1,3); X2 = (2,1,-2,-1) and X3 = (7,2,-7,4)
1 −1 −1 3 𝑅1′′
𝐴~ 0 3 0 −7 𝑅2′′ which is the echelon form of A
0 0 0 4 𝑅3′′
Solution.
𝑋1𝑇 1 1 2 𝑅1 − 𝑟𝑜𝑤1
𝐴 = 𝑋2𝑇 = 1 2 5 𝑅2 − 𝑟𝑜𝑤2
𝑋3𝑇 5 3 4 𝑅3 − 𝑟𝑜𝑤3
1 1 2 𝑅1′
𝐴~ 0 1 3 𝑅2′
0 −2 6 𝑅3′
𝑅3′′ = 𝑅3′ + 2𝑅2′ ...........(2)
1 1 2 𝑅1′′
𝐴~ 0 1 3 𝑅2′′ ..........(3)
0 0 0 𝑅3′′
which is the echelon form of A.
Number of non-zero rows in echelon form = 2
Number of given vectors =3
Hence the number of non-zero rows in echelon form is less than the number of given vectors
Vectors x1, x2, x3 are linearly dependent.
To find the relationship:
In (3), consider the last row 𝑅3′′ = 0 (𝑠𝑖𝑛𝑐𝑒 𝑖𝑡 𝑖𝑠 𝑎 𝑧𝑒𝑟𝑜 𝑟𝑜𝑤)
Substituting backwards,
𝑅3′′ = 0 𝑖𝑚𝑝𝑙𝑖𝑒𝑠 𝑅3′′ = 𝑅3′ + 2𝑅2′ = 0 using (2)
= 𝑅3 − 5𝑅1 + 2 𝑅2 − 𝑅1 = 0 using (1)
= 𝑅3 + 2𝑅2 − 7𝑅1 = 0
Since each row represents the vectors, we get
𝑿𝟑 + 𝟐𝑿𝟐 − 𝟕𝑿𝟏 = 𝟎 is the relation between the given vectors.
Solution of a System of Linear Equations
11/2/2022 25
Visualizing Solutions of System of linear
equations in 2 Variables
Visualizing Solutions of System of Linear
Equations in 3 Variables
Consistent and Unique solution
Consistent and Infinite solution
Inconsistent Systems – No solution
In 2 variables
Consistent and Unique solution for a system
in 3 variables
Consistent and Infinite solutions for system in
3 variables
Inconsistent system in 3 variables
In 3 variables
Activity:
11/2/2022 35
Rank of a Matrix
Definition: The number of non-zero rows in the reduced form of a matrix is called the
rank of the matrix. (or)
(i) There is at least one minor of A of order r which does not vanish and
A system of linear equations with n variables has a solution if and only if the rank of
its coefficient matrix A is equal to the rank of its augmented matrix [A|b].
1 1
𝐴= 2 3
1 2
2 3
Sunny – 40% and rainy – 60%
Eigenvalues and Eigenvectors
Matrix A acts by stretching/compressing
and/or "flipping" the vector x, so x is an
eigenvector of A.
Note :
1. The equation A − I = 0 is called the characteristic
equation of the matrix.
S3 = 𝐴 = 2(-4-6)+3(-12+15)+1(6+5)
=2(-10)+3(3)+1(11)
= 0.
The characteristic equation becomes 3 + 2 − 2 = 0
(2 + − 2) = 0
= 0(𝑜𝑟)(2 + − 2) = 0
To find eigenvectors:
x1
The eigenvector X = x2 is obtained from the equation (A-
x3
I)X=0.
Case (i): When = 0, the equation (A-I)𝑋=0 becomes,
𝟐 −𝟑 𝟏 𝑥1 0
𝟑 𝟏 𝟑 𝑥2 = 0
−𝟓 𝟐 −𝟒 𝑥3 0
The equations from the above matrix are,
2𝑥1− 3𝑥2 + 𝑥3 = 0
3𝑥1 + 𝑥2 + 3𝑥3 = 0
-5𝑥1 + 2𝑥2 − 4𝑥3 = 0
𝑥2 𝑥3 𝑥1 𝑥2
-3 1 2 -3
[From the first two equations]
1 3 3 1
𝑥1 𝑥2 𝑥3
= =
−9 − 1 3 − 6 2 + 9
x1 x2 x3
= = = k , where k is a constant.
−10 −3 11
Hence, 𝑥1 = −10𝑘; 𝑥2 = −3𝑘; 𝑥3 = 11𝑘
𝒙𝟏 −10k
As, X = 𝒙𝟐 (i.e) X = −3k
𝒙𝟑 11k
−10
If, k=1, then X = −3
11
−10
So, X1= −3 is the eigenvector corresponding to the eigenvalue = 0
11
𝟐 −𝟑 𝟏 𝟏 𝟎 𝟎 𝑥1 0
𝟑 𝟏 𝟑 − 1 𝟎 𝟏 𝟎 𝑥2 = 0
−𝟓 𝟐 −𝟒 𝟎 𝟎 𝟏 𝑥3 0
𝟏 −𝟑 𝟏 𝑥1 0
𝟑 𝟎 𝟑 𝑥2 = 0
−𝟓 𝟐 −𝟓 𝑥3 0
Hence the equation from the above matrix are,
𝑥1 − 3𝑥2 + 𝑥3 = 0
3𝑥1 + 0𝑥2 + 3𝑥3 = 0
-5𝑥1 + 2𝑥2 − 5𝑥3 = 0
𝑥2 𝑥3 𝑥1 𝑥2
-3 1 1 -3
[From the first two equations]
0 3 3 0
𝒙𝟏 −9k
As, X = 𝒙𝟐 (i.e) X = 0k
𝒙𝟑 9k
−1
If, k=1/9, then X = 0
1
−1
So, X2 = 0 is the eigenvector corresponding to the eigenvalue = 1
1
Case (iii): When = −2, the equation (A-I)𝑋=0 becomes,
𝟐 −𝟑 𝟏 𝟏 𝟎 𝟎 𝑥1 0
𝟑 𝟏 𝟑 − −2 𝟎 𝟏 𝟎 𝑥2 = 0
−𝟓 𝟐 −𝟒 𝟎 𝟎 𝟏 𝑥3 0
𝟒 −𝟑 𝟏 𝑥1 0
𝟑 𝟑 𝟑 𝑥2 = 0
−𝟓 𝟐 −𝟐 𝑥3 0
4𝑥1 − 3𝑥2 + 𝑥3 = 0
3𝑥1 + 3𝑥2 + 3𝑥3 = 0
-5𝑥1 + 2𝑥2 − 2𝑥3 = 0
By the multiplication rule from first two equations,
𝑥2 𝑥3 𝑥1 𝑥2
-3 1 4 -3
[From the first two equations]
3 3 3 3
𝑥1 𝑥2 𝑥3
= =
−9 − 3 3 − 12 12 + 9
x1 x2 x3
= = = k(say as a constant)
−12 −9 21
𝒙𝟏 −12k
As, X = 𝒙𝟐 (i.e) X = −9k
𝒙𝟑 21k
−12
If, k=1, then X = −9
21
−12
So,X3 = −9 is the eigenvector corresponding to the eigenvalue = −2.
21
−10 −1 −12
Hence X1 = −3 , X2 = 0 , X3 = −9 are the eigenvectors corresponding
11 1 21
to
the eigenvalues = 0 , = 1, = −2 respectively
Example 2:
𝟏 𝟐 𝟐
Find the eigenvalues and eigenvectors of the matrix A= 𝟐 𝟏 𝟐
𝟐 𝟐 𝟏
Solution: Here the given matrix is symmetric.
The characteristic equation is 3 − 𝑆1 2 + 𝑆2 − 𝑆3 = 0 where
= (1-4)+(1-4)+(1-4) = -9
S3 = 𝐴 = 1(1-4)-2(2-4)+2(4-2)
= -3 +4 +4 = 5
The characteristic equation becomes 3 − 32 − 9 − 5 = 0
𝟏 𝟐 𝟐 𝟏 𝟎 𝟎 𝑥1 0
𝟐 𝟏 𝟐 −𝟓 𝟎 𝟏 𝟎 𝑥2 = 0
𝟐 𝟐 𝟏 𝟎 𝟎 𝟏 𝑥3 0
−𝟒 𝟐 𝟐 𝑥1 0
𝟐 −𝟒 𝟐 𝑥2 = 0
𝟐 𝟐 −𝟒 𝑥3 0
𝑥2 𝑥3 𝑥1 𝑥2
2 2 -4 2
[From the first two equations]
-4 2 2 -4
𝑥1 𝑥2 𝑥3
= =
4 + 8 4 + 8 16 − 4
x1 x2 x3
= = = k(say as a constant)
12 12 12
𝒙𝟏 12k
As, X = 𝒙𝟐 (i.e) X = 12k
𝒙𝟑 12k
1
If k=1/12, then X = 1
1
1
So, X1 = 1 is the eigenvector corresponding to the eigenvalue = 5.
1
𝟏 𝟐 𝟐 𝟏 𝟎 𝟎 𝑥1 0
𝟐 𝟏 𝟐 + (1) 𝟎 𝟏 𝟎 𝑥2 = 0
𝟐 𝟐 𝟏 𝟎 𝟎 𝟏 𝑥3 0
2 2 2 𝑥1 0
2 2 2 𝑥2 = 0
2 2 2 𝑥3 0
Thus the eigenvalues of A are 5 , -1, -1 and the corresponding eigenvectors are
1 −1 −1
X1 = 1 , X2 = 0 , X 3 = 1 .
1 1 0
.
Properties of Eigenvalues
2. The sum of the eigenvalues of a matrix is equal to the trace of the matrix
[sum of the diagonal elements is called the trace of the matrix]
Properties of Eigenvalues
Problems:
.
Problems:
.
Problems:
.
.
.
Practice Problems:
𝟓 𝟒
1. Find the eigenvalues and eigenvectors of the matrix A= 𝟏 𝟐
𝟎
𝟏 𝟏
2. Find the eigenvalues and eigenvectors of the matrix A= 𝟏
𝟏 𝟎
𝟏
𝟎 𝟏
𝟑 𝟏 𝟒
3. Find the sum of the squares of the eigen values of A= 𝟎 𝟐 𝟔
𝟎 𝟎 𝟓
𝟑 𝟎 𝟎
4. Find the eigenvalues of inverse of A= 𝟖 𝟒 𝟎
𝟔 𝟐 𝟓
11/2/2022 71
Problem 2: Tilt the image
Hint:
The red arrow changes direction but the blue arrow does not. The blue arrow is an
eigenvector, and since its length is unchanged its eigenvalue is 1.The red arrow
changes direction but the blue arrow does not. The blue arrow is an eigenvector,
and since its length is unchanged its eigenvalue is 1.
Activity: Population Growth
Model
• Model population growth using an age transition
matrix and an age distribution vector, and find a
stable age distribution vector.
• Use a matrix equation to solve a system of first-order
linear differential equations.
• Find the matrix of a quadratic form and use the
Principal Axes Theorem to perform a rotation of axes
for a conic and a quadric surface.
Problem Statement:
A population of rabbits has the following
characteristics.
• Half of the rabbits survive their first
year. Of those, half survive their second
year. The maximum life span is 3 years.
• During the first year, the rabbits
produce no offspring. The average
number of offspring is 6 during the
second year and 8 during the third
year. The population now consists of 24
rabbits in the first age class, 24 in the
second, and 20 in the third. How many
rabbits will there be in each age class in
1 year?
• Find a stable age distribution vector for
the population
Solution:
Finding a Stable Age Distribution Vector
Notice that the ratio of the three age classes is still 16 : 4 : 1, and so the
percent of the population in each age class remains the same.
DIAGONALISATION OF A MATRIX
Importance of Diagonalization
• Many computations with matrices become easier if
one can diagonalize the matrices.
• Geometrically, this means thinking of the matrix as a
linear transformation and switching to a basis in
which the linear transformation is a dilation in each
direction.
• The most important application of diagonalization is
the computation of matrix powers.
Inverse of a Matrix
To Solve System of Differential
Equations
Activity 1
Activity 2
A motocross motorcycle weighs 204 lb, and we assume a rider weight of 180 lb.
When the rider mounts the motorcycle, the suspension compresses 4 in., then
comes to rest at equilibrium. The suspension system provides damping equal to
240 times the instantaneous vertical velocity of the motorcycle (and rider).
1. Set up the differential equation that models the behavior of the motorcycle
suspension system.
2. We are interested in what happens when the motorcycle lands after taking a
jump. Let time t=0(17.3.2)(17.3.2)t=0
3. Denote the time when the motorcycle first contacts the ground. If the
motorcycle hits the ground with a velocity of 10 ft/sec downward, find the
equation of motion of the motorcycle after the jump.
4. Graph the equation of motion over the first second after the motorcycle hits the
ground.
Diagonalisation of a Matrix
Definition:
❖ The process of finding a matrix M such that M-1AM=D
where D is a diagonal matrix whose diagonal elements
are eigenvalues of A is called diagonalization of matrix A.
❖ Further, 𝐴𝑘 = 𝑀𝐷𝑘 𝑀−1 .
Orthogonal Matrices:
A square matrix 𝐴 is said to be orthogonal if 𝐴𝐴𝑇 =
𝐴𝑇 𝐴 = 𝐼.
NOTE:
Norm of an eigenvector:
𝒙𝟏
❖ If X = 𝒙𝟐 is an eigenvector, then the norm
𝒙𝟑
of X is given by
𝑥 = 𝑥12 + 𝑥22 + 𝑥32
Normalized Eigenvector:
8 −6 2 𝑥1
−6 7 −4 𝑥2 = 0
2 −4 3 𝑥3
-6 2 8 -6
[From the first two equations]
7 -4 -6 7
𝑥1 𝑥2 𝑥3
= =
24 − 14 −12 + 32 56 − 36
x1 x2 x3
= = = k(say as a constant)
10 20 20
x1 x2 x3
(i. e) = = =k
1 2 2
Hence 𝑥1 = 𝑘; 𝑥2 = 2𝑘; 𝑥3 = 2𝑘
𝒙𝟏 k
As, X1= 𝒙𝟐 (i.e) X1 = 2k
𝒙𝟑 2k
1
If k=1, then X1 = 2
2
1
So, X1 = 2 is the eigenvector corresponding to
2
the eigenvalue = 0
Case (ii): If = 3, then (A- 𝐼)𝑋 = 0 becomes
8 −6 2 1 0 0 𝑥1 0
−6 7 −4 − 3 0 1 0 𝑥2 = 0
2 −4 3 0 0 1 𝑥3 0
5 −6 2 𝑥1 0
−6 4 −4 𝑥2 = 0
2 −4 0 𝑥3 0
𝑥2 𝑥3 𝑥1 𝑥2
4 -4 -6 4
𝑥1 𝑥2 𝑥3
= =
24 − 8 −12 + 20 20 − 36
x1 x2 x3
= = = k(say as a constant)
16 8 −16
x1 x2 x3
(i. e) = = =k
2 1 −2
Hence 𝑥1 = 2𝑘; 𝑥2 = 𝑘; 𝑥3 = −2𝑘
𝒙𝟏 2k
As X2 = 𝒙𝟐 (i.e) X2 = k
𝒙𝟑 −2k
2
If k=1, then X2 = 1
−2
2
Hence X2= 1 is the eigenvector corresponding to the
−2
eigenvalue =3
Case (iii): If = 15, then (A- 𝐼)𝑋 = 0 becomes
8 −6 2 1 0 0 𝑥1 0
−6 7 −4 − 15 0 1 0 𝑥2 = 0
2 −4 3 0 0 1 𝑥3 0
−7 −6 2 𝑥1
−6 −8 −4 𝑥2 = 0
2 −4 −12 𝑥3
-8 -4 -6 -8
= =
24 + 16 12 + 28 56 - 36
x1 x2 x3
= = = k(say as a constant )
40 40 20
x1 x2 x3
i. e = = =k
2 2 1
Hence 𝑥1 = 2𝑘; 𝑥2 = −2𝑘; 𝑥3 = 𝑘
𝒙𝟏 2k
As X3 = 𝒙𝟐 (i.e) X3 = −2k
𝒙𝟑 k
2
If k=1, then X3 = −2
1
2
So X3 = −2 is the eigenvector corresponding to the eigenvalue
1
=15.
1
Hence = 0,3,15 are the eigenvalues and X1= 2 ,
2
2 2
X2= 1 ,X3= −2 are the corresponding eigenvectors.
−2 1
To check for pairwise orthogonality:
2
𝑋1𝑇 𝑋2 = 1 2 2 1 = 2+2−4 =0
−2
2
𝑋2𝑇 𝑋3 = 2 1 −2 −2 = 4−2−2 =0
1
1
𝑋3𝑇 𝑋1 = 2 −2 1 2 = 2 − 4 + 2 = 0
2
Hence X1, X2 and X3 are pairwise orthogonal.
𝟏 𝟐 𝟐
𝟑 𝟑 𝟑
𝟐 𝟏 −𝟐
Hence N= is the normalized modal matrix which is
𝟑 𝟑 𝟑
𝟐 −𝟐 𝟏
𝟑 𝟑 𝟑
orthogonal as NNT=NTN=I
𝟏 𝟐 𝟐 𝟏 𝟐 𝟐
𝟑 𝟑 𝟑 8 −6 2 𝟑 𝟑 𝟑 0 0 0
𝟐 𝟏 −𝟐 𝟐 𝟏 −𝟐
NTAN = −6 7 −4 = 0 3 0 =D
𝟑 𝟑 𝟑 𝟑 𝟑 𝟑
𝟐 −𝟐 𝟏 2 −4 3 𝟐 −𝟐 𝟏 0 0 15
𝟑 𝟑 𝟑 𝟑 𝟑 𝟑
Example 2:
𝟐 −𝟏 𝟏
Reduce the following symmetric matrix A= −𝟏 𝟐 −𝟏
𝟏 −𝟏 𝟐
to a diagonal form by orthogonal reduction.
Solution:
The characteristic equation is 3 − 𝑆1 2 + 𝑆2 − 𝑆3 = 0
S1 = Sum of leading diagonal elements = Trace of A =6
S3 = 𝐴 = 2(3)+1(-1)+1(-1) =6-1-1 = 4
Practice Problems:
Reduce the following matrices to a diagonal form by orthogonal
reduction:
6 −2 2 0 1 1 2 1 0
1. A = −2 3 −1 2. A= 1 0 1 3. A= 1 3 0
2 −1 3 1 1 0 0 0 2
Quadratic to Canonical form
QUADRATIC FORMS
(v) Indefinite in all other cases of if A has both positive and negative
eigenvalues.
Index of the Quadratic Form:
The number of positive square terms in the canonical
form is called the index of the Quadratic Form.
Solution:
The given quadratic form is, 3𝑥 2 − 2𝑦 2 − 𝑧 2 + 12𝑦𝑧 + 8𝑧𝑥 − 4𝑥𝑦
3 −2 4
The matrix A of the Quadratic Form is, 𝐴 = −2 −2 6
4 6 −1
3 −2 4 1 𝑥1
−2 −2 6 −3 1 𝑥2 = 0
4 6 −1 1 𝑥3
0 −2 4 𝑥1
−2 −5 6 𝑥2 = 0
4 6 −4 𝑥3
𝑥2 𝑥3 𝑥1 𝑥2
-2 4 0 -2
[From the first two equations]
-5 6 -2 -5
𝑥1 𝑥2 𝑥3
= =
−12 + 20 −8 + 0 0−4
x1 x2 x3
= = = k(say as a constant)
8 −8 −4
x1 x2 x3
(i.e) = = = k
2 −2 −1
𝒙𝟏 2k
As, X = 𝒙𝟐 (i.e) X = −2k
𝒙𝟑 −k
By the multiplication rule from equations 1 and 2,
𝑥2 𝑥3 𝑥1 𝑥2
-8 6 -2 -8
𝑥1 𝑥2 𝑥3
= =
−12 + 32 −8 + 18 24 − 4
x1 x2 x3
= = = k(say as a constant)
20 10 20
x1 x 2 x 3
i. e = = =k
2 1 2
Hence, 𝑥1 = 2𝑘; 𝑥2 = 𝑘; 𝑥3 = 2𝑘
𝒙𝟏 2k
As, X = 𝒙𝟐 (i.e) X = k
𝒙𝟑 2k
By the multiplication rule from equations 1 and 2,
𝑥2 𝑥3 𝑥1 𝑥2
7 6 -2 7
𝑥1 𝑥2 𝑥3
= =
−12 − 28 −8 − 72 84 − 4
x1 x2 x3
= = = k(say as a constant)
−40 −80 80
x1 x2 x3
(i. e) = = =k
−1 −2 2
𝒙𝟏 −k
As, X = 𝒙𝟐 (i.e) X = −2k
𝒙𝟑 2k
2
So for, X1 = −2 , then X1 = 𝑥12 + 𝑥22 + 𝑥32
−1
X1 = 4+4+1 =3
So normalized matrix for X1 becomes as
𝟐 𝟐 𝟏
𝟑 𝟑 𝟑
−𝟐 𝟏 𝟐
N1 = , Similarly N2 = ; N3 =
𝟑 𝟑 𝟑
−𝟏 𝟐 −𝟐
𝟑 𝟑 𝟑
As X2 = 4+1+4 =3
X3 = 4+4+1 =3
𝟐 𝟐 𝟏
𝟑 𝟑 𝟑
−𝟐 𝟏 𝟐
Hence N= is the Normalised modal matrix which is orthogonal
𝟑 𝟑 𝟑
−𝟏 𝟐 −𝟐
𝟑 𝟑 𝟑
as NNT=NTN=I
𝟐 𝟐 𝟏 𝟐 𝟐 𝟏
𝟑 𝟑 𝟑 3 −2 4 𝟑 𝟑 𝟑 3 0 0
−𝟐 𝟏 𝟐 −𝟐 𝟏 𝟐
So, NTAN = −2 −2 6 = 0 6 0 =D
𝟑 𝟑 𝟑 𝟑 𝟑 𝟑
−𝟏 𝟐 −𝟐 4 6 −1 −𝟏 𝟐 −𝟐 0 0 −9
𝟑 𝟑 𝟑 𝟑 𝟑 𝟑
Hence NTAN=D(3,6,-9,), where D is a diagonal matrix with 3,6,-9 as the principal diagonal
elements.
Therefore the Orthogonal transformation X=NY will reduce the Quadratic Form to the
Canonical form as 3𝑦12 + 6𝑦22 − 9𝑦32 .
The nature of the Quadratic form as,
Rank = 3 (Three non-zero rows)
Index= 2 (Number of Positive terms)
Signature = 1 (Difference between number of positive and negative terms)
Indefinite in nature( Both positive and Negative Eigen values)
Cayley Hamilton Theorem
=
Explanation :
Note:
Uses:
• It is used to find the higher positive integral powers of the matrix, if the
To find 𝑨𝒏
When 𝜆𝑛 is divided by 𝜆2 − 7𝜆 + 6, let the quotient be 𝑄()
and the remainder be 𝑎 + 𝑏.
Then 𝜆𝑛 =(𝜆2 − 7𝜆 + 6)𝑄(𝜆) + (𝑎𝜆 + 𝑏) --------------- (2)
In the above equation, put 𝜆 = 1, we get (1)𝑛 = 𝑎 + 𝑏 -------- (3)
Put 𝜆 = 6, we get (6)𝑛 = 6𝑎 + 𝑏 ---------- (4)
Ref :
eq(4) - eq (3) 5a=6𝑛 − (1)𝑛
−𝑎 + 𝑏 = (−1)𝑛 --(3)
6𝑛 −1 5𝑎 + 𝑏 =(5)𝑛 -- (4)
a=
5
6𝑛 −1
(3) 𝑏 = 1 − a = 1 −
5
6−6𝑛
b =
5
6𝑛 −1 3 2 6−6𝑛 1 0
=0+ +
5 3 4 5 0 1
6𝑛 −1 3 2 6−6𝑛 1 0
𝐻𝑒𝑛𝑐𝑒 𝐴𝑛 = +
5 3 4 5 0 1
On day 0, the respective probabilities for it
being sunny and rainy are given by
1
1 1 𝑇 2
P= , = 1
2 2
2
1
The probabilities on Day 1 = 𝑀. 𝑃 = 𝐴. 𝑃
6
620 −1 3 2 6−620 1 0
𝐴20
= +
5 3 4 5 0 1
1 0.4
𝑀20 . 𝑃 = 20 𝐴20 . 𝑃 =
6 0.6
Problems:
2 0 −1
Example 1 : Verify Cayley Hamilton Theorem for the matrix A = 0 2 0 and hence
−1 0 2
find A and A .
-1 4
Solution:
2 0 −1
Let A = 0 2 0
−1 0 2 Calculation:
The characteristic equation is 𝐴 − 𝜆𝐼 = 0 𝐶1 = Sum of the diagonal elements = 2+2+2=6
2 0 −1 5 0 −4 14 0 −13
A = 0 2 0 , 𝐴2 =𝐴𝑥𝐴= 0 4 0 , 𝐴3 = 𝐴2𝑥 𝐴= 0 8 0
−1 0 2 −4 0 5 −13 0 14
14 − 30 + 22 − 6 0 −13 + 24 − 11 − 0
= 0 8 − 24 + 22 − 6 0
−13 + 24 − 22 − 0 0 14 − 30 + 22 − 6
0 0 0
= 0 0 0
0 0 0
84 0 −78 55 0 −44 18 0 −6
= 0 48 0 − 0 44 0 +6 0 12 0
−78 0 84 −44 0 55 −6 0 12
41 0 −40
= 0 16 0
−40 0 41
To find 𝐴−1 :
Ref :
𝐴3 − 6𝐴2 + 11𝐴 − 6𝐼 = 0 ---(1)
Multiplying equation (1) by 𝐴−1 ,
𝐴2 − 6𝐴 + 11𝐼 − 6𝐴−1 = 0 6𝐴−1 = 𝐴2 − 6𝐴 + 11𝐼
1
𝐴−1 = 6 (𝐴2 − 6𝐴 + 11𝐼)
5 0 −4 2 0 −1 1 0 0
1
= 0 4 0 −6 0 2 0 + 11 0 1 0
6
−4 0 5 −1 0 2 0 0 1
5 0 −4 12 0 −6 11 0 0
1
= 0 4 0 − 0 12 0 + 0 11 0
6
−4 0 5 −6 0 12 0 0 11
1 4 0 2
𝐴−1 = 0 3 0
6
2 0 4
1 3 7
Example 2 : Verify Cayley Hamilton Theorem for the matrix A = 4 2 3 and
1 2 1
hence find A .
-1
Solution:
1 3 7
Let A = 4 2 3
1 2 1
The characteristic equation is 𝐴 − 𝜆𝐼 = 0
i.e., 𝜆3 − 𝐶1 𝜆2 + 𝐶2 𝜆 − 𝐶3 = 0 Calculation
𝜆3 − 4𝜆2 − 20𝜆 − 35 = 0 𝐶1 =1+2+1 = 4
0 0 0
= 0 0 0
0 0 0
20 23 23 1 3 7 1 0 0
1
= 15 22 37 − 4 4 2 3 − 20 0 1 0
35
10 9 14 1 2 1 0 0 1
20 23 23 4 12 28 20 0 0
1
= 15 22 37 − 16 8 12 − 0 20 0
35
10 9 14 4 8 4 0 0 20
−4 11 −5
1
Hence, 𝐴−1 = 35
−1 −6 25
6 1 −10
1 2
Example 3 : Find 𝐴𝑛 if 𝐴 = using Cayley Hamilton Theorem
4 3
Solution: The characteristic equation is 𝐴 − 𝜆𝐼 = 0
i.e., 𝜆2 − 𝐶1 𝜆 + 𝐶2 = 0 𝜆2 − 4𝜆 − 5 = 0
The eigenvalues are -1, 5
By Cayley Hamilton Theorem , 𝐴2 − 4𝐴 − 5𝐼 = 0 ----------- (1)
To find 𝑨𝒏
When 𝜆𝑛 is divided by 𝜆2 − 4𝜆 − 5 , let the quotient be 𝑄()
and the remainder be 𝑎 + 𝑏.
Then 𝜆𝑛 = (𝜆2 − 4𝜆 − 5)𝑄(𝜆) + (𝑎𝜆 + 𝑏) --------------- (2)
In the above equation, put 𝜆 = −1, we get (−1)𝑛 = −𝑎 + 𝑏 -------- (3)
Put 𝜆 = 5, we get (5)𝑛 = 5𝑎 + 𝑏 ---------- (4)
Ref :
(4) - (3) 6a=5𝑛 − (−1)𝑛
−𝑎 + 𝑏 = (−1)𝑛 --(3)
5𝑛 −(−1)𝑛
a= 5𝑎 + 𝑏 =(5)𝑛 -- (4)
6
𝑛 𝑛
(3) b= −1 𝑛 +a = −1 𝑛 +5 −(−1)
6
5𝑛 +5(−1)𝑛
b=
6
5𝑛 −(−1)𝑛 1 2 5𝑛 +5(−1)𝑛 1 0
=0+ +
6 4 3 6 0 1
5𝑛 −(−1)𝑛 1 2 5𝑛 +5(−1)𝑛 1 0
𝐻𝑒𝑛𝑐𝑒 𝐴 =𝑛
+
6 4 3 6 0 1
***********
5𝑛 −(−1)𝑛 1 2 5𝑛 +5(−1)𝑛 1 0
𝐻𝑒𝑛𝑐𝑒 𝐴𝑛 = +
6 4 3 6 0 1
This method is very
For example, if we need 𝐴5 , useful to find higher
powers of A like
𝐴50 , 𝐴100 etc
55 −(−1)5 1 2 55 +5(−1)5 1 0
𝐴5 = +
6 4 3 6 0 1
3125+1 1 2 3125−5 1 0
= +
6 4 3 6 0 1
3125+1 1 2 3125−5 1 0
= +
6 4 3 6 0 1
1 2 1 0
= 521 + 520
4 3 0 1
2 1 1
5𝐴 + 8𝐴 − 2𝐴 + 𝐼 where 𝐴 = 0
3 2
1 0
1 1 2
i.e., 𝜆3 − 𝐶1 𝜆2 + 𝐶2 𝜆 − 𝐶3 = 0 𝜆3 − 5𝜆2 + 7𝜆 − 3 = 0
𝐴5 + 𝐴
A − 5 A + 7 A − 3I |
3 2 𝐴8 − 5𝐴7 + 7𝐴6 − 3𝐴5 + 𝐴4 − 5𝐴3 + 8𝐴2 − 2𝐴 + 𝐼
A8 −5 A7 + 7 A6 −3A5
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
𝐴4 − 5𝐴3 + 8𝐴2 − 2𝐴
𝐴4 − 5𝐴3 + 7𝐴2 − 3𝐴
𝐴2 + 𝐴 + 𝐼
8 5 5
= 0 3 0
5 5 8
Try by yourself :
1 0 0
Verify Cayley Hamilton theorem for 𝐴 = 1 0 1 and hence find 𝐴−1 & 𝐴4
0 1 0
1 0 0 1 0 0
Check your Answer: 𝐴−1 = 0 0 1 & 𝐴4 = 2 1 0
−1 1 0 2 0 1
************
Back to our Question
Determining eigenvalues and
corresponding eigenvectors
Interpretation
• The normalized eigenvector corresponding to largest
0.9612
eigenvalue i.e. 1 is 0.2530 .
0.1096
• Dividing this vector by sum of its elements we get
0.7261
0.1911
0.0828
Interpretation
0.7261
The resulting vector 0.1911 represents the probability
0.0828
distribution of the weather conditions during summer.
• SUNNY - 72.61%
• CLOUDY - 19.11%
• RAINY – 8.28%