0% found this document useful (0 votes)
2 views

Notes 1 for Determinants and Matrices

The document provides an overview of matrices, their types, properties, and operations, as part of an advanced engineering mathematics module. It covers matrix definitions, various types of matrices (like rectangular, square, diagonal, etc.), and operations such as addition, subtraction, and multiplication. Additionally, it introduces determinants and their calculation methods, along with examples to illustrate the concepts discussed.

Uploaded by

Mark Quijano
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Notes 1 for Determinants and Matrices

The document provides an overview of matrices, their types, properties, and operations, as part of an advanced engineering mathematics module. It covers matrix definitions, various types of matrices (like rectangular, square, diagonal, etc.), and operations such as addition, subtraction, and multiplication. Additionally, it introduces determinants and their calculation methods, along with examples to illustrate the concepts discussed.

Uploaded by

Mark Quijano
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Notes for Module 1: Determinants and Matrices

Advanced Engineering Mathematics


Engr. Neil S. Sereño, SOE, BiPSU-Naval Campus
January 2024

Lecture I
1. Matrices
2. Types of Matrices
3. Properties and Operations of Matrices
4. Determinants
5. Inverse of a Matrix
6. Alternative Methods for Matrix Operations

1. Matrices

2 3 7 1 3 1

A=1 1 5−  B=2 1 4

4 7 6
Both A and B are examples of matrices. Matrix is a rectangular array of numbers enclosed by a pair of
brackets.

Consider the following set of equations:

x y+ = 7, This system is easily solve algebraically, and the solution is x = 3 and y = 4.


3x y− = 5.
The following are the solutions to a system of linear equations:

1. Elimination by addition and/or subtraction.


2. Substitution Method
3. Simultaneous Substitutions
4. Determinants 5. Matrices

For the system given below, solution by elimination and substitution methods were found to be inefficient while
determinants and matrices are more practical, direct and effective.

w+ 3x + y − 2z =
7 2w− x + 4y −

z = 2  w− x +

3y − 4z =1 
3w+ x − y −3z = 5
In a matrix, the numbers aij are called elements. The first subscript i indicates the row, and the second
subscript j indicates the column. The number a31 is the element of the 3rd row and the first column.

a11 a12 a 1n


a
a a
A 21 22 2n 

=
 
  m × n (matrix size)
am1 am2 amn

2 Types of Matrices

Name Description Example

6 2 −1
No. of rows is not equal to no. of 2 0 5 
Rectangular matrix columns −
2 −1 3
2 
No. of rows is equal to no. of 0 1
Square matrix −
columns
 
2 4
 1
2 0 0
Non-zero element in principal 0 
Diagonal matrix diagonal and zero in all other 4 0

positions 
0 0 7
4 0 0
0 
4 0
Diagonal matrix in which all the 
elements on principal diagonal 
Scalar matrix and same
0 0 4

Row matrix A matrix with only 1 row 3 2 1−4
2
Column matrix A matrix with only I column
3
0 0

0 0
Zero matrix A matrix with all zero entries 
2 5 3
Square matrix having all the 0 4 6
Upper Triangular
entries zero below the principal
matrix  
diagonal
0 0 7
2 0 0
Square matrix having all the 5 4 0
Lower Triangular
entries zero above the principal
matrix  
diagonal
6 3 7
Equal Matrices Two matrices are said to be equal a b 4 2
iff (if and only if) their
corresponding elements are =
c d 1 6

equal. a= 4,b= 2,c=1&d= 2
a d
a b c
The elements of the rows are
transposed into elements of the A =d ef ; AT =bc ef
Transpose Matrix columns. 
b T ba dc; Adj.AT −b
A matrix formed when all a
=−ac
elements of a transposed matrix A =c d
are replaced by its corresponding ; A = 
 
Ad-joint Matrix signed minor element. d 
1 A−1 = 1
The elements of the ad-joint of a

Inverse Matrix
square matrix is divided by the
determinants of the given matrix.
Adj.A  T

(Not all square matrices has an =


inverse.) A det.A
10 I
= 0
Diagonal matrix having each 1
Identity matrix diagonal element equal to one (1)
AA−1 = I; A=ac db; A−1 = −b
det1.A−ac d 

a b 1  a −b 1 0
When a matrix is multiplied by its
inverse the product is an identity c d det.A−cd =0
Identity matrix matrix. 1
3 Properties and Operations of Matrices
Sums of Matrices
Matrices of the same sizes are said to be conformable for addition and subtraction. Matrices of different sizes
cannot be added or subtracted, e.g., a 3 × 2 matrix cannot be added to or subtracted from a 4 × 3 matrix.
Properties of matrices A, B and C, which are conformable or of the same size:
Commutative Property A+B=B+A 
Additive Identity 0+B=B+0
Associative Property A + (B +C) = (A + B) +C
Distributive Property for Scalars (p + q)A = pA + qA
2 −1 −5
Associative Property for Scalars p(qA) = pqA b) B – C = 
Distributive Property for Matrices λ (A + B) = λ A + λ B 7 5
−2
Example 1: Given the matrices below,
4 2 −1 −3 0 2 3 =

A=1 6;B = 75 ;C = 2 3 5

 2 
find: a) A + B b) B – C

c) (A – C) + B

Solution: 2 0
4
4 2 −1 −3 3 −1 a) A + B = 1 6+ 7 5  = 8 11
Right Distributive Prop
c) (A – C) + B = 1 6−2 3+ 7 5
Associative Property fo
=−1 3+ 7 Scalar Associative Pro

Product of Matrices Scalar Multiplication


Associative Property (AB)C = A(BC)
Identity Property IB = BI = B −3 3 −3
Left Distributive Property A(B +C) = AB + AC
5 =68  ans.
Let λ be any scalar and A is an m × n matrix. Then λA is a product matrix where λ is multiplied to
each of the elements of matrix A.
1 0 3
Example 2: Given A 3 2
 ;= 3, find the scalar productA.
=1 2  5 
 1 4

Solution:
1 0 3 31 30 33 3 0 9
 3   33   9 
A = 3 2 2 = 32 32 = 6 6 ans.
5  35 15
  
1 4 31 34 3 12
Matrix Multiplication
Matrix multiplication can only be possible iff (if and only if) the matrices to be multiplied are
conformable. That is if the number columns of the first matrix (multiplicand) equals to the number of rows of
the second matrix (multiplier). A matrix of size m × n can be multiplied by matrix of size n × p, then the product
matrix is expected be of size m × p. If a 2 × 3 matrix is multiplied by a 3 × 4 matrix, the product matrix would be
of size 2 × 4. Example 3: Given the matrices

1 3 5

A =4 2 ;B =−1 −3 ;C =2 1 4 0 1 2

1 622 7 5 22 1 4 723;D =4 1 333

Find the following product matrices:


a) AB
b) CD
c) B × (CD)

Solution:

4 2 −1 −3 e e

a) AB =1 622  7 5 22 = E =e1121 e122222

AB =1462−71 −53=ee1111==14((−−11))++62((77))
ee1212 ==14((−−33))++62((55))

10 −2
AB=E =41 27 ans.

1 3 5
2 1 4

b) CD =1 4 723 04 11 2333 = F = ff1121 ff1222


ff1323

CD = F =ff1121 ==12((11))++41((00))++47((44))ff1222 ==12((33))++41((11))++47((11))


ff1323 ==12((55))++41((22))++47((33))

18 11 24
CD=F =29 14 34 ans.

−1 −318 11 24


c) BCD=7 5 29 14 34

−1(18)+−3(29) −1(11)+−3(14) −1(24)+−3(34)
= 
 7(18)+5(29) 7(11)+5(14) 7(24)+5(34) 
−105 −53 −126
= 271 147 338 ans.

4 Determinants
A square array of numbers called elements (real or complex) which are contained within two vertical
lines.
The value of the determinant is obtained by the difference of the sum of all downward cross products
minus the sum of all upward cross products.

For an order 2 determinant

a1 b1
A =
a2
b2

det.A=a1b2 −a2b1
For an order 3 determinant
(-) products
a1 b1 c1 a1 b1 c1 a1 b1
B = a2 b2 c2 ; B = a 2 b2 c2 a2 b2
a3 b3 c3 a3 b3 c3 a3 b3
(+) products

det.B=a1b2c3 +b1c2a3 +c1a2b3 −a3b2c1 −b3c2a1 −c3a2b1 det.B=

(a1b2c3 +b1c2a3 +c1a2b3) − (a3b2c1 +b3c2a1 +c3a2b1)

Co-Factors and Minors


Co-factor element,b3
a1 b1 c1 The sign of the co-factor element depends
a2 b2 c2 on the sum of the row and column
a3 b3 c3 numbers; the sign is (+) if the sum is even
and (-) if the sum is odd. Here b3 is at the 3rd
row and the 2nd column and so, the sum is
odd and therefore the sign of b3 is negative.
a1 c1
Expanded elements M 32 = (can be the elements of an entire row or column)
a2 c2

a1 c1 The Minor of the third row and the second


C32 =−b3 column.
a2 c2

The Co-factor of the 3rd row and 2nd column.

For an order 3 determinant expansion by co-factor method expanding from the elements of the first
row. Co-factor expansion can be performed through the elements of any particular row or column.

a1 b1 c1
a) Expanding the elements of the first row, 2 b2 c2 B=a
a3 b3 c3

b2 c2a2 c2 +c1 a2 b2
det.B = a3 b3
a1+(−)b1 3 2 1 2 3
b3 c3a3 c3 det.B=a1(b2c3 a1 b1 c1
−b3c2)−b1(a2c3 −ac )+c (ab b2 c2
2
−a3b2) a3 b3 c3
a1 b1
b) Expanding the +b2 +( −)b2 elements of the second row, B
a3 b3
=a

b1 c1a1 c1 det.B = (−)a2


b3 c3a3 c3
det.B=−a2(b1c3 −b3c1)+b2(a1c3 −a3c1)−c2(a1b3 −a3b1) a1 b1 c1
c) Expanding the elements of the third row, 2 2 2 B= a b c
a3 b3 c3
a1 b1
+c3
a2 b2
b1 c1a1 c1
det.B = a3+(−)b3
b2 c2a2 c2
det.B=a3(b1c2 −b2c1) −b3(a1c2 −a2c1) +c3(a1b2 −a2b1)
Note: Co-factor expansion is very effective when expanding the elements of any row or column that
has the most 0’s.

Example 4: Find the value of the determinant of the following:

3 1
a) A =(order 2)
4 4
5

13
b) E =0 1 0 (order 3)
4 1
Solution:

3 1
a) A=44
det.A=(34)−(41)
=12−4
det.A= 8ans.
1 3 51 3
b) E =0 1 00 1; by the cross products or Kramer’s Rule
4 1 34 1
det.E= (113)+(304)+(501)−(415)−(101)−(303) det.E =
3−20 =−17ans.
1 3 5
c) E=0 1 0 ; alternate solution/co-factor expansion
4 1 3
Expanding the elements of the 2nd row
1 3 5
3 5 1 51 3
E = 0 1 0 ;det.E = (−)(0) +(1)+(−)(0)
1 3 4 34 1
4 1 3
1 5
det.E = (1) = 3−20=−17ans.
4 3
Expanding the elements of the 1st row
1 3 5
1 03 5 3 5
E=0 1 0 ;det.E = (1)+ (−)(0)+
(4)
1 31 3 1 0
4 1 3
1 0 3 5
det.E = (1) + (4) = (1)(3−0) + (4)(0−5) = 3− 20 =−17 ans.
1 3 1 0
5 Inverse of a Matrix
If the determinant of an n × n matrix is not equal to zero then, the square matrix is nonsingular and its
inverse exist.

Example 5: Evaluate the inverse of the following matrices if they exist.

3 1
a) A =4 4
1 3 5
 
b) D= 0 1 2
 
4 1 3
Solution:

3 1

a) A =74 ; find A−1. From AA−1 = I , let I =1010 and A−1 =xx12
yy12

3 1x1 y1 1 0
7 4x2 y2=0 1, using product
of matrices 

 3x1 + x2 3y1 + y2  1 0

7x1 + 4x2 7y1 + 4y2=01 , by the property of equal matrices


3x1 + x2 =1  3y1 + y2 = 0 
7x1 + 4x2 = 0→ (1) and 7y1 + 4y2 =1→ (2)

Solving for the elements x1,x2, y1 & y2 from the systems of linear equations above gives,

4 73
x1 = ,x2 =− , y1 =− & y2 = . Then,
5 55
 4 −1

A−1 =−5753 = 15 −47 −31ans.


5 5

Another solution, by the formula A−1 =


1
Adj.A .
T

det.A

3 1 T 3 7 Adj.AT = 4 −1


A =
7 4 ;det.A=12−7 =5, A = , 3
1 4 −7

A−1 = 1 −1
 47
3  ans.
5−
1 3 D 5

= 01 
b) 2 ; find D−1. 1 0 4


1 1.D
D−1 = 4 det    
3 Adj.DT ;det.D =−17+22=5; DT = 3 1 1 

 1 1 3 1 3 1  5 2 3
  2 3 ( −)
5 3 5 2
 
1 0 4 1 4 1 0
D −1 = (−) (−)
5 2 3 5 3 5 2
 
 1 4 1 0
 10 14 
3 1 3 1 
  (−)
 1 −4 1 
1
D = 8 −17 −2ans.
−1

5 
−4 11 1 
6. Alternative Methods for Matrix Operations
For other alternate means to verify the products and inverse of matrices, you can use the MINVERSE and
MMULT functions and the Ctrl+Shift+Enter keys in Microsoft Excel.

1) Open Microsoft Excel


2) Input the elements of the matrix

3) Call the MINVERSE function at the formula bar and highlight the cells which you assigned for the
inverse matrix elements.
4) Press the keys Ctrl+Shift+Enter at the same time

5) In this result, each element of the inverse of matrix A is already divided by the value of its determinant
whose value is 1/5 or 0.2. Factoring out the determinant value gives

For the product of matrix using the MMULT function and the Ctrl+Shift+Enter keys in Microsoft Excel

1) Open Microsoft Excel


2) Input the elements of the matrices to be multiplied

3) Call the MMULT function and obtain the product matrix AB


4) For the product matrix CD

5) For the product matrix CD

Note: For an easy and convenient validation of results regarding matrices and determinants please
download the CalKit App at Play Store for your android gadgets.

You might also like