020 Matrix Algibra
020 Matrix Algibra
020 Matrix Algibra
to school
By: S. P. Vasekar,
M.E. (Electrical Power),
Retd. Superintending Engineer,
M.S.E.T.C.L.
Simultaneous Equations and it’s matrix form
0 0 a33
Lower triangular matrix
a11 0 0
If the element aij of a square matrix are zero for i < j,
a21 a22 0 then the matrix is lower triangular matrix
7 3 6 7 2
A = A t =
2 4 5 3 4
6 5
1 3 8 aij = aji
9 8 2 Note: For symmetric matrix At = A
1 2 2 1 -2 2 1 2 -2
1/3 2 1 -2 1/3 2 -1 -2 1/3 2 -1 -2
-2 2 -1 2 2 1 2 -2 1
If all the elements of A are real, then A = A*. If all elements are pure imaginary,
then A = -A*
Type of matrices
Conjugate of a matrix
If all the elements of A are real, then A = A*. If all elements are pure imaginary,
then A = -A*
Type of matrices
Hermitian and Skew-Hermitian matrix
If A = (A*)t for a square complex matrix, A is a Hermitian matrix in which all diagonal
elements are real. See above matrix H. Corresponding non-diagonal elements are
conjugates
1 -j -1+j 1 -j 1+j
1/2 j 1 1+j 1/2 j 1 -1+j
1+j -1+j 0 1+j -1+j 0
(A) (B)
Matrix operations using Matlab/Octave
Matrix multiplication using Matlab/Octave
Determinant
Consider following simultaneous equations
a11x1 + a11x2 = k1
a21x1 + a22x2 = k2
a11 a12
|A| = 2 1
= (a12a22 – a12a21)
a21 a22
Determinant – Higher order matrix
1) The determinant obtained by striking out the ith row and jth column is called the
minor of the element aij, Thus for
3) The sum of the products of the elements in any row (or column) and their cofactors
is equal to the determinant.
𝑞
Cij = ∑ 𝑎𝑖𝑘𝑏𝑘𝑗 𝑖=1,2 , …,𝑚; 𝑗=1,2 ,…,𝑛
𝑖=1
Cmn = AmkBkn
Matrix Multiplication Example
4x4 + 2x3 + 1x2 = 24
4x2 + 2x5 + 1x1 = 19
3x4 + 5x3 + 2x2 = 31
3x2 + 5x5 + 2x1 = 33
4 2 1 4 2 24 19
X =
3 5 2 2x3 3 5 31 33 2x2
2 1 3x2
Matrix Operations
1) AB ≠ BA
2) A(B + C) = AB + AC
7) If C = AB Then Ct = BtAt
Inverse of a matrix
Division does not exists in matrix algebra except division of matrix by a scalar where
each element of the matrix is divided by the scalar. However for the given set of
equations -
X = BY = A-1Y
If there is unique solution to equations then matrix B exists and is inverse of A and
is written as A-1
B = A-1 =
Inverse of a matrix
AX = Y
To solve for X from above matrix equation. Both sides of equations are pre-multiplies
by A-1
A-1AX = A-1Y
UX = A-1Y
X = A-1Y
Some other important properties of inverse operation are
(AB)-1 = B-1A-1
(At)-1 = (A-1)t
Partitioning of Matrix
A large matrix can be subdivided into several sub-matrices of smaller dimensions. It
can be used to show specific structure of a matrix and for simplify the calculations
A1 A2
A =
A3 A4
If diagonal sub-matrices A1 and A4 are square, the sub division is called principal partitioning
Partitioning of Matrix
For mathematical operations, each sub-matrices is considered as elements in
partitioned matrices. For addition and subtraction is performed as shown below
A1 A2 B1 B2 A1± B1 A2± B2
A3 ± B = A3± B3 A4± B4
A4 3 B4
Partitioning of Matrix
After partitioning multiplication is performed as below. Note that sub-matrices are
conformable for multiplication.
A1 A2 B1 B2 C1 C2
A3 B3 = C3
A4 B4 C4
C1 = A1B1 + A2B3
Each sub-matrix is considered as an
C2 = A1B2 + A2B4 element in the partitioned matrix
C3 = A3B1 + A4B3
C4 = A3B2 + A4B4
Partitioning of Matrix
Inverse of a partitioned matrix is calculated as below
A1 A2 B1 B2
A= A A-1 = B
3 A4 3 B4
5 -3 2
A= 19 -6 -5
-2 3 -5
Here 4C1 + 8C2 + 5C3 = 0 hence columns are dependent / not independent