How to use these solu­tions

These are the worked solu­tions to the prac­tice ques­tions in Matri­ces and Matrix Oper­a­tions. Try each ques­tion on your own first, then go through the steps here and com­pare them with your work­ing.

Remem­ber the one rule that causes most errors: to mul­ti­ply ABAB, take a row of AA and a col­umn of BB, mul­ti­ply match­ing entries and add. ABAB is defined only when the num­ber of columns of AA equals the num­ber of rows of BB.

Ques­tion 1: Build­ing a matrix from a rule

The prob­lem

Con­struct the 3×23 \times 2 matrix with aij=∣2i−j∣a_{ij} = \lvert 2i - j \rvert.

Under­stand­ing the prob­lem

The matrix has 33 rows (i=1,2,3i = 1, 2, 3) and 22 columns (j=1,2j = 1, 2). The entry in row ii and col­umn jj is ∣2i−j∣\lvert 2i - j \rvert. You must work out all six entries.

The idea

Go row by row, sub­sti­tut­ing each pair (i,j)(i, j) into the rule.

Step-by-step solu­tion

Step 1. Row 1 (i=1i = 1).

a11=∣2−1∣=1,a12=∣2−2∣=0.a_{11} = \lvert 2 - 1 \rvert = 1, \qquad a_{12} = \lvert 2 - 2 \rvert = 0.

Step 2. Row 2 (i=2i = 2).

a21=∣4−1∣=3,a22=∣4−2∣=2.a_{21} = \lvert 4 - 1 \rvert = 3, \qquad a_{22} = \lvert 4 - 2 \rvert = 2.

Step 3. Row 3 (i=3i = 3).

a31=∣6−1∣=5,a32=∣6−2∣=4.a_{31} = \lvert 6 - 1 \rvert = 5, \qquad a_{32} = \lvert 6 - 2 \rvert = 4.

Step 4. Arrange them.

A=[103254].A = \begin{bmatrix} 1 & 0 \\ 3 & 2 \\ 5 & 4 \end{bmatrix}.

Check­ing the answer

The order is 3×23 \times 2 (three rows, two columns) ✓. Every entry is non-neg­a­tive, as a mod­u­lus must be ✓.

Answer

[103254]\begin{bmatrix} 1 & 0 \\ 3 & 2 \\ 5 & 4 \end{bmatrix}

Com­mon mis­take to avoid

ii is the row num­ber and jj the col­umn num­ber. Swap­ping them gives a 2×32 \times 3 matrix with the wrong entries.

Ques­tion 2: Unknowns from equal matri­ces

The prob­lem

Find x,y,zx, y, z: [x+y25xz]=[72512]\begin{bmatrix} x + y & 2 \\ 5 & xz \end{bmatrix} = \begin{bmatrix} 7 & 2 \\ 5 & 12 \end{bmatrix} with x=4x = 4.

Under­stand­ing the prob­lem

Two matri­ces are equal when every entry matches its part­ner in the same posi­tion. You are also told x=4x = 4.

The idea

Equate cor­re­spond­ing entries to get equa­tions, then sub­sti­tute x=4x = 4.

Step-by-step solu­tion

Step 1. Com­pare entries: (1,1)(1,1) gives x+y=7x + y = 7; (2,2)(2,2) gives xz=12xz = 12. The other entries (2=22 = 2, 5=55 = 5) already match.

Step 2. Put x=4x = 4 in the first equa­tion.

4+y=7⟹y=3.4 + y = 7 \quad\Longrightarrow\quad y = 3.

Step 3. Put x=4x = 4 in the sec­ond.

4z=12⟹z=3.4z = 12 \quad\Longrightarrow\quad z = 3.

Check­ing the answer

x+y=7x + y = 7 ✓ and xz=12xz = 12 ✓.

Answer

x=4x = 4, y=3y = 3, z=3z = 3

Ques­tion 3: A lin­ear com­bi­na­tion of matri­ces

The prob­lem

A=[12−3041]A = \begin{bmatrix} 1 & 2 & -3 \\ 0 & 4 & 1 \end{bmatrix}, B=[201−135]B = \begin{bmatrix} 2 & 0 & 1 \\ -1 & 3 & 5 \end{bmatrix}. Find 2A−3B2A - 3B.

Under­stand­ing the prob­lem

AA and BB have the same order (2×32 \times 3), so they can be com­bined. You need to mul­ti­ply each by a num­ber and sub­tract.

The idea

Scalar mul­ti­pli­ca­tion mul­ti­plies every entry. Then sub­tract entry by entry.

Step-by-step solu­tion

Step 1. Mul­ti­ply AA by 22.

2A=[24−6082].2A = \begin{bmatrix} 2 & 4 & -6 \\ 0 & 8 & 2 \end{bmatrix}.

Step 2. Mul­ti­ply BB by 33.

3B=[603−3915].3B = \begin{bmatrix} 6 & 0 & 3 \\ -3 & 9 & 15 \end{bmatrix}.

Step 3. Sub­tract posi­tion by posi­tion.

2A−3B=[2−64−0−6−30−(−3)8−92−15]=[−44−93−1−13].2A - 3B = \begin{bmatrix} 2 - 6 & 4 - 0 & -6 - 3 \\ 0 - (-3) & 8 - 9 & 2 - 15 \end{bmatrix} = \begin{bmatrix} -4 & 4 & -9 \\ 3 & -1 & -13 \end{bmatrix}.

Check­ing the answer

Check one entry directly: posi­tion (2,3)(2, 3) is 2(1)−3(5)=2−15=−132(1) - 3(5) = 2 - 15 = -13 ✓.

Answer

2A−3B=[−44−93−1−13]2A - 3B = \begin{bmatrix} -4 & 4 & -9 \\ 3 & -1 & -13 \end{bmatrix}

Ques­tion 4: Solv­ing a matrix equa­tion

The prob­lem

Find XX if 3X+[120−1]=[7−495]3X + \begin{bmatrix} 1 & 2 \\ 0 & -1 \end{bmatrix} = \begin{bmatrix} 7 & -4 \\ 9 & 5 \end{bmatrix}.

Under­stand­ing the prob­lem

XX is an unknown 2×22 \times 2 matrix. Treat the equa­tion like an ordi­nary lin­ear equa­tion, but with matrix addi­tion and scalar mul­ti­pli­ca­tion.

The idea

Sub­tract the known matrix from both sides, then divide every entry by 33.

Step-by-step solu­tion

Step 1. Sub­tract [120−1]\begin{bmatrix} 1 & 2 \\ 0 & -1 \end{bmatrix} from both sides.

3X=[7−1−4−29−05−(−1)]=[6−696].3X = \begin{bmatrix} 7 - 1 & -4 - 2 \\ 9 - 0 & 5 - (-1) \end{bmatrix} = \begin{bmatrix} 6 & -6 \\ 9 & 6 \end{bmatrix}.

Step 2. Mul­ti­ply by 13\displaystyle \tfrac{1}{3}.

X=[2−232].X = \begin{bmatrix} 2 & -2 \\ 3 & 2 \end{bmatrix}.

Check­ing the answer

3X=[6−696]3X = \begin{bmatrix} 6 & -6 \\ 9 & 6 \end{bmatrix}; adding [120−1]\begin{bmatrix} 1 & 2 \\ 0 & -1 \end{bmatrix} gives [7−495]\begin{bmatrix} 7 & -4 \\ 9 & 5 \end{bmatrix} ✓.

Answer

X=[2−232]X = \begin{bmatrix} 2 & -2 \\ 3 & 2 \end{bmatrix}

Ques­tion 5: Two matrix prod­ucts

The prob­lem

Com­pute [13−20][2−145]\begin{bmatrix} 1 & 3 \\ -2 & 0 \end{bmatrix}\begin{bmatrix} 2 & -1 \\ 4 & 5 \end{bmatrix} and [210][3−17]\begin{bmatrix} 2 & 1 & 0 \end{bmatrix}\begin{bmatrix} 3 \\ -1 \\ 7 \end{bmatrix}.

Under­stand­ing the prob­lem

First check the prod­ucts are defined. (a) 2×22 \times 2 times 2×22 \times 2 gives 2×22 \times 2. (b) 1×31 \times 3 times 3×13 \times 1 gives 1×11 \times 1.

The idea

Each entry (i,k)(i, k) of the prod­uct is row ii of the first matrix times col­umn kk of the sec­ond: mul­ti­ply match­ing entries and add.

Step-by-step solu­tion

Part (a)

Step 1. Row 1 (1,3)(1, 3) with col­umn 1 (2,4)(2, 4) and col­umn 2 (−1,5)(-1, 5).

1(2)+3(4)=14,1(−1)+3(5)=14.1(2) + 3(4) = 14, \qquad 1(-1) + 3(5) = 14.

Step 2. Row 2 (−2,0)(-2, 0) with the same columns.

−2(2)+0(4)=−4,−2(−1)+0(5)=2.-2(2) + 0(4) = -4, \qquad -2(-1) + 0(5) = 2.

Step 3. Assem­ble.

[1414−42].\begin{bmatrix} 14 & 14 \\ -4 & 2 \end{bmatrix}.

Part (b)

Step 1. One row times one col­umn gives one entry.

2(3)+1(−1)+0(7)=6−1+0=5.2(3) + 1(-1) + 0(7) = 6 - 1 + 0 = 5.

So the prod­uct is the 1×11 \times 1 matrix [5][5].

Check­ing the answer

The orders match the pre­dic­tions (2×22 \times 2 and 1×11 \times 1) ✓.

Answer

[1414−42]\begin{bmatrix} 14 & 14 \\ -4 & 2 \end{bmatrix}; [5][5].

Ques­tion 6: A matrix sat­is­fy­ing a qua­dratic equa­tion

The prob­lem

For A=[2312]A = \begin{bmatrix} 2 & 3 \\ 1 & 2 \end{bmatrix}, show A2−4A+I=OA^2 - 4A + I = O.

Under­stand­ing the prob­lem

You must com­pute A2=AAA^2 = AA, then 4A4A and II, com­bine them, and show every entry is 00.

The idea

Work out A2A^2 by row-into-col­umn mul­ti­pli­ca­tion, then check each of the four posi­tions.

Step-by-step solu­tion

Step 1. Com­pute A2A^2.

A2=[2312][2312]=[4+36+62+23+4]=[71247].A^2 = \begin{bmatrix} 2 & 3 \\ 1 & 2 \end{bmatrix}\begin{bmatrix} 2 & 3 \\ 1 & 2 \end{bmatrix} = \begin{bmatrix} 4 + 3 & 6 + 6 \\ 2 + 2 & 3 + 4 \end{bmatrix} = \begin{bmatrix} 7 & 12 \\ 4 & 7 \end{bmatrix}.

Step 2. Com­pute 4A4A and write II.

4A=[81248],I=[1001].4A = \begin{bmatrix} 8 & 12 \\ 4 & 8 \end{bmatrix}, \qquad I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}.

Step 3. Com­bine entry by entry.

A2−4A+I=[7−8+112−12+04−4+07−8+1]=[0000]=O.A^2 - 4A + I = \begin{bmatrix} 7 - 8 + 1 & 12 - 12 + 0 \\ 4 - 4 + 0 & 7 - 8 + 1 \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} = O.

Check­ing the answer

All four entries are 00, which is exactly what had to be shown ✓.

Answer

A2=[71247]A^2 = \begin{bmatrix} 7 & 12 \\ 4 & 7 \end{bmatrix}, and A2−4A+I=OA^2 - 4A + I = O as required.

Com­mon mis­take to avoid

A2A^2 is not found by squar­ing each entry. You must mul­ti­ply the matrix by itself.

Ques­tion 7: Ver­i­fy­ing the rever­sal law for trans­poses

The prob­lem

Ver­ify (AB)T=BTAT(AB)^T = B^TA^T for A=[1−23]A = \begin{bmatrix} 1 \\ -2 \\ 3 \end{bmatrix}, B=[21]B = \begin{bmatrix} 2 & 1 \end{bmatrix}.

Under­stand­ing the prob­lem

"Ver­ify" means com­pute both sides and show they are equal. AA is 3×13 \times 1 and BB is 1×21 \times 2, so ABAB is 3×23 \times 2 and (AB)T(AB)^T is 2×32 \times 3.

The idea

Find ABAB, trans­pose it. Sep­a­rately, find BTB^T and ATA^T and mul­ti­ply them in that order.

Step-by-step solu­tion

Step 1. Com­pute ABAB: each row of AA has one entry, mul­ti­plied by each entry of BB.

AB=[1−23][21]=[21−4−263].AB = \begin{bmatrix} 1 \\ -2 \\ 3 \end{bmatrix}\begin{bmatrix} 2 & 1 \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ -4 & -2 \\ 6 & 3 \end{bmatrix}.

Step 2. Trans­pose (rows become columns).

(AB)T=[2−461−23].(AB)^T = \begin{bmatrix} 2 & -4 & 6 \\ 1 & -2 & 3 \end{bmatrix}.

Step 3. Write BTB^T (2×12 \times 1) and ATA^T (1×31 \times 3).

BT=[21],AT=[1−23].B^T = \begin{bmatrix} 2 \\ 1 \end{bmatrix}, \qquad A^T = \begin{bmatrix} 1 & -2 & 3 \end{bmatrix}.

Step 4. Mul­ti­ply BTATB^TA^T (2×12 \times 1 times 1×31 \times 3 gives 2×32 \times 3).

BTAT=[2(1)2(−2)2(3)1(1)1(−2)1(3)]=[2−461−23].B^TA^T = \begin{bmatrix} 2(1) & 2(-2) & 2(3) \\ 1(1) & 1(-2) & 1(3) \end{bmatrix} = \begin{bmatrix} 2 & -4 & 6 \\ 1 & -2 & 3 \end{bmatrix}.

Step 5. The results of Steps 2 and 4 are iden­ti­cal, so (AB)T=BTAT(AB)^T = B^TA^T.

Check­ing the answer

Note that ATBTA^TB^T would be 1×31 \times 3 times 2×12 \times 1, which is not even defined — that is why the order must reverse.

Answer

Both sides equal [2−461−23]\begin{bmatrix} 2 & -4 & 6 \\ 1 & -2 & 3 \end{bmatrix}, so (AB)T=BTAT(AB)^T = B^TA^T holds.

Ques­tion 8: Orders of prod­ucts

The prob­lem

If AA is 3×43 \times 4 and BB is 4×24 \times 2, what is the order of ABAB? Is BABA defined?

Under­stand­ing the prob­lem

A prod­uct PQPQ is defined when (columns of PP) = (rows of QQ). Its order is (rows of PP) × (columns of QQ).

The idea

Write the orders side by side and check the inner num­bers.

Step-by-step solu­tion

Step 1. For ABAB: (3×4)(4×2)(3 \times \mathbf{4})(\mathbf{4} \times 2). The inner num­bers match (4=44 = 4), so ABAB is defined, with order given by the outer num­bers:

3×2.3 \times 2.

Step 2. For BABA: (4×2)(3×4)(4 \times \mathbf{2})(\mathbf{3} \times 4). The inner num­bers are 22 and 33, which dif­fer, so BABA is not defined.

Check­ing the answer

Each row of BB has 22 entries but each col­umn of AA has 33, so there is noth­ing to pair up — con­firm­ing BABA can­not be formed.

Answer

ABAB is 3×23 \times 2; BABA is not defined.

Ques­tion 9: Cost of two items using matri­ces

The prob­lem

A fac­tory makes items X and Y using 22 and 33 hours of labour and 44 and 11 kg of mate­r­ial. Labour costs ₹150 per hour and mate­r­ial ₹60 per kg. Use matri­ces to find the cost of each item.

Under­stand­ing the prob­lem

Item X needs 22 hours of labour and 44 kg of mate­r­ial. Item Y needs 33 hours and 11 kg. The cost of each item is (hours × ₹150) + (kg × ₹60).

The idea

Put the require­ments in a matrix with one row per item and one col­umn per resource, and the unit costs in a col­umn matrix. Their prod­uct gives the cost of each item.

Step-by-step solu­tion

Step 1. Require­ments matrix (rows: X, Y; columns: labour, mate­r­ial).

R=[2431].R = \begin{bmatrix} 2 & 4 \\ 3 & 1 \end{bmatrix}.

Step 2. Cost col­umn (labour, mate­r­ial).

C=[15060].C = \begin{bmatrix} 150 \\ 60 \end{bmatrix}.

Step 3. Mul­ti­ply (2×22 \times 2 times 2×12 \times 1 gives 2×12 \times 1).

RC=[2(150)+4(60)3(150)+1(60)]=[300+240450+60]=[540510].RC = \begin{bmatrix} 2(150) + 4(60) \\ 3(150) + 1(60) \end{bmatrix} = \begin{bmatrix} 300 + 240 \\ 450 + 60 \end{bmatrix} = \begin{bmatrix} 540 \\ 510 \end{bmatrix}.

Check­ing the answer

X: 2 hours cost ₹300 and 4 kg cost ₹240, total ₹540 ✓. Y: ₹450 + ₹60 = ₹510 ✓.

Answer

Item X costs ₹540 and item Y costs ₹510.

Ques­tion 10: Two non-zero matri­ces with zero prod­uct

The prob­lem

Find two non-zero 2×22 \times 2 matri­ces whose prod­uct is OO.

Under­stand­ing the prob­lem

With num­bers, ab=0ab = 0 forces a=0a = 0 or b=0b = 0. With matri­ces this is not true. You need one exam­ple of A≠OA \ne O, B≠OB \ne O with AB=OAB = O.

The idea

Choose AA that keeps only the first "slot" and BB that has some­thing only in the sec­ond slot, so every row of AA meets a col­umn of BB with no over­lap­ping non-zero entries.

Step-by-step solu­tion

Step 1. Take

A=[1000],B=[0001].A = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}, \qquad B = \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix}.

Both are non-zero (each has an entry 11).

Step 2. Mul­ti­ply.

AB=[1(0)+0(0)1(0)+0(1)0(0)+0(0)0(0)+0(1)]=[0000]=O.AB = \begin{bmatrix} 1(0) + 0(0) & 1(0) + 0(1) \\ 0(0) + 0(0) & 0(0) + 0(1) \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} = O.

Check­ing the answer

Every entry of ABAB is 00 ✓. The lesson's own exam­ple, [1111][1−1−11]=O\begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}\begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix} = O, is another cor­rect answer; many oth­ers exist.

Answer

For exam­ple, [1000][0001]=O\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}\begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix} = O.