< Return to Video

Singular Matrices

  • 0:01 - 0:04
    Perhaps even more interesting
    than finding the inverse of a
  • 0:04 - 0:07
    matrix is trying to determine
    when an inverse of a matrix
  • 0:07 - 0:10
    doesn't exist. Or when
    it's undefined.
  • 0:10 - 0:15
    And a square matrix for which
    there is no inverse, of which
  • 0:15 - 0:17
    an inverse is undefined is
    called a singular matrix.
  • 0:17 - 0:20
    So let's think about what a
    singular matrix will look
  • 0:20 - 0:23
    like, and how that applies to
    the different problems that
  • 0:23 - 0:25
    we've address using matrices.
  • 0:25 - 0:27
    So if I had the other 2
    by 2, because that's
  • 0:27 - 0:28
    just a simpler example.
  • 0:28 - 0:31
    But it carries over into really
    any size square matrix.
  • 0:31 - 0:34
    So let's take our
    2 by 2 matrix.
  • 0:34 - 0:38
    And the elements are
    a, b, c and d.
  • 0:38 - 0:41
    What's the inverse
    of that matrix?
  • 0:41 - 0:44
    This hopefully is a bit of
    second nature to you now.
  • 0:44 - 0:52
    It's 1 over the determinant of
    a, times the adjoint of a.
  • 0:52 - 0:54
    And in this case, you just
    switch these two terms. So you
  • 0:54 - 0:55
    have a d and an a.
  • 0:55 - 0:56
    And you make these two
    terms negative.
  • 0:56 - 1:01
    So you have minus
    c and minus b.
  • 1:01 - 1:04
    So my question to you is, what
    will make this entire
  • 1:04 - 1:06
    expression undefined?
  • 1:06 - 1:09
    Well it doesn't matter what
    numbers I have. If I have
  • 1:09 - 1:12
    numbers here that make a
    defined, then I can obviously
  • 1:12 - 1:13
    swap them or make them negative,
    and it won't change
  • 1:13 - 1:15
    this part of the expression.
  • 1:15 - 1:20
    But what would create a problem
    is if we attempted to
  • 1:20 - 1:21
    divide by 0 here.
  • 1:21 - 1:26
    If the determinant of the
    matrix A were undefined.
  • 1:26 - 1:41
    So A inverse is undefined, if
    and only if-- and in math they
  • 1:41 - 1:47
    sometimes write it if with two
    f's-- if and only if the
  • 1:47 - 1:49
    determinant of A
    is equal to 0.
  • 1:49 - 1:52
    So the other way to view that
    is, if a determinant of any
  • 1:52 - 1:55
    matrix is equal to 0, then
    that matrix is a singular
  • 1:55 - 1:59
    matrix, and it has no inverse,
    or the inverse is undefined.
  • 1:59 - 2:03
    So let's think about in
    conceptual terms, at least the
  • 2:03 - 2:06
    two problems that we've looked
    at, what a 0 determinant
  • 2:06 - 2:08
    means, and see if we can get a
    little bit of intuition for
  • 2:08 - 2:12
    why there is no inverse.
  • 2:12 - 2:13
    So what is a 0 determinant?
  • 2:13 - 2:15
    In this case, what's a
    determinant of this 2 by 2?
  • 2:15 - 2:18
    Well the determinant of
    A is equal to what?
  • 2:18 - 2:21
    It's equal to ad minus bc.
  • 2:26 - 2:30
    So this matrix is singular, or
    it has no inverse, if this
  • 2:30 - 2:32
    expression is equal to 0.
  • 2:32 - 2:33
    So let me write that
    over here.
  • 2:33 - 2:40
    So if ad is equal to bc-- or we
    can just manipulate things,
  • 2:40 - 2:47
    and we could say if a/b is equal
    to c/d-- I just divided
  • 2:47 - 2:50
    both sides by b, and divided
    both sides by d-- so if the
  • 2:50 - 2:55
    ratio of a:b is the same as the
    ratio of c:d, then this
  • 2:55 - 2:57
    will have no inverse.
  • 2:57 - 3:01
    Or another way we could write
    this expression, if a/c-- if I
  • 3:01 - 3:07
    divide both sides by c, and
    divide both sides by d-- is
  • 3:07 - 3:11
    equal to b/d.
  • 3:11 - 3:14
    So another way that this would
    be singular is if-- and it's
  • 3:14 - 3:15
    actually the same way.
  • 3:15 - 3:17
    If this is true, then
    this is true.
  • 3:17 - 3:18
    These are the same.
  • 3:18 - 3:20
    Just a little bit of algebraic
    manipulation.
  • 3:20 - 3:24
    But if the ratio of a:c is equal
    to the ratio of b:d, and
  • 3:24 - 3:25
    you can think about why
    that's the same thing.
  • 3:25 - 3:27
    The ratio of a:b being
    the same thing as
  • 3:27 - 3:28
    the ratio of c:d.
  • 3:28 - 3:29
    But anyway, I don't want
    to confuse you.
  • 3:29 - 3:33
    But let's think about how that
    translates into some of the
  • 3:33 - 3:35
    problems that we looked at.
  • 3:35 - 3:41
    So let's say that we wanted to
    look at the problem-- Let's
  • 3:41 - 3:45
    say that we had this matrix
    representing the linear
  • 3:45 - 3:46
    equation problem.
  • 3:46 - 3:47
    Well, actually, this would
    be either one.
  • 3:47 - 4:01
    So I have a, b, c, d times x,
    y Is equal to two other
  • 4:01 - 4:07
    numbers that we haven't
    used yet, e and f.
  • 4:07 - 4:10
    So if we have this matrix
    equation representing the
  • 4:10 - 4:12
    linear equation problem, then
    the linear equation problem
  • 4:12 - 4:23
    would be translated a times x
    plus b times y is equal to e.
  • 4:23 - 4:31
    And c times x plus d times
    y is equal to f.
  • 4:31 - 4:34
    And we would want to see where
    these two intersect.
  • 4:34 - 4:35
    That would be the solution,
    the vector
  • 4:35 - 4:37
    solution to this equation.
  • 4:37 - 4:41
    And so, just to get a visual
    understanding of what these
  • 4:41 - 4:44
    two lines look like, let's
    put it into the
  • 4:44 - 4:45
    slope y-intercept form.
  • 4:45 - 4:48
    So this would become what?
  • 4:48 - 4:52
    In this case, y is
    equal to what?
  • 4:52 - 5:05
    y is equal to minus
    a/b, x plus e/b.
  • 5:05 - 5:06
    I'm just skipping some steps.
  • 5:06 - 5:09
    But you subtract ax
    from both sides.
  • 5:09 - 5:12
    And then divide both sides
    by b, and you get that.
  • 5:12 - 5:14
    And then this equation, if you
    put it in the same form, just
  • 5:14 - 5:16
    solve for y.
  • 5:16 - 5:36
    You get y is equal to minus
    c/d x plus f/y.
  • 5:36 - 5:40
    So let's think about this.
  • 5:40 - 5:43
    I should probably change colors
    because it looks too--
  • 5:43 - 5:47
    Let's think about what these two
    equations would look like
  • 5:47 - 5:48
    if this holds.
  • 5:51 - 5:54
    And we said if this holds, then
    we have no determinant,
  • 5:54 - 5:57
    and this becomes a singular
    matrix, and it has no inverse.
  • 5:57 - 6:00
    And since it has no inverse, you
    can't solve this equation
  • 6:00 - 6:02
    by multiplying both sides by
    the inverse, because the
  • 6:02 - 6:03
    inverse doesn't exist.
  • 6:03 - 6:05
    So let's think about this.
  • 6:05 - 6:07
    If this is true, we have no
    determinant, but what does
  • 6:07 - 6:11
    that mean intuitively in terms
    of these equations?
  • 6:11 - 6:19
    Well if a/b is equal to c/d,
    these two lines will have the
  • 6:19 - 6:20
    same slope.
  • 6:20 - 6:22
    They'll have the same slope.
  • 6:22 - 6:24
    So if these two expressions are
    different, then what do we
  • 6:24 - 6:25
    know about them?
  • 6:25 - 6:27
    If two lines that have the
    same slope and different
  • 6:27 - 6:30
    y-intercepts, they're parallel
    to each other, and they will
  • 6:30 - 6:32
    never, ever intersect.
  • 6:32 - 6:46
    So let me draw that, just so you
    get the-- this top line--
  • 6:46 - 6:48
    They don't have to be positive
    numbers, but since this has a
  • 6:48 - 6:51
    negative, I'll draw it
    as a negative slope.
  • 6:51 - 6:55
    So that's the first line.
  • 6:55 - 7:00
    And its y-intercept
    will be e/b.
  • 7:03 - 7:06
    That's this line right here.
  • 7:06 - 7:11
    And then the second line-- let
    me do it in another color-- I
  • 7:11 - 7:13
    don't know if it's going to be
    above or below that line, but
  • 7:13 - 7:15
    it's going to be parallel.
  • 7:15 - 7:16
    It'll look something
    like this.
  • 7:20 - 7:24
    And that line's y-intercept--
    so that's this line-- that
  • 7:24 - 7:29
    line's y intercept is
    going to be f/y.
  • 7:29 - 7:32
    So if e/b and f/y are different
    terms, but both
  • 7:32 - 7:34
    lines have the same equation,
    they're going to be parallel
  • 7:34 - 7:36
    and they'll never intersect.
  • 7:36 - 7:38
    So there actually would
    be no solution.
  • 7:38 - 7:41
    If someone told you-- just the
    traditional way that you've
  • 7:41 - 7:44
    done it, either through
    substitution, or through
  • 7:44 - 7:46
    adding or subtracting the
    linear equations-- you
  • 7:46 - 7:47
    wouldn't be able to find a
    solution where these two
  • 7:47 - 7:50
    intersect, if a/b
    is equal to c/d.
  • 7:50 - 7:53
    So one way to view the singular
    matrix is that you
  • 7:53 - 7:54
    have parallel lines.
  • 7:54 - 7:57
    Well then you might say, hey
    Sal, but these two lines would
  • 7:57 - 7:59
    intersect if e/b equaled f/y.
  • 7:59 - 8:02
    If this and this were the
    same, then these would
  • 8:02 - 8:04
    actually be the identical
    lines.
  • 8:04 - 8:06
    And not only would they
    intersect, they would
  • 8:06 - 8:08
    intersect in an infinite
    number of places.
  • 8:08 - 8:11
    But still you would have
    no unique solution.
  • 8:11 - 8:14
    You'd have no one solution
    to this equation.
  • 8:14 - 8:17
    It would be true at all
    values of x and y.
  • 8:17 - 8:20
    So you can kind of view it when
    you apply the matrices to
  • 8:20 - 8:22
    this problem.
  • 8:22 - 8:25
    The matrix is singular, if the
    two lines that are being
  • 8:25 - 8:30
    represented are either parallel,
    or they are the
  • 8:30 - 8:31
    exact same line.
  • 8:31 - 8:34
    They're parallel and not
    intersecting at all.
  • 8:34 - 8:36
    Or they are the exact same line,
    and they intersect at an
  • 8:36 - 8:41
    infinite number of points.
  • 8:41 - 8:42
    And so it kind of makes
    sense that the A
  • 8:42 - 8:44
    inverse wasn't defined.
  • 8:44 - 8:48
    So let's think about this in
    the context of the linear
  • 8:48 - 8:50
    combinations of vectors.
  • 8:50 - 8:52
    That's not what I wanted
    to use to erase it.
  • 8:59 - 9:02
    So when we think of this problem
    in terms of linear
  • 9:02 - 9:06
    combination of factors, we can
    think of it like this.
  • 9:06 - 9:15
    That this is the same thing as
    the vector ac times x plus the
  • 9:15 - 9:26
    vector bd times y, is equal
    to the vector ef.
  • 9:26 - 9:27
    So let's think about
    it a little bit.
  • 9:27 - 9:30
    We're saying, is there some
    combination of the vector ac
  • 9:30 - 9:35
    and the vector bd that
    equals the vector ef.
  • 9:35 - 9:39
    But we just said that if we have
    no inverse here, we know
  • 9:39 - 9:42
    that because the determinant
    is 0.
  • 9:42 - 9:45
    And if the determinant is 0,
    then we know in this situation
  • 9:45 - 9:51
    that a/c must equal b/d.
  • 9:51 - 9:53
    So a/c is equal to b/d.
  • 9:53 - 9:56
    So what does that tell us?
  • 9:56 - 9:59
    Well let me draw it.
  • 9:59 - 10:01
    And maybe numbers would
    be more helpful here.
  • 10:01 - 10:03
    But I think you'll get
    the intuition.
  • 10:03 - 10:05
    I'll just draw the
    first quadrant.
  • 10:05 - 10:09
    I'll just assume both vectors
    are in the first quadrant.
  • 10:09 - 10:11
    Let me draw.
  • 10:18 - 10:20
    The vector ac.
  • 10:20 - 10:21
    Let's say that this is a.
  • 10:21 - 10:23
    Let me do it in a
    different color.
  • 10:23 - 10:25
    So I'm gonna draw
    the vector ac.
  • 10:25 - 10:32
    So if this is a, and this
    is c, then the vector
  • 10:32 - 10:34
    ac looks like that.
  • 10:34 - 10:34
    Let me draw it.
  • 10:34 - 10:36
    I want to make this neat.
  • 10:36 - 10:40
    The vector ac is like that.
  • 10:40 - 10:43
    And then we have the arrow.
  • 10:43 - 10:45
    And what would the vector
    bd look like?
  • 10:50 - 10:54
    Well the vector bd--
    And I could draw
  • 10:54 - 10:55
    it arbitrarily someplace.
  • 10:55 - 10:59
    But we're assuming that there's
    no derivative-- sorry,
  • 10:59 - 11:00
    no determinant.
  • 11:00 - 11:01
    Have I been saying derivative
    the whole time?
  • 11:01 - 11:02
    I hope not.
  • 11:02 - 11:03
    Well, we're assuming
    that there's no
  • 11:03 - 11:06
    determinant to this matrix.
  • 11:06 - 11:08
    So if there's no determinant,
    we know that
  • 11:08 - 11:12
    a/c is equal to b/d.
  • 11:12 - 11:16
    Or another way to view it is
    that c/d is equal to d/b.
  • 11:16 - 11:18
    But what that tells you is that
    both of these vectors
  • 11:18 - 11:19
    kind of have the same slope.
  • 11:19 - 11:23
    So if they both start at point
    0, they're going to go in the
  • 11:23 - 11:23
    same direction.
  • 11:23 - 11:26
    They might have a different
    magnitude, but they're going
  • 11:26 - 11:27
    to go in the same direction.
  • 11:27 - 11:37
    So if this is point b, and this
    is point d, vector bd is
  • 11:37 - 11:40
    going to be here.
  • 11:40 - 11:42
    And if that's not obvious to
    you, think a little bit about
  • 11:42 - 11:46
    why these two vectors, if this
    is true, are going to point in
  • 11:46 - 11:48
    the same direction.
  • 11:48 - 11:52
    So that vector is going to
    essentially overlap.
  • 11:52 - 11:56
    It's going to have the same
    direction as this vector, but
  • 11:56 - 11:59
    it's just going to have
    a different magnitude.
  • 11:59 - 12:01
    It might have the
    same magnitude.
  • 12:01 - 12:04
    So my question to you is, vector
    ef, we don't know where
  • 12:04 - 12:06
    vector ef is.
  • 12:06 - 12:08
    Well let's pick some
    arbitrary point.
  • 12:08 - 12:12
    Let's say that this is
    e, and this is f.
  • 12:12 - 12:14
    So this is vector ef up there.
  • 12:14 - 12:17
    Let me do it in a
    different color.
  • 12:17 - 12:19
    Vector ef, let's
    say it's there.
  • 12:23 - 12:27
    So my question to you is, if
    these two vectors are in the
  • 12:27 - 12:27
    same direction.
  • 12:27 - 12:29
    Maybe of different magnitude.
  • 12:29 - 12:33
    Is there any way that you can
    add or subtract combinations
  • 12:33 - 12:35
    of these two vectors to
    get to this vector?
  • 12:35 - 12:37
    Well no, you can scale these
    vectors and add them.
  • 12:37 - 12:40
    And all you're going to do is
    kind of move along this line.
  • 12:40 - 12:42
    You can get to any
    other vector.
  • 12:42 - 12:44
    There's a multiple of one
    of these vectors.
  • 12:44 - 12:47
    But because these are the exact
    same direction, you
  • 12:47 - 12:50
    can't get to any vector that's
    in a different direction.
  • 12:50 - 12:53
    So if this vector is in a
    different direction, there's
  • 12:53 - 12:54
    no solution here.
  • 12:54 - 13:01
    If this vector just happened to
    be in the same direction as
  • 13:01 - 13:04
    this, then there would be a
    solution, where you could just
  • 13:04 - 13:05
    scale those.
  • 13:05 - 13:08
    Actually, there would be an
    infinite number of solutions
  • 13:08 - 13:10
    in terms of x and y.
  • 13:10 - 13:14
    But if the vector is slightly
    different, in terms of its
  • 13:14 - 13:15
    direction, then there
    is no solution.
  • 13:15 - 13:18
    There is no combination of this
    vector and this vector
  • 13:18 - 13:20
    that can add you
    up to this one.
  • 13:20 - 13:22
    And it's something for you
    think about a little bit.
  • 13:22 - 13:23
    It might be obvious to you.
  • 13:23 - 13:25
    But another way to think about
    it is, when you're trying to
  • 13:25 - 13:29
    take sums of vectors, any other
    vector, in order to move
  • 13:29 - 13:31
    it in that direction, you have
    to have a little bit of one
  • 13:31 - 13:33
    direction and a little bit of
    another direction, to get to
  • 13:33 - 13:34
    any other vector.
  • 13:34 - 13:37
    And if both of your ingredient
    vectors are the same
  • 13:37 - 13:39
    direction, there's no way to
    get to a different one.
  • 13:39 - 13:42
    Anyway, I'm probably just being
    circular in what I'm
  • 13:42 - 13:43
    explaining.
  • 13:43 - 13:48
    But that hopefully gives you a
    little bit of an intuition of
  • 13:48 - 13:51
    well, one, you now know what
    a singular matrix is.
  • 13:51 - 13:58
    You know when you can not
    find its inverse.
  • 13:58 - 14:01
    You know that when the
    determinant is 0, you won't
  • 14:01 - 14:02
    find an inverse.
  • 14:02 - 14:04
    And hopefully-- and this was
    the whole point of this
  • 14:04 - 14:08
    video-- you have an intuition
    of why that is.
  • 14:08 - 14:10
    Because if you're looking at the
    vector problem, there's no
  • 14:10 - 14:13
    way that you can find-- that
    either there's no solution to
  • 14:13 - 14:15
    finding the combination of the
    vectors that get you to that
  • 14:15 - 14:16
    vector, or there are
    an infinite number.
  • 14:16 - 14:18
    And the same thing is
    true of finding the
  • 14:18 - 14:19
    intersection of two lines.
  • 14:19 - 14:21
    They're either parallel, or
    they're the same line, if the
  • 14:21 - 14:23
    determinant is 0.
  • 14:23 - 14:26
    Anyway, I will see you
    in the next video.
Title:
Singular Matrices
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
14:27
Fran Ontanaya edited English subtitles for Singular Matrices
Amara Bot edited English subtitles for Singular Matrices

English subtitles

Revisions Compare revisions