Matrices Notes
Matrices Notes
3) s
Matrices
Prerequisites: Adding, subtracting, multiplying and dividing numbers;
elementary row operations.
Basic Definitions
Definition:
Definition:
a11 a1 a1 … a1n
a
2
a
3
…
def
a21 2n
A ( aij ) a31 … a3n
22 23
a32 a33
mn ⋯ %
⋯ ⋯
a am
m am am
1 n
The main diagonal (aka leading diagonal) of any matrix is the set
of entries aij where i = j.
Definition:
a 11
a12 … a1(n 1) a1n
A column matrix is a m 1 matrix and is
written as,
a1
1
a
⋯2
a (m 1)1
am
1
Definition:
a11 a1 … a1m
a
… a2m
2
a21
22
⋯ %
⋯
am 1 am amm
2
Definition:
1 0 … 0
def
0 1 … 0
Im
⋯ ⋯ %
0 1
0
Definition:
0 0 0 … 0
0 0 0 … 0
def
Om 0 0 0 … 0
⋯ ⋯ %
n ⋯
0 0 0 0
Definition:
def
(a b )ij aij bi
j
def
(a b )ij aij bi
j
50 13 3 1
= (4) 2 5
13 2
=
1
Example 2
4
Find the difference P Q where P = 2 0
and
4 1 0 37
Q = 2 2
.
8 3 6
P 4 2 0
Q = 4 2 2
8
1 0 37 3 6
8 0 2
= 9 3 31
Definition:
def
(ka )ij kai
j
1
4 4 0
A = 1
5 6 1
2 2
8 9 1
4 / 2 4 / 2 0/2
= 5/2 6/2 1 / 2
8 / 2 9/2 1 / 2
2 2 0
5
= 3 1
2 2
4 9
1
2 2
Matrix Multiplication
Definition:
∑ ab
def
(ab)ij ik kj
k 1
(1 i m and 1 j
p)
Note that the number of columns of A must equal the number of rows
of
B. To see how to use the horrible prescription, split up A into rows
and B into columns; then taking the ‘ scalar product ’ of the i th row
of A with the j th column of B gives the (i, j ) th entry of AB.
1 2 0 3 0
Calculate AB when A = 8 0 1 and B = 1 2 .
2 4 6 3 4
AB 1 2 0 3 0
= 8 0 1 1 2
2 4 6 3 4
= 1 4
21 4
20 32
Example 5
0 3 1 0
Show that AB ≠ BA for the matrices A = and B = .
5 0
First AB,
AB 0
= 3
1
0
5 0
0 6
AB =
5
Next BA,
0 3
BA =
10 4
Definition:
def
(aT )ij aji
Example 6
Find
3 the transpose of P = 7 0
.
5 9 46
3 5
P
T
= 7
0 9
46
Definition:
def
n A _
A
_A__A__ _…
(A B) C = A (B C )
k (A B ) = kA kB
T T
(A B) = A B T
T
(A )T = A
(kA )T = kA T
A ( BC ) = (AB ) C
A (B C ) = AB AC
(AB )T = B TA T
A m
A m = A n
A m
n = A
n
A O = O A = A
AI = AI = A
AO = AO = O
Thus, the identity and zero matrices behave like the numbers 1
and 0 respectively in ordinary arithmetic and algebra.
Example 7
2 5
For the matrix A 2 qI2 , stating the
= , show that A = pA
1 16
values in the form gA hI2 ,
of the integers p and q. Hence write
3
A
stating the values of g and h.
= 2 5 2 5
2
A
1
16 1
16
= 9 90
2
A
18 261
Next,
2 5 1 0
pA qI2 =
1 16 q
p 0
pA
qI 2 = 2p q 5p
p 16p q
2p q 5p 9 90
p 16p q = 18 261
= (18A 27 I2 ) A
2
= 18 A 27A
= 18 (18A 27 I2 ) 27A
= 297A 486 I2
Example 8
(kABC )T = k (ABC )T
= k ((AB )C )T
= kC T
(AB )T
T T
= kC T
(B A )
= kC T
B TA T
Example 9
AB = 1 0 0 0
2 3
= 0 0 0 0
0 0 0
0
0 0
=
0
Definition:
Example 10
1 2 4
Show that the matrix A
2 0 17 is symmetric.
=
4 17 6
T
1 2 4
T
A = 2 0 17
4 17 6
1 2 4
A
T
= 2
0 17
4 17 6
T
A = A
T
Hence, as A = A, A is symmetric.
Definition:
Example 11
(A B) T = (A ( B )
)
(A B ) T = (A B )
Hence, as the sum A B satisfies the skew-symmetric condition,
the sum of 2 skew-symmetric matrices is skew-symmetric.
Orthogonal Matrices
Definition:
T
A A = In
Example 12
Show
= that R
cos θ sin θ is an orthogonal matrix.
sin θ cos θ
sin θ
R T R = cos θ sin θ cos θ
sin θ cos θ sin θ cos θ
cos
2
sin θ cos θ
2
= sin cos θ sin
θ θ θ
sin θ cos θ cos sin sin
2 2
cos θ
θ θ θ
1 0
=
0
= I2
Hence, as R T
R equals the identity matrix, R is orthogonal.
Determinants
The solution to the 1 × 1 system,
ax = b
is,
b
x =
a
assuming a ≠
0.
ax by
e cx
dy f
is,
de − bf
x = ad − bc
af − ce
y = ad − bc
assuming ad bc ≠ 0.
ax by cz j
dx ey fz k
gx hy iz l
assuming a — fh — — fg + c — eg ≠ 0.
(ei ) b(di ) (dh )
Definition:
Definition:
Example 13
Definition:
Definition:
of A.
Definition:
M
It can be shown that the Leibniz formula for determinants can be
written using cofactors in the form given in the following theorem.
det (A )
= ∑a
j
ij
(i = 1, 2, 3,
n)
,
1
Cij
The Laplace expansion formula expresses the determinant of a
matrix in terms of smaller determinants. For satisfaction and
reassurance, the following theorems should be proven using the
Laplace expansion formula.
Theorem:
A (a ) = a
Theorem:
Theorem:
a b c e f d f d e
A d e f = a b g c g
h i i
h
g i
h
Notice that these are precisely the expressions for the denominators
for the systems at the start of this section.
Calculate
1 the determinant of the matrix B = 4
2 .
1
det (B ) = 4
2
= 1.6 ( 4).2
= 14
Example 16
1 2 7
Calculate the determinant of the matrix F = 6 0 1 .
3 10 4
1 2 7
det (F ) = 6 0 1
3 10 4
0 6
= 1
1
( 2)
1
7 6 0
10 4 3 4 3 10
= 388
Example 17
2 4
Solve the equation = 21 for x.
3x 5
2 4 = 21
3x 5
10 12x = 21
12x = 11
11
x = 12
Properties of
Determinants
det (kA ) = k n
det (A )
T
det ( A ) = det (A )
Inverse of a Matrix
Inverse Matrices
Of all the operations that have been described for matrices, that of
division has not been mentioned. The closest concept of ‘ division of
matrices ’ involves the following.
Definition:
=
AA 1
A 1 A = In
Definition:
def
adj (A ) C T
Theorem:
Theorem:
Example 18
1 0 4
Show that A
2 0 17 is invertible.
=
4 17 6
1 0 4
det (A )
2 0 17
=
4 17 6
0 17 2 17 2 0
= 1
17 6 0 4
4 4 17
= 425
Example 19 2
Determine is singular.
k the values of k for which the matrix
2 k 5
k 2
= 0
2 k 5
k (k 5) ( 2). ( 2) = 0
k 2
5k 4 = 0
(k 1) (k 4) = 0
Example 20
2
If the matrix A satisfies the equation A = 18A 27 I2 , show
(without explicitly calculating A 1 ) that A 1 = DA EI , stating the
2
values of D and E.
2
A = 18A 27 I2
1 2 1
A A = A (18A 27 I )
2
A 1
= 18 I2 27 A
Rearranging gives,
and solving for
1
A 1 2
= A I
1
A
2
27 3
Hence, 1
D =
27 and E = 2 .
3
Ax = b
Theorem:
Ax = b
1
has a solution if A exists; the solution is then obtained by
calculating,
x =
A 1
b
Corollary:
Example 21
3z
x 4y z 3
1 1 1
k 3 2 3 2 k
2 k 3 = 1 1 1
1 1 1 1 1 4
4 1 4
= ( k 12) ( 2 3) (8 k)
= 2k 15
Inverse of a 2 x 2 Matrix
Theorem
:
a b
The inverse of the 2 × 2 matrix is,
c d
1 d b
1 =
A a bc c a
d
This is just the adjugate formula for a 2 × 2 matrix, but it is easier
to remember in this form.
Example 22
Find
7 the inverse of the matrix 3
.
4
1
7 3
1 2 3
=
4 26 4 7
Example 23
Inverse of a 3 x 3 Matrix
(A b1 )
(A b2 )
(A bn )
so that the LHS of each gives the identity matrix. According to the
first way of obtaining the RHS, what is left on each RHS will be the
columns of A 1
.
Theorem:
(A I )
n
into,
(I n
B)
1
Then B = A .
A. Example 24
1 0 4
Find the inverse of N = 2 0 7 .
4 1 6
1 0 1 0 0
4
2 0 7 0 1 0
4 1 6 0 0 1
Then use EROs to reduce this matrix so that the LHS I3 ; the
becomes RHS will then be N 1 .
M Patel (April 25 St. Machar
2012) Academy
Advanced Higher Notes (Unit Matrice
3) s
R2
R2 2R1
R3 1 0 2 1 0 0
4R1
R3 0 0 2 1 0
11
0 1 2 4 0 1
1
R
R
2
11
2 1 0 1 0 0
2
0 0 1
2 1
11 11 0
0 1 2 4 0 1
R2
R3
1 0 2 1 0 0
0 1 2 4 0 1
0 0 2 1
1 11 0
1 1
R2
R2 2R3
1 0 2 1 0 0
4011 2
0 1 0 11 1
0 0 2 1 0
1 11
1 1
2R3
R1
R1 7
11 211 0
1 0 0
1
0 1 4011 2
11
0 2
1
1
11 0
0 0 1
1
To get the inverse into a slightly slicker form, factorise out the
fraction,
1 7 2 0
M Patel (April 26 St. Machar
2012) Academy
Advanced Higher Notes (Unit Matrice
3) 1 = 40 2 11 s
N 11 2 1 0
( 1
AB ) 1 = B A 1
( T T
A 1 ) = (A ) 1
det 1
1
(A ) =
det (A )
(kA )
1 =
1 A 1
Transformation Matrices
Definition:
Definition:
Theorem:
x' def ax by a b x
=
y' cx dy c d y
a b
The matrix is called the transformation
matrix. c d
Example 25
x' a b x
=
y'
c d
y
shows that x ′ = ax by and y ′ = cx dy. Comparing this with x ′
=
2x 5y and y ′ = x 3y gives a = 2, b = 5, c = 1, and d = 3.
So, 2 5
the required transformation matrix is .
1 3
Example 26
Find the image of the point P (3, 1) under the transformation
associated 1 2
with the matrix .
3
x' 1 2 3
=
y' 3 0 1
Invariant Points
Tx = x
Example 27
The matrix
equation,
x 1 2 x
=
y 2 3
y
yields the equations x = x 2y and y = 2x 3y, which
simplify to x = y and x = y. Solving these gives x = 0, and y = 0.
Hence, (0, 0) is the only invariant point under this transformation.
Theorem:
Theorem:
1 0
0 1
Theorem:
Theorem:
cos θ sin θ
cos
sin θ θ
Dilatation (Scaling)
Definition:
Theorem:
Example 28
0 1 1 0
Tθ T R = 1 0 0 1
0 1
=
1
Example 29
Find the image of the point P (1, 2) after a reflection in the line y = x
followed by the
dilatation 7 0
0 7 .
7 0 0 1 1
0 1 2
Transformation of Loci
Example 30
1 2
under the transformation with associated matrix
.
2 3
x' 1 2 x
=
y' 2 y
x 1
1 2 x'
=
y
2 y'
x
3 2 x'
y = 2 1 y'
x 3x' 2y'
y = 2x' y'