< Return to Video

Linear Algebra: 3x3 Determinant

  • 0:01 - 0:04
    In the last video we defined the
    notion of a determinant of
  • 0:04 - 0:05
    a 2 by 2 matrix.
  • 0:05 - 0:09
    So if I have some matrix-- let's
    just call it B-- if my
  • 0:09 - 0:16
    matrix B looks like this, if
    its entries are a, b, c, d,
  • 0:16 - 0:20
    we've defined to determinant
    of B.
  • 0:20 - 0:24
    Which could also be written as
    B with these lines around it,
  • 0:24 - 0:28
    which could also be written as
    the entries of the matrix with
  • 0:28 - 0:31
    those lines around
    it, a, b, c, d.
  • 0:31 - 0:32
    And I don't want you to
    get these confused.
  • 0:32 - 0:34
    This is the matrix when
    you have the brackets.
  • 0:34 - 0:37
    This is the determinant of the
    matrix, when you just have
  • 0:37 - 0:38
    these straight lines.
  • 0:38 - 0:45
    And this, by definition, was
    equal to ad minus bc.
  • 0:45 - 0:47
    And you saw in the last video,
    or maybe you saw in the last
  • 0:47 - 0:49
    video, what the motivation
    for this came from.
  • 0:49 - 0:53
    When we figured out the inverse
    of B, we determined
  • 0:53 - 1:02
    that it was equal to 1 over ad
    minus bc times another matrix,
  • 1:02 - 1:05
    which was essentially these
    two entry swaps, you
  • 1:05 - 1:06
    got a d and an a.
  • 1:06 - 1:08
    And then these two entries
    made negative, so
  • 1:08 - 1:11
    minus c and minus b.
  • 1:11 - 1:14
    This was the inverse of b.
  • 1:14 - 1:17
    And we said, well, when
    is this defined?
  • 1:17 - 1:20
    This is defined as long as this
    character right here does
  • 1:20 - 1:21
    not equal 0.
  • 1:21 - 1:23
    So you said hey, this looks
    pretty important.
  • 1:23 - 1:25
    Let's call this thing right
    there the determinant.
  • 1:31 - 1:40
    And then we could say that B is
    invertible, if and only if,
  • 1:40 - 1:46
    the determinant of B
    does not equal 0.
  • 1:46 - 1:50
    Because if it equals 0, then
    this formula for your inverse
  • 1:50 - 1:51
    won't be well defined.
  • 1:51 - 1:54
    And we just got this from our
    technique of creating an
  • 1:54 - 1:56
    augmented matrix whatnot.
  • 1:56 - 1:59
    But the big take away is we
    defined this notion of a
  • 1:59 - 2:01
    determinant it for
    a 2 by 2 matrix.
  • 2:01 - 2:04
    Now the next question is, well
    that's just a 2 by 2,
  • 2:04 - 2:07
    everything we do in linear
    algebra, we like to generalize
  • 2:07 - 2:10
    it to higher numbers of
    rows and columns.
  • 2:10 - 2:12
    So the next step, at least--
    let's just do baby steps--
  • 2:12 - 2:13
    let's start with a 3 by 3.
  • 2:13 - 2:16
    Let's define what its
    determinant is.
  • 2:16 - 2:19
    So let me construct a
    3 by 3 matrix here.
  • 2:19 - 2:23
    Let's say my matrix A is equal
    to-- let me just write its
  • 2:23 - 2:28
    entries-- first row, first
    column, first row, second
  • 2:28 - 2:30
    column, first row,
    third column.
  • 2:30 - 2:35
    Then you have a2
    1, a2 2, a2 3.
  • 2:35 - 2:39
    Then you have a3 1, third
    row first column, a3
  • 2:39 - 2:42
    2, and then a3 3.
  • 2:42 - 2:45
    That is a 3 by 3 matrix.
  • 2:45 - 2:46
    Three rows and three columns.
  • 2:46 - 2:49
    This is 3 by 3.
  • 2:49 - 2:55
    I am going to define the
    determinant of A.
  • 2:55 - 2:57
    So this is a definition.
  • 2:57 - 3:01
    I'm going to define the
    determinant of this 3 by 3
  • 3:01 - 3:04
    matrix A as being equal to--
    and this is a little bit
  • 3:04 - 3:06
    convoluted, but you'll get the
    hang of it eventually.
  • 3:06 - 3:08
    In the next several videos we're
    just going to do a ton
  • 3:08 - 3:08
    of determinants.
  • 3:08 - 3:11
    So it just becomes a bit of
    second nature to you.
  • 3:11 - 3:14
    It's a little computationally
    intensive sometimes.
  • 3:14 - 3:17
    But it equals this first row.
  • 3:17 - 3:22
    It equals a1 1 times the
    determinant of the matrix you
  • 3:22 - 3:26
    get, if you get rid of this
    guy's column and row.
  • 3:26 - 3:28
    So if you get rid of this guy's
    column and row, you're
  • 3:28 - 3:29
    left with this matrix here.
  • 3:29 - 3:39
    So times the determinant of the
    matrix a2 2, a2 3, a3 2,
  • 3:39 - 3:41
    and then a3 3.
  • 3:41 - 3:42
    Just like that.
  • 3:42 - 3:45
    So that's our first entry
    and that's a plus this.
  • 3:45 - 3:48
    And then I said it's a plus
    this, because the next entry's
  • 3:48 - 3:49
    going to be a minus.
  • 3:49 - 3:52
    You have a minus this
    guy right here.
  • 3:52 - 4:00
    So then you're going to have
    minus a1 2 times the matrix
  • 4:00 - 4:03
    you get if you eliminate
    his column and his row.
  • 4:03 - 4:06
    So times, you're going to get
    these entries right there.
  • 4:06 - 4:19
    So a2 1, a2 3, a3 1, and
    then you have a3 3.
  • 4:19 - 4:20
    We're not quite done.
  • 4:20 - 4:22
    You could probably guess with
    the next one's going to be.
  • 4:22 - 4:26
    Then you're going to have a
    plus-- let me switch to a
  • 4:26 - 4:28
    better color-- plus this guy.
  • 4:28 - 4:33
    Plus a1 3 times the determinant
    of its-- I guess
  • 4:33 - 4:35
    you could call it--
    its sub-matrix.
  • 4:35 - 4:36
    We'll call it that for now.
  • 4:36 - 4:38
    So this matrix right here.
  • 4:38 - 4:46
    So a2 1, a2 2, a3 1, a3 2.
  • 4:46 - 4:47
    This is our definition of the
  • 4:47 - 4:51
    determinant of a 3 by 3 matrix.
  • 4:51 - 4:55
    And the motivation is, because
    when you take the determinant
  • 4:55 - 4:57
    of a 3 by 3 it turns out-- I
    haven't shown it to you yet--
  • 4:57 - 4:59
    that the property is the same.
  • 4:59 - 5:01
    That if the determinant of this
    is 0, you will not be
  • 5:01 - 5:02
    able to find an inverse.
  • 5:02 - 5:04
    And when I defined determinant
    in this way.
  • 5:04 - 5:07
    If the determinant does not
    equal 0, you will be able to
  • 5:07 - 5:07
    find an inverse.
  • 5:07 - 5:09
    So that's where this
    came from.
  • 5:09 - 5:11
    And I haven't shown
    you that yet.
  • 5:11 - 5:13
    And I might not show you
    because it's super
  • 5:13 - 5:13
    computational.
  • 5:13 - 5:15
    It'll take a long time.
  • 5:15 - 5:16
    It'll be very hairy and I'll
    make careless mistakes.
  • 5:16 - 5:19
    But the motivation comes from
    the exact same place as the 2
  • 5:19 - 5:20
    by 2 version.
  • 5:20 - 5:23
    But I think what you probably
    want to see right now is at
  • 5:23 - 5:26
    least just this thing applied
    to an actual matrix, because
  • 5:26 - 5:27
    this looks all abstract
    right now.
  • 5:27 - 5:30
    But if we do it with an actual
    matrix, you'll actually see
  • 5:30 - 5:31
    it's not too bad.
  • 5:31 - 5:35
    So let's leave the definition up
    there, and let's say that I
  • 5:35 - 5:53
    have the matrix 1, 2, 4, 2, 2,
    minus 1, 3, and 4, 0, 1.
  • 5:53 - 5:56
    So by our definition of a
    determinant, the determinant
  • 5:56 - 6:00
    of this guy right here-- so
    let's say I call that matrix
  • 6:00 - 6:02
    C-- C is equal to that.
  • 6:02 - 6:05
    So if we want to figure out
    the determinant of C, the
  • 6:05 - 6:10
    determinant of C is equal to--
    I take this guy right here,
  • 6:10 - 6:13
    let me take that 1-- times the
    determinant of-- let's just
  • 6:13 - 6:15
    call it the submatrix,
    right here.
  • 6:15 - 6:25
    So we have a minus 1, we
    have a 3, we have a 0,
  • 6:25 - 6:27
    and we have a 1.
  • 6:27 - 6:28
    Just like that.
  • 6:28 - 6:29
    Notice, I got rid of
    this guy's column
  • 6:29 - 6:30
    and this guy's row.
  • 6:30 - 6:32
    And I was just left with
    minus 1, 3, 0, 1.
  • 6:35 - 6:38
    Next, I take this guy.
  • 6:38 - 6:40
    And this is the trick.
  • 6:40 - 6:41
    You have to alternate signs.
  • 6:41 - 6:44
    If you start with a positive
    here, this next one's going to
  • 6:44 - 6:45
    be a minus.
  • 6:45 - 6:50
    So you're going to have minus 2
    times the submatrix-- we can
  • 6:50 - 6:51
    call it-- if we get rid
    of this guy's column
  • 6:51 - 6:52
    and this guy's row.
  • 6:52 - 6:55
    So 2, 3, 4, 1.
  • 6:59 - 7:01
    I just blanked this out.
  • 7:01 - 7:03
    If I could videotape my finger,
    I would cover my
  • 7:03 - 7:06
    finger over this column right
    here and over that row, and
  • 7:06 - 7:09
    you'd just see a 2,
    a 3, a 4, and a 1.
  • 7:09 - 7:10
    And that's what I
    put right there.
  • 7:10 - 7:15
    And then finally, we went
    plus, minus, plus.
  • 7:15 - 7:19
    So finally, we'll have plus 4
    times the determinant of the
  • 7:19 - 7:21
    submatrix, if you get rid of
    that row in that column.
  • 7:21 - 7:23
    So 2, minus 1, 4, 0.
  • 7:29 - 7:31
    Now, these are pretty
    straightforward.
  • 7:31 - 7:33
    These are not too
    bad to compute.
  • 7:33 - 7:33
    Let's actually do it.
  • 7:33 - 7:37
    So this is going to be equal
    to 1 times what?
  • 7:37 - 7:38
    Minus 1 times 1.
  • 7:38 - 7:39
    Let me just write it out.
  • 7:39 - 7:44
    Minus 1 times 1, minus
    0 times 3.
  • 7:44 - 7:46
    This just comes from the
    definition of a 2 by 2
  • 7:46 - 7:47
    determinant.
  • 7:47 - 7:48
    We've already defined that.
  • 7:48 - 7:55
    And then we're going to have
    a minus 2 times 2 times 1,
  • 7:55 - 7:58
    minus 4 times 3.
  • 7:58 - 8:03
    And then finally, we're going to
    have a plus 4 times 2 times
  • 8:03 - 8:10
    0 minus minus 1 times 4.
  • 8:13 - 8:15
    I wrote it all out
    so you can see.
  • 8:15 - 8:18
    This thing right here is just
    this thing right here.
  • 8:18 - 8:20
    And then you have
    the 4 out front.
  • 8:20 - 8:22
    This thing right here was just
    this thing right here.
  • 8:22 - 8:25
    So it's the determinant of the
    2 by 2 submatrix for each of
  • 8:25 - 8:26
    these guys.
  • 8:26 - 8:31
    And if we compute this, this is
    equal to-- minus 1 times 1
  • 8:31 - 8:32
    is minus 1.
  • 8:32 - 8:35
    Minus 0, that's 0.
  • 8:35 - 8:38
    So this is a minus 1 times
    1, so that's a minus 1.
  • 8:38 - 8:42
    And then we get-- what
    is this equal to?
  • 8:42 - 8:44
    This right here is 12.
  • 8:44 - 8:47
    So you get 2 minus 12.
  • 8:47 - 8:48
    Right?
  • 8:48 - 8:50
    You get 2 times 1
    minus 4 times 3.
  • 8:50 - 8:52
    So it's minus 10.
  • 8:52 - 8:54
    So that is equal to minus 10.
  • 8:54 - 8:58
    And then you have a minus
    10 times a minus 2.
  • 8:58 - 9:01
    So that becomes a
    plus 20, right?
  • 9:01 - 9:03
    Minus 2 times minus 10.
  • 9:03 - 9:06
    And then finally, in the green,
    we have 2 times 0,
  • 9:06 - 9:08
    that's just a 0.
  • 9:08 - 9:11
    And then you have minus 1 times
    4, which is minus 4.
  • 9:11 - 9:15
    Then you have a minus sign
    here, so it's plus 4.
  • 9:15 - 9:17
    So this all becomes a plus 4.
  • 9:17 - 9:21
    Plus 4 times 4 is
    16, so plus 16.
  • 9:21 - 9:23
    And what do we get when
    we add this up?
  • 9:23 - 9:30
    We get 20 plus 16 minus 1.
  • 9:30 - 9:33
    It is equal to 35.
  • 9:33 - 9:34
    We're done.
  • 9:34 - 9:39
    We found the determinant
    of our 3 by 3 matrix.
  • 9:39 - 9:41
    Not too bad.
  • 9:41 - 9:47
    Right there, so that is equal
    to the determinant of C.
  • 9:47 - 9:50
    So the fact that this isn't
    0 tells you that C is
  • 9:50 - 9:51
    invertible.
  • 9:56 - 9:59
    In the next video, we'll try
    to extend this to n by n
  • 9:59 - 10:00
    square matrices.
Title:
Linear Algebra: 3x3 Determinant
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
10:01

English subtitles

Revisions Compare revisions