Lecture3 Matrices
Lecture3 Matrices
2.2 Matrices
3x + y = 1
x − 3y = 7
2
a1
a2
a=
..
an
4
If the number of rows and columns are A square n × n matrix with non-diagonal
equal, m = n, then A is a n × n square coefficients set to zero.
matrix.
1 2 3 1 0 0
A = 4 5 6 A = 0 5 0
7 8 9 0 0 9
5
A square n × n matrix with ones along the The transpose of a m × n matrix A is the
diagonal and zero elsewhere. n × m matrix AT
Swap the rows and columns
1 0 0
I = 0 1 0 1 2 3
0 0 1 A = 4 5 6
7 8 9
6
Given a matrix
1 2
A = −1 0
3 1
determine AB.
10
11
Example (b)
3 0 1 1 2 −1
Determine −1 2 1 2 0 2
(a) 2 1 −3 1 −1 3
[ ] 5
1 2 3 1
7
12
Example Exercise
Given matrices
[ ] [ ]
1 0 2 1
A= and B=
2 3 0 1
Confirm that
[ ] [ ]
2 1 4 3
AB = and BA =
4 5 2 3
Hence, AB ̸= BA.