< Return to Video

Linear Alg: Visualizing a projection onto a plane

  • 0:00 - 0:03
    I'm going to do one more video
    where we compare old and new
  • 0:03 - 0:05
    definitions of a projection.
  • 0:05 - 0:11
    Our old definition of a
    projection onto some line, l,
  • 0:11 - 0:18
    of the vector, x, is the vector
    in l, or that's a
  • 0:18 - 0:26
    member of l, such that x minus
    that vector, minus the
  • 0:26 - 0:39
    projection onto l of x,
    is orthogonal to l.
  • 0:39 - 0:42
    So the visualization is, if
    you have your line l like
  • 0:42 - 0:46
    this, that is your line
    l right there.
  • 0:46 - 0:50
    And then you have some other
    vector x that we're take the
  • 0:50 - 0:52
    projection of it on to l.
  • 0:52 - 0:53
    So that's x.
  • 0:53 - 0:57
    The projection of x onto l,
    this thing right here, is
  • 0:57 - 1:00
    going to be some vector in l.
  • 1:00 - 1:03
    Such that when I take the
    difference between x and that
  • 1:03 - 1:06
    vector, it's going to
    be orthogonal to l.
  • 1:06 - 1:08
    So it's going to be
    some vector in l.
  • 1:08 - 1:10
    This was our old definition when
    we took the projection
  • 1:10 - 1:11
    onto a line.
  • 1:11 - 1:12
    Some vector in l.
  • 1:12 - 1:13
    Maybe it's there.
  • 1:13 - 1:16
    And if I take the difference
    between that and that, this
  • 1:16 - 1:18
    difference vector's going
    to be orthogonal to
  • 1:18 - 1:19
    everything in l.
  • 1:23 - 1:26
    Just like that.
  • 1:26 - 1:29
    So, this right here would be
    it's difference vector.
  • 1:29 - 1:34
    That would be x minus the
    projection of x onto l.
  • 1:34 - 1:36
    And then, of course, this
    vector right here.
  • 1:36 - 1:40
    This is the one we
    were defining it.
  • 1:40 - 1:44
    That was the projection
    onto l of x.
  • 1:44 - 1:46
    Now, what's a different
    way that we could
  • 1:46 - 1:49
    have written this?
  • 1:49 - 1:51
    We could have written this
    exact same definition.
  • 1:51 - 1:56
    We could have said it is the
    vector in l such that-- so we
  • 1:56 - 1:58
    could say, let me write
    it here in purple.
  • 1:58 - 2:14
    Is the vector v in l such that
    v-- let me write it this way--
  • 2:14 - 2:18
    such that x minus v, right?
  • 2:18 - 2:24
    x minus the projection of l is
    orthogonal is equal to w,
  • 2:24 - 2:37
    which is orthogonal to
    everything in l.
  • 2:37 - 2:39
    Being orthogonal to l literally
    means being
  • 2:39 - 2:41
    orthogonal to every
    vector in l.
  • 2:41 - 2:43
    So I just rewrote it a little
    bit different, instead of just
  • 2:43 - 2:46
    leaving it as a projection
    of x onto l.
  • 2:46 - 2:52
    I said hey, that's some vector,
    v, in l such that x
  • 2:52 - 2:58
    minus v is equal to some other
    vector, w, which is orthogonal
  • 2:58 - 3:00
    to everything in l.
  • 3:00 - 3:05
    Or we can rewrite that statement
    right there as x is
  • 3:05 - 3:08
    equal to v plus w.
  • 3:08 - 3:13
    So we can just say that the
    projection of x onto l is the
  • 3:13 - 3:19
    unique vector v in l, such that
    x is equal to v plus w,
  • 3:19 - 3:24
    where w is a unique vector-- I
    mean it is going to be unique
  • 3:24 - 3:27
    vector-- in the orthogonal
    complement of l.
  • 3:27 - 3:28
    Right?
  • 3:28 - 3:31
    This is got to be orthogonal
    to everything in l.
  • 3:31 - 3:33
    So that's going to be a member
    of the orthogonal
  • 3:33 - 3:38
    complement of l.
  • 3:38 - 3:41
    So this definition is actually
    completely consistent with our
  • 3:41 - 3:43
    new subspace definition.
  • 3:43 - 3:46
    And we could just extend
    it to arbitrary
  • 3:46 - 3:47
    subspaces, not just lines.
  • 3:47 - 3:51
    Let me help you visualize
    that.
  • 3:51 - 3:56
    So let's say we're dealing
    with R3 right here.
  • 4:00 - 4:03
    And I've got some
    subspace in R3.
  • 4:03 - 4:05
    And let's say that subspace
    happens to be a plane.
  • 4:05 - 4:08
    I'm going to make it a plane
    just so that it becomes clear
  • 4:08 - 4:10
    that we don't have to take
    projections just onto lines.
  • 4:10 - 4:14
    So this is my subspace
    v right there.
  • 4:14 - 4:16
    Let me draw its orthogonal
    compliment.
  • 4:16 - 4:18
    Let's say its orthogonal
    complement looks
  • 4:18 - 4:21
    something like that.
  • 4:21 - 4:22
    Let's say it's a line.
  • 4:22 - 4:24
    And then it goes-- it intersects
    right there.
  • 4:24 - 4:26
    Then it goes back.
  • 4:26 - 4:28
    And, of course, it would have to
    intersect at the 0 vector.
  • 4:28 - 4:33
    That's the only place where a
    subspace and its orthogonal
  • 4:33 - 4:34
    complement overlap.
  • 4:34 - 4:37
    And then it goes behind
    and you see it again.
  • 4:37 - 4:39
    Obviously you wouldn't be able
    to you again because this
  • 4:39 - 4:41
    plane would extend in
    every direction.
  • 4:41 - 4:42
    But you get the idea.
  • 4:42 - 4:45
    So this right here
    is the orthogonal
  • 4:45 - 4:49
    complement of v, that line.
  • 4:49 - 4:54
    Now, let's have some other
    arbitrary vector in R3 here.
  • 4:54 - 4:57
    So let's say I have some vector
    that looks like that.
  • 4:57 - 4:59
    Let's say that that is x.
  • 4:59 - 5:09
    Now our new definition for the
    projection of x onto v is
  • 5:09 - 5:17
    equal to the unique vector v.
  • 5:17 - 5:17
    This is a vector v.
  • 5:17 - 5:18
    That's a subspace v.
  • 5:18 - 5:27
    The unique vector v, that is a
    member of v, such that x is
  • 5:27 - 5:43
    equal to v plus w, where w
    is a unique member of the
  • 5:43 - 5:46
    orthogonal complement of v.
  • 5:46 - 5:47
    This is our new definition.
  • 5:47 - 5:51
    So, if we say x is equal to
    some member of v and some
  • 5:51 - 5:53
    member of its orthogonal
    complement-- we can visually
  • 5:53 - 5:55
    understand that here.
  • 5:55 - 5:59
    We could say, OK it's going to
    be equal to, on v, it'll be
  • 5:59 - 6:01
    equal to that vector
    to right there.
  • 6:01 - 6:04
    And then on v's orthogonal
    complement,
  • 6:04 - 6:06
    you add that to it.
  • 6:06 - 6:07
    So, if you were to shift it
    over, you would get that
  • 6:07 - 6:09
    vector, just like that.
  • 6:09 - 6:11
    This right here is v.
  • 6:11 - 6:13
    That right there is v.
  • 6:13 - 6:16
    And then this is vector that
    goes up like this, out of the
  • 6:16 - 6:18
    plane, orthogonal to
    the plane, is w.
  • 6:18 - 6:22
    You could see if you take v plus
    w, you're going to get x.
  • 6:22 - 6:29
    And you could see that v is
    the projection onto the
  • 6:29 - 6:34
    subspace capital v-- so this
    is a vector, v-- is the
  • 6:34 - 6:39
    projection onto the subspace
    capital V of the vector x.
  • 6:39 - 6:41
    So the analogy to a shadow
    still holds.
  • 6:41 - 6:44
    If you imagine kind of a light
    source coming straight down
  • 6:44 - 6:47
    onto our subspace, kind of
    orthogonal to our subspace,
  • 6:47 - 6:51
    the projection onto our subspace
    is kind of the shadow
  • 6:51 - 6:51
    of our vector x.
  • 6:51 - 6:54
    Hopefully that help you
    visualize it a little better.
  • 6:54 - 6:57
    But what we're doing here is
    we're going to generalize it.
  • 6:57 - 6:59
    Earlier in this video
    I showed you a line.
  • 6:59 - 7:00
    This is a plane.
  • 7:00 - 7:02
    But we can generalize
    it to any subspace.
  • 7:02 - 7:03
    This is in R3.
  • 7:03 - 7:06
    We can generalize it
    to Rn, to R100.
  • 7:06 - 7:09
    And that's really the power
    of what we're doing here.
  • 7:09 - 7:11
    It's easy to visualize it here,
    but it's not so easy to
  • 7:11 - 7:14
    visualize it once you get
    to higher dimensions.
  • 7:14 - 7:15
    And actually, one other thing.
  • 7:15 - 7:17
    Let me show that this new
    definition is pretty much
  • 7:17 - 7:20
    almost identical to exactly
    what we did with lines.
  • 7:20 - 7:25
    This is identical to saying that
    the projection onto the
  • 7:25 - 7:46
    subspace x is equal to some
    unique vector in V such that x
  • 7:46 - 7:58
    minus the projection onto v of
    x is orthogonal to every
  • 7:58 - 8:02
    member of V.
  • 8:02 - 8:05
    Because this statement, right
    here, is saying any vector
  • 8:05 - 8:08
    that's orthogonal to any member
    of v says that it's a
  • 8:08 - 8:11
    member of the orthogonal
    complement of v.
  • 8:11 - 8:14
    So that statement could be
    written as x minus the
  • 8:14 - 8:20
    projection onto v of x is a
    member of v's orthogonal
  • 8:20 - 8:21
    complement.
  • 8:21 - 8:23
    Or we could call some w.
  • 8:23 - 8:27
    So if you call this your v,
    and if you call this whole
  • 8:27 - 8:32
    thing your w, you get this exact
    definition right there.
  • 8:32 - 8:36
    You would have w is equal
    to x minus v.
  • 8:36 - 8:40
    And then if you add v to both
    sides, you get w plus v is
  • 8:40 - 8:41
    equal to x.
  • 8:41 - 8:44
    We defined v to be, the
    orthogonal-- the
  • 8:44 - 8:46
    projection of x onto v.
  • 8:46 - 8:51
    w is a member of our orthogonal
    complement.
  • 8:51 - 8:54
    And I don't want you
    to get confused.
  • 8:54 - 8:58
    The vector v is the orthogonal
    projection of our vector x
  • 8:58 - 9:00
    onto the subspace capital V.
  • 9:00 - 9:02
    I probably should use different
    letters instead of
  • 9:02 - 9:04
    using a lowercase and
    a uppercase v.
  • 9:04 - 9:06
    It makes the language
    a little difficult.
  • 9:06 - 9:08
    But I just wanted to give you
    another video to give you a
  • 9:08 - 9:10
    visualization of projections
    onto
  • 9:10 - 9:12
    subspaces other than lines.
  • 9:12 - 9:15
    And to show you that our old
    definition, with just a
  • 9:15 - 9:17
    projection onto a line which was
    a linear transformation,
  • 9:17 - 9:19
    is essentially equivalent
    to this new definition.
  • 9:19 - 9:23
    On the next video, I'll show
    you that this, for any
  • 9:23 - 9:27
    subspace is, indeed, a linear
    transformation.
Title:
Linear Alg: Visualizing a projection onto a plane
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
09:28

English subtitles

Revisions Compare revisions