Professional Documents
Culture Documents
1 Matrices
2 Determinant
Matrices
Definition
A matrix is a rectangular array of numbers.
a11 a12 · · · a1n
a
21 a22 · · · a2n
A=
.. .. .. ..
. . . .
am1 an2 · · · amn
Most of this lecture focuses on real and complex matrices, that is, matrices
whose elements are real numbers or complex numbers, respectively.
i) The size of a matrix is defined by the number of its rows and columns.
A matrix with m rows and n columns is called an m × n matrix.
ii) Matrices with a single row are called row vectors, and those with a
single column are called column vectors.
iii) m = n ⇒ square matrix.
Dr. Bui Xuan Dieu Linear Algebra 3 / 30
Matrices
Operations on matrices
1) Matrix Adddition
2) Scalar Multiplication
3) Transposition
(aij )T
m×n = (aji )n×m .
Properties
k(A + B) = kA + kB
A+B =B+A
(k + h)A = kA + hA = A
A + 0 = 0 + A = A
1. 2. k(hA) = (kh)A
A + (−A) = (−A) + A = 0
1.A = A
(A + B) + C = A + (B + C )
0.A = 0
(AB)C = A(BC )
A(B + C ) = AB + AC )
AI = IA = A
(A + B)C = AC + BC
3. 4.
where I is the identity matrix
(AB)C = A(BC )
Note that AB =
6 BA k(BC ) = (kB)C = B(kC )
5. (AB)T = B T AT
Examples
Example
Find "the matrix# "
X such that:
# " #
1 2 3 0 1 −2
a) + 2X =
−3 4 2 1 5 7
1 −3 2 2 5 6 0 −6 6
b) 21 X − 3 −4 1 1 2 5 = −2 9 2
2 −5 3 1 3 2 −4 −8 6
Example
Compute An , where
" #
cos a − sin a a 1 0
a) A =
sin a cos a b) A = 0 a 1
0 0 a
Invertible Matrix
Definition
An n-by-n square matrix A is called invertible (also nonsingular or
nondegenerate) if there exists an n-by-n square matrix B such that
AB = BA = I
Example
!
1 2
Find the inverse matrix of A = .
3 4
1 Matrices
2 Determinant
Determinant
Determinant
The determinant of a matrix A is denoted det A, or |A|.
1) 1-square matrix det(a) = a,
!
a b
2) 2-square matrix det = ad − bc,
c d
3) 3-square matrix
a b c ✷ ✷ ✷ ✷ ✷ ✷ ✷ ✷ ✷
|A| = d e f = a ✷ e f − b d ✷ f + c d e ✷ .
g h i ✷ h i g ✷ i g h ✷
4) n-square matrix, n ≥ 3:
det(aij )n×n = a11 det M11 − a12 det A12 + · · · + (−1)n+1 a1n det M1n ,
Determinant
Properties
1) det I = 1.
2) det A = det AT ,i.e., if a property is true for columns, so is it for rows.
3) The Laplace formula:
n
X n
X
det A = (−1)i+j aij det Mij = (−1)i+j aij det Mij ,
j=1 i=1
Determinant
Properties
7) Adding a scalar multiple of one column to another column does not
change the value of the determinant.
8) If two columns or rows of a matrix are identical, then its determinant
is 0.
9) Interchanging any pair of columns or rows of a matrix multiplies its
determinant by −1.
10) The determinant is an n-linear function
λα1 + µβ1 a12 . . . a1n
.. .. .. =
. . . . . .
λα + µβ a
n2 . . . ann
n n
α1 a12 . . . a1n β1 a12 . . . a1n
Determinant
Example
1 0 2 −1
3 0 0 5
Find the determinant of the matrix A = .
2 1 4 −3
1 0 5 0
Vandermonde Matrix
The Vandermonde matrix of order n:
1 1 ... 1 1
a1 a2 . . . an−1 an
a12 a22 2
. . . an−1 an2
Vn (a1 , a2 , ..., an ) =
.. .. .. .. ..
. . . . .
a1n−1 a2n−1 n−1 n−1
. . . an−1 an
Lemma
Y
det Vn (a1 , a2 , ..., an ) = (aj − ai ).
16i<j6n
Lemma
Q
(xi − xj )(yi − yj )
i>j
det A = Q
(xi + xj )
i,j
Lemma
det(λI − A) = p(λ)
Lemma
∆k = ak ∆k−1 − bk−1 ck ∆k−2 , k ≥ 2, where ∆k = det(aij )ki,j=1 .
Denote by
a1 1 0 ... 0 0 0
−1 a 1 . . . 0 0 0
2
..
0 −1
a3 . 0 0 0
. . . . . .. ..
(a1 . . . an ) = ..
.. .. .. .. . .
..
0
0 0 . an−2 1 0
0 0 0 . . . −1 an−1 1
0 0 0 ... 0 −1 a
n
then
(a1 a2 . . . an ) 1
= a1 + 1
(a2 a3 . . . an ) a2 +
..
a3 + .+ 1
an−1 + a1
n
Block matrix
!
A11 A12
A= , where A11 and A22 are m-square and n-square
A21 A22
matrices, respectively.
Theorem
DA DA12 A11 A12
11
= |D|.|A| and = |A|.
A21 A22 A21 + BA11 A22 + BA12
1 Matrices
2 Determinant
Rank of a matrix
Definition
Let A be an m × n matrix and p an integer with 0 < p ≤ min{m, n}. A
p × p minor of A is the determinant of a p × p matrix obtained from A by
deleting m − p rows and n − p columns.
Definition
The rank of a matrix is the order of the largest non-zero minor, denoted by
r (A) or ρ(A).
Rank of a matrix
Theorem
Rank of a row echelon form is the number of nonzero rows.
Rank of a matrix
Example
1 3 5 −1
2 −1 −1 4
A=
5 1 −1 7
7 7 9 1
Rank of a matrix
Example
1 3 5 −1 1 3 5 −1
2 −1 −1 4 0 −7 −11 6
A= → ... → ⇒ r (A) = 4.
5 1 −1 7 0 0 −4 0
7 7 9 1 0 0 0 −4
Inverse of a matrix
Definition
Let A be an n-by-n square matrix. If there exists an n-by-n square matrix
B such that
AB = BA = In ,
then the matrix B is called the inverse of A, denoted by A−1 .
Inverse of a matrix
Properties
1) (A−1 )−1 = A.
2) (kA)−1 = k1 A−1 .
3) (AB)−1 = B −1 A−1 .
4) (AT )−1 = (A−1 )T .
Gauss-Jordan elimination
1) Adjoin the identity matrix to the right side of A,
2) Apply row operations to this matrix until the left side is reduced to I.
3) When A is reduced to I, then I becomes A−1 .
Examples
Example
Find the inverse of the matrices
3 −4 5 1 −a 0 0
a) B = 2 −3 1
0 1 −a 0
b) C =
3 −5 1 0 0 1 −a
0 0 0 1
Example
Prove that if A is a skew-symmetric (or antisymmetric or antimetric)
matrix of order n, where n is odd, then det(A) = 0.
Example
Let A = [aij ]n×n be a complex matrix such that aij = −aji . Prove that
det(A) is a real number.
Dr. Bui Xuan Dieu Linear Algebra 25 / 30
System of linear equations
1 Matrices
2 Determinant
Ax = b,
where A = [aij ]m×n , x = [x1 , x2 , . . . , xn ]T and b = [b1 , b2 , . . . , bm ]T .
Dr. Bui Xuan Dieu Linear Algebra 27 / 30
System of linear equations
Cramer’s rule
Ax = b, (2)
Kronecker-Capelli Theorem
a11 x1 + a12 x2 + · · · + a1n xn = b1
a x + a x + ··· + a x = b
21 1 22 2 2n n 2
(3)
· · · · · · · · · · · · · · · · · · · · · · · ·
am1 x1 + am2 x2 + · · · + amn xn = bm
Kronecker-Capelli Theorem
The system (3) has solution if and only if r A = r (A), where A = [A|b].
Corollary
1) If r A 6= r (A), then the system (3) has no solution.
2) If r A = r (A) = n, then the system (3) has a unique solution.
3) If r A = r (A) < n, then the system (3) has infinitely many
solutions.
Dr. Bui Xuan Dieu Linear Algebra 29 / 30
System of linear equations
Gaussian elimination
Example
x1 − 2x2 + x3
=4 ax1 + x2 + x3 + x4 = 1
a) 2x + x − x =0 c) x + ax + x + x = a
1 2 3 4
1 2 3 x + x + ax + x = a2
1 2 3 4
−x + x + x
= −1
1 2 3
3x1 − 5x2 − 7x3 =1
(2 − a)x1 + x2 + x3 = 0
b) x + 2x + 3x
1 2 3 =2 d) x + (2 − a)x + x = 0
1 2 3
−2x + x + 5x
= 2. x + x + (2 − a)x = 0
1 2 3 1 2 3