Return to Video

https:/.../matrixinversionof3x3matrixf61mb-aspect.mp4

  • 0:06 - 0:10
    We've already seen how to use
    the inverse of two by two
  • 0:10 - 0:13
    matrices to solve systems of two
    simultaneous equations. Inverse
  • 0:13 - 0:16
    matrices are always useful in
    solving simultaneous equations,
  • 0:16 - 0:21
    and so we want to look at in
    this video is how to find the
  • 0:21 - 0:25
    inverse of a three by three
    matrix. This video builds very
  • 0:25 - 0:29
    much on the previous video which
    describe finding the determinant
  • 0:29 - 0:33
    of a three by three matrix, and
    it's important that you're
  • 0:33 - 0:35
    familiar with the ideas in that
  • 0:35 - 0:40
    video. Before you watch this one
    in particular, you need to know
  • 0:40 - 0:42
    about cofactors and
  • 0:42 - 0:46
    determinants. Here's the Matrix
    a that we saw in the video on
  • 0:46 - 0:50
    calculating determinants and we
    saw in that video how every
  • 0:50 - 0:52
    element in the matrix A has its
  • 0:52 - 0:56
    own cofactor. And the Co
    factor is just a value, a
  • 0:56 - 0:59
    single number, and what I've
    done here is I've assembled
  • 0:59 - 1:03
    all those cofactors into a
    matrix that we've called see.
  • 1:03 - 1:06
    So for instance, the cofactor
    of elements 7 is minus two,
  • 1:06 - 1:10
    and the cofactor Element 4 is
    7, and so it goes on.
  • 1:12 - 1:17
    Now what we want to find the
    inverse of matrix A. We have to
  • 1:17 - 1:23
    use this matrix C, but not quite
    how it is at the moment. What we
  • 1:23 - 1:28
    have to do is we use it to
    create something called the
  • 1:28 - 1:32
    adjoint matrix and we call the
    adjoint matrix adj adj for a
  • 1:32 - 1:37
    joint. The adjoint of matrix A.
    This is true for all matrices,
  • 1:37 - 1:41
    not just this matrix is the
    transpose of the cofactor
  • 1:41 - 1:42
    matrix. So here's the cofactor
  • 1:42 - 1:47
    matrix. To find the adjoint
    matrix we have to transpose
  • 1:47 - 1:52
    this. That means we have to
    change the rows into columns.
  • 1:52 - 1:57
    The columns into rows. So the
    first row minus 239 becomes the
  • 1:57 - 2:02
    first column minus 239. The 2nd
    row becomes the second column.
  • 2:02 - 2:08
    And the third row becomes
    the third column.
  • 2:09 - 2:16
    So we found now the adjoint
    matrix, then the formula for the
  • 2:16 - 2:24
    inverse matrix. Is the inverse
    of matrix A? Is one over
  • 2:24 - 2:26
    the determinant of a?
  • 2:27 - 2:30
    Times by the adjoint matrix.
  • 2:31 - 2:38
    I'm writing that using
    this notation. A inverse
  • 2:38 - 2:45
    is the value one
    over determinant of a
  • 2:45 - 2:51
    times by the adjoint
    matrix of a.
  • 2:52 - 2:55
    And that's the key result
  • 2:55 - 3:02
    in finding. The inverse of any
    matrix and will use that result
  • 3:02 - 3:05
    to find the inverse of our
  • 3:05 - 3:10
    matrix A. Here's our Matrix A
    and we've worked out the adjoint
  • 3:10 - 3:14
    matrix. The formula for the
    inverse is the inverse of A is
  • 3:14 - 3:19
    one over the determinant value
    times by the adjoint of a. Now
  • 3:19 - 3:23
    in the video where we worked out
    the determinant of this matrix,
  • 3:23 - 3:27
    we found the determinant of this
    matrix A is equal to 1.
  • 3:28 - 3:34
    So in this case, the value 1
    divided by the determinant of a
  • 3:34 - 3:41
    is just 1 / 1 which is 1. So
    in this case a inverse is 1
  • 3:41 - 3:47
    times the joint of a or just the
    adjoint of a. So a inverse turns
  • 3:47 - 3:54
    out to be just this matrix here
    minus two 8 -- 5, three minus
  • 3:54 - 3:56
    11, seven 9 -- 3421.
  • 3:56 - 4:01
    What you should do is you
    should check by doing matrix
  • 4:01 - 4:04
    multiplication that when you
    multiply original matrix A by
  • 4:04 - 4:09
    this matrix we've just found
    here a inverse, so we do a
  • 4:09 - 4:13
    multiplied by inverse that you
    do indeed get the three by
  • 4:13 - 4:14
    three identity matrix.
  • 4:15 - 4:21
    What I want to go on to do now
    is to show how we can use this
  • 4:21 - 4:23
    inverse matrix to solve a set of
  • 4:23 - 4:27
    simultaneous linear equations.
    Here we have a set of three
  • 4:27 - 4:33
    simultaneous equations, 7X plus
    two Y + Z = 21, three y --
  • 4:33 - 4:40
    8 = 5 minus three X + 4 Y
    minus two, Z = -- 1. We want to
  • 4:40 - 4:44
    solve these define the values of
    XY&Z. There are unknowns.
  • 4:45 - 4:49
    And we've seen how we can do. We
    can represent these equations
  • 4:49 - 4:54
    using some key matrices, so we
    have matrix A, which is the
  • 4:54 - 4:58
    matrix of coefficients 721
    nought. 3 -- 1 -- 3, four and
  • 4:58 - 5:02
    minus 2. There's the question
    here is not because we
  • 5:02 - 5:04
    haven't got any access, so
    we've got like no XSS.
  • 5:05 - 5:10
    Then we have a matrix which is
    just a single column, which is
  • 5:10 - 5:15
    the unknowns XY&Z and then I
    have a separate matrix B which
  • 5:15 - 5:19
    again is just a single column
    with the values from the right
  • 5:19 - 5:24
    hand side of the equations. So
    in matrix form these equations
  • 5:24 - 5:29
    can be written as this matrix a
    times this vector X is equal to
  • 5:29 - 5:30
    this matrix disks.
  • 5:32 - 5:36
    Then the solution of this
    equation ax equals B.
  • 5:36 - 5:41
    We can find by multiplying
    both sides by the inverse of A
  • 5:41 - 5:46
    to get that X = a inverse
    times D. So to find our
  • 5:46 - 5:52
    solution XY and Z, we need to
    find a inverse. And of course
  • 5:52 - 5:56
    we've just done that. We've
    seen that a inverse is this
  • 5:56 - 5:57
    matrix.
  • 5:58 - 5:59
    Minus 2.
  • 6:00 - 6:06
    8 -- 5 three
    minus 11 seven.
  • 6:07 - 6:10
    9 --
  • 6:10 - 6:15
    3421. So that's the matrix, a
    inverse that we've just seen
  • 6:15 - 6:16
    a few minutes ago.
  • 6:18 - 6:23
    And so we have to do a inverse
    times be. So here's be.
  • 6:24 - 6:28
    20 one 5 --
  • 6:28 - 6:34
    1. And so we do the matrix
    multiplication 2 * 21 is minus
  • 6:34 - 6:41
    40, two 8 * 5 is 40 --
    5 * -- 1 is +5.
  • 6:42 - 6:44
    That's our first entry.
  • 6:44 - 6:52
    I'm going along the 2nd row 3 *
    2163 -- 11 * 5 is minus 50 five
  • 6:52 - 6:55
    7 * -- 1 is minus 7.
  • 6:55 - 7:03
    And along the last row, 9 *
    21 is 189 -- 34 * 5
  • 7:03 - 7:09
    is minus 170 and 21 * --
    1 is minus 21.
  • 7:09 - 7:16
    And so if we do the arithmetic,
    we have 45 -- 42, which is 3.
  • 7:16 - 7:20
    We have 63 -- 6 D 2 which
  • 7:20 - 7:27
    is 1. And we have 189
    -- 191, which is minus 2. So
  • 7:27 - 7:32
    the unknowns that we're trying
    to find the column matrix X.
  • 7:33 - 7:37
    Which is XY
    zed?
  • 7:38 - 7:45
    Is this column matrix three 1 --
    2 so X is equal to 3, Y
  • 7:45 - 7:51
    is equal to 1 that is equal to
    minus two. That's our solution X
  • 7:51 - 7:54
    = 3 Y equals one, zed equals
  • 7:54 - 7:59
    minus 2. And you can check if
    you substitute these values
  • 7:59 - 8:02
    back into any of these
    equations, you'll see that the
  • 8:02 - 8:05
    two sides do balance. So for
    instance, just the second
  • 8:05 - 8:09
    equation with. Why is worn and
    said he's minus two, we get 3
  • 8:09 - 8:14
    * 1 is 3 -- -- 2 three plus
    two, which is indeed five you
  • 8:14 - 8:17
    submit those into the two.
    You'll see that they work as
  • 8:17 - 8:18
    well.
  • 8:19 - 8:23
    So inverse matrices are really
    important when it comes to
  • 8:23 - 8:27
    solving simultaneous equations.
    Now you'll notice that our
  • 8:27 - 8:32
    formula for finding the inverse
    for three by three matrix had
  • 8:32 - 8:36
    the value 1 divided by the
    determinant of a.
  • 8:37 - 8:40
    Now that means that if the
    determined today is zero, we
  • 8:40 - 8:44
    can't actually work that value
    out because we can't divide by
  • 8:44 - 8:48
    zero. Now, when the determined
    to the matrix is zero, we say
  • 8:48 - 8:52
    the matrix is singular and when
    a matrix is singular, it doesn't
  • 8:52 - 8:55
    have an inverse matrix and
    inverse matrix just doesn't
  • 8:55 - 8:59
    exist, and so we can't apply the
    formula. So whenever we're
  • 8:59 - 9:02
    trying to workout inverse
    matrices, the thing we should do
  • 9:02 - 9:05
    first of all is workout the
    determinant and check that it
  • 9:05 - 9:08
    isn't going to turn out to be 0.
Title:
https:/.../matrixinversionof3x3matrixf61mb-aspect.mp4
Video Language:
English
Duration:
09:13

English subtitles

Revisions