Chapter 2 Second Part
Chapter 2 Second Part
Z. ABBAS
LAU
February 1, 2024
3 LU factorization
4 Trace of a matrix
Definition
A square matrix A of order n is said to be invertible/non-singular if there is
a matrix B of order n such that AB = BA = In .
a b d −b
1 Calculate the product AB where A = and B =
c d −c a
2 What do you deduce?.
a b d −b ad − bc 0
1 AB = =
c d −c a 0 ad − bc
2 From part 1, we have AB = (ad − bc)In . If (ad − bc) ̸= 0, then
1 1 1
A( (ad−bc) B) = (ad−bc) AB = (ad−bc) (ad − bc)In = In . Thus, if
(ad-bc)̸= 0 , then A is invertible and
−1
a b 1 d −b
= (ad−bc)
c d −c a
Strategy
a b
If A = is an 2 × 2 matrix
c d
Strategy
a b
If A = is an 2 × 2 matrix such that ad − bc ̸= 0,
c d
Strategy
a b
If A = is an 2 × 2 matrix such that ad − bc ̸= 0,then A is
c d
invertible and its inverse is given by
−1 1 d −b
A = .
ad − bc −c a
=⇒ A−1 =
1 2
b) B = .
2 4
1 2
b) B = . ad − bc = 0
2 4
1 2
b) B = . ad − bc = 0 =⇒ B is a singular matrix.
2 4
1 1
Compute A−2 in two different ways for A = .
2 4
Solution:
1 1
Compute A−2
in two different ways for A = .
2 4
9
− 54
−2 2 −1
Solution: A = (A ) = (A ) = −1 2 2
3 .
− 52 4
Solution:
method 2: Compute −1
AB then findits inverse which is (AB) .
8 −5 −2
Hence (AB)−1 = −8 4 3
5 −2 − 37
3 LU factorization
4 Trace of a matrix
Solution
X = A−1 (B T − 2B)
so
7 −3 −3 1 1 2 1 2 3 !
X = −1 1 0 2 3 4 − 2 1 3 3 = · · ·
−1 0 1 3 3 3 2 4 3
definition
We call elementary matrix each of the following matrices:
1 In (Rt ↔ Rs ).
2 In (Rt → Rt + αRs ).
3 In (Rt → αRt ), where α ̸= 0.
Let 1 ≤ i ≤ n. Then:
1 if i=t:
Ri (In (Rt ↔ Rs )A) = Rt (In (Rt ↔ Rs )A) = Rt (In (Rt ↔ Rs ))A =
Rs (In )A = Rs (A).
2 if i=s:
Ri (A(Rt ↔ Rs )) = Rs (A(Rt ↔ Rs )) = Rs (In (Rt ↔ Rs )A) =
Rs (In (Rt ↔ Rs ))A = Rt (In )A = Rt (A).
3 if i ̸= s and i ̸= t:
Ri (A(Rt ↔ Rs )) = Ri (In (Rt ↔ Rs )A) = Ri (In (Rt ↔ Rs ))A =
Ri (In )A = Ri (A).
Hence In (Rt ↔ Rs )A = A(Rt ↔ Rs )
The inverse of
1 In (Rt ↔ Rs ) is In (Rt ↔ Rs ) .
2 for s ̸= t, In (Rt → Rt + αRs ) is In (Rt → Rt − αRs ).
3 In (Rt → αRt ), where α ̸= 0 is In (Rt → α−1 Rt ) .
Proof: By induction on n.
Theorem
Let A be a (n × n) matrix over K. Then A is invertible if and only if A can
be changed to In by a finite sequence of elementary row operations.
Proof: The N.C is the previous theorem. Here is the sufficient condition.
En En−1 · · · E1 A = In
Theorem
A (n × n) matrix A is invertible iff it’s row equivelant to In .
[A|I3 ] =
BA =
Thus, B = A−1 .
Thus, B = A−1 .
1 −1 0
b) A = 1 0 −1.
−6 2 3
Solution: Homework.
3 LU factorization
4 Trace of a matrix
Note that at this point we have shown that the following statements are
equivalent for an (n × n) matrix A:
1 A is nonsingular.
2 Ax = 0 has a unique solution-the trivial solution.
3 A is row (column) equivalent to In ( the r.r.e.f of A is In ).
4 The linear system Ax = b has a unique solution for every (n × n)
matrix b.
5 A is a product of elementary matrices.
Solution:
Solution:System
(S)
can be written as AX = b with
1 4 3
A = −1 −2 0,
2 2 3
Solution:System
(S)
can be written as AX = b with
1 4 3 x1
A = −1 −2 0,X = x2
2 2 3 x3
Solution:System
(S)
can be written as AX
= b with
1 4 3 x1 12
A = −1 −2 0,X = x2 and b = −12.
2 2 3 x3 8
X =
A = LU,
A = LU,
Example
Find the LU factorization of the following matrices:
1 2 4
1- A = 3 8 14.
2 6 13
3 1 6
2- B = −6 0 −16.
0 8 −17