MA-106 Linear Algebra: Ananthnarayan H
MA-106 Linear Algebra: Ananthnarayan H
Ananthnarayan H.
Department of Mathematics
Indian Institute of Technology Bombay
Powai, Mumbai - 76
Ananthnarayan H. D2 - Lecture 3
Recall
Ananthnarayan H. D2 - Lecture 3
An Example
2
1 3 −3 −1 1
Let A = 1 2 0 −2 and x = 1 .
1 0 −2 0
2
1
A = 1 3 −3 −1 , A = 1 2 0 −2 A3 =?.
2
0
Then A1 · x =?, A2 · x = 0, A3 · x = 0, hence Ax = 0 .
0
Question: What can you say about the solutions of Ax = 0?
Observe: No. of rows of Ax = No. of rows of A,
and No. of columns of Ax = No. of columns of x.
Ananthnarayan H. D2 - Lecture 3
Operations on Matrices: Matrix Multiplication
Ananthnarayan H. D2 - Lecture 3
Operations on Matrices: Matrix Multiplication
Ananthnarayan H. D2 - Lecture 3
Properties of Matrix Multiplication
If A is m × n and B is n × r.
a) (AB)ij = Ai · Bj ., i.e., (ith row of A) · (jth column of B)
b) jth column of AB =A · (jth column of B)
c) ith row of AB =(ith row of A) · B
Properties of Matrix Multiplication:
(associativity) (AB)C = A(BC)
(distributivity) A(B + C) = AB + AC
(B + C)D = BD + CD
(non-commutativity) AB 6= BA, in general.
Find examples.
Ananthnarayan H. D2 - Lecture 3
Matrix Multiplication: Examples
2 1 1
1 2 3
Examples: A = 4 −6 0 , B =
2 2 4
−2 7 2
1 0 0 1 0 0
E = −2 1 0 , I = 0 1 0 (Identity Matrix).
0 0 1 0 0 1
2 1 1 0 1 1
Then EA = 0 −8 −2 , AE = 16 −6 0
−2 7 2 − 16 7 2
IA = A = AI, AB does not make sense. Find BA.
Ananthnarayan H. D2 - Lecture 3
Elementary Matrices: Row Operations
1 0 0 u u
Example: Ex := −2 1 0 v = v − 2u .
0 0 1 w w
If A = A1 A2 A3 , then EA = EA1 EA2 EA3 .
Thus, EA has the same effect on A as the row operation
R2 7→ R2 + (−2)R1 on the matrix A.
Note: E is obtained from the identity matrix I by the row
operation R2 7→ R2 + (−2)R1 .
Such a matrix (diagonal entries 1 and atmost one off-diagonal
entry non-zero) is called an elementary matrix.
Notation: E := E21 (−2). Similarly define Eij (λ).
Ananthnarayan H. D2 - Lecture 3
Permutation Matrices: Row Interchange
0 1 0 u v
P12 x = 1 0 0 v = u
0 0 1 w w
If A = A1 A2 A3 , then P12 A = P12 A1 P12 A2 P12 A3 .
Thus P12 A has the same effect on A as the interchange of the
first and second rows of A.
Note: We get P12 from the identity matrix I by interchanging
first and second rows.
P12 is called a permutation (or row exchange) matrix.
Remark: Row operations correspond to multiplication by
elementary matrices Eij (λ) or permutation matrices Pij on
the left.
Ananthnarayan H. D2 - Lecture 3
Elementary and Permutation Matrices
For any n × n matrix A, observe that the row operations
R2 7→ R2 − 2R1 , R2 7→ R2 + 2R1 leave the matrix unchanged.
In matrix terms, E21 (2)E21 (−2)A = IA = A since
1 0 0 1 0 0 1 0 0
E21 (−2) E21 (2) = −2 1 0 2 1 0 = 0 1 0 .
0 0 1 0 0 1 0 0 1
2 1 1 u 5
Consider 4 −6 0 v = −2 (Ax = b)
−2 7 2 w 9
Ananthnarayan H. D2 - Lecture 3
Elimination: Elementary Matrices
Step 2 Eliminate v by R3 7→ R3 + R2 ,
i.e., multiply both sides by E32 (1) to get
U x = c,
2 1 1
where U = E32 (1)E31 (1)E21 (−2)A = 0 −8 −2 and
0 0 1
5
c = E32 (1)E31 (1)E21 (−2)b = −12 .
2
Elimination changed A to an upper triangular matrix
and reduced the problem to solving U x = c.
Observe: The pivots of the system Ax = b are the diagonal
entries of U .
Ananthnarayan H. D2 - Lecture 3
Triangular Factorization
Thus Ax = b is equivalent to Ux = c .
where
E32 (1) E31 (1) E21 (−2) A = U
Multiply both sides by E32 (−1) on the left:
E31 (1) E21 (−2) A = E32 (−1)U
Multiply first by E31 (−1) and then E21 (2) on the left:
Ananthnarayan H. D2 - Lecture 3
Triangular Factorization
Ananthnarayan H. D2 - Lecture 3
LU Decomposition
Ananthnarayan H. D2 - Lecture 3
LU Decomposition: with Row Exchanges
0 2
Example: A = . A can not be factored as LU .
3 4
(Check this!) The 1st step in the Gaussian elimination of A is
a row exchange.
0 1 0 2 3 4
P12 A = =
1 0 3 4 0 2
Ananthnarayan H. D2 - Lecture 3