BCLA_Module_5_Simplified

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 62

Simplified Document: Module 5 - Matrices

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

including classical mechanics, optics, electromagnetism, quantum mechanics

of physics

and quantum electrodynamics. In computer graphics, Matrices are used to manipulate


3D

models and

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.

a 2-dimensional

screen.

project

them

onto

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
A

11

21

12

22

...

...

a
m

...

mn

The matrix can also be expressed in the form

is the element

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.




 where

ij m n

ija

The product of two matrices

then we apply row-column method to multiply them.

and



ij m n



ij

pq

can be found if n=q and

1A

If A is a square matrix and

inverse of a matrix A. The formula for finding the inverse is 𝐴(cid:2879)(cid:2869) =

IAA

, where

AA



then

0A 

is called

(cid:3028)(cid:3031)(cid:3037).(cid:3002)

|(cid:3002)| .

Key Notations:

1.

2.

|𝐴|: Determinant of A

𝐴 = (cid:3427)𝑎(cid:3036)(cid:3037)(cid:3431)

Key Definitions:

(1) Diagonal Matrix: A square matrix whose all non -diagonal elements are zero and at

: Matrix having i number of rows and j denotes number of columns.


(cid:3040)×(cid:3041)

least one diagonal element is non-zero, is called a diagonal matrix.

20

01

e.g.

100

,040

008

(2) Scalar Matrix: A square matrix, whose all diagonal elements are equal, is called a scalar

30
03

matrix. e.g.

200

,020

002

(3) Upper Triangular Matrix: A square matrix, in which all the elements below the

diagonal are zero, is called an upper triangular matrix.

13

04

00



(4) Lower Triangular Matrix: A square matrix, in which all the elements above the

diagonal are zero, is called a lower triangular matrix.

00

140



52


(5) Trace of Matrix: The sum of all the principal diagonal elements of a square matrix is




called the trace of a matrix. e.g.

Trace of A=2+6+3=11.

(6) Transpose of a Matrix: A matrix obtained by interchanging rows and columns of a

matrix is called transpose of a matrix and is denoted by

'

A or A .



13


12




A

ij

mn

then A

ji

nm

e.g.

i.e. if

(7) Symmetric Matrix: A square matrix

A



ij m n

is called symmetric if

ij

a

ji

for all i and j i.e.

A A

e.g.

24

43

1



(8) Skew Symmetric Matrix: A square matrix



ij m n

is called skew symmetric if

ij

a 

ji

for all i and j,i.e.

matrix are all zero. e.g.(cid:3429)

A 

0 −3 −4

4 −8

(cid:3433)

.Thus, the diagonal elements of a skew symmetric

(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 .
A

13

25

e.g.

13
i

25

(10) Transpose Conjugate of a matrix: The transpose of the conjugate of a matrix A is

called the conjugate transpose of A and is denoted by A 

. e.g. 𝐴(cid:3087) = (𝐴(cid:4636))(cid:3021) = (𝐴(cid:3021)).

Rank of Matrix, Reduction to Echelon

form

Here with the help of elementary transformations (row and column) we will learn to find

rank of matrix which will give idea about number of linearly independent rows and

columns in a matrix.

(1) Rank of the Matrix: The rank of the matrix is said to be r if it possesses the following
properties:

(i)

(ii)

there is at least one non- zero minor of order r.

every minor of order greater than r is zero.

Rank of the matrix is denoted by

A

(2) Normal form or Canonical form: Every m n matrix of rank r can be reduced to the

nI

 by a finite sequence of elementary transformations. This form is

normal form

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.

(3) Echelon Form of a matrix: A matrix A is said to be in echelon form if

(i) Every zero row of matrix A occurs below a non-zero row.

(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.

(4) Rank-Nullity theorem: Rank of A+Nullity of A=Number of columns

The nullity of the matrix A is the dimension of null space of A.

The null space of matrix A is the set of all solutions to the homogeneous equation AX=0.

Evaluate the rank of the following matrices by reducing them to Echelon form and

1)

hence find the nullity of a matrix using Rank-Nullity theorem:

Exercise

i) A =(cid:3429)

123

142

265

(cid:3433)

ii) A =(cid:3430)

(cid:3434) (iii) A=(cid:3430)

3 −1

−2 −1 −3 −1

1 −1

0
0

3 −1 −1

1 −1 −2 −4

3 −2

0 −7

(cid:3434)

Ans: (i) ρ (A) = 2 (ii) ρ (A) = 2 (iii) ρ (A) =3

Homework Problems

1)

Evaluate the rank of the following matrices by reducing them to Echelon form:

i)

A =(cid:3429)

2 −2

−1

0 −2

(cid:3433) ii) A = (cid:3429)


1

(cid:3433)

Ans: (i) ρ (A) = 3 (ii) ρ (A) = 2

Non-homogeneous Linear system of Equations

We will learn one of the applications of rank of matrices to solve the non-homogeneous
system

of equations. For this purpose, we will write the given system in matrix notation as AX=B.

Then we consider the augmented matrix [A : B] and find the rank of augmented matrix.

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.

[


AB

. There are two cases:

Case I: If



AB

 , no. of unknowns, the system has unique solution.

Case II: If



AB

:
]

 , no. of unknowns, the system has infinite solutions.



AB

When

Exercise

1) Discuss the consistency of the system and if consistent solve the equation:

, the system is said to be inconsistent and has no solution.

i) x

2x

ii) x

z

2y

3z

14

4y

7z

30

2y

3z

10

x

iii) x

2y

3z

2y

Ans : Consistent : (x, y, z) = (0, 4, 2).

Ans :Inconsistent.

4x

2y

3
4



Ans : Consistent :

(x, y, z, w) = (

- t,

t,

- t, t ) .

2)

Investigate for what values of λ and μ the system of equations [May’17]

2x

3y

5z

7x

3y

2z

3y

2x

have (i) no solution (ii)unique solution (iii) many solutions.

λz

Ans: (i) λ = 5, μ ≠ 9 (ii) λ ≠ 5, μλ (iii) μ = 5, μ = 9

3) Determine the values of λ so that the equations :[May’13, 14]


2y

4z

4y

10z

have a solution and solve them completely in each case.

Ans : i) λ = 2 , z = t , y = 1 -3t , x = 2t ii) λ = 1,z = t , y = -3t , x = 1 + 2t

1) Discuss the consistency of the system and if consistent solve the equation:

Homework Problems

i) 2x

3y

7z

3x

3z

13

2x

19 y

47z

32

ii) x



3x

y

2z

2x

4y

7z



Ans: Inconsistent.

Ans: Inconsistent.

2) Discuss for all values of λ, the nature of solution of the system of equations

4z

2y

2z

λx

Ans: (i) no solution λ = -1/2, λ ≠ 1 (ii) unique solution λ ≠ -1/2

(iii) infinitely many solutions λ = -1/2, λ = 1

3) Show that the system of equations

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:


Case I: If

   - no. of unknowns, the system has unique trivial solution.

)A

Case II: If

   - no. of unknowns, the system has infinite solutions.

)A

1)

Solve the following system of equations completely.

2x

2y

5z

Exercise

4x


z

3x

2y

3z

Ans:

3y

2)

Solve 3x

Ans:

3)

7z

(x, y, z) = (0, 0, 0)

,x

z

-k ,

(x, y, z) = 

-7k

,k

2z

 , 5x

y 3z

Find the value of λ for which following system of equations has nonzero solutions

2y


3z

x

3x

2z

y

2x

Ans:

3y

z

λ = 6, x = y = z = t

1)

Solve x

Ans:

z

Homework Problems

, 3x

, x

− 𝑡(cid:2870), 𝑡(cid:2869), 𝑡(cid:2870) )

2z

(cid:3047)(cid:3117)

(cid:2870)

(cid:2871)(cid:3047)(cid:3117)

(cid:2870)

0
.

2) Discuss for what values λ the system of equations has non-trivial solution? Obtain the

Consistent,(𝑥, 𝑦, 𝑧, 𝑤) = ( −

Ans:

solution for real value of λ where

4x

0,

2y

3x

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)

2x


4y

3z

0.

0,

Linear dependence, Linear independence of vectors

1) Linear Dependence: A set of r vectors

XX

,.....

X is said to be linearly dependent if

there exist r scalars (numbers)

kX

kX

.....
,..... r

kk

kX

k not all zero, such that

.

2)

Linear Independence: A set of r vectors

XX

,.....

X is said to be linearly

independent if there exist r scalars (numbers)

kk

2
,..... r

k , such that if

kX

kX

.....

kX

 then 1

.....

r

0.

Exercise

1. Examine whether the following vectors are linearly independent or dependent:

(i) [1,1,1,3], [1,2,3,4], [2,3,4,7] Ans: Dependent ,

(ii) (1,2,-1,0),(1,3,1,2), (4,2,1,0) , (6,1,0,1) Ans: Independent

(iii) X1 = (a,b,c),X2 = (b,c,a),X3 = (c,a,b)where a+ b+ c ≠ 0. Ans: Independent

[Hint: Find determinant of coefficient matrix and factorize it]

Homework Problems

1. Examine whether the following vectors are linearly independent or dependent:

(i) [1,-1,1], [2,1,1], [3,0,2]

(ii) [3,1,-4], [2,2,-3], [3,0,2]

(iii) [1,1,-1], [2,-3,5], [2,-1,4]

Ans: Dependent ,

1

Ans: Independent

Ans: Independent

(iv) X1=[1,3,4,2] ,X2=[3,-5,2,6],X3=[2,-1,3,4] Ans: Dependent

32

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.

e.g. If 𝐴 = (cid:4674)

(cid:4675) then ,the characteristic equation of A is


12

43





1,5.







Hence,-1, 5 are the eigen values of the matrix A.

Eigen Vectors:

Suppose (cid:2869)is
𝜆 a root of |𝐴 − 𝜆
𝐼| = 0then |𝐴 − 𝜆(cid:2869)𝐼| = 0.Further we find a non-
zero column
matrix X such that [𝐴 − 𝐼(cid:2869)𝑋]𝑋 = 0.The vectors X is called the eigen vector or latent
vector

corresponding to the root𝜆(cid:2869).

EXERCISE

1. Determine eigen values and eigen vectors for the matrix:

01

121

322

(i) A =

, find the eigen values of A3.

22


111

31

4

(iii) A =

(ii) A =

10

00

33

(iv) A =

2




(v) A =

42

30


2. If A =

then find the eigen values of 6A-1 + A3 + 2I .

Homework Problem

1. If A =

22


, find eigen values of A and 4A-1 . Also find eigen vectors of

A2 – 4I .

2. Find the eigen values of A3 – 3A2 + A where A =

64

31



3.

If  is a characteristic root of A then prove that f() is characteristic root of f(A).


Hence find latent roots of A 2 – 2A + 3I and A-1 where A =

32

10

4. Find the sum and product of the eigen values of the matrix A =

Ans: 2 , 4


10

21

14

5.

Find eigen values and eigen vectors of a matrix A = (cid:3429)

2 −1 1

1 2 −1

1 −1 2

(cid:3433) and verify the

linear

Quadratic forms:

A homogeneous equation of degree 2 in any number of variables is called the quadratic

form.

Exercise

1.

and specify the matrix of transformation.

2. Reduce the quadratic form to the canonical form by orthogonal reduction and discuss

Reduce the quadratic form 3𝑥(cid:2870) + 5𝑦(cid:2870) + 2𝑧(cid:2870) − 2𝑦𝑧 + 2𝑧𝑥 − 2𝑥𝑦
to the canonical form
its nature 2𝑥(cid:2869)𝑥(cid:2870) + 2𝑥(cid:2869)𝑥(cid:2871) − 2𝑥(cid:2870)𝑥(cid:2871).

3. Reduce the following quadratic forms in the canonical form by orthogonal

transformation and find their index and signature

(cid:2870) + 3𝑥(cid:2870)

3𝑥(cid:2869)

𝑥(cid:2870) + 5𝑦(cid:2870) + 𝑧(cid:2870) + 2𝑦𝑧 + 6𝑧𝑥 + 2𝑥𝑦

(i)

(ii)

Find the nature of the quadratic form 𝑥(cid:2870) + 5𝑦(cid:2870) + 𝑧(cid:2870) + 2𝑥𝑦 + 2𝑦𝑧
+ 6𝑧𝑥

(cid:2870) + 2𝑥(cid:2869)𝑥(cid:2870) + 2𝑥(cid:2869)𝑥(cid:2871) −


2𝑥(cid:2870)𝑥(cid:2871)

(cid:2870) + 3𝑥(cid:2871)

4.

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

The norm of a vector is also called the length of the vector.

‖𝑥‖ = 0 iff X=0 i.e. X is a zero vector.

2. Unit Vector: If X is a complex n-vector then it is called a unit vector if ‖𝑥‖ = 1 .A

unit vector is also called a normal vector.

3. Orthogonal Vectors: If X and Y are any two complex n-vectors then X is said to be

orthogonal to Y if (X,Y)=0 i.e. if

4 Vector Spaces: A vector space V is a collection of objects with a (vector) addition and
Scalar multiplication defined that closed under both operations and which in addition

satisfies the following axioms:

(i) (α+β)x = αx+βx for all x ∈ V and α,β ∈ F

(ii) α(βx)=(αβ)x

(iii) x+y = y +x for all x, y ∈ V

(iv) x+ (y +z)=(x+y) +z for all x, y, z ∈ V

(v) α(x+y) = αx+αy

(vi) ∃O ∈ V z 0 +x = x; 0 is usually called the origin

(vii) 0x = 0

(viii) ex = x where e is the multiplicative unit in F.

Exercise

1. Check whether or not 𝑉 = (cid:3420)(cid:3428)

𝑥0

0𝑦

(cid:3432) 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡 𝑥, 𝑦 𝜖𝑅(cid:3424) is a vector space

2. Show that 𝑉 = (cid:3419)𝑎 + 𝑏√2 /𝑎, 𝑏 𝑄


𝑄 (cid:3423) is a vector space, where Q is a set of
rational numbers.

3. Check whether or not 𝑉 = {(𝑥(cid:2869), 𝑥(cid:2870), 𝑥(cid:2871), . . . .


𝑥(cid:3041))/ 𝑥(cid:3036)𝑅
𝑅 } is a vector space.

4. Q1. Determine whether any of the following sets are spanning sets for 𝑅(cid:2870)

i)

ii)

𝑆(cid:2869) = (cid:4676)(cid:4674)

(cid:4675) , (cid:4674)

1
𝑆(cid:2869) = (cid:4676)(cid:4674)

(cid:4675) , (cid:4674)

(cid:4675)(cid:4677)

(cid:4675) , (cid:4674)

(cid:4675)(cid:4677)

iii)

𝑆(cid:2871) = (cid:4676)(cid:4674)

(cid:4675) , (cid:4674)

(cid:4675) (cid:4677)

5. . Determine whether the set 𝐵 = (cid:4676) (cid:4674)

(cid:4675) , (cid:4674)

1
(cid:4675) (cid:4677) is basis for 𝑅(cid:2870)

6. Determine whether the set 𝐵 = (cid:4676) (cid:4674)

(cid:4675) , (cid:4674)

−1

(cid:4675) (cid:4677) is basis for 𝑅(cid:2870).

**********************************************************************************

QUADRATIC FORM- REDUCTION OF QUADRATIC FORM TO CANONICAL FORM BY

ORTHOGONAL TRANSFORMATION:

Quadratic form:

A homogeneous polynomial of second degree in any number of variables is called a


quadratic

form

Example:

Note:

The matrix corresponding to the quadratic form is

is a quadratic form in three variables

Problems:

1. Write the matrix of the quadratic form

Solution:Q =

Here

2. Write the matrix of the quadratic form

Solution: Q =
3. Write down the quadratic form corresponding to the following symmetric matrix

Solution:Let

The required quadratic form is

NATURE OF THE QUADRATIC FORM:

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

(r-s) = 2s-r, is called the signature of the quadratic form

square terms = s

The quadratic form is said to be

(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:

1. Determine the nature of the following quadratic form f(

Solution:The matrix of the quadratic form is Q =

The eigen values of the matrix are 1, 2, 0

Therefore, the quadratic form is Positive Semi-definite

2. Discuss the nature of the quadratic form


without reducing it to

canonical form

Solution:The matrix of the quadratic form is Q =

Therefore, the quadratic form is positive definite

REDUCTION OF QUADRATIC FORM TO CANONICAL FORM THROUGH ORTHOGONAL

TRANSFORMATION [OR SUM OF SQUARES FORM OR PRINCIPAL AXES FORM]

Working rule:

Step 1: Write the matrix of the given quadratic form

Step 2: To find the characteristic equation

Step 3: To solve the characteristic equation

Step 4: To find the eigen vectors orthogonal to each other

Step 5: Form the Normalized matrix N

Step 6: Find

Step 7: Find AN

Step 8: Find D =

Step 9: The canonical form is

Problems:

1. Reduce the given quadratic form Q to its canonical form using orthogonal

transformation Q =

Solution: The matrix of the Q.F is A =

i.e., A =

The characteristic equation of A is

where

The characteristic equation of A is

1 1 -7 14

-8
0 1 -6 8

-6

8 0

The eigen values are 1, 2, 4

To find the eigen vectors:

Case 1: When

= 0 -------- (1)

-------- (2)

-------- (3)

Solving (2) and (3) by rule of cross multiplication, we get,

-1

-1

-1

Case 2: When

= 0 -------- (1)

-------- (2)

-------- (3)

Solving (1) and (2) by rule of cross multiplication, we get,

1
0

-1

-1

Case 3: When

= 0 -------- (1)

-------- (2)

-------- (3)

Solving (1) and (2) by rule of cross multiplication, we get,

-1

-1

-3

-1

The Normalized matrix N =

AN =

i.e.,

The canonical form is

canonical form is

1. Reduce the quadratic form to a canonical form by an orthogonal reduction

.Also find its nature.


Solution: The matrix of the Q.F is A =

i.e., A

The characteristic equation of A is

where

The characteristic equation of A is

1 1 0 -3

0 1 1 -2

1 -2 0

The eigen values are 1, 1, -2

To find the eigen vectors:

Case 1: When

------- (1)

------- (2)

------- (3)

-1

Case 2: When

------- (1)
------ (2)

------ (3)

All three equations are one and the same.

Put

. Let

. Then

Let

. Since

is orthogonal to

-------- (1)

--------- (2)

-1

-1

-1

The Normalized matrix N =

;
AN =

i.e.,

The canonical form is

Nature: The eigen values are -2, 1, 1. Therefore, it is indefinite in nature.

1.

Math Insight. http://mathinsight.org/matrix_introduction

mathinsight.org/matrix_introduction

2. www.mathresource.iitb.ac.in/linear%20algebra/chapter2.0.html

3. https://en.wikipedia.org/wiki/Matrix_(mathematics)

4. www.slideshare.net/moneebakhtar50/application-of-matrices-in-real-life

5. www.youtube.com/watch?v=jzHb1R5wWYU

6. www.clarkson.edu/~pmarzocc/AE430/Matlab_Eig.pdf

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy