Math W4
Math W4
Methods
Week 4
1 / 56
Determinants
a b
= ad − bc
c d
2 / 56
Inverses
3 / 56
Three-by-three
What is
2 1 −1
det 0 1 1 ?
1 1 −1
Defined recursively using cofactors.
2 1 −1 2 1 −1 2 1 −1
0 1 1 0 1 1 0 1 1
1 1 −1 1 1 −1 1 1 −1
4 / 56
Technically
Let A be an n × n matrix.
▶ if n = 1, then det A = a11 .
▶ if n > 1, then
n
X
det A = (−1)1+j a1j det(A[1, j]),
j=1
5 / 56
Any row or column
2 1 −1
det 0 1 1
1 1 −1
2 1 −1 2 1 −1 2 1 −1
0 1 1 0 1 1 0 1 1
1 1 −1 1 1 −1 1 1 −1
6 / 56
The pattern
+ − + − + −
− + − + − +
+ − + − + −
− + − + − +
+ − + − + −
− + − + − +
7 / 56
Pick the right row/column
1 0 0 −1 2
0 1 0 2 1
det
1 0 0 −1 1
1 0 0 0 2
1 2 1 5 7
8 / 56
First properties
▶ det(AT ) =
9 / 56
Upper triangular
1 −2 6 −1 2
0 3 5 2 1
det
0 0 2 −1 1
0 0 0 5 2
0 0 0 0 7
10 / 56
Expanding method doesn’t scale
11 / 56
First ingredient
12 / 56
Second ingredient
0 −1 6
det 1 3 5 =
6 8 2
13 / 56
EROs
If A′ is obtained from A by doing an ERO then
1 3 5
det 0 −1 6 =
6 8 2
1 3 5
det 0 −1 6 =
3 4 1
14 / 56
Technique
15 / 56
Common Mistake (Warning!)
▶ Row-reduce A to A′
▶ Find det A′
▶ Write this down as the answer
16 / 56
Example
1 2 1
det 2 4 3 = d
3 1 0
17 / 56
Example
1 0 1 y
0 0 0 y
det
0 −1
0 1
1 −y 2 0 y
18 / 56
Properties of determinants
▶ det(αA) =
19 / 56
Determinant is multiplicative
As a consequence,
▶ det(AB) = det(BA)
▶ det(Ak ) =
▶ det A−1 =
20 / 56
Invertible matrix theorem
21 / 56
So far
22 / 56
Function terminology
A function has a domain A and a codomain B
23 / 56
Functions between vector spaces
Define f : R2 → R2 by
f ((x, y)) = (x + 1, x + y)
24 / 56
Linear Transformations
25 / 56
Common Task
26 / 56
Example
Are the following functions linear transformations?
▶ f : R2 → R2 : (x, y) 7→ (x + y, x + y)
▶ g : R2 → R2 : (x, y) 7→ (x2 , y 2 )
▶ h : R3 → R3 : (x, y, z) 7→ (x, y + z, 0)
27 / 56
Property
f (0) = 0.
Proof:
28 / 56
Kernel
29 / 56
Kernel
domain codomain
30 / 56
Subspace
31 / 56
Range
If f : Rn → Rm , then the range of f is the set of vectors
{f (u) : u ∈ Rn }.
32 / 56
Range
domain codomain
33 / 56
Subspace
34 / 56
Determining linear transformation
▶ f (1, 1) =
▶ f (2, 4) =
▶ f (x, y) =
35 / 56
Consequence
36 / 56
Finding bases
37 / 56
Basis for kernel
38 / 56
Basis for range
So these vectors form a spanning set for the range, but we need
a basis.
39 / 56
Example
40 / 56
Matrix multiplication
f (v) = Av
41 / 56
Matrix of transformation
▶ Linear transformation f : Rn → Rm
▶ B = {v1 , v2 , . . . , vn } basis for Rn
▶ C = {w1 , w2 , . . . , wm } basis for Rm
42 / 56
Example
43 / 56
Example
Let f : R2 → R2 be given by
f (x, y) = (x + y, x − y)
and let B = {(1, 1), (2, 1)} and C = {(1, 1), (1, 0)}.
44 / 56
Use of matrix
45 / 56
Example
Find the matrix of g w.r.t bases C, D where
and g : R2 → R2 is defined by
g(x, y) = (x + 2y, 2x + y)
46 / 56
Exercise
B = {(1, 1, 1), (1, 1, 0), (1, 0, 0)} C = {(1, 1), (1, −1)}
47 / 56
Example
48 / 56
Back to kernel and range
49 / 56
Another rank-nullity theorem
dim(range(f )) + dim(ker(f )) = n
50 / 56
Composition of functions
If f : Rℓ → Rm and g : Rm → Rn then
g ◦ f : Rℓ → Rn
is defined by
(g ◦ f )(v) = g(f (v))
Then g ◦ f is linear.
51 / 56
Matrix of composition
and found
0 1 3 1
[f ]CB = [g]DC =
2 2 3 2
52 / 56
Working
f g
(1, 1) −→ −→
f g
(2, 1) −→ −→
= (1, 0) + (0, 1)
= (1, 0) + (0, 1)
So the matrix is
[g ◦ f ]DB =
53 / 56
Matrix of composition
54 / 56
Inverse function
f (x, y) = (x + y, x − y)
55 / 56
Inverse of a linear transformation
56 / 56