Curvingo · Made in India

Glossary

Select one of the keywords on the left…

MatricesMatrix

Reading time: ~25 min

Radha, Fauzia and Simran are getting ready for their exams. Radha has 15 notebooks and 6 pens, Fauzia has 10 notebooks and 2 pens, and Simran has 13 notebooks and 5 pens. A table keeps all of this tidy:

NotebooksPens
Radha156
Fauzia102
Simran135

Once everyone agrees that the rows are the three friends, in this order, and the columns are notebooks and pens, the labels can go. The bare numbers, each in its place, still say everything:

\begin{bmatrix} 15 & 6 \\ 10 & 2 \\ 13 & 5 \end{bmatrix}

The number 10, in the second row and the first column, stands for .

We could just as well have put the friends in the columns and the items in the rows: \begin{bmatrix} 15 & 10 & 13 \\ 6 & 2 & 5 \end{bmatrix}. Now the first lists the notebooks of all three friends. Both arrangements are correct. What matters is that every number keeps a fixed position, because its position is what tells you what it means.

Definition 1 A matrix is an ordered rectangular array of numbers or functions. The numbers or functions are called the elements or entries of the matrix.

We name matrices with capital letters. Here are three more:

A = \begin{bmatrix} -2 & 5 \\ 0 & \sqrt{5} \\ 3 & 6 \end{bmatrix}

B = \begin{bmatrix} 2+i & 3 & -\frac{1}{2} \\ 3.5 & -1 & 2 \\ \sqrt{3} & 5 & \frac{5}{7} \end{bmatrix}

C = \begin{bmatrix} 1+x & x^3 & 3 \\ \cos x & \sin x + 2 & \tan x \end{bmatrix}

The horizontal lines of elements are the rows of a matrix, and the vertical lines are its columns. So A has rows and columns, B has 3 rows and 3 columns, and C has 2 rows and 3 columns.

Tip

Rows run across, like the rows of seats in a cinema hall. Columns stand up, like the pillars of a building. Almost every rule in this chapter depends on which is which.

Order of a Matrix

A matrix with m rows and n columns has order m \times n, read "m by n". So A above is a 3 \times 2 matrix, B is 3 \times 3 and C is 2 \times 3. A 3 \times 2 matrix holds 3 \times 2 = 6 elements, and in general an m \times n matrix holds elements.

Every element has an address. The element in row i and column j is written a_{ij} and called the (i, j)th element:

A = \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{bmatrix}

or, in short, A = [a_{ij}]_{m \times n}, where 1 \le i \le m and 1 \le j \le n. Row i is a_{i1}, a_{i2}, \ldots, a_{in}, and column j is a_{1j}, a_{2j}, \ldots, a_{mj}.

Element hunt. Tap the three elements named in the missions. The row you are in lights up blue and the column green.

Tip

Rows always come first: in an order (a 3 \times 2 matrix has 3 rows and 2 columns) and in an address (a_{23} is in row 2, column 3). A 3 \times 2 matrix and a 2 \times 3 matrix both hold 6 elements, but they are completely different matrices.

Note

In this chapter we write A = [a_{ij}]_{m \times n} for a matrix of order m \times n, and we work only with matrices whose elements are real numbers or functions taking real values.

A point (x, y) of the plane can be stored as a matrix too — as a column \begin{bmatrix} x \\ y \end{bmatrix} or as a row [x \;\; y]. So the point P(0, 1) becomes \begin{bmatrix} 0 \\ 1 \end{bmatrix} or [0 \;\; 1].

Put several points side by side, and a whole figure fits in one matrix. The quadrilateral ABCD below has vertices A(1, 0), B(3, 2), C(1, 3) and D(−1, 2). With one vertex in each column it becomes the 2 \times 4 matrix

X = \begin{bmatrix} 1 & 3 & 1 & -1 \\ 0 & 2 & 3 & 2 \end{bmatrix}

Column 2 of X is the point B(3, 2), and column 4 is D(−1, 2). With one vertex in each row instead, we get a matrix Y, whose first row is [1 \;\; 0].

This is exactly how a computer keeps track of a shape. To rotate, enlarge or reflect it, the computer combines X with one small matrix, and every corner moves at once.

Example 1 : The table shows the number of men and women workers in three factories, I, II and III.

FactoryMen workersWomen workers
I3025
II2531
III2726

Represent this information as a 3 \times 2 matrix. What does the element in the third row and second column represent?

Solution : With the factories as rows and men and women as columns,

A = \begin{bmatrix} 30 & 25 \\ 25 & 31 \\ 27 & 26 \end{bmatrix}

The element a_{32} = 26 sits in the row of factory III and the column of women workers, so it is the number of .

Example 2 : If a matrix has 8 elements, what are the possible orders it can have?

Play first. Choose a number of rows, and the 8 elements try to line up in equal rows. Find every order that works.

Solution : An m \times n matrix has mn elements, so we need every ordered pair of natural numbers whose product is 8: (1, 8), (8, 1), (4, 2) and (2, 4). Hence the possible orders are 1 \times 8, 8 \times 1, 4 \times 2 and 2 \times 4.

Tip

Listing orders is listing factor pairs. A prime number of elements, such as 13, leaves only possible orders: 1 \times 13 and 13 \times 1.

Example 3 : Construct a 3 \times 2 matrix whose elements are given by a_{ij} = \frac{1}{2}|i - 3j|.

Solution : A 3 \times 2 matrix has the elements a_{11}, a_{12}, a_{21}, a_{22}, a_{31}, a_{32}. Put each i = 1, 2, 3 and j = 1, 2 into the rule:

a_{11} = \frac{1}{2}|1 - 3| = 1, \qquad a_{12} = \frac{1}{2}|1 - 6| = \frac{5}{2}

a_{21} = \frac{1}{2}|2 - 3| = \frac{1}{2}, and a_{22} = \frac{1}{2}|2 - 6| =

a_{31} = \frac{1}{2}|3 - 3| = , and a_{32} = \frac{1}{2}|3 - 6| =

So the required matrix is A = \begin{bmatrix} 1 & \frac{5}{2} \\ \frac{1}{2} & 2 \\ 0 & \frac{3}{2} \end{bmatrix}.

Speed Round: Read the Matrix

Name the order, or read off the element asked for. Rows first, always.

Get five right to move on.

Sina