BCLA Module 5
BCLA Module 5
Semester 1
Basic Calculus and Linear Algebra
Module 5: Matrices
1. Motivation:
Applications of matrices are found in most scientific fields. Matrices are applicable to study
physical phenomena, such as the motion of rigid bodies which occurs in every branch
of physics including classical mechanics, optics, electromagnetism, quantum mechanics
and quantum electrodynamics. In computer graphics, Matrices are used to manipulate 3D
models and project them onto a 2-dimensional screen. In probability
theory and statistics, stochastic matrices are used to describe sets of probabilities; for instance,
they are used within the PageRank algorithm that ranks the pages in a Google search. Matrix
calculus generalizes classical analytical notions such as derivatives and exponentials to
higher dimensions. Matrices are used in economics to describe systems of economic
relationships.
Introduction:
Matrix is a set of m x n elements (real or complex) arranged in a rectangular array of m rows
and n columns enclosed by a pair of square brackets (or round brackets). It is written as
a11 a12 ... a1n
a a22 ... a2 n
A 21
am1 am 2 ... amn
A a
ij mn where aij is the element
● The matrix can also be expressed in the form
in the ith row and jth column, written as element of the matrix. The order of matrix
is read as m by n or written as m × n.
● Two matrices can be added or subtracted provided they are of same order.
A a
ij mn and
B bij
pq can be found if n=q and
● The product of two matrices
then we apply row-column method to multiply them.
.
inverse of a matrix A. The formula for finding the inverse is 𝐴 = . | |
Key Notations:
1. |𝐴|: Determinant of A
2. 𝐴= 𝑎 ×
: Matrix having i number of rows and j denotes number of columns.
Key Definitions:
(1) Diagonal Matrix: A square matrix whose all non -diagonal elements are zero and at
least one diagonal element is non-zero, is called a diagonal matrix.
1 0 0
2 0
0 1 , 0 4 0
0 0 8
e.g.
(2) Scalar Matrix: A square matrix, whose all diagonal elements are equal, is called a scalar
2 0 0
3 0
0 3 , 0 2 0
0 0 2
matrix. e.g.
(3) Upper Triangular Matrix: A square matrix, in which all the elements below the
1 3 2
0 4 5
diagonal are zero, is called an upper triangular matrix.
0 0 2
(4) Lower Triangular Matrix: A square matrix, in which all the elements above the
1 0 0
1 4 0
diagonal are zero, is called a lower triangular matrix.
3 5 2
(5) Trace of Matrix: The sum of all the principal diagonal elements of a square matrix is
2 1 0
A 4 6 2
called the trace of a matrix. e.g.
1 0 3
Trace of A=2+6+3=11.
1 1 3 1 0 4
A 0 2 6 A 1 2 1
T
e.g.
4 1 5 3 6 5
A aij , then AT a ji
i.e. if mn n m
A aij
(7) Symmetric Matrix: A square matrix m n is called symmetric if
1 i 3i
2 4
4 3 , i 2 4
3i 4 3
aij a ji for all i and j i.e. A AT e.g.
A aij
(8) Skew Symmetric Matrix: A square matrix m n is called skew symmetric if
aij a ji for all i and j,i.e. A AT .Thus, the diagonal elements of a skew symmetric
0 −3 −4
matrix are all zero. e.g. 3 0 8
4 −8 0
(9) Conjugate of a matrix: A matrix obtained from any given matrix A, on replacing its
elements by the corresponding conjugate complex numbers is called conjugate of A
and it is denoted by A .
1 3i 2 5i 8 1 3i 2 5i 8
A , A
e.g. i 6 9 i i 6 9 i
(1) Rank of the Matrix: The rank of the matrix is said to be r if it possesses the following
properties:
(2) Normal form or Canonical form: Every m n matrix of rank r can be reduced to the
In 0
0 by a finite sequence of elementary transformations. This form is
normal form 0
called the ‘normal form’ or the first Canonical form of the matrix A. By reducing the
matrix to a normal form through an elementary transformation. We can determine the
rank of the matrix.
(ii) The number of zeros before the first non-zero element in a row is less than the
number of such zeros in the next row.
The rank of a matrix in echelon form is equal to the number of non-zero rows of the
matrix.
The null space of matrix A is the set of all solutions to the homogeneous equation AX=0.
Exercise
1) Evaluate the rank of the following matrices by reducing them to Echelon form and
hence find the nullity of a matrix using Rank-Nullity theorem:
1 2 3 −1 2 3 −1 −1
1 2 3
−2 −1 −3 −1 1 −1 −2 −4
i) A =1 4 2 ii) A = (iii) A=
1 0 1 1 3 1 3 −2
2 6 5
0 1 1 −1 6 3 0 −7
Homework Problems
1) Evaluate the rank of the following matrices by reducing them to Echelon form:
1 2 −2 1 2 3 2
i) A = −1 3 0 ii) A = 2 3 5 1
0 −2 1 1 3 4 5
Ans: (i) ρ (A) = 3 (ii) ρ (A) = 2
Consistency of an equation: The system of equations is consistent if and only if the coefficient
matrix A and the augmented matrix [A : B] are of the same rank. i.e.
( A) [ A : B ] . There are two cases:
Exercise
1) Discuss the consistency of the system and if consistent solve the equation:
i) x y z 6
x 2y 3z 14
2x 4 y 7z 30 Ans : Consistent : (x, y, z) = (0, 4, 2).
ii) x y z 5
x 2y 3z 10
x 2 y 3z 8 Ans :Inconsistent.
iii) x 2y z w 2
x 2 y 4w 1
4x z 3w 1 Ans : Consistent :
(x, y, z, w) = ( 13 - t, 13 - 23 t,
- t, t ) . 7
3
Homework Problems
1) Discuss the consistency of the system and if consistent solve the equation:
i) 2x 3y 7z 5
3x y 3z 13
2x 19 y 47z 32 Ans: Inconsistent.
ii) x y z 3
3x y 2z 2
2x 4 y 7z 7 Ans: Inconsistent.
2) Discuss for all values of λ, the nature of solution of the system of equations
x y 4z 6
x 2y 2z 6
λx y z 6
Ans: (i) no solution λ = -1/2, λ ≠ 1 (ii) unique solution λ ≠ -1/2
(iii) infinitely many solutions λ = -1/2, λ = 1
3𝑥 + 4𝑦 + 5𝑧 = α
4𝑥 + 5𝑦 + 6z = 𝛽
5𝑥 + 6𝑦 + 7𝑧 = 𝛾are consistent only if α ,𝛽, 𝛾 are in A. P.
[Hint : Reduce the augmented matrix [A|B ] into row echelon form and then for
consistency we derive -2 + α = 0 ]
Homogeneous Linear system of Equations
We will learn one more application of rank of matrices to solve the homogeneous system of
equations. For this purpose, we will write the given system in matrix notation as AX=O. Then
we consider the augmented matrix [A]and find the rank of the matrix.
Consistency of an equation: The homogeneous system of equations is always consistent.
There are two cases:
Exercise
1) Solve the following system of equations completely.
2x 2y 5z 0
4x y z 0
3x 2 y 3z 0
x 3 y 7z 0
Ans: (x, y, z) = (0, 0, 0)
2) Solve 3x y z 0 , x y 2z 0 , 5x y 3z 0
Ans: (x, y, z) =
-k
4
, -7k , k
4
3) Find the value of λ for which following system of equations has nonzero solutions
x 2y 3z x
3x y 2 z y
2 x 3y z z
Ans: λ = 6, x = y = z = t
Homework Problems
1) Solve x y z w 0 , x y 2z w 0 , 3x y w 0 .
Ans: Consistent,(𝑥, 𝑦, 𝑧, 𝑤) = ( − , − 𝑡 ,𝑡 ,𝑡 )
2) Discuss for what values λ the system of equations has non-trivial solution? Obtain the
solution for real value of λ where
3x y z 0, 4x 2y 3z 0, 2 x 4y z 0.
Ans: i) When λ ≠ -9 and λ ≠ 1 then (x, y, z) = (0, 0, 0)
ii) When λ= -9 and λ ≠ 1 then (x, y, z) = (-3t/2, -9t / 2, t)
ii) When λ ≠ -9 and λ=1 then (x, y, z) = (t/2, -t/2, t)
Homework Problems
1. Examine whether the following vectors are linearly independent or dependent:
(i) [1,-1,1], [2,1,1], [3,0,2] Ans: Dependent , x1 x2 x3 0
(ii) [3,1,-4], [2,2,-3], [3,0,2] Ans: Independent
(iii) [1,1,-1], [2,-3,5], [2,-1,4] Ans: Independent
(iv) X1=[1,3,4,2] ,X2=[3,-5,2,6],X3=[2,-1,3,4] Ans: Dependent x1 x 2 2 x3 0
Eigen Values:
The roots of this characteristic equation are called the characteristic roots or latent roots or
characteristic values or the Eigen values or proper values of the matrix A.
1 2
e.g. If 𝐴 = then ,the characteristic equation of A is
4 3
2 4 5 0
5 1 0
1, 5.
Hence,-1, 5 are the eigen values of the matrix A.
Eigen Vectors:
Suppose 𝜆 is a root of |𝐴 − 𝜆𝐼| = 0then |𝐴 − 𝜆 𝐼| = 0.Further we find a non-zero column
matrix X such that [𝐴 − 𝜆 𝐼]𝑋 = 0.The vectors X is called the eigen vector or latent vector
corresponding to the root𝜆 .
EXERCISE
1. Determine eigen values and eigen vectors for the matrix:
1 0 1
1 2 1
2 2 3
(i) A = , find the eigen values of A3.
2 2 2 2 1 1
1 1 1 2 3 2
1 3 1 3 3 4
(ii) A = (iii) A =
0 1 0 2 5 4
0 0 1 5 7 5
1 3 3 4 5 2
(iv) A = (v) A =
2 4
0 3
2. If A = then find the eigen values of 6A-1 + A3 + 2I .
Homework Problem
2 2 3
2 1 6
1 2 0
1. If A = , find eigen values of A and 4A-1 . Also find eigen vectors of
A2 – 4I .
4 6 6
1 3 2
1 4 3
2. Find the eigen values of A3 – 3A2 + A where A =
2 9 5
5 10 7
9 21 14
4. Find the sum and product of the eigen values of the matrix A =
Ans: 2 , 4
2 −1 1
5. Find eigen values and eigen vectors of a matrix A = 1 2 −1 and verify the
1 −1 2
linear
Quadratic forms:
A homogeneous equation of degree 2 in any number of variables is called the quadratic
form.
Exercise
1. Reduce the quadratic form 3𝑥 + 5𝑦 + 2𝑧 − 2𝑦𝑧 + 2𝑧𝑥 − 2𝑥𝑦 to the canonical form
and specify the matrix of transformation.
2. Reduce the quadratic form to the canonical form by orthogonal reduction and discuss
its nature 2𝑥 𝑥 + 2𝑥 𝑥 − 2𝑥 𝑥 .
3. Reduce the following quadratic forms in the canonical form by orthogonal
transformation and find their index and signature
(i) 3𝑥 + 3𝑥 + 3𝑥 + 2𝑥 𝑥 + 2𝑥 𝑥 − 2𝑥 𝑥
(ii) 𝑥 + 5𝑦 + 𝑧 + 2𝑦𝑧 + 6𝑧𝑥 + 2𝑥𝑦
4. Find the nature of the quadratic form 𝑥 + 5𝑦 + 𝑧 + 2𝑥𝑦 + 2𝑦𝑧 + 6𝑧𝑥
Vector space:
1. Norm: If X is a complex n-vector then the positive square root of the inner product (X,X)
is called the norm of the vector X and is denoted by .
Thus, if X= then
Exercise
𝑥 0
1. Check whether or not 𝑉 = 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡 𝑥, 𝑦 𝜖 𝑅 is a vector space
0 𝑦
2. Show that 𝑉 = 𝑎 + 𝑏√2 /𝑎, 𝑏 𝜖 𝑄 is a vector space, where Q is a set of rational numbers.
1 0
i) 𝑆 = ,
0 1
1 0 1
ii) 𝑆 = , ,
0 1 1
1 2
iii) 𝑆 = ,
1 2
1 0
5. . Determine whether the set 𝐵 = , is basis for 𝑅
0 1
1 1
6. Determine whether the set 𝐵 = , is basis for 𝑅 .
1 −1
**********************************************************************************
QUADRATIC FORM- REDUCTION OF QUADRATIC FORM TO CANONICAL FORM BY
ORTHOGONAL TRANSFORMATION:
Quadratic form:
Note:
Problems:
Solution:Q =
Here ; ;
Solution: Q =
3. Write down the quadratic form corresponding to the following symmetric matrix
Solution:Let
The required quadratic form is
Rank of the quadratic form:The number of square terms in the canonical form is the rank (r) of
the quadratic form
Index of the quadratic form: The number of positive square terms in the canonical form is
called the index (s) of the quadratic form
Signature of the quadratic form:The difference between the number of positive and negative
square terms = s (r-s) = 2s-r, is called the signature of the quadratic form
(1) Positive definite if all the eigen values are positive numbers
(2) Negative definite if all the eigen values are negative numbers
(3) Positive Semi-definite if all the eigen values are greater than or equal to zero and at
least one eigen value is zero
(4) Negative Semi-definite if all the eigen values are less than or equal to zero and at least
one eigen value is zero
(5) Indefinite if A has both positive and negative eigen values
Problems:
Working rule:
Step 6: Find
Step 7: Find AN
Step 8: Find D =
Problems:
1. Reduce the given quadratic form Q to its canonical form using orthogonal
transformation Q =
i.e., A =
1 1 -7 14 -8
0 1 -6 8
1 -6 8 0
Case 1: When
= 0 -------- (1)
-------- (2)
-------- (3)
2 -1 0 2
-1 2 0 -1
Case 2: When
= 0 -------- (1)
-------- (2)
-------- (3)
0 0 -1 0
1 -1 0 1
Case 3: When
= 0 -------- (1)
-------- (2)
-------- (3)
0 0 -3 0
-1 -1 0 -1
The Normalized matrix N =
AN =
i.e.,
canonical form is
i.e., A
0 1 1 -2
1 1 -2 0
Case 1: When
------- (1)
------- (2)
------- (3)
1 1 2 1
2 -1 1 2
Case 2: When
------- (1)
------ (2)
------ (3)
-------- (1)
--------- (2)
l m n
1 1 -1 1
-1 1 0 -1
AN =
i.e.,
Reference Links