Vectors and Matrices
Vectors and Matrices
Vectors and Matrices
-u = (-1)u
and
u-v = u +(-v)
Matrices
Matrix, A, means a rectangular array of numbers
A=
The m horizontal n-tuples are called the rows of A, and the n vertical m-tuples, its
columns. Note that the element aij, called the ij-entry, appear in the ith row and the jth
column.
In algorithmic (study of algorithms), we like to write a matrix A as A(aij).
Column Vector
A matrix with only one column is called a column vector
Zero Matrix
A matrix whose entries are all zero is called a zero matrix and denoted by 0.
Matrix Addition
Let A and B be two matrices of the same size. The sum of A and B is written as A + B
and obtained by adding corresponding elements from A and B.
A+B =
Scalar Multiplication
The product of a scalar k and a matrix A, written kA or Ak, is the matrix obtained by
multiplying each element of A by k.
kA = k
Here, we define
of the matrix A.
-A = (-1)A
and
(A + B) + A + (B + C)
A+B=B+A
A+0=0+A=A
A + (-A) = (-A) + A = 0
k(A + B) = kA + kB
(k + l)A = kA + lA
(kl)A = k(lA)
lA = A
Matrix Multiplication
Suppose A and B are two matrices such that the number of columns of A is equal to
number of rows of B. Say matrix A is an mp matrix and matrix B is a pn matrix. Then
the product of A and B is the mn matrix whose ij-entry is obtained by multiplying the
elements of the ith row of a by the corresponding elements of the jth column of B and then
adding them.
It is important to note that if the number of columns of A is not equal to the number of
rows of B, then the product AB is not defined.
(AB)C = A(BC)
A(B+C) = AB + AC
(B+C)A = BA + CA
k(AB) = (kB)B = A(kB)
Transpose
The transpose of a matrix A is obtained by writing the row of A, in order, as columns and
denoted by AT . In other words, if A - (Aij), then B = (bij) is the transpose of A if bij - aji
for all i and j.
It is not hard to see that if A is an mn matrix, then AT is an nm matrix.
For example if A =
, then AT =
Square Matrix
If the number of rows and the number of columns of any matrix are the same, we say
matrix is a square matrix, i.e., a square matrix has same number of rows and columns. A
square matrix with n rows and n columns is said to be order n and is called an n-square
matrix.
The main diagonal, or simply diagonal, of an n-square matrix A = (aij) consists of the
elements a11, a22, a33, . . . , amn.
Unit Matrix
The n-square matrix with 1's along the main diagonal and 0's elsewhere is called the
unit matrix and usually denoted by I.
Why unit matrix?
The unit matrix plays the same role in matrix multiplication as the number 1 does in
the usual multiplication of numbers.
AI = IA = A
for any square matrix A.
So what dude?
We can form powers of a square matrix X by defining
X2 = XX
X3 = X2X, XXX, . . .
X0 = I
Big deal!
We can also form polynomial in X. That is, for any polynomial
Invertible Matrices
A square matrix A is said to be invertible if there exists a matrix B with the property AB =
BA = I (Identity Matrix). Such a matrix B is unique and it is called the matrix of A and is
denoted by A-1. Here, the important observation is that B is the inverse of A if and only if
A is the matrix of B. It is known that AB = I if and only if BA = I; hence it is necessary to
test only one product to determine whether two given matrices are inverse.
Determinants
To each n-square matrix A = (aij), we assign a specific number called the determinants of A
and denoted as
|A|
del(A)
= a11a22 - a12a21
det(A) =
where the sum is over all possible permutations = (j1, j2 , . . . , jn ) of (1, 2, . . . , n).
Here sgn( ) equals plus or minus one according as an even or an odd number of
interchanges are required to change so that its numbers are in the usual order.
In simple words the lemma say that the determinant function is multiplicative.
An important point in the context of invertible matrices and determinant is