< Return to Video

Linear Algebra: Eigenvectors and Eigenspaces for a 3x3 matrix

  • 0:01 - 0:03
    In the last video we set out to
    find the eigenvalues values
  • 0:03 - 0:06
    of this 3 by 3 matrix, A.
  • 0:06 - 0:08
    And we said, look an eigenvalue
    is any value,
  • 0:08 - 0:11
    lambda, that satisfies
    this equation if v
  • 0:11 - 0:13
    is a non-zero vector.
  • 0:13 - 0:17
    And that says, any value,
    lambda, that satisfies this
  • 0:17 - 0:20
    equation for v is a
    non-zero vector.
  • 0:20 - 0:23
    Then we just did a little bit
    of I guess we could call it
  • 0:23 - 0:25
    vector algebra up here
    to come up with that.
  • 0:25 - 0:27
    You can review that
    video if you like.
  • 0:27 - 0:30
    And then we determined, look
    the only way that this is
  • 0:30 - 0:34
    going to have a non-zero
    solution is if this matrix has
  • 0:34 - 0:36
    a non-trivial null space.
  • 0:36 - 0:40
    And only non-invertible matrices
    have a non-trivial
  • 0:40 - 0:41
    null space.
  • 0:41 - 0:45
    Or, only matrices that have
    a determinant of 0 have
  • 0:45 - 0:47
    non-trivial null spaces.
  • 0:47 - 0:50
    So you do that, you got your
    characteristic polynomial, and
  • 0:50 - 0:51
    we were able to solve it.
  • 0:51 - 0:55
    And we got our eigenvalues where
    lambda is equal to 3 and
  • 0:55 - 0:58
    lambda is equal to minus 3.
  • 0:58 - 1:01
    So now, let's do-- what I
    consider the more interesting
  • 1:01 - 1:04
    part-- is actually find out
    the eigenvectors or the
  • 1:04 - 1:06
    eigenspaces.
  • 1:06 - 1:09
    So we can go back to this
    equation, for any eigenvalue
  • 1:09 - 1:10
    this must be true.
  • 1:10 - 1:12
    This must be true but this
    is easier to work with.
  • 1:12 - 1:18
    And so, this matrix right here
    times your eigenvector must be
  • 1:18 - 1:21
    equal 0 for any given
    eigenvalue.
  • 1:21 - 1:24
    This matrix right here--
    I've just copied
  • 1:24 - 1:25
    and pasted from above.
  • 1:25 - 1:27
    I marked it up with the Rule
    of Sarrus so you can ignore
  • 1:27 - 1:29
    those lines-- is just
    this matrix right
  • 1:29 - 1:30
    here for any lambda.
  • 1:30 - 1:33
    Lambda times the identity
    matrix minus A
  • 1:33 - 1:34
    ends up being this.
  • 1:34 - 1:38
    So let's take this matrix for
    each of our lambdas and then
  • 1:38 - 1:42
    solve for our eigenvectors
    or our eigenspaces.
  • 1:42 - 1:47
    So let me take the case of
    lambda is equal to 3 first. So
  • 1:47 - 1:52
    if lambda is equal to 3, this
    matrix becomes lambda plus 1
  • 1:52 - 1:59
    is 4, lambda minus 2 is 1,
    lambda minus 2 is 1.
  • 1:59 - 2:03
    And then all of the other terms
    stay the same, minus 2,
  • 2:03 - 2:08
    minus 2, minus 2, 1,
    minus 2 and 1.
  • 2:08 - 2:12
    And then this times that vector,
    v, or our eigenvector
  • 2:12 - 2:15
    v is equal to 0.
  • 2:15 - 2:19
    Or we could say that the
    eigenspace for the eigenvalue
  • 2:19 - 2:22
    3 is the null space
    of this matrix.
  • 2:22 - 2:23
    Which is not this matrix.
  • 2:23 - 2:26
    It's lambda times the
    identity minus A.
  • 2:26 - 2:29
    So the null space of this matrix
    is the eigenspace.
  • 2:29 - 2:33
    So all of the values that
    satisfy this make up the
  • 2:33 - 2:37
    eigenvectors of the eigenspace
    of lambda is equal to 3.
  • 2:37 - 2:37
    So let's just solve for this.
  • 2:37 - 2:40
    So the null space of this guy--
    we could just put in
  • 2:40 - 2:43
    reduced row echelon form-- the
    null space of this guy is the
  • 2:43 - 2:45
    same thing as the null space
    of this guy in reduced row
  • 2:45 - 2:46
    echelon form.
  • 2:46 - 2:48
    So let's put this in reduced
    row echelon form.
  • 2:48 - 2:52
    So the first thing I
    want to do-- let me
  • 2:52 - 2:54
    just do it down here.
  • 2:54 - 2:59
    So let me-- I'll keep my first
    row the same for now.
  • 2:59 - 3:02
    4 minus 2, minus 2.
  • 3:02 - 3:07
    And let me replace my second row
    with my second row times 2
  • 3:07 - 3:08
    plus my first row.
  • 3:08 - 3:13
    So minus 2 times
    2 plus 1 is 0.
  • 3:13 - 3:16
    1 times 2 plus minus 2 is 0.
  • 3:16 - 3:19
    1 times 2 plus minus 2 is 0.
  • 3:19 - 3:21
    This row is the same
    as this row.
  • 3:21 - 3:22
    So I'm going to do
    the same thing.
  • 3:22 - 3:25
    Minus 2 times 2 plus 4 is 0.
  • 3:25 - 3:28
    1 times 2 plus 2 is 0.
  • 3:28 - 3:32
    And then 1 times 2 plus
    minus 2 is 0.
  • 3:32 - 3:34
    So the solutions to this
    equation are the same as the
  • 3:34 - 3:35
    solutions to this equation.
  • 3:35 - 3:37
    Let me write it like this.
  • 3:37 - 3:38
    Instead of just writing
    the vector, v,
  • 3:38 - 3:41
    let me write it out.
  • 3:41 - 3:48
    So v1, v2, v3 are going to
    be equal to the 0 vector.
  • 3:48 - 3:48
    0, 0.
  • 3:48 - 3:50
    Just rewriting it slightly
    different.
  • 3:50 - 3:53
    And so these two rows, or these
    two equations, give us
  • 3:53 - 3:54
    no information.
  • 3:54 - 3:58
    The only one is this row up
    here, which tells us that 4
  • 3:58 - 4:05
    times v1 minus 2 times v2--
    actually this wasn't complete
  • 4:05 - 4:07
    reduced row echelon form
    but close enough.
  • 4:07 - 4:10
    It's easy for us to work with--
    4 times v1 minus 2
  • 4:10 - 4:18
    times v2 minus 2 times
    v3 is equal to 0.
  • 4:18 - 4:20
    Let's just divide by 4.
  • 4:20 - 4:23
    I could've just divided by 4
    here, which might have made it
  • 4:23 - 4:24
    skipped a step.
  • 4:24 - 4:30
    But if you divide by 4 you get
    v1 minus 1/2 v2 minus 1/2 v3
  • 4:30 - 4:32
    is equal to 0.
  • 4:32 - 4:36
    Or, v1 is equal to 1/2
    v2 plus 1/2 v3.
  • 4:36 - 4:39
    Just added these guys to both
    sides of the equation.
  • 4:39 - 4:46
    Or we could say, let's say that
    v2 is equal to-- yeah I
  • 4:46 - 4:50
    don't know, I'm going to just
    put some random number-- a,
  • 4:50 - 4:56
    and v3 is equal to b, then we
    can say-- and then v1 would be
  • 4:56 - 5:00
    equal to 1/2 a plus 1/2 b.
  • 5:00 - 5:07
    We can say that the eigenspace
    for lambda is equal to 3, is
  • 5:07 - 5:15
    the set of all of vectors, v1,
    v2, v3, that are equal to a
  • 5:15 - 5:18
    times times-- v2 is a, right?
  • 5:18 - 5:21
    So v2 is equal to a times 1.
  • 5:21 - 5:23
    v3 has no a in it.
  • 5:23 - 5:26
    So it's a times 0.
  • 5:26 - 5:31
    Plus b times-- v2 is just a.
  • 5:31 - 5:32
    v2 has no b in it.
  • 5:32 - 5:34
    So it's 0.
  • 5:34 - 5:39
    v3 is 1 times-- so 0 times
    a plus 1 times b.
  • 5:39 - 5:44
    And then v1 is 1/2
    a plus 1/2 b.
  • 5:48 - 5:53
    For any a and b, such
    that a and b are
  • 5:53 - 5:55
    members of the reals.
  • 5:55 - 5:57
    Just to be a little bit
    formal about it.
  • 5:57 - 6:02
    So that's our-- any vector
    that satisfies this is an
  • 6:02 - 6:03
    eigenvector.
  • 6:03 - 6:05
    And they're the eigenvectors
    that correspond to eigenvalue
  • 6:05 - 6:07
    lambda is equal to 3.
  • 6:07 - 6:10
    So if you apply the matrix
    transformation to any of these
  • 6:10 - 6:14
    vectors, you're just going
    to scale them up by 3.
  • 6:14 - 6:17
    Let me write this way.
  • 6:17 - 6:20
    The eigenspace for lambda is
    equal to 3, is equal to the
  • 6:20 - 6:24
    span, all of the potential
    linear combinations of this
  • 6:24 - 6:25
    guy and that guy.
  • 6:25 - 6:29
    So 1/2, 1, 0.
  • 6:29 - 6:36
    And 1/2, 0, 1.
  • 6:36 - 6:40
    So that's only one of
    the eigenspaces.
  • 6:40 - 6:41
    That's the one that
    corresponds to
  • 6:41 - 6:42
    lambda is equal to 3.
  • 6:42 - 6:43
    Let's do the one that
    corresponds to lambda is equal
  • 6:43 - 6:45
    to minus 3.
  • 6:45 - 6:47
    So if lambda is equal to minus
    3-- I'll do it up here, I
  • 6:47 - 6:50
    think I have enough space--
    lambda is equal to minus 3.
  • 6:50 - 6:58
    This matrix becomes-- I'll do
    the diagonals-- minus 3 plus 1
  • 6:58 - 6:59
    is minus 2.
  • 6:59 - 7:03
    Minus 3 minus 2 is minus 5.
  • 7:03 - 7:06
    Minus 3 minus 2 is minus 5.
  • 7:06 - 7:08
    And all the other things
    don't change.
  • 7:08 - 7:12
    Minus 2, minus 2, 1.
  • 7:12 - 7:15
    Minus 2, minus 2 and 1.
  • 7:15 - 7:20
    And then that times vectors
    in the eigenspace that
  • 7:20 - 7:24
    corresponds to lambda is equal
    to minus 3, is going to be
  • 7:24 - 7:25
    equal to 0.
  • 7:25 - 7:27
    I'm just applying this equation
    right here which we
  • 7:27 - 7:30
    just derived from that
    one over there.
  • 7:30 - 7:34
    So, the eigenspace that
    corresponds to lambda is equal
  • 7:34 - 7:37
    to minus 3, is the null space,
    this matrix right here, are
  • 7:37 - 7:40
    all the vectors that satisfy
    this equation.
  • 7:40 - 7:42
    So what is-- the null space of
    this is the same thing as the
  • 7:42 - 7:46
    null space of this in reduced
    row echelon form So let's put
  • 7:46 - 7:48
    it in reduced row
    echelon form.
  • 7:48 - 7:52
    So the first thing I want to do,
    I'm going to keep my first
  • 7:52 - 7:52
    row the same.
  • 7:52 - 7:55
    I'm going to write a little bit
    smaller than I normally do
  • 7:55 - 7:57
    because I think I'm going
    to run out of space.
  • 7:57 - 8:01
    So minus 2, minus 2, minus 2.
  • 8:01 - 8:03
    Actually let me just
    do it this way.
  • 8:03 - 8:05
    I will skip some steps.
  • 8:05 - 8:07
    Let's just divide the first
    row by minus 2.
  • 8:07 - 8:10
    So we get 1, 1, 1.
  • 8:10 - 8:14
    And then let's replace this
    second row with the second row
  • 8:14 - 8:16
    plus this version of
    the first row.
  • 8:16 - 8:22
    So this guy plus that guy is 0
    minus 5 plus minus-- or let me
  • 8:22 - 8:23
    say this way.
  • 8:23 - 8:27
    Let me replace it with
    the first row
  • 8:27 - 8:29
    minus the second row.
  • 8:29 - 8:32
    So minus 2 minus minus 2 is 0.
  • 8:32 - 8:36
    Minus 2 minus minus
    5 is plus 3.
  • 8:36 - 8:44
    And then minus 2 minus
    1 is minus 3.
  • 8:44 - 8:45
    And then let me do
    the last row in a
  • 8:45 - 8:46
    different color for fun.
  • 8:46 - 8:47
    And I'll do the same thing.
  • 8:47 - 8:50
    I'll do this row
    minus this row.
  • 8:50 - 8:54
    So minus 2 minus
    minus 2 is a 0.
  • 8:54 - 8:55
    Minus 2 plus 2.
  • 8:55 - 8:58
    Minus 2 minus 1 is minus 3.
  • 8:58 - 9:03
    And then we have minus
    2 minus minus 5.
  • 9:03 - 9:04
    So it's minus 2 plus 5.
  • 9:04 - 9:06
    So that is 3.
  • 9:06 - 9:14
    Now let me replace-- and I'll
    do it in two steps.
  • 9:14 - 9:16
    So this is 1, 1, 1.
  • 9:16 - 9:19
    I'll just keep it like that.
  • 9:19 - 9:23
    And actually, well let me
    just keep it like that.
  • 9:23 - 9:27
    And then let me replace my third
    row with my third row
  • 9:27 - 9:28
    plus my second row.
  • 9:28 - 9:29
    It'll just zero out.
  • 9:29 - 9:31
    If you add these terms, these
    all just become 0.
  • 9:31 - 9:33
    That guy got zeroed out.
  • 9:33 - 9:35
    And let me take my second
    row and divide it by 3.
  • 9:35 - 9:40
    So this becomes 0, 1, minus 1.
  • 9:40 - 9:43
    And I'm almost there.
  • 9:43 - 9:45
    I'll do it in orange.
  • 9:45 - 9:49
    So let me replace my first row
    with my first row minus my
  • 9:49 - 9:49
    second row.
  • 9:49 - 9:57
    So this becomes 1, 0, and then
    1 minus minus 1 is 2.
  • 9:57 - 9:59
    1 minus minus 1 is 2.
  • 9:59 - 10:04
    And then in the second
    row is 0, 1, minus 1.
  • 10:04 - 10:08
    And then the last
    row is 0, 0, 0.
  • 10:08 - 10:11
    So any v that satisfies this
    equation will also
  • 10:11 - 10:13
    satisfy this guy.
  • 10:13 - 10:16
    This guy's null space is going
    to be the null space of that
  • 10:16 - 10:18
    guy in reduced row
    echelon form.
  • 10:18 - 10:26
    So v1, v2, v3 is equal
    to 0, 0, 0.
  • 10:26 - 10:27
    Let me move this.
  • 10:27 - 10:30
    Because I've officially
    run out of space.
  • 10:30 - 10:33
    So let me move this lower
    down where I have
  • 10:33 - 10:36
    some free real estate.
  • 10:36 - 10:37
    Let me move it down here.
  • 10:37 - 10:41
    This corresponds to lambda
    is equal to minus 3.
  • 10:41 - 10:45
    This was lambda is equal to
    minus 3, just to make us--
  • 10:45 - 10:47
    it's not related to this
    stuff right here.
  • 10:47 - 10:52
    So what are all of the v1s, v2s
    and v3s that satisfy this?
  • 10:52 - 11:00
    So if we say that v3
    is equal to t.
  • 11:00 - 11:04
    If v3 is equal to t, then
    what do we have here?
  • 11:04 - 11:09
    We have-- this tells us that
    v2 minus v3 is equal to 0.
  • 11:09 - 11:16
    So that tells us that v2 minus
    v3-- 0 times v1 plus v2 minus
  • 11:16 - 11:18
    v3 is equal to 0.
  • 11:18 - 11:23
    Or that v2 is equal to v3,
    which is equal to t.
  • 11:23 - 11:25
    That's what that second
    equation tells us.
  • 11:25 - 11:28
    And then the third equation
    tells us, or the top equation
  • 11:28 - 11:34
    tells us, v1 times 1-- so v1
    plus 0 times v2 plus 2 times
  • 11:34 - 11:38
    v3 is equal to 0.
  • 11:38 - 11:45
    Or v1 is equal to minus 2v3 is
    equal to minus 2 times t.
  • 11:45 - 11:50
    So the eigenspace that
    corresponds to lambda is equal
  • 11:50 - 11:57
    to minus 3 is equal to the set
    of all the vectors, v1, v2 and
  • 11:57 - 12:08
    v3, where-- well, it's equal
    to t times-- v3 is just t.
  • 12:08 - 12:10
    v3 was just t.
  • 12:10 - 12:12
    v2 also just ends up being t.
  • 12:12 - 12:13
    So 1 times t.
  • 12:13 - 12:18
    And v1 is minus 2 times t.
  • 12:18 - 12:20
    For t is any real number.
  • 12:20 - 12:25
    Or another way to say it is that
    the eigenspace for lambda
  • 12:25 - 12:31
    is equal to minus 3 is equal
    to the span-- I wrote this
  • 12:31 - 12:36
    really messy-- where lambda is
    equal to minus 3 is equal to
  • 12:36 - 12:45
    the span of the vector
    minus 2, 1, and 1.
  • 12:45 - 12:47
    Just like that.
  • 12:47 - 12:48
    It looks interesting.
  • 12:48 - 12:51
    Because if you take this guy
    and dot it with either of
  • 12:51 - 12:52
    these guys, I think you get 0.
  • 12:52 - 12:55
    Is that definitely the case?
  • 12:55 - 13:00
    Take minus 2 times 1/2, you
    get a minus 1 there.
  • 13:00 - 13:01
    Then you have a plus 1.
  • 13:01 - 13:02
    That's 0.
  • 13:02 - 13:04
    And then minus 2 times 1/2.
  • 13:04 - 13:04
    Yeah.
  • 13:04 - 13:06
    You dot it with either of
    these guys you get 0.
  • 13:06 - 13:09
    So this line is orthogonal
    to that plane.
  • 13:09 - 13:10
    Very interesting.
  • 13:10 - 13:13
    So let's just graph it just so
    we have a good visualization
  • 13:13 - 13:14
    of what we're doing.
  • 13:14 - 13:16
    So we had that 3
    by 3 matrix, A.
  • 13:16 - 13:19
    It represents some
    transformation in R3.
  • 13:19 - 13:21
    And it has two eigenvalues.
  • 13:21 - 13:24
    And each of those have a
    corresponding eigenspace.
  • 13:24 - 13:26
    So the eigenspace that
    corresponds to the eigenvalue
  • 13:26 - 13:28
    3 is a plane in R3.
  • 13:32 - 13:38
    So this is the eigenspace for
    lambda is equal to 3.
  • 13:38 - 13:40
    And it's the span of these
    two vectors right there.
  • 13:40 - 13:43
    So if I draw them, maybe
    they're like that.
  • 13:43 - 13:44
    Just like that.
  • 13:44 - 13:46
    And then the eigenspace
    for lambda is equal to
  • 13:46 - 13:48
    minus 3 is a line.
  • 13:48 - 13:50
    It's a line that's perpendicular
    to this plane.
  • 13:50 - 13:52
    It's a line like that.
  • 13:52 - 13:54
    It's the span of this guy.
  • 13:54 - 13:56
    Maybe if I draw that vector,
    that vector might look
  • 13:56 - 13:57
    something like this.
  • 13:57 - 13:59
    And it's the span of that guy.
  • 13:59 - 14:05
    So what this tells us, this is
    the eigenspace for lambda is
  • 14:05 - 14:07
    equal to minus 3.
  • 14:07 - 14:09
    So what that tells us-- just
    to make sure we are
  • 14:09 - 14:12
    interpreting our eigenvalues and
    eigenspaces correctly-- is
  • 14:12 - 14:16
    look, you give me any
    eigenvector, you give me any
  • 14:16 - 14:19
    vector in this, you give me any
    vector right here, let's
  • 14:19 - 14:21
    say that is vector x.
  • 14:21 - 14:24
    If I apply the transformation,
    if I multiply it it by a, I'm
  • 14:24 - 14:26
    going to have 3 times that.
  • 14:26 - 14:29
    Because it's in the eigenspace
    where lambda is equal to 3.
  • 14:29 - 14:33
    So if I were to apply a times
    x, a times x would be just 3
  • 14:33 - 14:34
    times that.
  • 14:34 - 14:36
    So that would be a times x.
  • 14:36 - 14:37
    That's what it tells me.
  • 14:37 - 14:39
    This would be true for
    any of these guys.
  • 14:39 - 14:41
    If this was x, and you took a
    times x, it's going to be 3
  • 14:41 - 14:43
    times as long.
  • 14:43 - 14:48
    Now these guys over here, if you
    have some vector in this
  • 14:48 - 14:51
    eigenspace that corresponds to
    lambda is equal to 3, and you
  • 14:51 - 14:52
    apply the transformation.
  • 14:52 - 14:54
    Let's say that this
    is x right there.
  • 14:54 - 14:56
    If you took the transformation
    of x, it's going to make it 3
  • 14:56 - 14:57
    times longer in the opposite
    direction.
  • 14:57 - 14:59
    It's still going to
    be on this line.
  • 14:59 - 15:02
    So it's going to go
    down like this.
  • 15:02 - 15:03
    And that would be a times x.
  • 15:03 - 15:06
    It would be the same, it'd be
    3 times this length, but in
  • 15:06 - 15:06
    the opposite direction.
  • 15:06 - 15:11
    Because it corresponds to lambda
    is equal to minus 3.
  • 15:11 - 15:14
    So anyway, we've, I think,
    made a great achievement.
  • 15:14 - 15:18
    We've not only figured out the
    eigenvalues for a 3 by 3
  • 15:18 - 15:21
    matrix, we now have figured out
    all of the eigenvectors.
  • 15:21 - 15:22
    Which are-- there's an infinite
    number-- but they
  • 15:22 - 15:27
    represent 2 eigenspaces that
    correspond to those two
  • 15:27 - 15:31
    eigenvalues, or minus 3 and 3.
  • 15:31 - 15:33
    See you in the next video.
Title:
Linear Algebra: Eigenvectors and Eigenspaces for a 3x3 matrix
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
15:34

English subtitles

Revisions Compare revisions