3.3 Special matrices

In the special case where a matrix has the same numbers of rows and columns, it is said to be square. If A=A\mathbf{A}^{\scriptstyle\top}=\mathbf{A}, the matrix is said to be symmetric.

Symmetric:[1221]Not symmetric:[3201]\text{Symmetric:} \left[ \begin{array}{rr} 1 & 2 \\ 2 & -1 \end{array} \right] \qquad \text{Not symmetric:} \left[ \begin{array}{rr} 3 & 2 \\ 0 & -1 \end{array} \right]

Note that a matrix cannot be symmetric unless it is square.

The elements AiiA_{ii} of a matrix are called its diagonal entries; a matrix for which Aij=0A_{ij} = 0 for all iji \neq j is said to be a diagonal matrix:

[100010005]\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 5 \end{array} \right]

Consider in particular the following diagonal matrix:

I=[100010001]\mathbf{I}= \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right]

Note that this matrix has the interesting property that (AI)ij=Aij(\mathbf{A}\mathbf{I})_{ij}=A_{ij} for all i,ji, \, j; in other words, AI=IA=A\mathbf{A}\mathbf{I}=\mathbf{I}\mathbf{A}=\mathbf{A}. Because of this property, I\mathbf{I} is referred to as the identity matrix.

Some other notations which are commonly used are 1\mathbf{1}, the vector (or matrix) of 1s, and 0\mathbf{0}, the vector (or matrix) of zeros:

1=[1 1 1]0=[0 0 0]\mathbf{1}= \left[ \begin{array}{rrr} 1\ 1\ 1 \end{array} \right] \qquad \mathbf{0}= \left[ \begin{array}{rrr} 0\ 0\ 0 \end{array} \right]

The dimensions of these matrices is sometimes explicitly specified, as in 02×2\mathbf{0}_{2 \times 2}, I5×5\mathbf{I}_{5 \times 5}, or 14×1\mathbf{1}_{4 \times 1}. Other times it is obvious from context what the dimensions must be.

Finally, the vector ej\mathbf{e}_j is also useful: it has element ej=1e_j=1 and ek=0e_k=0 for all other elements:

e2=[010].\mathbf{e}_2 = \left[ \begin{array}{rrr} 0 \\ 1 \\ 0 \end{array} \right].

This is useful for selecting a single element of a vector: ue3=u3\mathbf{u}^{\scriptstyle\top}\mathbf{e}_3 = u_3.