Lecture 1 (Linear Algebra)
Lecture 1 (Linear Algebra)
then
a11 + b11 a12 + b12
A+B = .
a21 + b21 a22 + b22
In general, if
C = A+B
then
cij = aij + bij .
For conformable matrices A and B, the operations of matrix addition
and subtraction have the following properties:
A + B = B + A.
A + (B + C ) = (A + B ) + C .
P3 Cancellation property.
A + B = A + C ) B = C.
P4
A B = A + ( B ).
For example,
then
a11 b11 a12 b12
A B= .
a21 b21 a22 b22
D= B A
(2x 3 )(2x 2 )
is not de…ned because the column dimension of B (3) is not the same
as the row dimension of A (2).
and 2 3
b11
6 b21 7
6 7
B= b =6 6 . 7.
7
(mx 1 ) 4 5
.
bm1
Since the column dimension of a0 = the row dimension of b, a0 and b
are conformable for matrix multiplication. The product
c = a0 b
(1x 1 ) (1xm )(mx 1 )
c = a0 b
(1x 1 ) (1xm )(mx 1 )
2 3
b11
6 b21 7
6 7
= a11 a12 . . a1m 6 . 7
6 7
4 . 5
bm1
= (a11 b11 + a12 b21 + ... + a1m bm1 ). (1.2)
C = A B . (1.4)
(mxq ) (mxn )(nxq )
Then
2 3 2 3
c11 c12 . . c1q a10 b1 a10 b2 .. a10 bq
6 c21 c22 . . c2q 7 6 a20 b1 a20 b2 .. a20 bq 7
6 7 6 7
C =6 6 . . . . . 7=6
7 6 . . .. . 7 7.
(mxq ) 4 5 4
. . . . . . . .. . 5
cm1 cm2 . . cmq 0 b
am a 0 b .. am0 b
1 m 2 q
(1.5)
where ai0 denotes the ith row of A and bj denotes the jth column of
B.That is,
cij = ai0 bj . (1.6)
that C inherits its row dimension from A (the lead matrix) and
its column dimension from B (the lag matrix).
Example (1.1)
Let 2 3
2 3 1 5
7 8 2 5 6 8 3 7
A =4 4 1 4 3 5 and B = 6 4 9
7.
(3x 4 ) (4x 2 ) 2 5
10 2 8 9
10 6
Notice that since the column dimension of A equals the row dimension of
B, the product AB is de…ned and is given by
C = A B
(3x 2 ) (3x 4 )(4x 2 )
2 3 2 0 0 3
c11 c12 a1 b 1 a1 b 2
4 c21 c22 5 = 4 a0 b1 a0 b2 5
2 2
0 0
c31 c32 a3 b 1 a3 b 2
2 3
7x1 + 8x8 + 2x9 + 5.10 7.5 8.3 + 2.2 + 5.6
= 4 4.1 + 1.8 + 4.9 + 3.10 4.5 1.3 + 4.2 + 3.6 5
10.1 + 2.8 8.9 + 9.10 10.5 2.3 8.2 + 9.6
c = a0 b
(1x 1 ) (1xm )(mx 1 )
2 3
b11
6 b21 7
6 7
= a11 a12 . . a1m 6 . 7
6 7
4 . 5
bm1
= (a1 b1 + a2 b2 + ... + am bm ) (1.7)
AB 6= BA.
a11 a12
A=
a21 a22
then
ca11 ca12
cA = .
ca21 ca22
AB = 0 ; A = 0 or B = 0.
A2 = 0 ; A = 0.