Matrix Algebra: Addis Ababa University Computational Data Science Program
Matrix Algebra: Addis Ababa University Computational Data Science Program
2021
Outline
1. Scalars, vectors and matrices
2. Operation on Matrices (Addition, (Scalar) multiplication,
power, Transpose)
3. Special Types of Matrices (square, diagonal, symmetric,
triangular, identity )
4. Determinants and Inverse of Matrices
5. Some Application Areas of Matrix Algebra
6. Eigenvectors & Eigenvalues
Scalars, vectors and matrices
• Scalar: Variable described by a single number– e.g. density, temperature,
time, mass, etc . They possess only magnitude.
Matrices
• A matrix is defined by the number of Rows and the
number of Columns.
• An mxn matrix has m rows and n columns.
A = 4x3 matrix
21 2 53
5 34 12
6 33 55
74 27 3
Two vectors:
det(A) =
[ ]
a
c
b
d
= ad - bc
x d1
a a 22 a 2 n d
2 21 2
xn a n1 a n 2 a nn d n
where
focus _ on _ 1
i j
:
Ad joint of A: the transposed cofactor matrix
C11 C 21 C m1
C12 C 22 Cm2
C adj A
nxn
C C2n C nn
1n
Calculating Ad joint is hard!
Is there any easier way to solve for x or specifically
one of x, that is, xi ?
Cramer's Rule for each of x, say, x1 :
“The easy way”
Ai
xi
A
The numerator represents a determinant of A in which the ith column is replaced by the vector
of constants, i.e., no need to invert A!
Solving for x1 using Cramer’s rule
X1 = |A1|/|A|
Repeat for X2 by substituting the constant vector for the 2nd col. And
Some Application Areas
Simultaneous Equations
…
Example: linear network:
inner product point of view
ANY
QUESTIONS COMMENTS