Matri­ces come in many shapes and pat­terns, and sev­eral of them have spe­cial names because they behave in spe­cial ways. The iden­tity matrix plays the part of the num­ber 11, the zero matrix the part of 00, and square matri­ces are the ones that will have deter­mi­nants and inverses later in the course. This les­son intro­duces each type with an exam­ple, and then explains when two matri­ces are equal.

Row and col­umn matri­ces

A row matrix has exactly one row; its order is 1×n1 \times n.

[3−107] is a 1×4 row matrix.\begin{bmatrix} 3 & -1 & 0 & 7 \end{bmatrix} \text{ is a } 1 \times 4 \text{ row matrix.}

A col­umn matrix has exactly one col­umn; its order is m×1m \times 1.

[25−4] is a 3×1 column matrix.\begin{bmatrix} 2 \\ 5 \\ -4 \end{bmatrix} \text{ is a } 3 \times 1 \text{ column matrix.}

Square and rec­tan­gu­lar matri­ces

A square matrix has the same num­ber of rows and columns. A square matrix of order n×nn \times n is often called sim­ply a matrix of order nn.

A matrix that is not square is called rec­tan­gu­lar.

In a square matrix, the entries a11,a22,a33,…a_{11}, a_{22}, a_{33}, \ldots (where the row num­ber equals the col­umn num­ber) form the prin­ci­pal diag­o­nal (or lead­ing diag­o­nal), run­ning from top left to bot­tom right. The sum of the entries on the prin­ci­pal diag­o­nal is called the trace of the matrix.

Exam­ple 1

Find the trace of A=[2510−34786]A = \begin{bmatrix} 2 & 5 & 1 \\ 0 & -3 & 4 \\ 7 & 8 & 6 \end{bmatrix}.

The prin­ci­pal diag­o­nal is 22, −3-3, 66. So the trace is 2+(−3)+6=52 + (-3) + 6 = 5.

Zero matrix

A matrix in which every entry is 00 is called a zero matrix or null matrix, writ­ten OO. It can be of any order:

[0000],[000]\begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}, \qquad \begin{bmatrix} 0 & 0 & 0 \end{bmatrix}

Diag­o­nal, scalar and iden­tity matri­ces

A square matrix in which every entry off the prin­ci­pal diag­o­nal is 00 is called a diag­o­nal matrix. The diag­o­nal entries them­selves may be any­thing, includ­ing 00.

[4000−10009] is a diagonal matrix.\begin{bmatrix} 4 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 9 \end{bmatrix} \text{ is a diagonal matrix.}

A diag­o­nal matrix whose diag­o­nal entries are all equal is called a scalar matrix.

[5005] is a scalar matrix.\begin{bmatrix} 5 & 0 \\ 0 & 5 \end{bmatrix} \text{ is a scalar matrix.}

A scalar matrix whose diag­o­nal entries are all 11 is called an iden­tity matrix (or unit matrix), writ­ten II, or InI_n for order nn.

I2=[1001],I3=[100010001]I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}, \qquad I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}

Each type is a spe­cial case of the one before: every iden­tity matrix is a scalar matrix, and every scalar matrix is a diag­o­nal matrix.

Tri­an­gu­lar matri­ces

A square matrix is upper tri­an­gu­lar if every entry below the prin­ci­pal diag­o­nal is 00, and lower tri­an­gu­lar if every entry above it is 00.

[14−2036005] is upper triangular;[2007−10384] is lower triangular.\begin{bmatrix} 1 & 4 & -2 \\ 0 & 3 & 6 \\ 0 & 0 & 5 \end{bmatrix} \text{ is upper triangular;} \qquad \begin{bmatrix} 2 & 0 & 0 \\ 7 & -1 & 0 \\ 3 & 8 & 4 \end{bmatrix} \text{ is lower triangular.}

A diag­o­nal matrix is both upper and lower tri­an­gu­lar.

Exam­ple 2

Name the type of each matrix.

(a) [000000]\begin{bmatrix} 0 & 0 \\ 0 & 0 \\ 0 & 0 \end{bmatrix} (b) [−300−3]\begin{bmatrix} -3 & 0 \\ 0 & -3 \end{bmatrix} (c) [1062]\begin{bmatrix} 1 & 0 \\ 6 & 2 \end{bmatrix} (d) [81]\begin{bmatrix} 8 \\ 1 \end{bmatrix}

(a) A zero matrix of order 3×23 \times 2 (also rec­tan­gu­lar).

(b) A scalar matrix (also diag­o­nal, square, and both upper and lower tri­an­gu­lar).

(c) A lower tri­an­gu­lar matrix: the only entry above the diag­o­nal is 00.

(d) A col­umn matrix of order 2×12 \times 1.

Equal­ity of matri­ces

Two matri­ces AA and BB are equal, writ­ten A=BA = B, when

  1. they have the same order, and
  2. every entry of AA equals the entry in the same place in BB: aij=bija_{ij} = b_{ij} for all ii and jj.

So [12]\begin{bmatrix} 1 & 2 \end{bmatrix} and [12]\begin{bmatrix} 1 \\ 2 \end{bmatrix} are not equal: they hold the same num­bers but have dif­fer­ent orders.

One matrix equa­tion is really a set of ordi­nary equa­tions, one for each posi­tion. This is very use­ful for find­ing unknowns.

Exam­ple 3

Find xx and yy if [x+y25x−y]=[6252]\begin{bmatrix} x + y & 2 \\ 5 & x - y \end{bmatrix} = \begin{bmatrix} 6 & 2 \\ 5 & 2 \end{bmatrix}.

Equate the entries in the same places: x+y=6x + y = 6 and x−y=2x - y = 2. Adding, 2x=82x = 8, so x=4x = 4; then y=2y = 2.

Exam­ple 4

Find aa, bb, cc, dd if [2a+ba−2b5c−d4c+3d]=[4−31124]\begin{bmatrix} 2a + b & a - 2b \\ 5c - d & 4c + 3d \end{bmatrix} = \begin{bmatrix} 4 & -3 \\ 11 & 24 \end{bmatrix}.

From the first row: 2a+b=42a + b = 4 and a−2b=−3a - 2b = -3. Mul­ti­ply the first by 22 and add: 5a=55a = 5, so a=1a = 1, and then b=4−2=2b = 4 - 2 = 2.

From the sec­ond row: 5c−d=115c - d = 11, so d=5c−11d = 5c - 11. Sub­sti­tute into 4c+3d=244c + 3d = 24:

4c+15c−33=24  ⟹  19c=57  ⟹  c=34c + 15c - 33 = 24 \implies 19c = 57 \implies c = 3

Then d=15−11=4d = 15 - 11 = 4. So a=1a = 1, b=2b = 2, c=3c = 3, d=4d = 4.

Prac­tice

  1. Write a row matrix of order 1×31 \times 3 and a col­umn matrix of order 2×12 \times 1.
  2. Find the trace of [72−49]\begin{bmatrix} 7 & 2 \\ -4 & 9 \end{bmatrix}.
  3. Find the trace of [1035−624810]\begin{bmatrix} 1 & 0 & 3 \\ 5 & -6 & 2 \\ 4 & 8 & 10 \end{bmatrix}.
  4. Name the type of [300030003]\begin{bmatrix} 3 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 3 \end{bmatrix} as pre­cisely as you can.
  5. Name the type of [250−1]\begin{bmatrix} 2 & 5 \\ 0 & -1 \end{bmatrix}.
  6. Is every diag­o­nal matrix a scalar matrix? Give a rea­son.
  7. Write the iden­tity matrix of order 44.
  8. Are [30]\begin{bmatrix} 3 & 0 \end{bmatrix} and [300]\begin{bmatrix} 3 & 0 & 0 \end{bmatrix} equal? Give a rea­son.
  9. Find xx and yy if [2x31y+4]=[10311]\begin{bmatrix} 2x & 3 \\ 1 & y + 4 \end{bmatrix} = \begin{bmatrix} 10 & 3 \\ 1 & 1 \end{bmatrix}.
  10. Find pp and qq if [p+qp−q]=[91]\begin{bmatrix} p + q \\ p - q \end{bmatrix} = \begin{bmatrix} 9 \\ 1 \end{bmatrix}.
  11. Find aa, bb, cc if [ab+12c6]\begin{bmatrix} a & b + 1 \\ 2c & 6 \end{bmatrix} is a scalar matrix.

Answers

Show answers
  1. For exam­ple [4−21]\begin{bmatrix} 4 & -2 & 1 \end{bmatrix} and [30]\begin{bmatrix} 3 \\ 0 \end{bmatrix}.
  2. 7+9=167 + 9 = 16.
  3. 1+(−6)+10=51 + (-6) + 10 = 5.
  4. A scalar matrix (it is also diag­o­nal, square and tri­an­gu­lar), equal to 3I33I_3.
  5. An upper tri­an­gu­lar matrix.
  6. No. A scalar matrix needs all diag­o­nal entries equal; [1002]\begin{bmatrix} 1 & 0 \\ 0 & 2 \end{bmatrix} is diag­o­nal but not scalar.
  7. The 4×44 \times 4 matrix with 11 in each diag­o­nal place and 00 every­where else.
  8. No. Their orders, 1×21 \times 2 and 1×31 \times 3, are dif­fer­ent.
  9. 2x=102x = 10 gives x=5x = 5; y+4=1y + 4 = 1 gives y=−3y = -3.
  10. p+q=9p + q = 9 and p−q=1p - q = 1, so p=5p = 5, q=4q = 4.
  11. Off-diag­o­nal entries must be 00: b+1=0b + 1 = 0 and 2c=02c = 0, so b=−1b = -1, c=0c = 0. Diag­o­nal entries must be equal: a=6a = 6.