< Return to Video

Linear Algebra: Basis of a Subspace

  • 0:00 - 0:01
  • 0:01 - 0:04
    Let's say I have
    the subspace v.
  • 0:04 - 0:08
    And this is a subspace and we
    learned all about subspaces in
  • 0:08 - 0:10
    the last video.
  • 0:10 - 0:13
    And it's equal to the span
    of some set of vectors.
  • 0:13 - 0:16
    And I showed in that video that
    the span of any set of
  • 0:16 - 0:18
    vectors is a valid subspace.
  • 0:18 - 0:20
  • 0:20 - 0:25
    It's going to be the span of v1,
    v2, all the way, so it's
  • 0:25 - 0:26
    going to be n vectors.
  • 0:26 - 0:30
    So each of these are vectors.
  • 0:30 - 0:34
    Now let me also say that all of
    these vectors are linearly
  • 0:34 - 0:36
    independent.
  • 0:36 - 0:44
    So v1, v2, all the way to vn,
    this set of vectors are
  • 0:44 - 0:45
    linearly independent.
  • 0:45 - 0:50
  • 0:50 - 0:53
    Now before I kind of give you
    the punchline, let's review
  • 0:53 - 0:55
    what exactly span meant.
  • 0:55 - 1:00
    Span meant that this set, this
    subspace, represents all of
  • 1:00 - 1:02
    the possible linear
    combinations of
  • 1:02 - 1:05
    all of these vectors.
  • 1:05 - 1:08
    So you know, I could have all of
    the combinations for all of
  • 1:08 - 1:09
    the different c's.
  • 1:09 - 1:19
    So c1 times v1 plus c2 times v2,
    all the way to cn times vn
  • 1:19 - 1:21
    for all of the possible c's
    and the real numbers.
  • 1:21 - 1:24
    If you take all of the
    possibilities of these and you
  • 1:24 - 1:29
    put all of those vectors into
    a set, that is the span and
  • 1:29 - 1:32
    that's what we're defining
    the subspace v as.
  • 1:32 - 1:36
    Now, the definition of linear
    independence meant that the
  • 1:36 - 1:45
    only solution to c1, v1, plus
    c2, v2 plus all the way to cn,
  • 1:45 - 1:49
    vn, that the only solution to
    this equally the 0 vector--
  • 1:49 - 1:52
    maybe I should put a little
    vector sign up there-- is when
  • 1:52 - 1:54
    all of these terms
    are equal to 0.
  • 1:54 - 1:59
    c1 is equal to c2, is equal
    to all of these.
  • 1:59 - 2:01
    All of them are equal to 0.
  • 2:01 - 2:04
    Or kind of a more common sense
    way to think of it is that you
  • 2:04 - 2:08
    can't represent any one of these
    vectors as a combination
  • 2:08 - 2:09
    of the other vectors.
  • 2:09 - 2:14
    Now, if both of these conditions
    are true that the
  • 2:14 - 2:17
    span of this set of vectors is
    equal to this subspace or
  • 2:17 - 2:21
    creates this subspace or it
    spans this subspace, and that
  • 2:21 - 2:25
    all of these vectors are
    linearly independent, then we
  • 2:25 - 2:31
    can say that the set of
    vectors-- maybe we call this,
  • 2:31 - 2:32
    we could call this
    set of vectors s.
  • 2:32 - 2:40
    Where we say s is equal to v1,
    v2, all the way to vn.
  • 2:40 - 2:42
    It's equal to that
    set of vectors.
  • 2:42 - 2:45
    We can then say and this
    is the punchline.
  • 2:45 - 2:54
    We can then say that S, the
    set S is a basis for v.
  • 2:54 - 2:57
    And this is the definition
    I wanted to make.
  • 2:57 - 3:02
    If something is a basis for a
    set, that means that those
  • 3:02 - 3:05
    vectors, if you take the span
    of those vectors, you can
  • 3:05 - 3:09
    construct-- you can get to any
    of the factors in that
  • 3:09 - 3:13
    subspace and that those
    vectors are linearly
  • 3:13 - 3:14
    independent.
  • 3:14 - 3:17
    So there's a couple of ways
    to think about it.
  • 3:17 - 3:20
    One is there's a lot of things
    that might span for something.
  • 3:20 - 3:24
    For example, if this spans for
    v, then so would-- let me add
  • 3:24 - 3:27
    another vector.
  • 3:27 - 3:29
    Let me define another set.
  • 3:29 - 3:36
    Let me define set T to be
    all of set S: v1, v2,
  • 3:36 - 3:38
    all the way to vn.
  • 3:38 - 3:40
    But it also contains
    this other vector.
  • 3:40 - 3:45
    I'm going to call it the
    v special vector.
  • 3:45 - 3:47
    So it's going to be essentially,
    the set S plus
  • 3:47 - 3:48
    one more vector.
  • 3:48 - 3:53
    Where this vector I'm just
    saying is equal to v1 plus v2.
  • 3:53 - 3:57
    So clearly, this is not a
    linearly independent set.
  • 3:57 - 4:04
    But if I had asked you what the
    span of T is, the span of
  • 4:04 - 4:10
    T is still going to be
    this subspace, v.
  • 4:10 - 4:14
    But I have this extra vector
    in here that made it
  • 4:14 - 4:15
    non-linearly independent.
  • 4:15 - 4:18
    This set is not linearly
    independent.
  • 4:18 - 4:24
    So T is linearly dependent.
  • 4:24 - 4:31
    So in this case, T is
    not a basis for v.
  • 4:31 - 4:33
    And I had showed you this
    example because the way my
  • 4:33 - 4:37
    head thinks about basis is,
    the basis is really the
  • 4:37 - 4:42
    minimum set of vectors that I
    need, the minimum set-- and
  • 4:42 - 4:42
    I'll write this down.
  • 4:42 - 4:44
    This isn't a formal definition,
    but I view a
  • 4:44 - 4:49
    basis-- let me switch colors--
    as really the-- let me get a
  • 4:49 - 4:51
    good color here.
  • 4:51 - 4:57
    As a basis is the minimum-- I'll
    put it in quotes because
  • 4:57 - 4:58
    I haven't defined that.
  • 4:58 - 5:07
    The minimum set of vectors that
    spans the space that it's
  • 5:07 - 5:11
    a basis of, spans
    the subspace.
  • 5:11 - 5:14
  • 5:14 - 5:18
    So in this case, this is the
    minimum set of vectors.
  • 5:18 - 5:22
    And I'm not going to prove it
    just yet, but you can see
  • 5:22 - 5:24
    that, look.
  • 5:24 - 5:26
    This set of vectors right
    here, it does span the
  • 5:26 - 5:28
    subspace, but it's clearly not
    the minimum set of vectors.
  • 5:28 - 5:32
    Because the span of this thing,
    I could still remove
  • 5:32 - 5:33
    this last vector here.
  • 5:33 - 5:37
    I could still remove that guy
    and still-- and then the span
  • 5:37 - 5:44
    of what's left over is still
    going to span my subspace v.
  • 5:44 - 5:47
    So this guy right here
    was redundant.
  • 5:47 - 5:52
    In a basis, you have
    a no redundancy.
  • 5:52 - 5:58
    Each one of these guys is needed
    to be able to construct
  • 5:58 - 6:02
    any of the vectors in
    the subspace v.
  • 6:02 - 6:03
    Let me do some examples.
  • 6:03 - 6:06
  • 6:06 - 6:13
    So let's just take some
    vectors here.
  • 6:13 - 6:16
    Let's say I had to find
    my set of vectors, and
  • 6:16 - 6:19
    I'll deal in r2.
  • 6:19 - 6:23
    So let's say I have
    the vector 2, 3.
  • 6:23 - 6:26
  • 6:26 - 6:32
    Let's say I have the
    other vector 7, 0.
  • 6:32 - 6:34
    So first of all, let's just
    think about the span, the span
  • 6:34 - 6:36
    of this set of vectors.
  • 6:36 - 6:37
    This is a set of vectors.
  • 6:37 - 6:41
    So what's the span of S?
  • 6:41 - 6:44
    What's all of the linear
    combinations of this?
  • 6:44 - 6:46
    Well, let's see if
    it's all of r2.
  • 6:46 - 6:49
    So if it's all of r2 that means
    the linear combination
  • 6:49 - 6:52
    of this could be-- we could
    always construct anything in
  • 6:52 - 6:53
    r2 with the linear combination
    of this.
  • 6:53 - 7:01
    So if we have c1 times 2,
    3 plus c2 times 7, 0.
  • 7:01 - 7:04
    If it is true that this spans
    all of r2, then we should be
  • 7:04 - 7:07
    able to construct-- we should
    always be able find a c1 and a
  • 7:07 - 7:11
    c2 to construct any
    point in r2.
  • 7:11 - 7:13
    And let's see if we
    can show that.
  • 7:13 - 7:20
    So we get 2c1 plus 7c2
    is equal to x1.
  • 7:20 - 7:26
    And then we get 3c1 plus 0c2.
  • 7:26 - 7:28
    Plus 0 is equal to x2.
  • 7:28 - 7:31
    And if we take this second
    equation and divide both sides
  • 7:31 - 7:38
    by 3 we get c1 is equal
    to x2 over 3.
  • 7:38 - 7:41
    And then if we substitute that
    back into this first equation,
  • 7:41 - 7:46
    we get 2/3-- I'm just
    substituting c1 in there.
  • 7:46 - 7:50
    So 2/3 x2.
  • 7:50 - 7:57
    2 times x2 over 3 is 2/3 x2.
    plus 7c2 is equal to x1.
  • 7:57 - 7:58
    And then, what can we do?
  • 7:58 - 8:02
    We can subtract the 2/3
    x2 from both sides.
  • 8:02 - 8:03
    Let me do it right here.
  • 8:03 - 8:09
    So we get 7c2 is equal
    to x1 minus 2/3 x2.
  • 8:09 - 8:12
    Divide both sides of this
    by 7 and you get c2.
  • 8:12 - 8:15
    Let me do it in yellow.
  • 8:15 - 8:23
    You get c2 is equal to x1 over
    7 minus 2 over 21 x2.
  • 8:23 - 8:30
    So if you've given me any x1 and
    any x2 where either x1 or
  • 8:30 - 8:35
    x2 are a member of the real
    numbers, we're talking about--
  • 8:35 - 8:37
    well, everything we're going to
    be dealing with right now
  • 8:37 - 8:37
    is real numbers.
  • 8:37 - 8:40
    You give me any two
    real numbers.
  • 8:40 - 8:43
    I take my x2 divided by 3 and
    I'll give you your c1.
  • 8:43 - 8:46
    And I'll take the x1 divided
    by 7 and subtract
  • 8:46 - 8:48
    2/21 times your x2.
  • 8:48 - 8:50
    And I'll get you your c2.
  • 8:50 - 8:51
    This will never break.
  • 8:51 - 8:52
    There's no division
    by any of these.
  • 8:52 - 8:54
    You don't have to worry about
    these equaling a 0.
  • 8:54 - 8:57
    These two formulas
    will always work.
  • 8:57 - 9:01
    So you give me any x1 and any
    x2, I can always find
  • 9:01 - 9:02
    you a c1 or a c2.
  • 9:02 - 9:05
    Which is essentially finding a
    linear combination that will
  • 9:05 - 9:06
    equal your vector.
  • 9:06 - 9:08
    So the span of S is r2.
  • 9:08 - 9:15
  • 9:15 - 9:20
    Now the second question is, is
    are these two vectors linearly
  • 9:20 - 9:23
    independent?
  • 9:23 - 9:27
    And linear independence means
    that the only solution to the
  • 9:27 - 9:30
    equation c-- let me
    switch colors.
  • 9:30 - 9:35
    The only solution to the
    equation c1 times the first
  • 9:35 - 9:41
    vector plus c2 times the second
    vector equaling the 0
  • 9:41 - 9:44
    vector, that the only solution
    to this is when both
  • 9:44 - 9:46
    of these equal 0.
  • 9:46 - 9:47
    So let's see if that's true.
  • 9:47 - 9:51
    We've already solved for it, so
    if x1-- in this case, x1 is
  • 9:51 - 9:53
    equal to 0 and x2
    is equal to 0.
  • 9:53 - 9:56
    This is just a special
    case where I'm making
  • 9:56 - 9:57
    them equal to 0 vector.
  • 9:57 - 10:01
    If I want to get the 0 vector,
    c1 is equal to 0/3.
  • 10:01 - 10:04
    So c1 must be equal to 0.
  • 10:04 - 10:08
    And c2 is equal to 0/7
    minus 2/21 times 0.
  • 10:08 - 10:13
    So c2 must also be equal to 0.
  • 10:13 - 10:16
    So the only solution to this
    was settings both of these
  • 10:16 - 10:20
    guys equal to 0.
  • 10:20 - 10:25
    So S is also a linearly
    independent set.
  • 10:25 - 10:30
  • 10:30 - 10:33
    So it spans r2, it's linearly
    independent.
  • 10:33 - 10:38
    So we can say definitively, that
    S-- that the set S, the
  • 10:38 - 10:46
    set of vectors S is
    a basis for r2.
  • 10:46 - 10:49
    Now, is this the only
    basis for r2?
  • 10:49 - 10:54
    Well I could draw a trivially
    simple vector, set of vectors.
  • 10:54 - 10:55
    I could do this one.
  • 10:55 - 10:59
    Let me call it T.
  • 10:59 - 11:10
    If I define T to be the set 1, 0
    and 0, 1, does this span r2?
  • 11:10 - 11:14
    Let's say I want to generate
    the-- I want to
  • 11:14 - 11:16
    get to x1 and x2.
  • 11:16 - 11:20
    How can I construct that out
    of these two vectors?
  • 11:20 - 11:28
    Well, if I always just do x1
    times 0, 1 plus x2 times 0, 1,
  • 11:28 - 11:32
    that'll always give me x1, x2.
  • 11:32 - 11:34
    So this definitely
    does span r2.
  • 11:34 - 11:40
  • 11:40 - 11:42
    Is it linearly independent?
  • 11:42 - 11:43
    I could show it to you.
  • 11:43 - 11:46
    If you wanted to make this
    equal to the 0 vector.
  • 11:46 - 11:49
  • 11:49 - 11:52
    If this is a 0 and this is 0,
    then this has to be a 0 and
  • 11:52 - 11:53
    this has to be a 0.
  • 11:53 - 11:54
    And that's kind of obvious.
  • 11:54 - 11:57
    There's no way that you could
    get one of the other vectors
  • 11:57 - 11:59
    by some multiple of
    the other one.
  • 11:59 - 12:01
    There's no way you could get a
    1 here by multiplying this by
  • 12:01 - 12:03
    anything and vice versa.
  • 12:03 - 12:04
    So it's also linearly
    independent.
  • 12:04 - 12:10
  • 12:10 - 12:12
    And the whole reason why I
    showed you this is because I
  • 12:12 - 12:16
    wanted to show you that look,
    this set T spans r2.
  • 12:16 - 12:20
    It's also linearly independent,
    so T is also a
  • 12:20 - 12:27
    basis for r2.
  • 12:27 - 12:31
    And I wanted to show you this
    to show that if I look at a
  • 12:31 - 12:35
    vector subspace and r2 is a
    valid subspace of itself.
  • 12:35 - 12:37
    You can verify that.
  • 12:37 - 12:41
    But if I have a subspace, it
    doesn't have just one basis.
  • 12:41 - 12:42
    It could have multiple bases.
  • 12:42 - 12:44
    In fact, it normally
    has infinite bases.
  • 12:44 - 12:49
    So in this case, S is a valid
    basis and T is also a valid
  • 12:49 - 12:50
    basis for r2.
  • 12:50 - 12:52
    And actually, just so you know
    what T is, the situation here,
  • 12:52 - 12:55
    this is called a
    standard basis.
  • 12:55 - 13:01
    This is the standard basis.
  • 13:01 - 13:03
    And this is what you're used
    to dealing with in just
  • 13:03 - 13:05
    regular calculus or
    physics class.
  • 13:05 - 13:06
    And if you remember from physics
    class, this is the
  • 13:06 - 13:12
    unit vector i and then this
    is the unit vector j.
  • 13:12 - 13:16
    And it's the standard basis for
    two-dimensional Cartesian
  • 13:16 - 13:18
    coordinates.
  • 13:18 - 13:21
    What's useful about a basis is
    that you can always-- and it's
  • 13:21 - 13:23
    not just true of the standard
    basis, is that you can
  • 13:23 - 13:28
    represent any vector
    in your subspace.
  • 13:28 - 13:31
    You can represent any vector
    in your subspace by some
  • 13:31 - 13:36
    unique combination of the
    vectors in your basis.
  • 13:36 - 13:38
    So let me show you that.
  • 13:38 - 13:47
    So let's say that the set v1,
    v2, all the way to vn, let's
  • 13:47 - 13:57
    say that this is a basis for--
    I don't know-- just some
  • 13:57 - 13:58
    subspace U.
  • 13:58 - 14:00
    So this is a subspace.
  • 14:00 - 14:03
  • 14:03 - 14:06
    So that means that these guys
    are linearly independent.
  • 14:06 - 14:09
    And also means that the span of
    these guys, or all of the
  • 14:09 - 14:13
    linear combinations of these
    vectors, will get you all of
  • 14:13 - 14:15
    the vectors, all of the possible
    components, all of
  • 14:15 - 14:20
    the difference members of U.
  • 14:20 - 14:24
    Now what I want to show you is
    each member of U can only be
  • 14:24 - 14:28
    uniquely defined by a unique set
    of-- a unique combination
  • 14:28 - 14:29
    of these guys.
  • 14:29 - 14:33
    Let me be clear about that.
  • 14:33 - 14:37
    Let's say my vector a is a
    member of our subspace U.
  • 14:37 - 14:41
    That means that a can be
    represented by some linear
  • 14:41 - 14:43
    combination of these guys.
  • 14:43 - 14:45
    These guys span U.
  • 14:45 - 14:48
    So that means that we can
    represent our vector a as
  • 14:48 - 14:52
    being c1 times v1 plus
    c2 times v2.
  • 14:52 - 14:53
    These are vectors.
  • 14:53 - 14:58
    All the way to cn times vn.
  • 14:58 - 15:01
    Now I want to show you that this
    is a unique combination.
  • 15:01 - 15:07
    And to show that I'm going to
    prove by contradiction.
  • 15:07 - 15:08
    Let's say that there's
    another combination.
  • 15:08 - 15:11
    Let's say I could also represent
    a by some other
  • 15:11 - 15:17
    combination, d1 times v2 plus
    d2 times v2 plus all the way
  • 15:17 - 15:21
    to dn times vn.
  • 15:21 - 15:24
    Now, what happens if I
    subtract a from a?
  • 15:24 - 15:25
    I'm going to get the 0 vector.
  • 15:25 - 15:28
    Let me subtract these
    two things.
  • 15:28 - 15:31
    If I subtract a from
    a, a minus a is
  • 15:31 - 15:33
    clearly the 0 vector.
  • 15:33 - 15:36
    It's clearly the 0 vector and
    if I subtract this side from
  • 15:36 - 15:38
    that side, what do we get?
  • 15:38 - 15:40
    I'll do it in a different
    color.
  • 15:40 - 15:49
    We get c1 minus d1 times v1 plus
    c2 minus d2 times v2, all
  • 15:49 - 15:53
    the way to-- I'm at the point on
    my board where it starts to
  • 15:53 - 15:54
    malfunction.
  • 15:54 - 16:01
    All the way to c-- you can't
    see it. cn minus vn.
  • 16:01 - 16:02
    It's showing up somehow.
  • 16:02 - 16:04
  • 16:04 - 16:07
    cn minus-- no, it's
    messing me up.
  • 16:07 - 16:10
    Let me rewrite it on the left
    right here where it's less
  • 16:10 - 16:11
    likely to mess up.
  • 16:11 - 16:17
    The 0 vector, I'll write
    it like that.
  • 16:17 - 16:24
    Is equal to c1 minus d1 times
    v1 plus all the way up to cn
  • 16:24 - 16:28
    minus dn times vn.
  • 16:28 - 16:31
    I just subtracted the
    vector by itself.
  • 16:31 - 16:35
    Now, I told you that
    these are a basis.
  • 16:35 - 16:39
    There's two things that-- when
    you say a basis, it says that
  • 16:39 - 16:42
    the span of these guys
    makes the subspace.
  • 16:42 - 16:45
    Or the span of these guys
    is the subspace.
  • 16:45 - 16:47
    And it also tells you that
    these guys are linearly
  • 16:47 - 16:48
    independent.
  • 16:48 - 16:52
    So if they're linearly
    independent, the only solution
  • 16:52 - 16:55
    to this equation-- this is just
    a constant times v1 plus
  • 16:55 - 16:57
    another constant times
    v2, all the way to a
  • 16:57 - 16:58
    constant times vn.
  • 16:58 - 17:02
    The only solution to this
    equation is if each of these
  • 17:02 - 17:04
    constants equal 0.
  • 17:04 - 17:07
    So all of those constants
    have to be equal to 0.
  • 17:07 - 17:10
    Over here before it messed up,
    this has to equal 0, this has
  • 17:10 - 17:11
    to equal 0.
  • 17:11 - 17:13
    That was a definition of
    linear independence.
  • 17:13 - 17:16
    And we know that this is a
    linearly independent set.
  • 17:16 - 17:20
    So if all of those constants are
    equal to 0, then we know
  • 17:20 - 17:25
    that c1-- if this is equal to 0,
    then c1 is equal to d1, c2
  • 17:25 - 17:31
    is equal to d2, all the way
    to cn is equal to dn.
  • 17:31 - 17:35
    So by the fact that it's
    linearly independent, all of
  • 17:35 - 17:37
    these-- each of these constants
    have to be equal to
  • 17:37 - 17:38
    each other.
  • 17:38 - 17:38
    And that's our contradiction.
  • 17:38 - 17:41
    I assume they're different, but
    the linear independence
  • 17:41 - 17:43
    forced them to be the same.
  • 17:43 - 17:47
    So if you have a basis for some
    subspace, any member of
  • 17:47 - 17:50
    that subspace can be uniquely
    determined by a unique
  • 17:50 - 17:53
    combination of those vectors.
  • 17:53 - 17:57
    And just to hit the point home,
    I told you that this was
  • 17:57 - 17:59
    a basis for r2.
  • 17:59 - 18:02
    And my next question is,
    and I just want to kind
  • 18:02 - 18:03
    of backtrack a bit.
  • 18:03 - 18:05
    If I just added another vector
    here, if I just added the
  • 18:05 - 18:10
    vector 1, 0, is S now
    a basis for r2?
  • 18:10 - 18:14
    Well no, it clearly will
    continue to span r2, but this
  • 18:14 - 18:15
    guy is redundant.
  • 18:15 - 18:18
    This guy is in r2.
  • 18:18 - 18:23
    And I already told you that
    these two guys alone span r2.
  • 18:23 - 18:26
    That anything in r2 can be
    represented by a linear
  • 18:26 - 18:28
    combination of these two guys.
  • 18:28 - 18:31
    This guy is clearly in r2, so
    he can be represented by a
  • 18:31 - 18:33
    linear combination of
    these two guys.
  • 18:33 - 18:37
    So therefore, this is not a
    linearly independent set.
  • 18:37 - 18:38
    This is linearly dependent.
  • 18:38 - 18:42
  • 18:42 - 18:44
    And because it's literally
    dependent, I have redundant
  • 18:44 - 18:45
    information here.
  • 18:45 - 18:48
    And then this would no
    longer be a basis.
  • 18:48 - 18:50
    So in order for these to be a
    basis I kind of have to create
  • 18:50 - 18:55
    the minimum set of vectors that
    can span, or the most
  • 18:55 - 18:58
    efficient set of vectors that
    can span, in this case, r2.
  • 18:58 - 19:00
Title:
Linear Algebra: Basis of a Subspace
Description:

Understanding the definition of a basis of a subspace

more » « less
Video Language:
English
Duration:
19:00

English subtitles

Incomplete

Revisions