Professional Documents
Culture Documents
ADMATH Module 2
ADMATH Module 2
INTRODUCTION
For clarity and simplicity of notation, we use matrices and vectors in our
numbers arranged in “m” rows and “n” columns. The term “matrix” was
in 1850. The size of a matrix is determined by the number of rows and columns.
The expression "m x n" is the dimension or order of the matrix. If the matrix has
only one column, it is called a column matrix and if it has only one row, it is
called a row matrix. The following is a 3 x 3 matrix or square matrix (i.e. 3 rows
and 3 columns).
4 −7 1
𝐴=[ 6 2 9]
−3 −8 3
The first non-zero entry in a row of a matrix is known as the leading entry
or the leading element. In the matrix above, 4 is the leading entry. The diagonal
from the upper left to the lower right is called the principal diagonal or main
diagonal and all entries in the said diagonal are called as diagonal entries. If all
entries in a matrix above the main diagonal are zero, then it is said to be a lower
triangular matrix, and if all the entries below the main diagonal are zero, the
Operations
1. Sum of matrices
If A and B are two matrices of the same order, the sum of A and B,
denoted by A + B, is the matrix for which each of its elements is the sum of
Example: Find A + B.
−1 2 7 8 3 1
𝐴=[ ] 𝐵=[ ]
1 4 −6 −8 2 −3
Solution:
−1 + 8 2 + 3 7 + 1
𝐴+𝐵 =[ ]
1 − 8 4 + 2 −6 − 3
7 5 8
𝐵=[ ]
−7 6 −9
2. Difference of matrices
If A and B are matrices having the same order, then the difference of A
Example: Find A – B.
−1 1 8 −8
𝐴=[ 2 4] 𝐵 = [3 2]
7 −6 1 −3
Solution:
−1 1 −8 8
𝐴−𝐵 =[ 2 4 ] + [−3 −2]
7 −6 −1 3
−9 9
𝐴 − 𝐵 = [−1 2 ]
6 −3
3. Product of matrices
x n, then the product of A and B, denoted by AB, is the n x n matrix for which
the element in the ith row and the jth column is the sum of the products
−1 1
8 3 1
𝐷=[ 2 4] 𝐶=[ ]
−8 2 −3
7 −6
−16 −1 −4
𝐷𝐶 = [−16 14 −10]
104 9 25
4. Transpose matrix
columns and all columns become rows without changing their relative order
of entries in the rows and columns, the result is a transpose matrix, AT.
Example
−1 1
−1 2 7 𝑇
𝐴=[ ] 𝐴 =[ 2 4]
1 4 −6
7 −6
5. Determinant
a. If the rows of one determinant are the same as the columns of another,
given determinant.
c. If two columns (or rows) of a determinant are identical, the value of the
determinant is zero.
bij, then 0 is the sum of the determinants D' and D" in which all the
columns of D, D' and D: are the same except the jth; furthermore, the
jth column of D' is aij, i = 1, 2, 3,..., n, and the jth column of D" is bij. I
in the determinant of the matrix and thus, is defined only for square matrices.
Sign conventions:
+ − +
+ −
[ ] [− + −]
− +
+ − +
8 2 9
𝐴 = [3 1 8]
5 2 7
8 2
𝐴 = +[ ]
3 1
8 2
det 𝐴 = [ ] = (8)(1) − (2)(3) = 2
3 1
Thus, the cofactor of 7 is 2.
7. Cofactor matrix
8 2
𝐴=[ ]
3 1
1 3
Cofactor matrix of 𝐴 = [ ]
2 8
8. Inverse Matrix
8 2 9
𝐴 = [3 1 8]
5 2 7
−9 19 1
Cofactor Matrix 𝐴 = [ 4 11 −6]
7 −37 2
−9 4 7
(Cofactor Matrix 𝐴)𝑇 = [ 19 11 −37]
1 −6 2
8 2 9
det 𝐴 = [3 1 8] = −25
5 2 7
Thus,
1 −9 4 7
𝐴−1 = − ⌈ 19 11 −37⌉
25
1 −6 2
VECTORS
INTRODUCTION
If a matrix has only one row or only one column it is called a vector. A
Example:
𝐴 = [1 0 2]
Example:
1
𝐴 = [0]
2
Operations of Vectors
1. Sum of vectors
The sum of two vectors (say, a and b) is the vector of sums of corresponding
elements.
𝑎1 𝑏1
𝑎 = [ 𝑎2 ] and 𝑏 = [ 𝑏2 ]
𝑎𝑛 𝑏𝑛
𝑎1 + 𝑏1
𝑎 + 𝑏 = [ 𝑎2 + 𝑏2 ]
𝑎𝑛 + 𝑏𝑛
corresponding elements.
2. Multiplication of vector
results, known as the vector inner product and as the vector outer product.
Assume that a and b are vectors, each with the same number
𝑎′ 𝑏 = 𝑏 ′ 𝑎 = 𝑠
where
and
illustrated below.
1 4
𝑎 = [2] and 𝑏 = [5]
3 6
Then,
𝑎′ 𝑏 = 1 × 4 + 2 × 5 + 3 × 6 = 4 + 10 + 18 = 32
and b is C.
𝑎𝑏′ = 𝐶
Where
C is a rectangular m x n matrix
𝑥
𝑣
𝑎 = [ ] 𝑏 = [𝑦]
𝑤
𝑧
Then,
vectors.
Rank
the row rank of A, and the maximum number of linearly independent columns
𝑟𝑜𝑤 𝑟𝑎𝑛𝑘 𝑜𝑓 𝐴 ≤ 𝑚
𝑐𝑜𝑙𝑢𝑚𝑛 𝑟𝑎𝑛𝑘 𝑜𝑓 𝐴 ≤ 𝑛
What is not obvious, however, is that for any matrix A, the row rank of A
between row rank and column rank; the common value is simply called the rank
𝑟𝑎𝑛𝑘(𝐴𝑚𝑥𝑛 ) ≤ min(𝑚, 𝑛)
where min(𝑚, 𝑛) denotes the smaller of the two numbers m and n (or their
common value if m = n). For example, the rank of a 3 x 5 matrix can no more
1 −2 0 4
3 1 1 0
𝐴=[ ]
−1 −5 −1 8
3 8 2 −12
𝑟2 = (3,1,1,0)
𝑟4 = (3,8,2, −12)
The fact that the vectors r 3 and r 4 can be written as linear combinations
of the other two (r1 and r2, which are independent) means that the maximum
number of independent rows is 2. Thus, the row rank – and therefore the rank –
of this matrix is 2.
The first equation here implies that if −2 times that first row is added to
the third and then the second row is added to the (new) third row, the third row
will be become 0, a row of zeros. The second equation above says that similar
operations performed on the fourth row can produce a row of zeros there also. If
after these operations are completed, −3 times the first row is then added to the
second row (to clear out all entries below the entry a1 = 1 in the first column),
these elementary row operations reduce the original matrix A to the echelon form
1 −2 0 4
0 7 1 −12
𝐴𝑟𝑟𝑒𝑓 =[ ]
0 0 0 0
0 0 0 0
The fact that there are exactly 2 nonzero rows in the reduced form of the
compute the rank of a matrix, perform elementary row operations until the matrix
is left in echelon form; the number of nonzero rows remaining in the reduced matrix
is the rank.