Free while we finish the books. A book in review is free to read and use, and so is its PDF. Once the book is finished, its PDF is ₹299.
A grid of numbers, treated as one object
Your class teacher keeps a mark-sheet. The students’ names run down the left side. The subjects run across the top. Each box holds one student’s marks in one subject. Read along a row and you see one student. Read down a column and you see one subject.
Many sheets work like this. A shop’s price list is a grid of items and prices. A bill lists each item with its quantity, rate and amount. The register from Chapter 1 is a grid too. In each one, a number means something only because of its place. Move it to another box and it means something else.
A grid with one name
Now treat the whole grid as one thing. Give it a single name, such as $A$, and do arithmetic with it. A grid of numbers used this way is a MATRIX.
Kanada lived in north India between the 6th and the 2nd century BCE. He is named as the founder of the Vaisheshika, the school of particulars (from viśeṣa, the particular thing that makes one atom differ from another). He taught that matter is built from tiny parts that join in twos and threes. Ask of a matrix what he asked of matter. What kind of thing is it? It is built from numbers, but it is not a number. So test each number habit before you use it.
Here is the question for the whole chapter. You know how to add, scale and multiply numbers. If a whole grid is one thing, which of that arithmetic still works? And what changes? By the last page you will know which habits from numbers still hold, and which two break.
- What does a MATRIX make of a whole grid of numbers?
Check your answer
- Adding and scaling work for matrices the way they do for numbers. Which ONE of these rules fails for matrices?
Check your answer
- In the class mark-sheet, Roll 1’s Maths mark is 42. What makes 42 a Maths mark for Roll 1, and not some other mark?
Check your answer
Before you start
You met every one of these facts once already. Try each check below.
- Equality of ordered pairs (Class 11, Mathematics (NCERT Class 11), page 26).
Here: a matrix equality is this same entry-by-entry test, run over a whole grid instead of over one pair.
Check: if $(x + 1, y - 2) = (3, 1)$ then $x = 2$ and $y = 3$.
- Solving a pair of linear equations (Class 10, Mathematics (NCERT Class 10), page 30).
Here: once a matrix equality turns into two ordinary equations, finding the unknown entries is this same elimination or substitution step.
Check: $x + y = 6$ and $x - y = 2$ give $x = 4$ and $y = 2$.
- Two numbers from their sum and product (Class 10, Mathematics (NCERT Class 10), page 21).
Here: a matrix equality giving one sum and one product is solved this same way, as a quadratic in one unknown.
Check: two numbers with sum $6$ and product $8$ are the roots of $t^2 - 6t + 8 = 0$, namely $2$ and $4$.
- Addition is commutative (Class 11, Mathematics (NCERT Class 11), page 77).
Here: matrix addition keeps this same commutative law, since every entry is just an ordinary sum of two numbers.
Check: $3 + 5 = 5 + 3$, both giving $8$.
- Addition is associative (Class 11, Mathematics (NCERT Class 11), page 77).
Here: adding three matrices in either grouping gives this same associative result, entry by entry.
Check: $(2 + 3) + 4 = 2 + (3 + 4)$, both giving $9$.
- Multiplication distributes over addition (Class 11, Mathematics (NCERT Class 11), page 78).
Here: scaling a matrix sum by a number follows this same distributive law, spreading the scalar over every entry.
Check: $2(3 + 4) = 2 \times 3 + 2 \times 4$, both giving $14$.
If any of these felt new, read the page named before going on.
Order, entries, and named matrix shapes
Look again at the mark-sheet. It has 2 students and 3 subjects. So it has 2 rows and 3 columns. To find a mark, you find the student first and then the subject. A matrix is read the same way, row first and then column.
The order of a matrix
So a matrix with 2 rows and 3 columns has ORDER 2 by 3. It is written $2 \times 3$, and it has $2 \times 3 = 6$ entries. A matrix with $m$ rows and $n$ columns has order $m \times n$. Rows always come first.
Each number in a matrix is an ENTRY, also called an element. In the mark-sheet, the entry in row 2, column 3 is the second student’s mark in the third subject. If the matrix is called $A$, that entry is $a_{2 3}$. Keep the space between 2 and 3. They are two labels, the row and the column. They are not the number twenty-three. The entry in row $i$ and column $j$ is $a_{i j}$.
Two matrices are EQUAL when two things are true. They have the same order. And each entry equals the entry in the same place in the other: $a_{i j} = b_{i j}$ for every $i$ and $j$. Two mark-sheets are the same only if every box matches.
Finding unknown entries
Let us use that. Find $x$ and $y$ when
$\begin{pmatrix} x & 2 \\ 3 & y \end{pmatrix} = \begin{pmatrix} 5 & 2 \\ 3 & -1 \end{pmatrix}$.
*Both are $2 \times 2$,* so set each entry equal to the entry in the same place. The top-left entries give $x = 5$, and the bottom-right entries give $y = -1$.
So one matrix equation gives you as many plain equations as it has entries.
Try one where the entries combine. Find $x$ and $y$ when
$\begin{pmatrix} x+y & 2 \\ 3 & x-y \end{pmatrix} = \begin{pmatrix} 7 & 2 \\ 3 & 1 \end{pmatrix}$.
*The off-diagonal entries, $2$ and $3$, already match,* so the new information is in the other two: $x + y = 7$ and $x - y = 1$. Adding the two equations gives $2x = 8$, so $x = 4$; then $y = 3$.
Your turn: a matrix has 2 rows and 5 columns. What is its order? How many entries does it have?
- What is the order of a matrix with $m$ rows and $n$ columns?
Check your answer
- Exactly when are two matrices $A$ and $B$ EQUAL?
Check your answer
- Why does the entry $a_{i j}$ notation matter enough that $i$ and $j$ are always read as two separate labels, never merged?
Check your answer
Take one row of the mark-sheet on its own. It holds one student’s marks in every subject. A matrix with just one row is a ROW MATRIX. Now take one column on its own. It holds every student’s marks in one subject. A matrix with just one column is a COLUMN MATRIX. A row matrix has order $1 \times n$, and a column matrix has order $m \times 1$.
The other names are definitions, so here they are plainly. A SQUARE MATRIX has as many rows as columns, so its order is $n \times n$. Its MAIN DIAGONAL runs from the top-left corner to the bottom-right corner. It holds the entries $a_{1 1}$, $a_{2 2}$ and so on.
Do any two of these names clash? Check it on the identity $I$ of order $2 \times 2$. It is square. Its entries off the diagonal are $0$, so it is diagonal. Its diagonal entries match, so it is scalar. They are all $1$, so it is the identity. That is four names, and none clash, because each name sits inside the one before. A matrix that fails a step stops there.
Diagonal, scalar and identity matrices
Inside the square matrices sit three more names. Each one adds one condition to the one before.
- A DIAGONAL MATRIX is a square matrix with every entry off the main diagonal equal to $0$. So $a_{i j} = 0$ when $i \neq j$.
- A SCALAR MATRIX is a diagonal matrix whose diagonal entries are all the same, such as $\begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix}$.
- The IDENTITY MATRIX $I$ is a scalar matrix whose diagonal entries are all $1$. At order $2 \times 2$, $I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$.
A ZERO MATRIX has every entry $0$. It is written $O$, and it can have any order at all.
Telling the types apart
Try one. Take $\begin{pmatrix} 2 & 0 \\ 0 & 5 \end{pmatrix}$. It is square, and both entries off the diagonal are $0$. So it is diagonal. Its diagonal entries, 2 and 5, are not the same. So it is not scalar. Each name tells you something about the whole matrix at a glance. The rules later in the chapter use them.
Your turn: is the $2 \times 2$ zero matrix $O$ a diagonal matrix? Is it a scalar matrix?
- What is a SCALAR matrix?
Check your answer
- Which named shape can have ANY order at all, not just a square one?
Check your answer
- Diagonal, scalar, and identity matrices nest inside one another. Why does every scalar matrix count as diagonal too?
Check your answer
Adding matrices and scaling by a number
At the end of the year the school adds two mark-sheets. Term 1 marks are on one sheet and Term 2 marks are on the other. For the total, you add the two marks in the same box. That is the same student in the same subject. You never add one student’s Maths to another student’s English.
That works only if both sheets have the same students and the same subjects, in the same places. If one sheet has an extra subject, some boxes have no partner. Then there is no total for them.
Addition of matrices
Matrices add in the same way. You can add two matrices only when they have the same order. Then you add entry by entry. The entry in row $i$, column $j$ of $A + B$ is $a_{i j} + b_{i j}$. A $2 \times 3$ matrix and a $3 \times 2$ matrix cannot be added at all. Subtraction works the same way, entry by entry. Take the same pair: $A - B = \begin{pmatrix} -4 & 3 \\ 3 & 2 \end{pmatrix}$, top left, $1 - 5 = -4$.
Now suppose a test was marked out of 50, and the school wants every mark out of 100. You double every mark on the sheet. Multiplying a matrix by a number works like that. For a number $k$, each entry of $k A$ is $k$ times the entry of $A$ in the same place. This is SCALAR MULTIPLICATION, and $k A$ has the same order as $A$.
A check with small matrices
Let us try both on small matrices. Take
$A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$ and $B = \begin{pmatrix} 5 & 0 \\ 1 & 2 \end{pmatrix}$.
Add them entry by entry:
$A + B = \begin{pmatrix} 1 + 5 & 2 + 0 \\ 3 + 1 & 4 + 2 \end{pmatrix} = \begin{pmatrix} 6 & 2 \\ 4 & 6 \end{pmatrix}$.
Then multiply every entry of $A$ by 3:
$3 A = \begin{pmatrix} 3 \cdot 1 & 3 \cdot 2 \\ 3 \cdot 3 & 3 \cdot 4 \end{pmatrix} = \begin{pmatrix} 3 & 6 \\ 9 & 12 \end{pmatrix}$.
Adding and scaling keep the habits you have from numbers.
- $A + B = B + A$, and $(A + B) + C = A + (B + C)$.
- Adding the zero matrix $O$ of the same order changes nothing.
- $k(A + B) = k A + k B$, and $(k + l) A = k A + l A$.
Check it: with $k = 2$, $k(A + B) = \begin{pmatrix} 12 & 2 \\ 6 & 12 \end{pmatrix}$ and $k A + k B = \begin{pmatrix} 2 & 4 \\ 6 & 8 \end{pmatrix} + \begin{pmatrix} 10 & -2 \\ 0 & 4 \end{pmatrix} = \begin{pmatrix} 12 & 2 \\ 6 & 12 \end{pmatrix}$. They agree.
So with additions and scalings you can rearrange freely, just as with numbers.
Your turn: for the same $A$ and $B$, find $2B - A$. Then find $2(B - A)$. Are they the same matrix?
- For a scalar $k$, what does entry $(i,j)$ of $k A$ equal?
Check your answer
- Why can a $2 \times 3$ matrix never be added to a $3 \times 2$ matrix?
Check your answer
- Addition and scalar multiplication both leave a matrix’s order unchanged. What does this fact rule out?
Check your answer
Add and scale two matrices: $2A - B$
- $A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$, $B = \begin{pmatrix} 5 & -1 \\ 0 & 2 \end{pmatrix}$
You are given $A$ and $B$. Both are $2 \times 2$, so you can add them. - $A + B = \begin{pmatrix} 1 + 5 & 2 + (-1) \\ 3 + 0 & 4 + 2 \end{pmatrix} = \begin{pmatrix} 6 & 1 \\ 3 & 6 \end{pmatrix}$
Add the entries in the same place. No row mixes with another row. - $2A = \begin{pmatrix} 2 & 4 \\ 6 & 8 \end{pmatrix}$
Scale first. Every entry of $A$ is doubled. - $2A - B = \begin{pmatrix} 2 - 5 & 4 - (-1) \\ 6 - 0 & 8 - 2 \end{pmatrix} = \begin{pmatrix} -3 & 5 \\ 6 & 6 \end{pmatrix}$
Now subtract $B$ from $2A$, entry by entry, as with addition. - $2 \cdot 2 - (-1) = 5$ and $2 \cdot 3 - 0 = 6$
Check two entries on their own. Row 1, column 2 and row 2, column 1 match the answer.
The same idea, on a firm’s production table
- Table 3.1 (NCERT Introductory Microeconomics, Class 12) gives row $L=1$ as $A = \begin{pmatrix} 0 & 1 & 3 & 7 \end{pmatrix}$ for capital $K=0,1,2,3$
The table gives a firm’s output for each amount of labour and capital it uses. Reading four entries straight off it, labour held fixed at $1$ unit. - Row $L=2$ gives $B = \begin{pmatrix} 0 & 3 & 10 & 18 \end{pmatrix}$ for the same four capital values
The next row of the table, labour held fixed at $2$ units instead. - $A + B = \begin{pmatrix} 0 & 4 & 13 & 25 \end{pmatrix}$
Matrix addition adds each matching entry: the total output of the two labour levels at each capital value. - $2A = \begin{pmatrix} 0 & 2 & 6 & 14 \end{pmatrix}$
Scalar multiplication doubles every entry the same way, as if labour $1$’s whole output row were scaled up.
- For $A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$ and $B = \begin{pmatrix} 5 & -1 \\ 0 & 2 \end{pmatrix}$, the worked example finds $A + B = \begin{pmatrix} 6 & 1 \\ 3 & 6 \end{pmatrix}$. What is $B + A$?
Check your answer
- Still using $A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$, $B = \begin{pmatrix} 5 & -1 \\ 0 & 2 \end{pmatrix}$, the worked example computes $2A - B = \begin{pmatrix} -3 & 5 \\ 6 & 6 \end{pmatrix}$. What is entry $(1,1)$ of $2A - B$ built from?
Check your answer
- The worked example notes ‘no row mixes with another row’ while computing $A + B$ and $2A - B$. Which chapter idea does this illustrate?
Check your answer
Row times column
You buy 2 pens and 3 notebooks. A pen costs 10 rupees and a notebook costs 40 rupees. The shopkeeper multiplies each quantity by its price and adds. Two times 10 is 20, three times 40 is 120, and the bill is 140 rupees.
Writing the bill as matrices
Write what you bought as a row, 2 and 3. Write the prices as a column, 10 and 40. The bill is the row times the column. You multiply first by first and second by second, then add. That one step, row times column, is the whole of matrix multiplication.
Now a friend buys 5 pens and 1 notebook. Put the two of you in two rows. A second shop sells pens at 12 rupees and notebooks at 35 rupees. Put the two shops’ prices in two columns. Each customer at each shop gets one bill, and the bills form a grid.
$\begin{pmatrix} 2 & 3 \\ 5 & 1 \end{pmatrix} \begin{pmatrix} 10 & 12 \\ 40 & 35 \end{pmatrix} = \begin{pmatrix} 140 & 129 \\ 90 & 95 \end{pmatrix}$
The entry in row 2, column 1 is your friend at the first shop. It is $5 \times 10 + 1 \times 40 = 90$ rupees.
Any entry of a product
So here is the rule. The entry in row $i$, column $j$ of $A B$ is row $i$ of $A$ times column $j$ of $B$. You multiply matching entries and add the products.
This needs the row and the column to be the same length. Every item bought needs exactly one price. So the number of columns of $A$ must equal the number of rows of $B$. If $A$ is $m \times n$ and $B$ is $n \times p$, then $A B$ is defined, and its order is $m \times p$. If the two inner numbers differ, $A B$ is not defined at all.
The order of a product
The outer numbers give the size of the answer. A $2 \times 3$ matrix times a $3 \times 2$ matrix is $2 \times 2$, as the figure above shows. One product works out every bill at once, for any number of customers and shops.
Your turn: take a different pair, with no entries given. $A$ has order $3 \times 2$ and $B$ has order $2 \times 4$. Is $A B$ defined, and what is its order? Is $B A$ defined?
- What is entry $(i,j)$ of the matrix product $A B$?
Check your answer
- For $A B$ to even exist, what must be true of $A$’s and $B$’s orders?
Check your answer
- If $A$ is $m \times n$ and $B$ is $n \times p$, what is the order of the product $A B$?
Check your answer
- $A$ is $2 \times 3$ and $B$ is $3 \times 2$. Why can $A B$ exist while $B A$, computed the other way round, could still fail in general for a differently-shaped pair?
Check your answer
- If the inner numbers of $A$ and $B$ do not match, what happens to $A B$?
Check your answer
Multiply a $2 \times 3$ matrix by a $3 \times 2$ matrix, entry by entry
- $A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}$ (order $2 \times 3$), $B = \begin{pmatrix} 7 & 8 \\ 9 & 10 \\ 11 & 12 \end{pmatrix}$ (order $3 \times 2$)
First check the sizes. $A$ is $2 \times 3$ and $B$ is $3 \times 2$. - $3 = 3$: the column count of $A$ matches the row count of $B$
The inner numbers match, so $A B$ is defined. The outer numbers say it is $2 \times 2$. - Entry $(1,1) = 1 \cdot 7 + 2 \cdot 9 + 3 \cdot 11 = 7+18+33 = 58$
Row 1 of $A$ times column 1 of $B$. Multiply in pairs, then add. - Entry $(1,2) = 1 \cdot 8 + 2 \cdot 10 + 3 \cdot 12 = 8+20+36 = 64$
Row 1 of $A$ times column 2 of $B$. - Entry $(2,1) = 4 \cdot 7 + 5 \cdot 9 + 6 \cdot 11 = 28+45+66 = 139$
Row 2 of $A$ times column 1 of $B$. - Entry $(2,2) = 4 \cdot 8 + 5 \cdot 10 + 6 \cdot 12 = 32+50+72 = 154$
Row 2 of $A$ times column 2 of $B$. - *$A B = \begin{pmatrix} 58 & 64 \\ 139 & 154 \end{pmatrix}$*
Put the four entries in their places. $B A$ would be $3 \times 3$, a different size altogether. - $58 + 64 = 122$, and $1 \cdot 15 + 2 \cdot 19 + 3 \cdot 23 = 15 + 38 + 69 = 122$
Check row 1 another way. The rows of $B$ add up to 15, 19 and 23. Row 1 of $A$ times those totals must give the sum of row 1 of $A B$.
- In the worked example, $A$ is $2 \times 3$ and $B$ is $3 \times 2$. Entry $(1,1)$ of $A B$ is computed as $1 \cdot 7 + 2 \cdot 9 + 3 \cdot 11$. Which two things does this sum use?
Check your answer
- The worked example finds $A B = \begin{pmatrix} 58 & 64 \\ 139 & 154 \end{pmatrix}$. What order does $B A$ have, if it were formed?
Check your answer
- The sums in a product are short. What skill does the worked example’s working practise?
Check your answer
What survives, what doesn’t
Go back to your bill. Your row of quantities times the column of prices gave one number, 140 rupees. Now multiply the other way round, with the prices first. The column 10, 40 times the row 2, 3 pairs every price with every quantity. You get a table of four numbers, and it is not your bill. Nobody pays it. So for matrices the order of a product is not a choice.
The product in both orders
Here is that product:
$\begin{pmatrix} 10 \\ 40 \end{pmatrix} \begin{pmatrix} 2 & 3 \end{pmatrix} = \begin{pmatrix} 20 & 30 \\ 80 & 120 \end{pmatrix}$.
Your bill was the other order:
$\begin{pmatrix} 2 & 3 \end{pmatrix} \begin{pmatrix} 10 \\ 40 \end{pmatrix} = \begin{pmatrix} 140 \end{pmatrix}$.
The same two matrices give a $1 \times 1$ matrix one way and a $2 \times 2$ matrix the other way.
*So $A B$ and $B A$* can differ. Sometimes only one of them is defined. Even when both are defined and the same size, they can still differ, as the next section, “A B is not B A”, shows.
Two other habits from numbers do survive. Each one needs the sizes to fit.
- Grouping (the ASSOCIATIVE law): $(A B) C = A (B C)$. You can work out a chain of products from either end.
- Spreading (the DISTRIBUTIVE law): $A (B + C) = A B + A C$, and $(A + B) C = A C + B C$. Each factor stays on the side it started.
- The identity: for a square matrix $A$, $A I = I A = A$, with $I$ of the same order. Multiplying by $I$ is like multiplying by 1.
Using the surviving habits
Let us put the two together. Grouping lets you work out a long product from either end. Spreading lets you open brackets. Neither one lets you swap two factors. So hold the order of every product fixed, through every step.
- Which pair of rules survives matrix multiplication intact?
Check your answer
- $A(B+C)$ and $(A+B)C$ are both distributive rules, but they are treated as two separate facts rather than one. Why?
Check your answer
- A student regroups a product mid-calculation, swapping $A B$ to $B A$ to make the algebra tidier. Is this ever safe?
Check your answer
A B is not B A
For $A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}$, I worked out $A B = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}$, then wrote $B A$ as the same matrix without multiplying the other way round.
$B A$ actually comes out $\begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}$, a different matrix, because row-times-column multiplication reads each product in the order the rows and columns are written.
$A B = B A$ only sometimes, never by default. Compute each product on its own before claiming the two are equal.
With numbers, the order of the factors in a product never matters. Three fives and five threes are both fifteen. You have used this since primary school, often without noticing. The habit comes with you to matrices, and there it fails.
The photo editor on your phone shows it. Rotate a photo a quarter turn, then flip it left to right. Now start again with the same photo. Flip it first, then rotate it. The two pictures come out different. Each edit can be written as a matrix, and doing one edit after another is a product. So the order of the edits changes the answer.
How does a matrix move a picture? Write a point as a column, and multiply. A $2 \times 2$ matrix times the column $\begin{pmatrix} x \\ y \end{pmatrix}$ is a new column, a new point. The figures that follow show what a matrix does to the UNIT SQUARE, the square with corners $(0, 0)$, $(1, 0)$, $(0, 1)$ and $(1, 1)$. Its corner $(1, 0)$ lands on the matrix’s first column, and its corner $(0, 1)$ lands on the second column.
You call both of these multiplication. Are they the same kind of thing? With numbers, swapping the two factors changes nothing. With matrices, $A B$ pairs the rows of $A$ with the columns of $B$. In $B A$, the rows of $B$ meet the columns of $A$. Different rows meet different columns, so different entries come out. So $A B$ and $B A$ are two products. Work out both before you say they agree.
Here is a pair of matrices whose two products differ:
$A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}$.
A working to check
FIRST TRY: writing $(A + B)^2$ as $(A + B)(A + B)$ spreads out to $A^2 + A B + B A + B^2$, and the middle terms combine to $A^2 + 2 A B + B^2$.
SECOND LOOK: $A B + B A$ is $2 A B$ only when $A B = B A$. The worked example below works out $A B$ and $B A$ for the pair above, entry by entry, and the two differ, so the middle terms do not combine that way. Work out both products before combining them; never assume $A B = B A$.
Some pairs do give the same product both ways, such as $A$ and $I$.
Your turn: take $A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$ and $B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$. Find $A B$ and $B A$. Do they match?
- TRAP: ‘matrix multiplication should commute like ordinary numbers, so $A B$ and $B A$ must be the same matrix.’ Is the trap correct?
Check your answer
- For $A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}$, it is given that $A B = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}$ and $B A = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}$. What does this pair confirm?
Check your answer
- Take $A = \begin{pmatrix} 2 & 0 \\ 0 & 1 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$. Before claiming $A B = B A$, what should you do?
Check your answer
- A classmate claims: ‘$A B = B A$ whenever $A$ and $B$ are both square and the same size.’ Using $A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}$ from the counterexample above, is the claim defensible?
Check your answer
Verify $A B \neq B A$ for $A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}$
- $A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}$
This is the pair from the section above. Both products are defined, so work out both. - $A B$ entry $(1,1) = 1 \cdot 1 + 1 \cdot 1 = 2$, entry $(1,2) = 1 \cdot 0 + 1 \cdot 1 = 1$
Row 1 of $A$ times each column of $B$. - $A B$ entry $(2,1) = 0 \cdot 1 + 1 \cdot 1 = 1$, entry $(2,2) = 0 \cdot 0 + 1 \cdot 1 = 1$
Row 2 of $A$ times each column of $B$. So $A B = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}$. - $B A$ entry $(1,1) = 1 \cdot 1 + 0 \cdot 0 = 1$, entry $(1,2) = 1 \cdot 1 + 0 \cdot 1 = 1$
Now the other order. Row 1 of $B$ times each column of $A$. - $B A$ entry $(2,1) = 1 \cdot 1 + 1 \cdot 0 = 1$, entry $(2,2) = 1 \cdot 1 + 1 \cdot 1 = 2$
Row 2 of $B$ times each column of $A$. So $B A = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}$. - *$A B = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix} \neq \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix} = B A$*
Both products are $2 \times 2$, and still they differ. - $(A B)_{1 1} = 2$, but $(B A)_{1 1} = 1$
Check one entry. A single entry that differs is enough to show $A B \neq B A$.
- The worked example computes $A B = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}$ for $A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}$. What is entry $(1,1)$ of $A B$ built from?
Check your answer
- The worked example finds $B A = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}$. Entry $(2,2)$ of $B A$ equals $1 \cdot 1 + 1 \cdot 1 = 2$. Which row and column produced it?
Check your answer
- The worked example confirms $A B \neq B A$ ‘even though both products are defined and both come out $2 \times 2$.’ Which earlier chapter fact does this directly demonstrate?
Check your answer
Transpose, symmetric, and skew-symmetric matrices
Suppose the office wants the mark-sheet the other way round. Now the subjects run down the side and the students run across the top. Every mark is still there. The second student’s mark in the third subject now sits in row 3, column 2. The rows have become columns, and the columns have become rows.
Doing this to a matrix is called taking its TRANSPOSE. The transpose of $A$ is written $A^T$. NCERT and board papers also write it as A′, and both marks mean the same thing. Row 1 of $A$ becomes column 1 of $A^T$, row 2 becomes column 2, and so on. So the entry $a_{i j}$ moves to row $j$, column $i$. If $A$ is $m \times n$, then $A^T$ is $n \times m$.
Let us check one. Take
$A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}$, which is $2 \times 3$.
Its first row holds 1, 2 and 3. That row becomes the first column of $A^T$, and row 2 becomes column 2:
$A^T = \begin{pmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{pmatrix}$, which is $3 \times 2$.
Now think of the table of road distances printed in an atlas. Each city has a row and a column. The distance from Delhi to Jaipur is the same as the distance from Jaipur to Delhi. So the table reads the same across as down. Transpose it and nothing changes.
Symmetric and skew-symmetric matrices
A matrix like that is SYMMETRIC, which means $A^T = A$. It has to be square, because $A$ and $A^T$ must have the same order. Entry by entry, $a_{i j} = a_{j i}$. Each entry matches its mirror image across the main diagonal. For example, $\begin{pmatrix} 1 & 7 \\ 7 & 4 \end{pmatrix}$ is symmetric.
A SKEW-SYMMETRIC matrix is a square matrix with $A^T = -A$. Entry by entry, that says
$a_{i j} = -a_{j i}$ for every $i$ and $j$.
*Put $i = j$* to look at a diagonal entry:
$a_{i i} = -a_{i i}$.
*Add $a_{i i}$ to both sides,* then halve:
$2 a_{i i} = 0$, so $a_{i i} = 0$.
So every diagonal entry is $0$. For example, $\begin{pmatrix} 0 & 3 \\ -3 & 0 \end{pmatrix}$ is skew-symmetric.
| Kind | Rule | Entry by entry |
|---|---|---|
| Symmetric | $A^T = A$ | $a_{i j} = a_{j i}$ |
| Skew-symmetric | $A^T = -A$ | $a_{i j} = -a_{j i}$, so the diagonal is $0$ |
Properties of the transpose
Four rules hold for every transpose. Board papers ask for them, the last one most of all.
- $(A^T)^T = A$. Transpose it twice and it is as it was.
- $(k A)^T = k A^T$ for any number $k$. Doubling every mark and then transposing gives the same as transposing first. Check it: with $A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$ and $k = 2$, $(k A)^T = \begin{pmatrix} 2 & 6 \\ 4 & 8 \end{pmatrix}$ and $k A^T = \begin{pmatrix} 2 & 6 \\ 4 & 8 \end{pmatrix}$: they agree.
- $(A + B)^T = A^T + B^T$, when $A$ and $B$ have the same order. Adding and then transposing gives the same as transposing each one and adding.
- $(A B)^T = B^T A^T$, when the product $A B$ is defined. The order of the two factors flips.
Why does the order flip? Say $A$ is $2 \times 3$ and $B$ is $3 \times 4$. Then $A B$ is $2 \times 4$, so $(A B)^T$ is $4 \times 2$. Now $B^T A^T$ is a $4 \times 3$ times a $3 \times 2$, which is $4 \times 2$ and fits. *But $A^T B^T$* is a $3 \times 2$ times a $4 \times 3$, which is not even defined.
Testing the flip
Check it with numbers. Take two small matrices and work out both sides, one line at a time.
Check $(A B)^T = B^T A^T$ on two matrices
- $A = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix}$
Take two $2 \times 2$ matrices, so every product below is defined. - $A B = \begin{pmatrix} 7 & 2 \\ 3 & 1 \end{pmatrix}$
Row times column: row 1 of $A$ with each column of $B$, then row 2. - $(A B)^T = \begin{pmatrix} 7 & 3 \\ 2 & 1 \end{pmatrix}$
Transpose $A B$: its rows become columns. - $B^T = \begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix}$, $A^T = \begin{pmatrix} 1 & 0 \\ 2 & 1 \end{pmatrix}$
Transpose $B$ and $A$, each on its own. - *$B^T A^T = \begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 2 & 1 \end{pmatrix} = \begin{pmatrix} 7 & 3 \\ 2 & 1 \end{pmatrix}$*
Multiply in the flipped order: the answer matches $(A B)^T$. - Check: $A^T B^T = \begin{pmatrix} 1 & 0 \\ 2 & 1 \end{pmatrix} \begin{pmatrix} 1 & 3 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 1 & 3 \\ 2 & 7 \end{pmatrix}$
Keep the order instead, and the answer is a different matrix.
Your turn: write down $A^T$ for $A = \begin{pmatrix} 2 & -1 \\ 5 & 0 \end{pmatrix}$. Is $A$ symmetric, skew-symmetric, or neither?
- If $A$ has order $m \times n$, what is the order of its transpose $A^T$?
Check your answer
- Exactly when is a square matrix $A$ SKEW-SYMMETRIC?
Check your answer
- Why must every diagonal entry of a skew-symmetric matrix equal $0$?
Check your answer
- One glance at a matrix’s diagonal can rule out skew-symmetry entirely. Why?
Check your answer
Symmetric plus skew-symmetric
Every square matrix is the sum of a symmetric matrix and a skew-symmetric matrix, in exactly one way. For a square matrix $A$, the two parts are these.
- $P = (1/2)(A + A^T)$, the symmetric part.
- $Q = (1/2)(A - A^T)$, the skew-symmetric part.
*$A$ must be square.* Otherwise $A$ and $A^T$ have different orders and cannot be added.
The two parts add back to $A$. First put both halves under one $(1/2)$:
$P + Q = (1/2)(A + A^T + A - A^T)$.
*The $A^T$ terms cancel,* and $A + A = 2 A$:
$P + Q = (1/2)(2 A) = A$.
The shape of each part
*Why is $P$ symmetric?* Take the transpose of $P$ and use the transpose rules, one line at a time.
$P$ is symmetric and $Q$ is skew-symmetric
- $P^T = ((1/2)(A + A^T))^T$
Take the transpose of both sides of $P = (1/2)(A + A^T)$. - $P^T = (1/2)(A + A^T)^T$
A number comes out of a transpose: $(k A)^T = k A^T$. - $P^T = (1/2)(A^T + (A^T)^T)$
The transpose of a sum is the sum of the transposes: $(A + B)^T = A^T + B^T$. - *$P^T = (1/2)(A^T + A) = P$*
Transposing twice gives back $A$, and the order of a sum does not matter. - $Q^T = (1/2)(A^T - (A^T)^T) = (1/2)(A^T - A)$
Do the same three steps to $Q = (1/2)(A - A^T)$. - *$Q^T = -(1/2)(A - A^T) = -Q$*
Take out a minus sign, so $Q$ is skew-symmetric.
How can you write a square matrix as a sum of two matrices? Write it as $P$ plus $Q$: $P$ mirrors itself across the diagonal, and $Q$ mirrors itself with every sign changed, so its diagonal is all $0$. Is there another way to write it like that? No. The proof below shows that any such pair must be $P$ and $Q$. So the sum is fixed by $A$ itself, not by the person splitting it.
Uniqueness of the split
Why only one way? Suppose $A = R + S$, with $R$ symmetric and $S$ skew-symmetric. Here is why $R$ must be $P$ and $S$ must be $Q$:
Any such split is $P$ plus $Q$
- $A = R + S$
Start from the split, with $R^T = R$ and $S^T = -S$. - $A^T = R^T + S^T = R - S$
Transpose both sides, then use $R^T = R$ and $S^T = -S$. - $A + A^T = 2 R$
Add the two equations: the $S$ terms cancel. - $R = (1/2)(A + A^T) = P$
Halve both sides: $R$ is the symmetric part. - $A - A^T = 2 S$, so $S = (1/2)(A - A^T) = Q$
Subtract the two equations instead, then halve. - *$R = P$ and $S = Q$*
So the split can only be $P$ plus $Q$, and no other split exists.
The split lets you study any square matrix as two simpler pieces. One piece mirrors itself across the diagonal. The other mirrors itself with every sign changed. The worked example below splits a $2 \times 2$ matrix with numbers.
- For a square matrix $A$, define $P = (1/2)(A + A^T)$. What property does $P$ have?
Check your answer
- Why does $Q = (1/2)(A - A^T)$ come out skew-symmetric?
Check your answer
- Every square matrix decomposes into a symmetric part and a skew-symmetric part ‘in exactly one way.’ What does this rule out?
Check your answer
- If a square matrix $A$ is already symmetric, what happens to its decomposition $A = P + Q$?
Check your answer
Split $A = \begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix}$ into its symmetric and skew-symmetric parts
- $A = \begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix}$, so $A^T = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix}$
Write down $A^T$ first. Its rows are the columns of $A$. - $P = (1/2)(A + A^T) = (1/2)\begin{pmatrix} 4 & 4 \\ 4 & 8 \end{pmatrix} = \begin{pmatrix} 2 & 2 \\ 2 & 4 \end{pmatrix}$
Add $A$ and $A^T$ entry by entry, then halve. - Check $P^T = \begin{pmatrix} 2 & 2 \\ 2 & 4 \end{pmatrix} = P$
$P$ reads the same across as down, so it is symmetric. - $Q = (1/2)(A - A^T) = (1/2)\begin{pmatrix} 0 & 2 \\ -2 & 0 \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}$
Subtract $A^T$ from $A$ entry by entry, then halve. - Check $Q^T = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = -Q$, and both diagonal entries of $Q$ are $0$
$Q$ is skew-symmetric, and its diagonal is all zeros, as it must be. - $P + Q = \begin{pmatrix} 2 & 2 \\ 2 & 4 \end{pmatrix} + \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} = \begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix} = A$
Check that the two parts add back to $A$. They do, so the split is right.
- For $A = \begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix}$, the worked example finds $P = \begin{pmatrix} 2 & 2 \\ 2 & 4 \end{pmatrix}$. What check confirms $P$ is symmetric?
Check your answer
- The worked example computes $Q = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}$ for $A = \begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix}$. Both diagonal entries of $Q$ are $0$. Why is this expected?
Check your answer
- The worked example confirms $P + Q = \begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix} = A$ at the end. What does this final check verify?
Check your answer
Invertible matrices
*The identity matrix $I$* is the matrix that changes nothing. Multiplying by $I$ is like multiplying by 1, so $A I = I A = A$. A square matrix $A$ is INVERTIBLE when some matrix $B$ of the same order undoes it, so that $A B = B A = I$. That $B$ is the INVERSE of $A$, and it is written $A^{-1}$. It is the same undo as the inverse of a function in Chapter 1.
A matrix moves a point: write the point as a column and multiply, the way the photo-editing matrices later in this chapter move a picture. Read the figure with the columns. $A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$ sends $(1, 0)$ to its first column, $(1, 0)$, so that corner stays. It sends $(0, 1)$ to its second column, $(1, 1)$, so the square leans right. $B = \begin{pmatrix} 1 & -1 \\ 0 & 1 \end{pmatrix}$ sends $(1, 1)$ back to $(0, 1)$. Chapter 4 uses this picture again.
The definition asks for both products, $A B$ and $B A$, not just one. And only a square matrix can be invertible. If $A$ is $m \times n$ and $B$ is $n \times m$, then $A B$ is $m \times m$ and $B A$ is $n \times n$. Both can equal the same $I$ only when $m = n$.
Checking an inverse
Check with numbers. Take
$A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & -1 \\ 0 & 1 \end{pmatrix}$.
Multiply them, row times column:
$A B = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = I$.
Now the other order:
$B A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = I$.
*Both products are $I$,* so $B$ undoes $A$, and $A^{-1} = B$.
Not every square matrix has an inverse. The zero matrix $O$ has none, because $O B = O$ for every $B$, never $I$. Chapter 4 calls a matrix like that SINGULAR. It also gives a number, the determinant, that tells you which matrices have an inverse.
An invertible matrix has only one inverse. Let us see why. Suppose $B$ and $C$ are both inverses of $A$, so $A C = I$ and $B A = I$. Start from $B$ and change it one step at a time:
Two inverses of $A$ are one matrix
- $B = B I$
Multiplying by $I$ changes nothing. - $B I = B (A C)$
Write $I$ as $A C$, because $C$ is the inverse of $A$. - $B (A C) = (B A) C$
Regroup the product: grouping holds for matrices. - $(B A) C = I C$
Write $B A$ as $I$, because $B$ is the inverse of $A$. - *$I C = C$, so $B = C$*
Multiplying by $I$ changes nothing, so the chain that began at $B$ ends at $C$.
When one inverse is found
That helps in practice. If you find a $B$ with $A B = B A = I$, you have the inverse, and there is no other one to look for. Working out $A^{-1}$ for a given matrix is the next chapter’s job.
Your turn: is $B = \begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix}$ the inverse of $A = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}$? Check both products.
The inverse of a product
A product has an inverse too. Take invertible matrices $A$ and $B$ of the same order. Then $A B$ is invertible, and its inverse takes the two inverses in the opposite order: $(A B)^{-1} = B^{-1} A^{-1}$. To see why, multiply $A B$ by $B^{-1} A^{-1}$, once from each side.
Why $(A B)^{-1} = B^{-1} A^{-1}$
- $(A B)(B^{-1} A^{-1}) = A (B B^{-1}) A^{-1} = A I A^{-1} = I$
Regroup the brackets; the middle $B B^{-1}$ is $I$, and $I$ changes nothing. - *$(B^{-1} A^{-1})(A B) = B^{-1} (A^{-1} A) B = B^{-1} I B = I$*
The other order gives $I$ in the same way. Both products are $I$, so $B^{-1} A^{-1}$ is the inverse of $A B$.
- When is a square matrix $A$ called INVERTIBLE?
Check your answer
- If $B$ and $C$ both satisfy $A B = B A = I$ and $A C = C A = I$, it follows that $B = B(A C) = (B A)C = C$. What does this show?
Check your answer
- A matrix that is not invertible is called SINGULAR. What is true of a singular matrix’s inverse?
Check your answer
- This chapter states only the definition of invertibility and the uniqueness fact. What is explicitly left for Chapter 4?
Check your answer
A B = O does not force A = O or B = O
In Class 10 you solved quadratic equations by factorising. When a product of two brackets was zero, you said one of the brackets must be zero. That step works because two numbers that are not zero never multiply to zero. You have used it so often that it feels like a law of arithmetic. For matrices it is false.
The step went like this. A product of two brackets was zero:
$(x - 2)(x - 3) = 0$.
So one bracket is zero:
$x - 2 = 0$ or $x - 3 = 0$.
Solve each equation:
$x = 2$ or $x = 3$.
Now take these two matrices:
$A = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}$.
Neither one is the zero matrix. Every entry of each is $1$ or $-1$. Yet row times column gives
$A B = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix} = O$.
Each entry is $1 - 1$. Two matrices that are not zero can multiply to the zero matrix.
*So from $A B = O$* you cannot say that $A = O$ or $B = O$.
A second habit fails with it. From $A B = A C$ you cannot cancel $A$ to get $B = C$. Here is a case:
$A B = O$ and $A O = O$.
*Both products are $O$,* so
$A B = A O$, and still $B \neq O$.
*For a square $A$,* you may cancel $A$ only when $A$ has an inverse. Here is the cancelling, one line at a time:
Cancel $A$ when $A^{-1}$ exists
- $A B = A C$
Start from two products with the same left factor $A$. - $A^{-1} (A B) = A^{-1} (A C)$
Multiply both sides on the left by $A^{-1}$, the same side on both. - $(A^{-1} A) B = (A^{-1} A) C$
Regroup: grouping holds for matrices. - $I B = I C$
Replace $A^{-1} A$ by $I$, because $A^{-1}$ is the inverse of $A$. - *$B = C$*
Multiplying by $I$ changes nothing.
Reading a zero product
When a product of matrices is zero, look at the factors themselves. The product alone does not tell you that either factor is zero.
Your turn: with the same $A = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$, work out $A C$ for $C = \begin{pmatrix} 2 & -3 \\ -2 & 3 \end{pmatrix}$. What does your answer say about cancelling $A$?
- TRAP: ‘numbers that multiply to zero force one factor to be zero, so $A B = O$ should force $A = O$ or $B = O$ too.’ Is this trap correct for matrices?
Check your answer
- For $A = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}$, both nonzero, it is given that $A B = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}$. What does this pair confirm?
Check your answer
- Given $A B = O$, which statement is SAFE?
Check your answer
- A student sees $A B = O$ and concludes $A$ must be singular. Using the zero-divisor fact above, is this reasoning safe in general?
Check your answer
Compute $A B$ for $A = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}$
- $A = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}$: neither one the zero matrix
Neither matrix is $O$. Work out $A B$ entry by entry. - Entry $(1,1) = 1 \cdot 1 + 1 \cdot (-1) = 1 - 1 = 0$
Row 1 of $A$ times column 1 of $B$. - Entry $(1,2) = 1 \cdot 1 + 1 \cdot (-1) = 0$
Row 1 of $A$ times column 2 of $B$. - Entry $(2,1) = 1 \cdot 1 + 1 \cdot (-1) = 0$
Row 2 of $A$ times column 1 of $B$. - Entry $(2,2) = 1 \cdot 1 + 1 \cdot (-1) = 0$
Row 2 of $A$ times column 2 of $B$. - *$A B = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}$*
Every entry is $0$, so $A B = O$. Yet no entry of $A$ or $B$ is $0$. - $\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix} \begin{pmatrix} 1 \\ -1 \end{pmatrix} = \begin{pmatrix} 1 - 1 \\ 1 - 1 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}$
Check with one column. Both columns of $B$ are $\begin{pmatrix} 1 \\ -1 \end{pmatrix}$, so this one product checks all four entries.
- The worked example computes entry $(1,1)$ of $A B$, for $A = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}$, as $1 \cdot 1 + 1 \cdot (-1) = 0$. Which row and column produced it?
Check your answer
- The worked example finds every entry of $A B$ equal to $0$, for $A = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}$. What does this confirm about $A$ and $B$ themselves?
Check your answer
- Take $A = \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$, $B = \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix}$ as before, but now consider $B A$ instead of $A B$. Without computing it fully, what can you say?
Check your answer
One object, its own arithmetic
The question at the start was this. A mark-sheet, a price list and a bill are grids of numbers. If you treat a whole grid as one thing, which of your arithmetic still works? And what changes?
- ADDING AND SCALING: entry by entry, and adding needs the same order. So $\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} + \begin{pmatrix} 5 & 0 \\ 1 & 2 \end{pmatrix} = \begin{pmatrix} 6 & 2 \\ 4 & 6 \end{pmatrix}$, and $3 \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} = \begin{pmatrix} 3 & 6 \\ 9 & 12 \end{pmatrix}$.
- MULTIPLYING: row times column, when the inner numbers match. A $2 \times 3$ matrix times a $3 \times 2$ matrix is $2 \times 2$.
- ORDER MATTERS: for $A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}$, $A B$ has top-left entry 2 and $B A$ has 1.
- TRANSPOSE: rows become columns, and $(A B)^T = B^T A^T$. A $2 \times 3$ matrix has a $3 \times 2$ transpose.
- INVERSE: $A B = B A = I$, and there is only one. For $A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$, $A^{-1} = \begin{pmatrix} 1 & -1 \\ 0 & 1 \end{pmatrix}$.
- ZERO PRODUCT: $\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix} \begin{pmatrix} 1 & 1 \\ -1 & -1 \end{pmatrix} = O$, though neither factor is $O$.
Here is the answer. Adding and scaling work box by box, as with numbers, and every habit survives. Multiplying is row times column, and grouping and spreading still hold. Two habits from numbers break. The order of the factors in a product matters. And a zero product does not need a zero factor. Keep those two in mind, and the rest is the arithmetic you already know.
- This recap line says multiplying is ‘row times column, when the inner numbers match.’ Which earlier fact does this restate?
Check your answer
- This recap line says ‘a zero product does not need a zero factor.’ Which worked example backs this up with a concrete pair?
Check your answer
- Identity, zero, symmetric and skew-symmetric matrices each have a shape you can see. Which fact uses a shape to save a check?
Check your answer
- A matrix packages many numbers into one object. That object gets its own arithmetic. Which statement about it is true?
Check your answer
- Matrix $A$ and matrix $B$ both have order $2 \times 2$. Every number in $A$ also appears in $B$, and vice versa, but arranged in different positions. Are $A$ and $B$ equal?
Check your answer
- A $3 \times 3$ matrix has every off-diagonal entry $0$, and its diagonal entries are $5, 5, 5$. Which named types does it belong to?
Check your answer
- A skew-symmetric matrix $A$ has order $3 \times 3$. What must its diagonal entries be?
Check your answer
- Matrix $A$ has order $2 \times 3$ and matrix $B$ has order $3 \times 2$. Can $A + B$ be computed?
Check your answer
Where you will meet this
You have already read a grid of numbers like this, long before you met the word matrix.
- A report card’s marks tables. A report card gives one marks table for each term, with one row per subject and one column per paper.
The maths: matrix addition combines the two terms’ tables entry by entry, giving each subject’s combined score on each paper directly.
A subject scoring $72$ on a paper in term one and $68$ on it in term two adds to $72 + 68 = 140$.
- A shop’s price list, discounted. A shop’s price list is one column of prices, and a sale discounts every listed price by the same percentage.
The maths: scalar multiplication scales every entry in that price column by the same number at once.
An item at $200$ rupees at a $10$ percent discount becomes $200 \times 0.9 = 180$ rupees.
- A shopkeeper’s order, quantity times price. A shopkeeper’s order lists how many of each item was bought, and a separate list gives each item’s price.
The maths: matrix multiplication turns a quantities row and a prices column into one total bill, by the same row-times-column rule.
$2$ pens at $10$ rupees and $3$ notebooks at $40$ rupees give a bill of $2 \times 10 + 3 \times 40 = 140$ rupees.
- A road map’s distance table between towns. A road map often prints a table of the distances between every pair of towns on it.
The maths: that table equals its own transpose, since the distance from one town to another reads the same both ways.
The entry for town $A$ to town $B$ and the entry for town $B$ to town $A$ are the same number.
- A classroom seating chart. A classroom’s desks are arranged in rows, with the same number of desks in every row.
The maths: that arrangement’s own rows and columns are exactly a matrix’s order, read rows first.
A chart with $6$ rows of $5$ desks each has order $6 \times 5$, seating $30$ students.
- A recipe card, scaled for a bigger batch. A recipe card lists a fixed amount of every ingredient, and doubling the batch means doubling the whole list.
The maths: scaling every ingredient by the same number is scalar multiplication on the recipe’s own list.
A recipe needing $250$ grams of flour doubles to $250 \times 2 = 500$ grams for twice the batch.
Your turn: A tuck shop sells samosas at $8$ rupees and tea at $6$ rupees. On one day it sells $15$ samosas and $20$ teas. Write this as a quantities row times a prices column, and find the day’s total sales. Answer: $15 \times 8 + 20 \times 6 = 120 + 120 = 240$ rupees.
Where the grid goes next
First-year university and engineering linear algebra generalises a matrix into a LINEAR TRANSFORMATION, a rule that moves points the way a matrix moves the unit square. It is the basis of computer graphics (moving pixels), MARKOV CHAINS (how a population shifts between states over time) and INPUT-OUTPUT ECONOMIC MODELS (how one industry’s output feeds another’s), not just the single production table evaluated earlier in this chapter, “The same idea, on a firm’s production table.”
Practice set: Exercise 3.1
Exercise 3.1 is about reading a matrix. You find its order and its entries, and you build a matrix from a rule for $a_{i j}$. You also name the types, and you use equality to find unknown entries.
- practice For the matrix $A = \begin{pmatrix} 2 & -5 & 7 & 0 \\ -1 & 3 & 4 & 6 \\ 8 & 2 & -3 & 9 \end{pmatrix}$, state its order and the total number of elements it has.
- practice For the matrix $A = \begin{pmatrix} 4 & -2 & 7 \\ 0 & 5 & -3 \\ 9 & 1 & 6 \end{pmatrix}$, write the entries $a_{1 2}$, $a_{3 1}$ and $a_{2 3}$.
- practice If a matrix has $20$ elements, what are the possible orders it can have? What if it has $7$ elements instead?
- practice Construct the $2 \times 2$ matrix $A = [a_{i j}]$ whose entries are given by the rule $a_{i j} = 2 i - j$.
- practice Construct the $3 \times 2$ matrix $A = [a_{i j}]$ whose entries are given by the rule $a_{i j} = i^2 - j$.
- practice Name the type of each matrix: (i) $\begin{pmatrix} 3 & -1 & 2 \end{pmatrix}$, (ii) $\begin{pmatrix} 4 \\ 0 \\ -2 \end{pmatrix}$, (iii) $\begin{pmatrix} 5 & 0 \\ 0 & 5 \end{pmatrix}$, (iv) $\begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}$.
- practice Find $x$ and $y$ if $\begin{pmatrix} x+2 & 3 \\ 1 & y-1 \end{pmatrix} = \begin{pmatrix} 5 & 3 \\ 1 & 4 \end{pmatrix}$.
- practice Find $x$, $y$ and $z$ if $\begin{pmatrix} x+y & x-y \\ 2 & z \end{pmatrix} = \begin{pmatrix} 8 & 2 \\ 2 & 5 \end{pmatrix}$.
- practice A matrix $A = [a_{i j}]_{m \times n}$ is a square matrix precisely when
- practice Which values of $x$ and $y$ make $\begin{pmatrix} 2x+1 & 4 \\ 0 & y-3 \end{pmatrix} = \begin{pmatrix} 7 & 4 \\ 0 & 2 \end{pmatrix}$ true?
- practice How many $2 \times 2$ matrices are possible if every entry must come from $\{1, 2, 3\}$?
- practice Table 3.1 (NCERT Introductory Microeconomics, Class 12) gives a firm’s output for each labour-capital pair. Its four entries for labour $L=3,4$ and capital $K=3,4$ are these. $L=3,K=3$ gives $30$; $L=3,K=4$ gives $40$; $L=4,K=3$ gives $40$; $L=4,K=4$ gives $50$. Write the $2 \times 2$ matrix of outputs, with labour down the rows and capital across, and state its order.
- practice Build the $2 \times 2$ output matrix $N = [n_{i j}]$ where $n_{i j}$ is Table 3.1’s output for labour $L=i+4$ and capital $K=j$, for $i, j \in \{1, 2\}$. The entries you need are these. $L=5,K=1$ gives $12$; $L=5,K=2$ gives $29$; $L=6,K=1$ gives $13$; $L=6,K=2$ gives $33$. Write $n_{1 2}$ and $n_{2 1}$.
Answers
- $12$ elements: order $3 \times 4$.
- $a_{1 2} = -2$, $a_{3 1} = 9$, $a_{2 3} = -3$.
- $20$ elements: $1 \times 20$, $2 \times 10$, $4 \times 5$, $5 \times 4$, $10 \times 2$, $20 \times 1$. $7$ elements: only $1 \times 7$ and $7 \times 1$, since $7$ is prime.
- $A = \begin{pmatrix} 1 & 0 \\ 3 & 2 \end{pmatrix}$
- $A = \begin{pmatrix} 0 & -1 \\ 3 & 2 \\ 8 & 7 \end{pmatrix}$
- (i) a row matrix, order $1 \times 3$. (ii) a column matrix, order $3 \times 1$. (iii) a scalar matrix (every diagonal entry $5$, off-diagonal $0$). (iv) the identity matrix $I$ of order $3 \times 3$.
- $x = 3$, $y = 5$
- $x = 5$, $y = 3$, $z = 5$
- (C) $m = n$.
- (A) $x = 3$, $y = 5$.
- (D) $81$.
- $\begin{pmatrix} 30 & 40 \\ 40 & 50 \end{pmatrix}$, order $2 \times 2$.
- $n_{1 2} = 29$, $n_{2 1} = 13$, and $N = \begin{pmatrix} 12 & 29 \\ 13 & 33 \end{pmatrix}$.
Practice set: Exercise 3.2
Exercise 3.2 practises the three operations. You add, scale and multiply, and you check the orders before each product. Some questions ask for both $A B$ and $B A$, so work out both.
- practice Let $A = \begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}$, $B = \begin{pmatrix} 1 & -2 \\ 3 & 5 \end{pmatrix}$, $C = \begin{pmatrix} -1 & 0 \\ 2 & 3 \end{pmatrix}$. Find (i) $A + B$, (ii) $3A - C$, (iii) $A B$, (iv) $B A$.
- practice Simplify $\begin{pmatrix} \cos^2 \theta & \sin^2 \theta \\ \sin^2 \theta & \cos^2 \theta \end{pmatrix} + \begin{pmatrix} \sin^2 \theta & \cos^2 \theta \\ \cos^2 \theta & \sin^2 \theta \end{pmatrix}$.
- practice Compute $\begin{pmatrix} 2 & -1 & 3 \end{pmatrix} \begin{pmatrix} 4 \\ 1 \\ -2 \end{pmatrix}$.
- practice Let $P = \begin{pmatrix} 1 & 0 & -2 \\ 3 & 1 & 4 \end{pmatrix}$ (order $2 \times 3$) and $Q = \begin{pmatrix} 2 & 1 \\ -1 & 3 \\ 0 & 2 \end{pmatrix}$ (order $3 \times 2$). Find $P Q$.
- practice For $A = \begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}$, $B = \begin{pmatrix} 1 & -2 \\ 3 & 5 \end{pmatrix}$ and $D = \begin{pmatrix} 2 & 1 \\ 0 & 3 \end{pmatrix}$, verify that $(A B) D = A (B D)$.
- practice For $A = \begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}$, $B = \begin{pmatrix} 1 & -2 \\ 3 & 5 \end{pmatrix}$ and $C = \begin{pmatrix} -1 & 0 \\ 2 & 3 \end{pmatrix}$, verify that $A (B + C) = A B + A C$.
- practice For $A = \begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & -2 \\ 3 & 5 \end{pmatrix}$, find $4A - 2B$.
- practice Find $X$ and $Y$ if $X + Y = \begin{pmatrix} 9 & -1 \\ 3 & 7 \end{pmatrix}$ and $X - Y = \begin{pmatrix} 5 & 3 \\ 1 & 1 \end{pmatrix}$.
- practice Find $X$ and $Y$ if $2X + 3Y = \begin{pmatrix} 7 & 4 \\ 2 & 10 \end{pmatrix}$ and $3X + 2Y = \begin{pmatrix} 8 & 1 \\ 3 & 5 \end{pmatrix}$.
- practice Find $X$ if $Y = \begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}$ and $2X + Y = \begin{pmatrix} -1 & 4 \\ -3 & 0 \end{pmatrix}$.
- practice Find $x$ and $y$ if $\begin{pmatrix} 2 & 1 \\ 0 & x \end{pmatrix} + \begin{pmatrix} y & 3 \\ 1 & -2 \end{pmatrix} = \begin{pmatrix} 6 & 4 \\ 1 & 5 \end{pmatrix}$.
- practice Solve for $x$, $y$, $z$ and $t$ if $2 \begin{pmatrix} x & z \\ y & t \end{pmatrix} + \begin{pmatrix} 3 & 1 \\ 0 & 2 \end{pmatrix} = \begin{pmatrix} 7 & 7 \\ 6 & 10 \end{pmatrix}$.
- practice Find $x$ and $y$ if $x \begin{pmatrix} 2 \\ 1 \end{pmatrix} + y \begin{pmatrix} 1 \\ -1 \end{pmatrix} = \begin{pmatrix} 8 \\ 1 \end{pmatrix}$.
- practice If $F(x) = \begin{pmatrix} 1 & x \\ 0 & 1 \end{pmatrix}$, prove that $F(x) F(y) = F(x+y)$.
- practice For $A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$, find $A^2 - 5A + 6I$.
- practice For $A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$, show that $A^2 - 4A + 3I = O$.
- practice For $A = \begin{pmatrix} 2 & -1 \\ 2 & 0 \end{pmatrix}$, find $k$ such that $A^2 = k A - 2I$.
- practice A trust fund must invest ₹50,000 in two bonds paying $6\%$ and $9\%$ interest per year. Using matrix multiplication, find how much goes into each bond if the total annual interest must be (a) ₹3,900, (b) ₹4,200.
- practice A school shop has $8$ dozen notebooks, $6$ dozen pens and $5$ dozen erasers, selling at ₹50, ₹30 and ₹20 each respectively. Using matrix multiplication, find the total amount the shop receives from selling all of them.
- practice For $A = \begin{pmatrix} 1 & 2 \\ 3 & 1 \end{pmatrix}$ and $B = \begin{pmatrix} 2 & 0 \\ 1 & 2 \end{pmatrix}$, compute $A B$ and $B A$, and confirm they are not equal.
- practice Suppose $X$ has order $2 \times n$ and $Y$ has order $n \times 3$. For $X Y + Z$ to be defined, where $Z$ has order $2 \times 3$, what values can $n$ take?
- practice Let $X$ have order $2 \times p$ and $Y$ have order $p \times 3$. What is the order of $X Y$?
Answers
- $A+B = \begin{pmatrix} 4 & 0 \\ 4 & 9 \end{pmatrix}$; $3A-C = \begin{pmatrix} 10 & 6 \\ 1 & 9 \end{pmatrix}$; $A B = \begin{pmatrix} 9 & 4 \\ 13 & 18 \end{pmatrix}$; $B A = \begin{pmatrix} 1 & -6 \\ 14 & 26 \end{pmatrix}$, so $A B \neq B A$.
- $\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$
- $1$
- $P Q = \begin{pmatrix} 2 & -3 \\ 5 & 14 \end{pmatrix}$
- Both sides equal $\begin{pmatrix} 18 & 21 \\ 26 & 67 \end{pmatrix}$: the associative law holds for this triple, as it does for any matrix product.
- Both sides equal $\begin{pmatrix} 10 & 10 \\ 20 & 30 \end{pmatrix}$: the distributive law holds.
- $\begin{pmatrix} 10 & 12 \\ -2 & 6 \end{pmatrix}$
- $X = \begin{pmatrix} 7 & 1 \\ 2 & 4 \end{pmatrix}$, $Y = \begin{pmatrix} 2 & -2 \\ 1 & 3 \end{pmatrix}$
- $X = \begin{pmatrix} 2 & -1 \\ 1 & -1 \end{pmatrix}$, $Y = \begin{pmatrix} 1 & 2 \\ 0 & 4 \end{pmatrix}$
- $X = \begin{pmatrix} -2 & 1 \\ -2 & -2 \end{pmatrix}$
- $x = 7$, $y = 4$
- $x = 2$, $y = 3$, $z = 3$, $t = 4$
- $x = 3$, $y = 2$
- Proved: $F(x) F(y) = \begin{pmatrix} 1 & x \\ 0 & 1 \end{pmatrix} \begin{pmatrix} 1 & y \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 1 & x+y \\ 0 & 1 \end{pmatrix} = F(x+y)$.
- $\begin{pmatrix} 8 & 0 \\ 0 & 8 \end{pmatrix} = 8I$
- Shown: $A^2 = \begin{pmatrix} 5 & 4 \\ 4 & 5 \end{pmatrix}$, so $A^2 - 4A + 3I = \begin{pmatrix} 5 & 4 \\ 4 & 5 \end{pmatrix} - \begin{pmatrix} 8 & 4 \\ 4 & 8 \end{pmatrix} + \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix} = O$.
- $k = 2$
- (a) ₹20,000 at $6\%$ and ₹30,000 at $9\%$. (b) ₹10,000 at $6\%$ and ₹40,000 at $9\%$.
- ₹8,160
- $A B = \begin{pmatrix} 4 & 4 \\ 7 & 2 \end{pmatrix}$, $B A = \begin{pmatrix} 2 & 4 \\ 7 & 4 \end{pmatrix}$, so $A B \neq B A$.
- (C) any positive integer.
- (C) $2 \times 3$.
Practice set: Exercise 3.3
Exercise 3.3 is about the transpose. You find transposes, check the transpose rules on numbers and test matrices for symmetry. You also split a square matrix into its symmetric and skew-symmetric parts.
- practice Find the transpose of each matrix: (i) $\begin{pmatrix} 5 & -2 & 7 \end{pmatrix}$, (ii) $\begin{pmatrix} 1 & -1 \\ 2 & 3 \end{pmatrix}$, (iii) $\begin{pmatrix} -1 & 5 \\ 6 & 0 \\ 2 & 3 \end{pmatrix}$.
- practice For $A = \begin{pmatrix} 2 & -3 & 1 \\ 0 & 4 & -5 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 2 \end{pmatrix}$, find $A + 2B$.
- practice For $A = \begin{pmatrix} 1 & -2 \\ 0 & 3 \end{pmatrix}$ and $B = \begin{pmatrix} 4 & 1 \\ -1 & 2 \end{pmatrix}$, verify that $(A+B)^T = A^T + B^T$.
- practice For $A = \begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix}$ and $B = \begin{pmatrix} 3 & -2 & 4 \end{pmatrix}$, verify that $(A B)^T = B^T A^T$.
- practice If $A = \begin{pmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{pmatrix}$, verify that $A A^T = I$.
- practice Show that $A = \begin{pmatrix} 4 & -2 & 3 \\ -2 & 5 & 1 \\ 3 & 1 & 6 \end{pmatrix}$ is a symmetric matrix.
- practice Show that $A = \begin{pmatrix} 0 & 3 & -5 \\ -3 & 0 & 2 \\ 5 & -2 & 0 \end{pmatrix}$ is a skew-symmetric matrix.
- practice For $A = \begin{pmatrix} 4 & 7 \\ 1 & 6 \end{pmatrix}$, find $(1/2)(A + A^T)$ and $(1/2)(A - A^T)$.
- practice Express $A = \begin{pmatrix} 3 & 5 \\ -1 & 2 \end{pmatrix}$ as the sum of a symmetric matrix and a skew-symmetric matrix.
- practice Express $A = \begin{pmatrix} 2 & 6 & -4 \\ 8 & 1 & 10 \\ 0 & -2 & 3 \end{pmatrix}$ as the sum of a symmetric matrix and a skew-symmetric matrix.
- practice If $A$ and $B$ are symmetric matrices of the same order, $A B - B A$ is
- practice If $A = \begin{pmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{pmatrix}$ and $A + A^T = I$, then $\theta$ equals
- practice Find $x$ and $y$ so that $A = \begin{pmatrix} 3 & 2x-1 & 5 \\ x+4 & 7 & 3y-1 \\ 5 & y+9 & -2 \end{pmatrix}$ is symmetric.
Answers
- (i) $\begin{pmatrix} 5 \\ -2 \\ 7 \end{pmatrix}$. (ii) $\begin{pmatrix} 1 & 2 \\ -1 & 3 \end{pmatrix}$. (iii) $\begin{pmatrix} -1 & 6 & 2 \\ 5 & 0 & 3 \end{pmatrix}$.
- $\begin{pmatrix} 4 & -3 & 5 \\ -2 & 10 & -1 \end{pmatrix}$
- Both sides equal $\begin{pmatrix} 5 & -1 \\ -1 & 5 \end{pmatrix}$.
- Both sides equal $\begin{pmatrix} 6 & 3 & -3 \\ -4 & -2 & 2 \\ 8 & 4 & -4 \end{pmatrix}$.
- Verified: every entry of $A A^T$ collapses to $\cos^2 \theta + \sin^2 \theta = 1$ on the diagonal and $0$ off it, so $A A^T = I$ for every $\theta$.
- Shown: $a_{1 2} = a_{2 1} = -2$, $a_{1 3} = a_{3 1} = 3$, $a_{2 3} = a_{3 2} = 1$, so $A^T = A$.
- Shown: every diagonal entry is $0$, and $a_{1 2} = -a_{2 1}$, $a_{1 3} = -a_{3 1}$, $a_{2 3} = -a_{3 2}$, so $A^T = -A$.
- $(1/2)(A+A^T) = \begin{pmatrix} 4 & 4 \\ 4 & 6 \end{pmatrix}$ (symmetric), $(1/2)(A-A^T) = \begin{pmatrix} 0 & 3 \\ -3 & 0 \end{pmatrix}$ (skew-symmetric).
- $A = \begin{pmatrix} 3 & 2 \\ 2 & 2 \end{pmatrix} + \begin{pmatrix} 0 & 3 \\ -3 & 0 \end{pmatrix}$
- $A = \begin{pmatrix} 2 & 7 & -2 \\ 7 & 1 & 4 \\ -2 & 4 & 3 \end{pmatrix} + \begin{pmatrix} 0 & -1 & -2 \\ 1 & 0 & 6 \\ 2 & -6 & 0 \end{pmatrix}$
- (B) a skew-symmetric matrix.
- (B) $\pi/3$.
- $x = 5$, $y = 5$
Practice set: Exercise 3.4
Exercise 3.4 asks whether one matrix undoes another. You check both products, $A B$ and $B A$, against $I$. Working out an inverse from scratch belongs to the next chapter.
- practice For $A = \begin{pmatrix} 2 & 3 \\ 1 & 2 \end{pmatrix}$ and $B = \begin{pmatrix} 2 & -3 \\ -1 & 2 \end{pmatrix}$, verify that $A B = B A = I$, and say what this tells you about $A$.
- practice For $A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$, check whether $B = \begin{pmatrix} 4 & -2 \\ -3 & 1 \end{pmatrix}$ satisfies $A B = I$.
- practice Find $k > 0$ so that $A = (1/k) \begin{pmatrix} 5 & 0 \\ 0 & 2 \end{pmatrix}$ satisfies $A \cdot \begin{pmatrix} 2 & 0 \\ 0 & 5 \end{pmatrix} = I$.
- practice Matrices $B$ and $C$ both satisfy $A B = B A = I$ and $A C = C A = I$ for the same square matrix $A$. Without computing anything new, what must be true of $B$ and $C$, and why?
Answers
- $A B = B A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = I$, so $A$ is invertible with $A^{-1} = B$.
- No: $A B = \begin{pmatrix} -2 & 0 \\ 0 & -2 \end{pmatrix} = -2I \neq I$, so $B$ is not the inverse of $A$. The inverse is $-B/2$, since $A(-B/2) = (-B/2)A = I$, which you can check by multiplying.
- $k = 10$
- $B = C$: the inverse of a matrix, when it exists, is unique, so two matrices that both satisfy the defining equation for $A^{-1}$ must be the same matrix.
Practice set: miscellaneous
The Miscellaneous Exercise mixes the whole chapter. One problem may need an order check, a product and a transpose. Some ask you to prove a rule for every matrix of a given kind.
- practice If $A$ and $B$ are symmetric matrices of the same order, prove that $A B - B A$ is skew-symmetric.
- practice Find $x > 0$ so that $A = (1/x) \begin{pmatrix} 3 & 4 \\ -4 & 3 \end{pmatrix}$ satisfies $A A^T = I$.
- practice Find the values of $x$ so that $\begin{pmatrix} x & 1 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & -9 \end{pmatrix} \begin{pmatrix} x \\ 1 \end{pmatrix} = O$.
- practice For $A = \begin{pmatrix} 3 & 1 \\ -1 & 2 \end{pmatrix}$, show that $A^2 - 5A + 7I = O$.
- practice A trader sells three products, $x$, $y$ and $z$, in two cities. City I sells $8000$, $3000$ and $15000$ units respectively; City II sells $5000$, $12000$ and $9000$ units. The selling prices per unit are ₹3, ₹2 and ₹1, and the costs per unit are ₹2.50, ₹1.50 and ₹0.50. Using matrix multiplication, find the gross profit in each city.
- practice Find the matrix $X$ so that $X \begin{pmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \end{pmatrix} = \begin{pmatrix} 2 & 3 & 2 \\ 1 & 5 & 15 \end{pmatrix}$.
- practice If a matrix $A$ is both symmetric and skew-symmetric, then $A$ must be
- practice If $A^2 = A$, then $(2I - A)^2 + 3A$ equals
Answers
- Proved: $(A B - B A)^T = (A B)^T - (B A)^T = B^T A^T - A^T B^T = B A - A B = -(A B - B A)$, using $A^T = A$ and $B^T = B$.
- $x = 5$
- $x = 3$ or $x = -3$
- Shown: $A^2 = \begin{pmatrix} 8 & 5 \\ -5 & 3 \end{pmatrix}$, so $A^2 - 5A + 7I = \begin{pmatrix} 8 & 5 \\ -5 & 3 \end{pmatrix} - \begin{pmatrix} 15 & 5 \\ -5 & 10 \end{pmatrix} + \begin{pmatrix} 7 & 0 \\ 0 & 7 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix} = O$.
- ₹13,000 profit in City I and ₹13,000 profit in City II.
- $X = \begin{pmatrix} 2 & -1 \\ 1 & 3 \end{pmatrix}$. Checked against the third column too: $3a+4b = 6-4 = 2$ and $3c+4d = 3+12 = 15$, both matching.
- (B) the zero matrix.
- (C) $4I$.
- practice A matrix $A = [a_{i j}]_{2 \times 2}$ has entries given by $a_{i j} = (i+j)^2/2$. Which of these is $A$? (1 mark)
- practice Assertion (A). There are $16$ matrices of order $2 \times 2$ whose every entry is $0$ or $1$. Reason (R). Each of the $4$ entries can independently be chosen in $2$ ways, giving $2^4$ such matrices. (1 mark)
- practice If $\begin{pmatrix} x+y & 2 \\ 5 & x y \end{pmatrix} = \begin{pmatrix} 6 & 2 \\ 5 & 8 \end{pmatrix}$, find $x$ and $y$. (2 marks)
- practice If $A = \begin{pmatrix} 3 & 1 \\ -1 & 2 \end{pmatrix}$, show that $A^2 - 5A + 7I = O$. Hence find $A^{-1}$. (3 marks)
- practice If $A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}$ and $B = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 1 & 1 \end{pmatrix}$, verify that $(A B)^T = B^T A^T$. (5 marks)
- practice Let $A = \begin{pmatrix} 3 & 5 \\ 1 & -1 \end{pmatrix}$. (i) Find $A^T$. (1 mark) (ii) Write $A = P + Q$ where $P = (A+A^T)/2$ and $Q = (A-A^T)/2$. (2 marks) (iii) Verify that $P$ is symmetric and $Q$ is skew-symmetric. (1 mark)
- practice Give an example of two matrices $A$ and $B$, neither the zero matrix, such that $A B = O$. Verify your answer. (2 marks)
Answers
- (A) $\begin{pmatrix} 2 & 4.5 \\ 4.5 & 8 \end{pmatrix}$.
- (A) Both A and R are true and R is the correct explanation of A.
- $x=2,y=4$ or $x=4,y=2$.
- Shown: $A^2-5A+7I = O$. Both $A \times [(5I-A)/7]$ and $[(5I-A)/7] \times A$ equal $I$, so $A^{-1} = 1/7 \begin{pmatrix} 2 & -1 \\ 1 & 3 \end{pmatrix}$.
- Verified: $(A B)^T = B^T A^T = \begin{pmatrix} 4 & 10 \\ 5 & 11 \end{pmatrix}$.
- (i) $A^T = \begin{pmatrix} 3 & 1 \\ 5 & -1 \end{pmatrix}$. (ii) $P = \begin{pmatrix} 3 & 3 \\ 3 & -1 \end{pmatrix}$, $Q = \begin{pmatrix} 0 & 2 \\ -2 & 0 \end{pmatrix}$. (iii) $P^T=P$, $Q^T=-Q$, both verified.
- $A = \begin{pmatrix} 1 & 1 \\ 2 & 2 \end{pmatrix}$, $B = \begin{pmatrix} 2 & -1 \\ -2 & 1 \end{pmatrix}$; $A B = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}$.