Open in TheBrain

Determinants I

Wild Egg mathematics courses

3.01K subscribers

SUBSCRIBED

An introduction to the determinant of a square matrix. This is perhaps the single most important function in mathematics! It is the basis for understanding invertibility of matrices, scaling factors of linear transformations, and volumes of parallelipipeds. We lay out quite a few properties of the determinant, and look closely at the 2 x 2 and the 3 x 3 cases.

00:00

hello everyone I'm Norman Wapner and

00:03

today I want to introduce the important

00:05

ocean of determinants to central

00:09

theoretical concept in linear algebra

00:12

and well there's also a lot of

00:14

computational aspects to it and it's

00:17

connected with a lot of different things

00:19

and sometimes it's a little bit too

00:21

tricky to give a completely logically

00:25

coherent account of determinants usually

00:29

in linear algebra courses especially

00:30

sort of at the first year level there's

00:32

a bit of cheating involved and I'm

00:33

afraid I'm going to have to be guilty of

00:36

that a little bit here too because

00:38

otherwise it would take a little bit too

00:40

much time to develop some actually some

00:43

relatively serious algebra and even some

00:45

cognitive torques to to lay out the

00:48

whole story completely but at least I'm

00:49

going to be reasonably honest and I'm

00:51

going to you know point out where the

00:53

difficulties are so what is a

00:55

determinant ok so that's a good starting

00:57

point so I matrix a which is square say

01:09

n by n has associated to it number okay

01:20

call the determinant so the determinant

01:23

of a it's expressed in a number of

01:30

different ways sometimes we write

01:31

determinant of a with a bracket

01:33

sometimes we write determinant a without

01:35

brackets sometimes we write a with a

01:40

absolute value around it okay so it's a

01:44

number now what's important about this

01:48

number well it has a number of

01:51

interpretations before I tell you what

01:54

it actually is which is a little bit

01:56

tricky let me tell you you know why

01:57

we're interested in this number this

02:00

number is important for for several

02:08

reasons

02:08

for several reasons the one that

02:11

connects

02:12

most directly with what we've been doing

02:15

is that it turns out that a is

02:17

invertible precisely when the

02:24

determinant of a is not equal to zero so

02:29

they determine it in a kind of a test

02:31

which tells us when matrix is invertible

02:37

another important reason is that the

02:40

determinant of a can be interpreted as a

02:58

scaling factor as a scaling factor when

03:05

a is viewed as a linear transformation

03:14

now I'm just writing this down here

03:16

because we don't know what a linear

03:18

transformation is yet so we're going to

03:20

explain this later in our second course

03:23

okay but that will turn out to be an

03:25

important aspect of it that it's a it's

03:27

a scaling factor it tells us how much a

03:30

transformation scales areas or volumes

03:35

and a third important reason which is

03:40

connected with this second one is that

03:42

the determinant of a captures the signed

03:51

volume of the n-dimensional

03:58

parallelepiped parallel piped vilela Pie

04:05

head okay whose sides are say the

04:14

columns of a so in other words the

04:22

determinant has something to do with

04:24

side bonds

04:26

there's three kinds of at least initial

04:28

sort of motivations for introducing

04:30

deterrents first of all has something to

04:32

do with invertibility and has something

04:33

to do with scaling or how much areas are

04:36

transformed when you think of a as being

04:39

a transformation and we'll we'll learn

04:42

about that later and it also captures

04:45

the signed volume of a parallelepiped

04:47

which is a kind of an n-dimensional

04:49

analog of a parallelogram now that last

04:55

one even though at higher dimensions

04:57

it's actually quite complicated at least

04:59

in two dimensions it's quite

05:01

understandable and that's a really good

05:02

place to start so I want to talk about

05:04

that interpretation now in terms of

05:07

areas in the plane alright so let's look

05:13

at the 2-dimensional the 2-dimensional

05:17

case and signed areas so to do that I

05:24

better define what the determinant of a

05:26

2 by 2 matrix is so if a is say the

05:30

matrix a B C D then the determinant of a

05:38

is ad minus BC that's the definition

05:48

okay that's a definition of the

05:51

determinant of a 2 by 2 matrix and we've

05:56

seen that before we saw that we had a

05:57

formula for the inverse and it was

05:59

exactly this quantity that appeared in

06:01

the denominator of that formula so if

06:04

that denominator is zero then the

06:06

formula doesn't work ok and we don't get

06:08

an inverse so that's so natural that

06:10

that this connects with invertibility

06:13

but I want to explain to you why it

06:15

connects with areas so let's cook up two

06:22

vectors which are say the columns ok

06:25

we'll think about the columns of this

06:27

matrix so here is a vector let's call it

06:32

the vector that's AC and here is another

06:35

vector it's the vector the D

06:40

and what I'm claiming is that if you

06:43

look at the parallelogram that's

06:45

generated by these two vectors it's a

06:50

parallelogram so that means that this

06:52

point up here let's say that's the point

06:55

a and this is the point B this is the

06:58

point C C will be the point with

07:00

coordinates a plus B and C plus D so the

07:09

claim is that the determinant of a this

07:12

ad minus BC is essentially the signed

07:16

area of this parallelogram so area here

07:24

a signed area is equal to ad minus BC so

07:31

I want to convince you of that ok so I

07:33

want to convince you that this purely

07:35

algebraic formula has something to do

07:37

with areas and it's a very different

07:38

kind of area formula from what you're

07:40

used to perhaps in high school because

07:43

it doesn't you know have lengths widths

07:45

exactly in it so we could try to use

07:50

some trigonometry and introduce angles

07:52

and so on but that turns out not to be

07:54

really the best way the best way perhaps

07:56

is to well there's different ways but

07:58

let's do a kind of a simple naive kind

08:01

of thing and sort of look at various

08:04

triangles and rectangles that are formed

08:06

in this picture okay so if we want to

08:09

get at that red area what are we gonna

08:13

do so let me let me prove this claim

08:16

okay proof let's call the the red area

08:19

let's call it Delta all right that's the

08:20

area that we're interested in okay so

08:23

what is Delta well the way I've drawn

08:27

the diagram it's difference between the

08:30

big enclosing rectangle and various

08:33

smaller ones in fact I could kind of

08:35

make it more precise by drawing these

08:39

things here so you can see that what

08:41

I've done now is i decomposed this big

08:44

rectangle into the parallelogram were

08:45

interested in and then there's a couple

08:47

of squares and

08:50

there's also four triangles okay so the

08:55

area of the parallelogram is going to be

08:57

the big rectangular area which is the

09:01

product of color which is the product of

09:05

the base a plus B times the height C

09:08

plus D and I have to subtract some

09:12

things okay

09:13

so let's subtract how about with this

09:17

one here what's the area of this little

09:19

rectangle well the the base because

09:26

we're going from x coordinate of a to a

09:28

coordinate of a plus B it's going to be

09:30

B sorry it's going to be B and the

09:35

height is just C so that's B C and now

09:40

let's also subtract the height of this

09:42

little rectangle up here okay its

09:47

x-coordinate is going to be that's BD

09:52

saw b b and it's y coordinates can be

09:58

the difference that's C okay and then

10:08

there's these four triangular things now

10:12

the triangles are things so this one

10:14

here for example and this one here are

10:22

going to be the same because they are

10:25

they're both have this hypotenuse which

10:27

is this vector here which these two

10:29

vectors are the same so the two

10:31

triangular pieces in green form a

10:36

rectangle okay so the rectangle is going

10:39

to have side the bottom is a and the

10:43

height is C and then there's another one

10:49

what's doing

10:53

let's say so this triangle and this

10:56

triangle here they don't look very much

10:58

the same but they're just two sides of a

11:01

rectangle you put them together there

11:03

they're gonna be the same to give a

11:05

rectangle with dimensions B D okay so we

11:10

do all of that what do we get a we

11:15

expand the first thing out we get AC the

11:17

AC cancels with a see we get a B C that

11:20

cancels with a B C we get an ad which

11:22

doesn't cancel with anything we get a BD

11:24

which cancels with a BD and we get still

11:28

a minus BC left over so that little cut

11:33

and paste shows us or justifies this

11:37

claim that this determinant is actually

11:42

correspond to a signed area so this

11:45

makes it look like the sign area formula

11:48

you know is actually a consequence of

11:49

Euclidian formulas and base times like

11:52

but actually it turns out that when you

11:54

start looking at the theory of area a

11:56

little bit more carefully and generally

11:59

you realize that this is actually a more

12:01

fundamental formula then the base times

12:04

height formula that you're used to

12:06

to define the areas of rectangles okay

12:10

so there's some claim okay that this is

12:14

actually a more fundamental notion of

12:22

area now that takes some explaining but

12:30

if you're are interested in that sort of

12:32

the foundations of that have a look at

12:35

my algebraic calculus 1 course which is

12:39

all about calculus and well it's

12:44

calculus in a very general kind of way

12:46

and hopefully precisely and you'll see

12:49

there that the entire theory of area

12:51

because the integral calculus is all

12:52

about area can be sort of framed in a

12:55

discussion that starts with this notion

12:58

of areas this has turns out to be the

12:59

fundamental notion of area that we can

13:01

use to systematically build up a

13:03

coherent theory of areas of curves so

13:07

yeah it's a very powerful foundational

13:09

tool now to go to three dimensions okay

13:13

I will just show you the picture in

13:14

three dimensions

13:16

in three dimensions there's also a

13:20

corresponding you know formula so I have

13:23

to tell you what the corresponding thing

13:25

isn't it's a bit more complicated than

13:26

this two dimensional line okay so let's

13:28

say if a is a three by three matrix

13:30

let's write it as a b c d e f g h i then

13:37

what is this magical determinant so

13:41

here's a formula for the determinant of

13:43

a it is squeezed six terms a times e

13:48

times I minus a times F times H plus B

13:54

times F times G minus B times D times I

14:01

and plus C times D times H minus C times

14:06

e times G you stare at this you'll see

14:11

that there are six terms with each each

14:16

containing a single entry from each row

14:28

and column so for example if we you know

14:35

look it's a b FG that's that term times

14:39

that term times that term and indeed

14:41

those three terms is one in each row and

14:45

one in each column and all these six

14:48

terms all have exactly that property and

14:50

in fact these are exactly all of the

14:54

terms that you can cook up from the

14:57

entries that that are formed by taking

14:59

products of elements with exactly one in

15:02

each row and in each column and it's not

15:06

too hard to see that there's going to be

15:08

a general three factorial of those so

15:11

there's three factorial terms these are

15:15

the number of ways of choosing one

15:18

element from each row and column of the

15:21

matrix and so this is a quite an

15:25

imposing formula

15:29

let's get rid of this thing so let me

15:31

put a box around it so it's a very

15:33

imposing formula perhaps but it's also

15:35

quite elegant but it does show you that

15:39

no calculating determinants is going to

15:41

be potentially complicated because this

15:43

is only the three-dimensional version

15:45

right so the higher dimensional versions

15:47

are more complicated but I do want to at

15:50

least give you an impression of what

15:51

that you know how you should think about

15:53

what this number means okay so here is

15:55

an interpretation and interpretation

16:06

we're in three dimensional space let's

16:09

look at that three columns of the matrix

16:11

a ok so those are three vectors maybe

16:15

there's the vector a what was a b c d e

16:18

f g so a d g that's one vector another

16:22

vector is the second column b e:h BPH

16:27

and then there's a third vector which is

16:30

the third column c fi okay c fi now

16:36

these three vectors determine a

16:39

parallelepiped which is three

16:41

dimensional analog of a parallelogram so

16:44

let's say we take two of them say these

16:46

two they form a parallelogram for take

16:47

these two we form a parallelogram we

16:50

form these two we take a parallelogram

16:53

okay and then we can sort of fill this

16:55

thing out to something that looks like

16:58

this this is a parallelepiped parallel

17:03

pipette whose sides are all

17:10

parallelograms grams

17:22

and the claim is that the determinant of

17:28

matrix a corresponds to the signed

17:33

volume of this parallelepiped so we're

17:40

talking about the volume

17:42

three-dimensional volume of this box

17:45

this box with slanted sides determined

17:48

by these three vectors and again if

17:53

you're you know gonna go through and

17:56

develop a theory of area or volumes in

17:58

three dimensional sense it's actually

18:00

quite subtle okay and it turns out right

18:03

that this is actually the starting point

18:06

which is best it's best to start with

18:08

this as your notion of science and then

18:12

show that this notion gives rise to a

18:15

consistent framework of volumes that

18:18

that captures the intuitive properties

18:21

that we would expect volumes to have but

18:24

it is that's that's a fair amount of

18:26

work okay that's a fair amount of work

18:27

highly non-trivial but I do want you to

18:31

have this idea in mind that determinants

18:33

at least in two dimensions and in three

18:35

dimensions represent volumes you might

18:39

also ask just for completeness what

18:41

about the one-dimensional case we should

18:42

also say that so in the one-dimensional

18:44

case suppose we have just emmaus a with

18:47

a single entry well then determinant of

18:52

a it's just the single entry a by itself

18:56

and in some sense that's also a kind of

19:00

a measure of extented system it's like a

19:04

one-dimensional area or an extent so

19:06

here's the origin here's a point a and

19:10

we're talking about this this vector

19:12

okay it's a vector a okay and this

19:16

number represents how big it is but in a

19:21

signed way not in an absolute value

19:23

sense more sense so it's not like a

19:25

distance so much as a displacement okay

19:28

so it can be positive or negative

19:30

depending on

19:32

the value of a okay great so what what

19:40

is the the official definition of

19:43

determinant so the way we're going to to

19:47

do this is to use an inductive procedure

19:51

so that at least we have a definition

19:52

and the deductive procedure is sort of

19:55

consistent with the three cases that

19:57

I've shown you now okay so the

20:02

definition is for the N dimensional and

20:07

dimensional determinant is it's an

20:13

inductive definition okay so if a is n

20:19

by n matrix say with let's give the the

20:32

elements some name so let's say that a

20:34

is say a matrix consisting of a IJ

20:37

little a IJ so that's the IJ entry of

20:40

this matrix tagging okay then then let's

20:50

let a sub IJ capital a sub IJ okay be

20:56

the n minus 1 by n minus 1 matrix

21:07

obtained from a by removing the 8th row

21:19

and J column of a so this is called a

21:26

minor a minor of a ok so that's an n

21:35

minus 1 by n minus 1 matrix it depends

21:37

on I and J then our definition is that

21:41

the determinant a it

21:48

a11 times the determinant of a1 1 minus

21:56

a1 2 times the determinant of a1 2 plus

22:01

and then alternating plus and minus

22:03

until you get to the enth 1 the nth one

22:07

will be a1 n times the determinant of a1

22:11

n with a minus 1 to the end in front of

22:15

it so alternating plus or minus

22:17

depending on whether and is even or odd

22:23

that is an inductive definition and

22:30

maybe I should say the determinant of a

22:33

which is also equal to an absolute

22:38

values is given by the following so this

22:42

is inductive because the N by n matrix

22:46

depends on evaluating n n minus 1 by n

22:51

minus 1 matrices so an N by n

22:56

determinant depends on n n minus 1 by n

23:08

minus 1 determinants and so you can see

23:17

that as n gets larger the computational

23:21

problem of calculating determinants from

23:23

this definition is going to be a lot a

23:26

lot of work so let's let illustrate this

23:30

definition ok so you can see that it

23:32

corresponds with what you know I was

23:35

doing earlier so let's apply this to the

23:39

example that we did before but now we're

23:42

going to use this determinant so we'll

23:43

stick with the same 3x3 ABCDEF g h i

23:49

according to the definition now

23:52

according to the definition what are the

23:56

determinant of a be it should be 8

23:59

time's the determinant of the matrix e F

24:03

H I so notice that what I'm using here

24:09

so this what's inside here okay is the

24:12

matrix a sub 1 1 it's what we get when

24:16

we remove the first row and the first

24:19

column it's that little two by two

24:21

matrix therapy obtained by removing the

24:24

row and the column of the 1 1 entry

24:28

which was a so that's the first element

24:33

in this sum the next element is moving

24:37

along to the second the second entry

24:42

which is B and then we have to multiply

24:44

by the determinant of the matrix that we

24:47

get by removing the row and column

24:51

through B that'll be the 2x2 matrix D F

24:55

G I so that's the minor corresponding to

24:59

1 to the entry fee and then plus C the

25:03

last term will be times the determinant

25:06

of the 2x2 matrix d e G H all right so

25:14

this is the minor a 1/2 this is the

25:17

minor a 1/3 so we're taking a linear

25:22

combination of these three minors each

25:24

of which is itself a two-by-two

25:26

determinant

25:27

ok and that linear combination gives us

25:31

the entire determine so let's see what

25:32

happens when we do that

25:34

so this two-by-two determinant is e i- f

25:39

h this next one is d i minus GF and this

25:45

next one is plus C times D H minus e G

25:52

ok and if we expand that we get a e i- a

25:56

f h- b d oh maybe I'll do the plus first

26:04

plus b g f- b di plus c th minus

26:11

CEG and hopefully that's the same as

26:15

what I originally told you was the

26:18

definition up here okay so this has been

26:29

an inductive way of seeing how to go

26:31

from the 2-dimensional to the

26:33

three-dimensional and you can check also

26:35

that this induction goes from the

26:37

one-dimensional to the two-dimensional

26:39

but it also at least then in principle

26:41

allows us to calculate higher

26:44

dimensional determinants so to calculate

26:46

a four by four determinant we would have

26:49

to calculate 4 3 by 3 determinants and

26:51

take the corresponding combination so we

26:54

have to talk about the properties of the

26:56

determinant properties of the

27:01

determinant so first of all the

27:10

determinant of the identity matrix is

27:13

always equal to 1 the determinant of the

27:18

identity matrix is also always equal to

27:20

1/2 if you interchange or swap two rows

27:36

or two columns then the determinant

27:49

changes sign changes sign in other words

27:57

it becomes the negative of what it was

27:59

before interchanging two rows you

28:02

multiply the determinant by minus 1 or

28:05

interchanging two columns you multiply

28:08

the determinant by minus 1 that was an

28:15

elementary row operation right so what

28:17

about the other elementary row

28:18

operations third if you multiply

28:26

row by lambda then the determinant is

28:41

multiplied by lambda fourth if you add

28:57

multiple of one row to another the

29:10

determinant does not change another

29:27

important property of the determinant is

29:30

that the determinant of the transpose of

29:33

the matrix equals the determinant of the

29:37

matrix taking the transpose of the

29:41

matrix doesn't change the determinant

29:47

and I want to mention one more property

29:51

which is related to the ones I mentioned

29:54

before about you know it's sometimes

29:56

called a multi linear property it's not

30:05

exactly a linearity in the obvious sense

30:08

it's a multi linearity that I will write

30:14

it like this if you have a matrix a okay

30:21

and say has first column is say v1 plus

30:28

v1 prime that's the first column and the

30:32

second column is v2 and then the second

30:35

and then antha column is VN okay

30:37

if so if a is a matrix whose first

30:42

column is a sum of two vectors and but

30:44

the other columns are just individual

30:46

vectors then the determinant of a equals

30:52

the determinant of the matrix with just

30:56

v1 and all the other columns the same v2

31:00

up to VN plus the determinant of the

31:05

matrix that has the one Prime v2 all the

31:10

way to the end so this is linear so the

31:17

determinant is linear in in the first

31:22

column and in fact it's linear in any

31:25

column because the swapping property

31:28

above shows that that's going to happen

31:31

so the determinant is linear in any

31:44

column or in any row as it turns out or

31:50

in any row because the transpose has the

31:54

same determinant okay so that's sort of

32:00

a bunch of properties what about sort of

32:02

like proving or understanding these

32:04

properties well the thing is our

32:07

definition is is complicated it's not so

32:12

easy to prove all of these things in in

32:15

general but we can prove them or

32:17

demonstrate them for the two by two case

32:19

and a three by three case and for most

32:23

applications you know it having to do

32:25

with ordinary geometry and in three

32:27

dimensional space two by two and three

32:29

by three determinants are you know what

32:32

you meet a lot of the time so it's

32:35

actually nice to have you know direct

32:38

verifications of the two dimensional in

32:40

the three dimensional properties

32:42

directly because we have these very

32:44

explicit formulas for the determinants

32:47

of two by two and three by three

32:48

matrices so that you can see the various

32:51

properties so for example here is the

32:54

3x3 property of the determinant and if

33:01

we look and think about how does this

33:03

you know how does this dependent on the

33:08

first column a D and G then you see that

33:13

the a D and G there's a here here

33:16

there's a G here the ad does a D here

33:20

it's a D here there's a G each one of

33:23

these terms has exactly one element from

33:27

that first column so this is the reason

33:31

why this thing is linear in the first

33:32

column so if we you know we say

33:36

multiplied the first column by two okay

33:40

then all of these entries would multiply

33:44

by doing the entire determinant would

33:46

multiply by two or if we replace this

33:49

first column with the sum of two columns

33:51

then the entire determinant would be the

33:54

sum of the two corresponding determines

33:58

which makes me think I should probably

34:00

also this multi linear property that's

34:04

that's from one part of it

34:06

the other part is also that if I take

34:12

the determinant of say C times v1 so if

34:18

I multiply the first column by say C and

34:23

take the determinant that what I'm going

34:25

to get is going to get C times the

34:27

determinant of the original matrix B 1

34:30

through the end and this works for any

34:38

column works for any column and any row

34:50

consequence of that which is actually

34:52

quite useful is that if you multiply the

34:55

entire matrix by C the determinant of C

35:00

times the entire matrix okay

35:04

that means you multiply the first column

35:06

by C you're multiplying the second

35:07

column by Cu month like the ads column I

35:09

see each one of those individually is

35:11

going to multiply the determinant by a

35:14

factor of C so all together you're going

35:17

to be multiplying the determinant by C

35:22

to the N so the determinant of C a is

35:27

equal to C to the end determinant a when

35:30

a is n by n okay so those are some sort

35:41

of abstract properties in our next

35:44

lecture we'll talk a little bit more

35:46

about some of those properties and

35:47

verify some and get more experience with

35:51

actually calculating determinants so

35:54

that you can see these various

35:55

properties in action

Attachments