Row and column vectors explained

In linear algebra, a column vector with elements is an

m x 1

matrix[1] consisting of a single column of entries, for example,\boldsymbol = \begin x_1 \\ x_2 \\ \vdots \\ x_m \end.

Similarly, a row vector is a

1 x n

matrix for some, consisting of a single row of entries,\boldsymbol a = \begin a_1 & a_2 & \dots & a_n \end. (Throughout this article, boldface is used for both row and column vectors.) The transpose (indicated by) of any row vector is a column vector, and the transpose of any column vector is a row vector:\begin x_1 \; x_2 \; \dots \; x_m \end^ = \begin x_1 \\ x_2 \\ \vdots \\ x_m \endand\begin x_1 \\ x_2 \\ \vdots \\ x_m \end^ = \begin x_1 \; x_2 \; \dots \; x_m \end.

The set of all row vectors with entries in a given field (such as the real numbers) forms an -dimensional vector space; similarly, the set of all column vectors with entries forms an -dimensional vector space.

The space of row vectors with entries can be regarded as the dual space of the space of column vectors with entries, since any linear functional on the space of column vectors can be represented as the left-multiplication of a unique row vector.

Notation

To simplify writing column vectors in-line with other text, sometimes they are written as row vectors with the transpose operation applied to them.

\boldsymbol = \begin x_1 \; x_2 \; \dots \; x_m \end^

or

\boldsymbol = \begin x_1, x_2, \dots, x_m \end^

Some authors also use the convention of writing both column vectors and row vectors as rows, but separating row vector elements with commas and column vector elements with semicolons (see alternative notation 2 in the table below).

Row vector Column vector
Standard matrix notation
(array spaces, no commas, transpose signs)

\begin{bmatrix}x1x2...xm\end{bmatrix}

\begin{bmatrix}x1\x2\\vdots\xm\end{bmatrix}or\begin{bmatrix}x1x2...xm\end{bmatrix}\rm

Alternative notation 1
(commas, transpose signs)

\begin{bmatrix}x1,x2,...,xm\end{bmatrix}

\begin{bmatrix}x1,x2,...,xm\end{bmatrix}\rm

Alternative notation 2
(commas and semicolons, no transpose signs)

\begin{bmatrix}x1,x2,...,xm\end{bmatrix}

\begin{bmatrix}x1;x2;...;xm\end{bmatrix}

Operations

Matrix multiplication involves the action of multiplying each row vector of one matrix by each column vector of another matrix.

The dot product of two column vectors, considered as elements of a coordinate space, is equal to the matrix product of the transpose of with,

\mathbf \cdot \mathbf = \mathbf^\intercal \mathbf = \begin a_1 & \cdots & a_n\end \begin b_1 \\ \vdots \\ b_n\end = a_1 b_1 + \cdots + a_n b_n \,,

By the symmetry of the dot product, the dot product of two column vectors is also equal to the matrix product of the transpose of with,

\mathbf \cdot \mathbf = \mathbf^\intercal \mathbf = \begin b_1 & \cdots & b_n\end\begin a_1 \\ \vdots \\ a_n\end = a_1 b_1 + \cdots + a_n b_n\,.

The matrix product of a column and a row vector gives the outer product of two vectors, an example of the more general tensor product. The matrix product of the column vector representation of and the row vector representation of gives the components of their dyadic product,

\mathbf \otimes \mathbf = \mathbf \mathbf^\intercal = \begin a_1 \\ a_2 \\ a_3\end\begin b_1 & b_2 & b_3\end = \begin a_1 b_1 & a_1 b_2 & a_1 b_3 \\a_2 b_1 & a_2 b_2 & a_2 b_3 \\a_3 b_1 & a_3 b_2 & a_3 b_3 \\\end \,,

which is the transpose of the matrix product of the column vector representation of and the row vector representation of,

\mathbf \otimes \mathbf = \mathbf \mathbf^\intercal = \begin b_1 \\ b_2 \\ b_3\end\begin a_1 & a_2 & a_3\end = \begin b_1 a_1 & b_1 a_2 & b_1 a_3 \\b_2 a_1 & b_2 a_2 & b_2 a_3 \\b_3 a_1 & b_3 a_2 & b_3 a_3 \\\end \,.

Matrix transformations

See main article: Transformation matrix. An matrix can represent a linear map and act on row and column vectors as the linear map's transformation matrix. For a row vector, the product is another row vector :

\mathbf M = \mathbf \,.

Another matrix can act on,

\mathbf Q = \mathbf \,.

Then one can write, so the matrix product transformation maps directly to . Continuing with row vectors, matrix transformations further reconfiguring -space can be applied to the right of previous outputs.

When a column vector is transformed to another column vector under an matrix action, the operation occurs to the left,

\mathbf^\mathrm = M \mathbf^\mathrm \,,\quad \mathbf^\mathrm = Q \mathbf^\mathrm,

leading to the algebraic expression for the composed output from input. The matrix transformations mount up to the left in this use of a column vector for input to matrix transformation.

See also

Notes and References

  1. Book: Artin . Michael . Algebra . 1991 . Prentice-Hall . Englewood Cliffs, NJ . 0-13-004763-5 . 2.