Matrices: 2.1 Operations With Matrices 2.2 Properties of Matrix Operations
Matrices: 2.1 Operations With Matrices 2.2 Properties of Matrix Operations
Matrices: 2.1 Operations With Matrices 2.2 Properties of Matrix Operations
2.1
2.1 Operations with Matrices
Matrix:
a11 a12 a13 a1n
a a a a
21 22 23 2n
Square matrix: m = n
2.2
Equal matrices: two matrices are equal if they have the same size
(m × n) and entries corresponding to the same position are equal
If A B, then a 1, b 2, c 3, and d 4
2.3
Matrix addition:
If A [aij ]m n , B [bij ]m n ,
then A B [aij ]mn [bij ]mn [aij bij ]mn [cij ]mn C
Ex 2: Matrix addition
1 2 1 3 1 1 2 3 0 5
0 1 1 2 0 1 1 2 1 3
1 1 1 1 0
3 3 3 3 0
2 2 2 2 0
2.4
Scalar multiplication:
If A [aij ]m n and c is a constant scalar,
then cA [caij ]m n
Matrix subtraction:
A B A (1) B
2.6
Matrix multiplication:
If A [aij ]m n and B [bij ]n p ,
then AB [aij ]m n [bij ]n p [cij ]m p C ,
If equal, A and B are multipliable
size of C=AB is m × p
n
where cij aik bkj ai1b1 j ai 2b2 j ainbnj
k 1
2.9
2.2 Properties of Matrix Operations
Three basic matrix operators, introduced in Sec. 2.1:
(1) matrix addition
(2) scalar multiplication
(3) matrix multiplication
0 0 0
0 0 0
Zero matrix: 0mn
0 0 0 mn
1 0 0
0 1 0
Identity matrix of order n: In
0 0 1 n n
2.10
Properties of matrix addition and scalar multiplication:
If A, B, C M mn , and c, d are scalars,
then (1) A+B = B+A (Commutative property of matrix addition)
Notes:
All above properties are very similar to the counterpart
properties for real numbers
2.11
Properties of zero matrices:
If A M mn , and c is a scalar,
then (1) A 0mn A
※ So, 0m×n is also called the additive identity for the set of all m×n matrices
(2) A ( A) 0mn
※ Thus , –A is called the additive inverse of A
Notes:
All above properties are very similar to the counterpart
properties for the real number 0
2.12
Properties of matrix multiplication:
(1) A(BC) = (AB)C (Associative property of matrix multiplication)
(Distributive property of LHS matrix multiplication
(2) A(B+C) = AB + AC over matrix addition)
(3) (A+B)C = AC + BC (Distributive property of RHS matrix multiplication
over matrix addition)
(4) c(AB) = (cA)B = A(cB) (Associative property of scalar and matrix
multiplication)
※ For real numbers, the properties (2) and (3) are the same since the order for the
multiplication of real numbers is irrelevant
※ The real-number multiplication can satisfy above properties and there is a
commutative property for the real-number multiplication, i.e., cd = dc
Properties of the identity matrix:
If A M mn , then (1) AI n A
(2) I m A A
※ The role of the real number 1 is similar to the identity matrix. However, 1 is unique
in real numbers and there could be many identity matrices with different sizes 2.13
Ex 3: Matrix Multiplication is Associative
Calculate (AB)C and A(BC) for
1 0
1 2 1 0 2
A , B , and C 3 1 .
2 1 3 2 1 2 4
Sol:
1 0
1 2 1 0 2
( AB)C 3 1
2 1 3 2 1
2 4
1 0
5 4 0 17 4
3 1
1 2 3
13 14
2 4
2.14
1 0
1 2 1 0 2
A( BC )
1 3 2 1
3 1
2 2 4
1 2 3 8 17 4
2 1 7 2 13 14
2.15
Equipped with the four properties of matrix multiplication,
we can prove a statement on Slide 1.35: if a homogeneous
system has any nontrivial solution, this system must have
infinitely many nontrivial solutions
Finally, since t can be any real number, it can be concluded that there are
infinitely many solutions for this homogeneous system
2.16
Definition of Ak : repeated multiplication of a square matrix:
A1 A, A2 AA, , Ak AA A
k matrices of A
2.20
Ex 9: Verify that (AB)T and BTAT are equal
2 1 2 3 1
A 1 0 3 B 2 1
0 2 1 3 0
Sol:
T
2 1 2 3 1
T
2 1
2 6 1
( AB) 1 0
T
3 2 1 6 1
0 2 1 1 2
1
3 0
1 2
2 1 0
3 2 3 2 6 1
B A
T T
1 0 2
1 1 0 2 3 1 1 2
1
2.21
Symmetric matrix:
A square matrix A is symmetric if A = AT
Skew-symmetric matrix (反對稱矩陣):
A square matrix A is skew-symmetric if AT = –A
Ex:
1 2 3
If A a 4 5 is symmetric, find a, b, c?
b c 6
Sol:
1 2 3 1 a b
T
A a 4 5 AT 2 4 c
A A
a 2, b 3, c 5
b c 6 3 5 6
2.22
Ex:
0 1 2
If A a 0 3 is a skew-symmetric, find a, b, c?
b c 0
Sol:
0 1 2 0 a b
A a 0 3 AT 1 0 c
b c 0
2 3 0
A AT a 1, b 2, c 3
Note: AAT must be symmetric ※ The matrix A could be with any size,
i.e., it is not necessary for A to be a
Pf: ( AAT )T ( AT )T AT AAT square matrix.
※ In fact, AAT must be a square matrix.
AA is symmetric
T
2.23
Before finishing this section, two properties will be discussed,
which are held for real numbers, but not for matrices: the first is
the commutative property of matrix multiplication and the second
is the cancellation law
Real number:
ab = ba (Commutative property of real-number multiplication)
Matrix:
AB BA
m n n p n p m n
2 1 1 3 0 7
BA
0 2 2 1 4 2
2.25
Notes:
2.26
Real number:
ac bc and c 0
a b (Cancellation law for real numbers)
Matrix:
AC BC and C 0 (C is not a zero matrix)
(1) If C is invertible, then A = B
(2) If C is not invertible, then A B (Cancellation law is not
necessary to be valid)
2.27
Ex 5: An example in which cancellation is not valid
Show that AC=BC
1 3 2 4 1 2
A , B , C
0 1 2 3 1 2
Sol:
1 3 1 2 2 4
AC
0 1 1
2 1 2
2 4 1 2 2 4
BC
2
3 1 2 1 2
So, although AC BC , A B
2.28
Keywords in Section 2.2:
zero matrix
identity matrix
commutative property
associative property
distributive property
cancellation law
transpose matrix
symmetric matrix
skew-symmetric matrix
2.29