Compute an outer product uv^T
Compute uvT entry by entry as ui times vj. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
Take with entries and with entries.
- - is a row times a column: one number, the dot product.
- - is a column times a row: an matrix.
For the matrix, entry is. Nothing is summed, so each entry is just one multiplication.
Row of this matrix is times the whole of; column is times the whole of. Every row is a multiple of one row, every column a multiple of one column, so the rank is unless a vector is zero.
Compare the index patterns. In both indices run over the same range and are summed:. In the index on is the row and the index on is the column, so they are independent and nothing collapses. That is the entire difference, and it is why one operation returns a scalar and the other returns a matrix.
It also explains the shape rule. is and is, so the inner dimension is:. An inner dimension of is exactly the "no summation" case.
Look at the columns. Column 1 is, column 2 is, column 3 is, column 4 is. Every column is on the same line — the line through — so the column space is one-dimensional and the rank is.
Look at the rows:, then three times it, then twice it. Every row is a multiple of. So the row space is also one-dimensional, a line, and the two dimensions agree — which they must.
This is the standard example of a rank-one matrix. Every rank-one matrix arises this way: a matrix has rank exactly when it equals some column times some row.
- Compute uv^T entry by entry as u_i times v_j
- State the shape of uv^T from the lengths of u and v
- Explain why a nonzero outer product has rank one
and. Write down and say why its rank is without computing the determinant.
Answer
Its rank is because it is a nonzero column times a nonzero row: every column is a multiple of — column 1 is times it, column 2 is times it — so the column space is a single line. Column 3 of a matrix does not exist, and two columns on one line cannot give rank more than.