< Return to Video

Linear Algebra: Rank(A) = Rank(transpose of A)

  • 0:01 - 0:04
    A couple of videos ago, I made
    the statement that the rank of
  • 0:04 - 0:08
    a matrix A is equal to the
    rank of its transpose.
  • 0:08 - 0:10
    And I made a bit of a
    hand wavy argument.
  • 0:10 - 0:12
    It was at the end of the
    video, and I was tired.
  • 0:12 - 0:14
    It was actually the
    end of the day.
  • 0:14 - 0:17
    And I thought it'd be worthwhile
    to maybe flush this
  • 0:17 - 0:17
    out a little bit.
  • 0:17 - 0:19
    Because it's an important
    take away.
  • 0:19 - 0:22
    It'll help us understand
    everything we've learned a
  • 0:22 - 0:23
    little bit better.
  • 0:23 - 0:26
    So, let's understand-- I'm
    actually going to start with
  • 0:26 - 0:27
    the rank of A transpose.
  • 0:32 - 0:37
    The rank of A transpose is equal
    to the dimension of the
  • 0:37 - 0:40
    column space of A transpose.
  • 0:40 - 0:43
    That's the definition
    of the rank.
  • 0:43 - 0:47
    The dimension of the column
    space of A transpose is the
  • 0:47 - 0:54
    number of basis vectors for the
  • 0:54 - 0:55
    column space of A transpose.
  • 0:55 - 0:57
    That's what dimension is.
  • 0:57 - 1:00
    For any subspace, you figure out
    how many basis vectors you
  • 1:00 - 1:02
    need in that subspace,
    and you count them,
  • 1:02 - 1:03
    and that's your dimension.
  • 1:03 - 1:07
    So, it's the number of basis
    vectors for the column space
  • 1:07 - 1:10
    of A transpose, which is, of
    course, the same thing.
  • 1:10 - 1:13
    This thing we've seen multiple
    times, is the same thing as
  • 1:13 - 1:14
    the row space of A.
  • 1:18 - 1:18
    Right?
  • 1:18 - 1:20
    The columns of A transpose
    are the same thing
  • 1:20 - 1:22
    as the rows of A.
  • 1:22 - 1:24
    It's because You switch the
    rows and the columns.
  • 1:24 - 1:27
    Now, how can we figure out the
    number of basis vectors we
  • 1:27 - 1:30
    need for the column space
    of A transpose, or the
  • 1:30 - 1:32
    row space of A?
  • 1:32 - 1:34
    Let's just think about what
    the column space of A
  • 1:34 - 1:36
    transpose is telling us.
  • 1:36 - 1:38
    So, it's equivalent to--
    so let's say, let
  • 1:38 - 1:40
    me draw A like this.
  • 1:43 - 1:44
    That's a matrix A.
  • 1:44 - 1:47
    Let's say it's an
    m by n matrix.
  • 1:47 - 1:49
    Let me just write it as a
    bunch of row vectors.
  • 1:49 - 1:51
    I could also write it as a bunch
    of column vectors, but
  • 1:51 - 1:53
    right now let's stick
    to the row vectors.
  • 1:53 - 1:55
    So we have row one.
  • 1:55 - 1:57
    The transpose of
    column vectors.
  • 1:57 - 2:02
    That's row one, and we're going
    to have row two, and
  • 2:02 - 2:06
    we're going to go all the
    way down to row m.
  • 2:06 - 2:06
    Right?
  • 2:06 - 2:07
    It's an m by n matrix.
  • 2:07 - 2:10
    Each of these vectors are
    members of rn, because they're
  • 2:10 - 2:12
    going to have n entries in them
  • 2:12 - 2:14
    because we have n columns.
  • 2:14 - 2:16
    So, that's what A is
    going to look like.
  • 2:16 - 2:17
    A is going look like that.
  • 2:17 - 2:21
    And then A transpose, all
    of these rows are
  • 2:21 - 2:22
    going to become columns.
  • 2:22 - 2:28
    A transpose is going to look
    like this. r1, r2,
  • 2:28 - 2:31
    all the way to rm.
  • 2:31 - 2:34
    And this is of course going
    to be an n by m matrix.
  • 2:34 - 2:35
    You swap these out.
  • 2:35 - 2:39
    So, all these rows are
    going to be columns.
  • 2:39 - 2:40
    Right?
  • 2:40 - 2:42
    And, obviously the column
    space-- or maybe not so
  • 2:42 - 2:47
    obviously-- the column space of
    A transpose is equal to the
  • 2:47 - 2:56
    span of r1, r2, all
    the way to rm.
  • 2:56 - 2:57
    Right?
  • 2:57 - 2:58
    It's equal to the span
    of these things.
  • 2:58 - 3:01
    Or you could equivocally call
    it, it's equal to the span of
  • 3:01 - 3:01
    the rows of A.
  • 3:01 - 3:04
    That's why it's also called
    the row space.
  • 3:04 - 3:13
    This is equal to the span
    of the rows of A.
  • 3:13 - 3:15
    These two things
    are equivalent.
  • 3:15 - 3:16
    Now, these are the span.
  • 3:16 - 3:18
    That means this is some subspace
    that's all of the
  • 3:18 - 3:21
    linear combinations of these
    columns, or all of the linear
  • 3:21 - 3:22
    combinations of these rows.
  • 3:22 - 3:26
    If we want the basis for it, we
    want to find a minimum set
  • 3:26 - 3:29
    of linearly independent vectors
    that we could use to
  • 3:29 - 3:31
    construct any of
    these columns.
  • 3:31 - 3:35
    Or that we could use construct
    any of these rows, right here.
  • 3:35 - 3:37
    Now, what happens when
    we put A into
  • 3:37 - 3:40
    reduced row echelon form?
  • 3:40 - 3:46
    We do a bunch of row operations
    to put it into
  • 3:46 - 3:49
    reduced row echelon form.
  • 3:49 - 3:49
    Right?
  • 3:49 - 3:52
    Do a bunch of row operations
    and you eventually get
  • 3:52 - 3:53
    something like this.
  • 3:53 - 3:57
    You'll get the reduced row
    echelon form of A.
  • 3:57 - 4:00
    The reduced row echelon form
    of A is going to look
  • 4:00 - 4:01
    something like this.
  • 4:01 - 4:04
    You're going to have some pivot
    rows, some rows that
  • 4:04 - 4:06
    have pivot entries.
  • 4:06 - 4:08
    Let's say that's one of them.
  • 4:08 - 4:09
    Let's say that's one of them.
  • 4:09 - 4:11
    This will all have 0's
    all the way down.
  • 4:11 - 4:13
    This one will have 0's.
  • 4:13 - 4:15
    Your pivot entry has to
    be the only non-zero
  • 4:15 - 4:16
    entry in it's column.
  • 4:16 - 4:18
    And everything to the left
    of it all has to be 0.
  • 4:18 - 4:20
    Let's say that this one isn't.
  • 4:20 - 4:21
    These are some non-zero
    values.
  • 4:21 - 4:23
    These are 0.
  • 4:23 - 4:25
    We have another pivot
    entry over here.
  • 4:25 - 4:25
    Everything else is 0.
  • 4:25 - 4:29
    Let's say everything else
    are non-pivot entries.
  • 4:29 - 4:33
    So you come here and you have
    a certain number of pivot
  • 4:33 - 4:35
    rows, or a certain number
    of pivot entries, right?
  • 4:35 - 4:38
    And you got there by performing
    linear row
  • 4:38 - 4:39
    operations on these guys.
  • 4:39 - 4:42
    So those linear row operations--
    you know, I take
  • 4:42 - 4:45
    3 times row two, and I add it
    to row one, and that's going
  • 4:45 - 4:46
    to become my new row two.
  • 4:46 - 4:48
    And you keep doing that and
    you get these things here.
  • 4:48 - 4:49
    So, these things
    here are linear
  • 4:49 - 4:51
    combinations of those guys.
  • 4:51 - 4:53
    Or another way to do it, you
    can reverse those row
  • 4:53 - 4:53
    operations.
  • 4:53 - 4:56
    I could start with these
    guys right here.
  • 4:56 - 4:59
    And I could just as easily
    perform the reverse row
  • 4:59 - 5:00
    operations.
  • 5:00 - 5:02
    Any linear operation, you can
    perform the reverse of it.
  • 5:02 - 5:04
    We've seen that multiple
    times.
  • 5:04 - 5:10
    You could perform row operations
    with these guys to
  • 5:10 - 5:11
    get all of these guys.
  • 5:11 - 5:15
    Or another way to view it is,
    these vectors here, these row
  • 5:15 - 5:20
    vectors right here, they span
    all of these-- or all of these
  • 5:20 - 5:23
    row vectors can be represented
    of linear combinations of your
  • 5:23 - 5:24
    pivot rows right here.
  • 5:24 - 5:29
    Obviously, your non-pivot rows
    are going to be all 0's.
  • 5:29 - 5:31
    And those are useless.
  • 5:31 - 5:34
    But, your pivot rows, if you
    take linear combinations of
  • 5:34 - 5:38
    them, you can clearly do reverse
    row echelon form and
  • 5:38 - 5:39
    get back to your matrix.
  • 5:39 - 5:41
    So, all of these guys can
    be represented as linear
  • 5:41 - 5:43
    combinations of them.
  • 5:43 - 5:47
    And all of these pivot entries
    are by definition-- well,
  • 5:47 - 5:49
    almost by definition--
    they are linearly
  • 5:49 - 5:50
    independent, right?
  • 5:50 - 5:51
    Because I've got a 1 here.
  • 5:51 - 5:53
    No one else has a 1 there.
  • 5:53 - 5:56
    So this guy can definitely not
    be represented as a linear
  • 5:56 - 5:58
    combination of the other guy.
  • 5:58 - 6:01
    So why am I going through
    this whole exercise?
  • 6:01 - 6:02
    Well, we started off
    saying we wanted a
  • 6:02 - 6:05
    basis for the row space.
  • 6:05 - 6:10
    We wanted some minimum set of
    linearly independent vectors
  • 6:10 - 6:13
    that spans everything that
    these guys can span.
  • 6:13 - 6:15
    Well, if all of these guys can
    be represented as linear
  • 6:15 - 6:18
    combinations of these row
    vectors in reduced row echelon
  • 6:18 - 6:23
    form-- or these pivot rows in
    reduced row echelon form-- and
  • 6:23 - 6:26
    these guys are all linearly
    independent, then they are a
  • 6:26 - 6:28
    reasonable basis.
  • 6:28 - 6:31
    So these pivot rows right here,
    that's one of them, this
  • 6:31 - 6:34
    is the second one, this is the
    third one, maybe they're the
  • 6:34 - 6:34
    only three.
  • 6:34 - 6:36
    This is just my particular
    example.
  • 6:36 - 6:39
    That would be a suitable basis
    for the row space.
  • 6:39 - 6:41
    So let me write this down.
  • 6:41 - 6:57
    The pivot rows in reduced row
    echelon form of A are a basis
  • 6:57 - 7:03
    for the row space of A.
  • 7:03 - 7:07
    And the row space of A is the
    same thing, or the column
  • 7:07 - 7:08
    space of A transpose.
  • 7:08 - 7:10
    The row space of A is the
    same thing as the
  • 7:10 - 7:11
    column space of A transpose.
  • 7:11 - 7:13
    We've see that multiple times.
  • 7:13 - 7:17
    Now, if we want to know the
    dimension of your column
  • 7:17 - 7:21
    space, we just count the number
    of pivot rows you have.
  • 7:21 - 7:23
    So you just count the number
    of pivot rows.
  • 7:23 - 7:26
    So the dimension of your row
    space, which is the same thing
  • 7:26 - 7:28
    as the column space of A
    transpose, is going to be the
  • 7:28 - 7:32
    number of pivot rows you have
    in reduced row echelon form.
  • 7:32 - 7:35
    Or, even simpler, the number
    of pivot entries you have
  • 7:35 - 7:37
    because every pivot entry
    has a pivot row.
  • 7:37 - 7:47
    So we can write that the rank of
    A transpose is equal to the
  • 7:47 - 7:57
    number of pivot entries in
    reduced row echelon form of A.
  • 7:57 - 7:57
    Right?
  • 7:57 - 8:00
    Because every pivot entry
    corresponds to a pivot row.
  • 8:00 - 8:04
    Those pivot rows are a suitable
    basis for the entire
  • 8:04 - 8:06
    row space, because every row
    could be made with a linear
  • 8:06 - 8:08
    combination of these guys.
  • 8:08 - 8:10
    And since all these can be, then
    anything that these guys
  • 8:10 - 8:13
    can construct, these
    guys can construct.
  • 8:13 - 8:14
    Fair enough.
  • 8:14 - 8:16
    Now, what is the rank of A?
  • 8:16 - 8:18
    This is the rank of A transpose
    that we've been
  • 8:18 - 8:20
    dealing with so far.
  • 8:20 - 8:30
    The rank of A is equal to
    the dimension of the
  • 8:30 - 8:33
    column space of A.
  • 8:33 - 8:42
    Or, you could say it's the
    number of vectors in the basis
  • 8:42 - 8:44
    for the column space of A.
  • 8:44 - 8:51
    So if we take that same matrix
    A that we used above, and we
  • 8:51 - 8:56
    instead we write it as a bunch
    of column vectors, so c1, c2,
  • 8:56 - 8:58
    all the way to cn.
  • 8:58 - 9:00
    We have n columns right there.
  • 9:00 - 9:02
    The column space is essentially
    the subspace
  • 9:02 - 9:05
    that's spanned by all of these
    characters right here, right?
  • 9:05 - 9:07
    Spanned by each of these
    column vectors.
  • 9:07 - 9:14
    So the column space of A is
    equal to the span of c1, c2,
  • 9:14 - 9:16
    all the way to cn.
  • 9:16 - 9:17
    That's the definition of it.
  • 9:17 - 9:19
    But we want to know the number
    of basis vectors.
  • 9:19 - 9:23
    And we've seen before-- we've
    done this multiple times--
  • 9:23 - 9:25
    what suitable basis
    vectors could be.
  • 9:25 - 9:29
    If you put this into reduced row
    echelon form, and you have
  • 9:29 - 9:33
    some pivot entries and their
    corresponding pivot columns,
  • 9:33 - 9:36
    so some pivot entries with
    their corresponding pivot
  • 9:36 - 9:37
    columns just like that.
  • 9:37 - 9:42
    Maybe that's like that, and then
    maybe this one isn't one,
  • 9:42 - 9:43
    and then this one is.
  • 9:43 - 9:44
    So you have a certain number
    of pivot columns.
  • 9:47 - 9:49
    Let me do it with another
    color right here.
  • 9:49 - 9:53
    When you put A into reduced row
    echelon form, we learned
  • 9:53 - 9:57
    that the basis vectors, or the
    basis columns that form a
  • 9:57 - 9:59
    basis for your column space,
    are the columns that
  • 9:59 - 10:02
    correspond to the
    pivot columns.
  • 10:02 - 10:05
    So the first column here is a
    pivot column, so this guy
  • 10:05 - 10:06
    could be a basis vector.
  • 10:06 - 10:08
    The second column is, so this
    guy could be a pivot vector.
  • 10:08 - 10:11
    Or maybe the fourth one right
    here, so this guy could be a
  • 10:11 - 10:12
    pivot vector.
  • 10:12 - 10:16
    So, in general, you just say
    hey, if you want to count the
  • 10:16 - 10:17
    number basis vectors-- because
    we don't even have to know
  • 10:17 - 10:18
    what they are to figure
    out the rank.
  • 10:18 - 10:20
    We just have to know the
    number they are.
  • 10:20 - 10:23
    Well you say, well for every
    pivot column here, we have a
  • 10:23 - 10:25
    basis vector over there.
  • 10:25 - 10:27
    So we could just count the
    number pivot columns.
  • 10:27 - 10:30
    But the number of pivot columns
    is equivalent to just
  • 10:30 - 10:32
    the number of pivot entries we
    have. Because every pivot
  • 10:32 - 10:33
    entry gets its own column.
  • 10:33 - 10:42
    So we could say that the rank of
    A is equal to the number of
  • 10:42 - 10:50
    pivot entries in the reduced
    row echelon form of A.
  • 10:50 - 10:53
    And, as you can see very
    clearly, that's the exact same
  • 10:53 - 10:56
    thing that we deduced was
    equivalent to the rank of A
  • 10:56 - 10:57
    transpose-- the dimension
    of the
  • 10:57 - 11:00
    columns space of A transpose.
  • 11:00 - 11:02
    Or the dimension of the
    row space of A.
  • 11:02 - 11:04
    So we can now write
    our conclusion.
  • 11:04 - 11:11
    The rank of A is definitely the
    same thing as the rank of
  • 11:11 - 11:12
    A transpose.
Title:
Linear Algebra: Rank(A) = Rank(transpose of A)
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
11:14

English subtitles

Revisions Compare revisions