Return to Video

https:/.../simultaneousequationsf61mb-aspect.mp4

  • 0:05 - 0:08
    One of the most important
    applications of matrices is to
  • 0:08 - 0:12
    finding the solution of a pair
    of simultaneous equations. So in
  • 0:12 - 0:16
    this video I'm going to show you
    how we can use matrices to do
  • 0:16 - 0:19
    just that. Let's look at this
    pair of simultaneous equations
  • 0:19 - 0:24
    here. X + 2 is four and three X
    -- 5 Y is 1.
  • 0:24 - 0:27
    Provided you understand how
    matrices are multiplied
  • 0:27 - 0:32
    together, you will be able to
    write these equations in what's
  • 0:32 - 0:34
    called matrix form. I'll show
  • 0:34 - 0:41
    you how. Supposing we write down
    the Matrix 1, two, 3 -- 5, and
  • 0:41 - 0:48
    we multiply it by another matrix
    XY. Let's just see how we can do
  • 0:48 - 0:53
    that. So we have a two by two
    matrix here and I formed it from
  • 0:53 - 0:57
    the coefficients of X&Y in the
    simultaneous equations 1, two, 3
  • 0:57 - 1:03
    -- 5. I've written this matrix
    here X&Y, which was which,
  • 1:03 - 1:06
    contains the unknowns in the
  • 1:06 - 1:10
    simultaneous equations. Now,
    provided you can understand how
  • 1:10 - 1:13
    to do matrix multiplication, you
    realize that these can be
  • 1:13 - 1:17
    multiplied together as follows.
    You pair the Elements 1, two
  • 1:17 - 1:20
    with XY and multiply the paired
    elements together and then add.
  • 1:21 - 1:23
    So it's 1 * X.
  • 1:24 - 1:30
    Which is X added to 2 *
    y which is 2 Y.
  • 1:30 - 1:35
    And you'll notice that X + 2 Y
    is the same as the quantity on
  • 1:35 - 1:37
    the left hand side of the first
  • 1:37 - 1:42
    equation. If we look at this
    second row here and multiply it
  • 1:42 - 1:47
    by the X and the Y 3 * X
    -- 5 * y.
  • 1:48 - 1:49
    And you'll see what we have
  • 1:49 - 1:53
    here. Is the left hand side of
    the second equation in the
  • 1:53 - 1:58
    simultaneous equations? And then
    we can write. This lot is equal
  • 1:58 - 2:03
    to 4, one which is a matrix
    formed by the right hand side
  • 2:03 - 2:05
    numbers in the simultaneous
  • 2:05 - 2:08
    equations. So you've really got
    the simultaneous equations
  • 2:08 - 2:12
    written down. In here you got X
    + 2 Y's four and three X -- 5 Y
  • 2:12 - 2:17
    is 1. So these are the original
    simultaneous equations, but in
  • 2:17 - 2:20
    matrix form. If we call this
  • 2:20 - 2:24
    matrix A. And this matrix
    of unknowns. Let's call
  • 2:24 - 2:26
    that capital X.
  • 2:27 - 2:31
    And this matrix on the right
    hand side. Let's call that B.
  • 2:31 - 2:38
    This form now have here is
    what we call the matrix form
  • 2:38 - 2:41
    of the simultaneous equations.
  • 2:41 - 2:45
    Let's think about which bits in
    this in this in this matrix
  • 2:45 - 2:49
    form. We know which bits we
    don't know. Well, the matrix A1,
  • 2:49 - 2:54
    two 3 -- 5 is known. It's just
    the matrix of coefficients of
  • 2:54 - 2:58
    X&Y in the original equations,
    the matrix be on the right is
  • 2:58 - 3:03
    this 141, which is just the
    matrix formed by the right hand
  • 3:03 - 3:04
    side of the simultaneous
  • 3:04 - 3:08
    equations. This quantity,
    capital X. This matrix here,
  • 3:08 - 3:12
    which stands for little X
    little. Y that's the unknown.
  • 3:12 - 3:16
    That's the thing we're trying
    to find, so this is the
  • 3:16 - 3:17
    matrix of unknowns.
  • 3:18 - 3:22
    So what we'd like to do is,
    like, we'd like to rearrange
  • 3:22 - 3:25
    this and get X equal to
    something, because then we've
  • 3:25 - 3:27
    got the solution of the
    simultaneous equations. We've
  • 3:27 - 3:31
    got the unknown on its on its
    own on the left hand side. Now
  • 3:31 - 3:35
    we can find this unknown matrix
    X the matrix of unknowns using
  • 3:35 - 3:38
    the inverse matrix. Let's see
    how we can do that.
  • 3:39 - 3:43
    So this is the matrix equation
    we want to solve. Now you might
  • 3:43 - 3:49
    be tempted to say if you want to
    find X, then X is B / A, but
  • 3:49 - 3:52
    remember there's no such thing
    as matrix division. You can't
  • 3:52 - 3:56
    divide matrix be by a matrix A
    and instead we make use of the
  • 3:56 - 4:00
    inverse matrix. What we'll do is
    we'll take this matrix form and
  • 4:00 - 4:05
    we multiply both sides of it by
    the inverse of matrix A. So I'm
  • 4:05 - 4:09
    going to take the left hand side
    and multiply it by the inverse.
  • 4:09 - 4:14
    Of a. And do the same to the
    right hand side.
  • 4:14 - 4:18
    So both sides of this equation
    have been multiplied by 8 to the
  • 4:18 - 4:22
    minus one. Now remember a very
    important property of inverse
  • 4:22 - 4:26
    matrices is that when you take A
    to the minus one and multiply it
  • 4:26 - 4:28
    by a, the result here.
  • 4:28 - 4:33
    Is an identity matrix, so ETA
    minus one A is an identity
  • 4:33 - 4:39
    matrix, so even identity matrix
    times X is A to the minus 1B.
  • 4:39 - 4:43
    And further property that you'll
    need to remember, which is very
  • 4:43 - 4:47
    important, is that if you take
    any matrix X and you multiply it
  • 4:47 - 4:50
    by an identity matrix, it leaves
    it identical to what it was
  • 4:50 - 4:54
    before, so the left hand side
    just simplifies this simply to
  • 4:54 - 4:59
    X. So we've come to the
    conclusion that if a X is B,
  • 4:59 - 5:05
    then the unknown X is the
    inverse of a * B. So this is the
  • 5:05 - 5:07
    important result that will need
  • 5:07 - 5:10
    to use. To solve a pair of
    simultaneous equations, what
  • 5:10 - 5:14
    will need to do is find the
    inverse of the matrix of
  • 5:14 - 5:17
    coefficients and multiply that
    by the matrix formed by the
  • 5:17 - 5:21
    elements by the numbers on the
    right hand side of the
  • 5:21 - 5:24
    simultaneous equations. So this
    is the formula will need will do
  • 5:24 - 5:26
    that in an example now.
  • 5:27 - 5:30
    So let's continue with this
    example. Here are the
  • 5:30 - 5:32
    simultaneous equations that we
    started with, and we've written
  • 5:32 - 5:37
    them in matrix form like this.
    That's in the form ax is B.
  • 5:37 - 5:38
    Well, this is the matrix. A
  • 5:38 - 5:42
    matrix of coefficients. This is
    the matrix Capital X, the matrix
  • 5:42 - 5:46
    of unknowns and B is the matrix
    formed by the elements on the
  • 5:46 - 5:51
    right hand side. What we need to
    do to solve this is we need to
  • 5:51 - 5:56
    find the inverse of a. So let's
    start by writing down the
  • 5:56 - 6:00
    inverse of this matrix here. Now
    remember that the formula for
  • 6:00 - 6:04
    the inverse matrix is as
    follows. 1 / a D minus BC.
  • 6:04 - 6:09
    That's 1 * -- 5, which is minus
    5. Subtract VC's 2346.
  • 6:09 - 6:14
    We interchange the A and the D.
    So minus five will go up there
  • 6:14 - 6:19
    and one will go down there and
    we change the sign of the other
  • 6:19 - 6:22
    two elements. So this is the
    inverse of the matrix A.
  • 6:23 - 6:29
    Let's just tidy it up a little
    bit, minus 5 -- 6 is minus 11,
  • 6:29 - 6:31
    so we've got minus and 11th.
  • 6:32 - 6:36
    Of the matrix minus 5 -- 2 -- 3
    and one and I'm going to leave
  • 6:36 - 6:39
    it in that form. I don't need to
    worry about taking the factor of
  • 6:39 - 6:40
    minus 1 / 11 inside.
  • 6:41 - 6:46
    Right, what we want to do now is
    find the matrix of unknowns X,
  • 6:46 - 6:51
    and remember that X is given by
    A to the minus 1 * B.
  • 6:52 - 6:55
    Eight of the minus one is now
    minus and 11th.
  • 6:56 - 7:03
    Times minus 5 -- 2
    -- 3 one multiplied by
  • 7:03 - 7:06
    matrix B which was four
  • 7:06 - 7:12
    one. And you'll see that all we
    need to do now to finish this
  • 7:12 - 7:15
    off is debit of matrix
    multiplication. Let's leave the
  • 7:15 - 7:16
    minus 11 outside.
  • 7:17 - 7:23
    And over here we've got minus 5
    * 4, which is minus 20 added to
  • 7:23 - 7:28
    minus 2 * 1. That's added to
    minus two, so you've got minus
  • 7:28 - 7:33
    22 there. And here pairing up
    this road with this column we've
  • 7:33 - 7:38
    got minus 3 * 4 is minus 12
    added to 1 * 1, which is minus
  • 7:38 - 7:40
    12 model on which is minus 11.
  • 7:41 - 7:45
    Finally, just to finish this
    off, every element inside the
  • 7:45 - 7:51
    matrix has to be multiplied by
    minus in 11th or in other words
  • 7:51 - 7:56
    divided by minus 11. And if we
    do that, this first entry will
  • 7:56 - 8:00
    be minus 22 / -- 11, which is 2.
  • 8:01 - 8:07
    And the second element is minus
    11 / -- 11, which is 1. So
  • 8:07 - 8:11
    that's the solution. This is the
    matrix X, which you'll remember
  • 8:11 - 8:17
    is the same as the matrix XY.
    This means that our little X is
  • 8:17 - 8:22
    2 and our little wise one, and
    that's the solution of the
  • 8:22 - 8:25
    simultaneous equations. Those
    are the solutions of the two
  • 8:25 - 8:26
    equations that we started with.
  • 8:27 - 8:30
    Rather than just leave it there
    like that, what you ought to do
  • 8:30 - 8:33
    to do is check that this
    solution is in fact correct by
  • 8:33 - 8:36
    substituting X is too. And why
    is 1 into these equations just
  • 8:36 - 8:39
    to check it's right. So for
    example, if you protect this
  • 8:39 - 8:42
    two in here, you'll get two and
    two ones are two there, two and
  • 8:42 - 8:44
    two is 4, so it satisfies the
    first equation. You should
  • 8:44 - 8:47
    check that it satisfies the
    second equation as well.
Title:
https:/.../simultaneousequationsf61mb-aspect.mp4
Video Language:
English
Duration:
08:52

English subtitles

Revisions