A matrix is just numbers arranged neatly in rows and columns. You have seen such tables many times: the sales of three products in two shops, or the coefficients of a system of equations. We will name the different types of matrices and learn to add them, multiply them by numbers, multiply them together and transpose them. Keep one warning in mind throughout: with matrices, the order of multiplication matters.
A matrix of orderm×n has m rows and n columns, and aij is the entry sitting in row i, column j. We write A=[aij].
The common types. Column (n=1), row (m=1), square (m=n), diagonal (square, zero off the diagonal), scalar (diagonal with equal diagonal entries), identity I (scalar with 1s), zero O.
Example 1. Construct the 2×3 matrix with aij=2(i+2j)2: [4.5812.51824.532].
Two matrices are equal only when they have the same order and every pair of corresponding entries matches.
Sum (same order): add corresponding entries. This is commutative and associative, and A+O=A.
Scalar multiple:kA=[kaij]; k(A+B)=kA+kB.
Product: for A of order m×n and B of order n×p, AB is m×p with (AB)ik=j∑aijbjk. In words: run along a row of A and down a column of B, multiply pairs and add.
Example 2.A=[23−14], B=[105−2]: AB=[23127], BA=[17−619−8]. So AB=BA. Never assume you can swap the order.
What still works, and what does not.(AB)C=A(BC); A(B+C)=AB+AC; AI=IA=A. But here is a surprise: AB=O can happen even when A,B=O. For example, [1111][1−1−11]=O.
Example 3. If A=[3−112], show A2−5A+7I=O. First A2=[8−553], and then entry by entry, 8−15+7=0, 5−5=0, −5+5=0, 3−10+7=0. ✓
Example 4 (an application). Two shops sell pens, notebooks and bags in quantities [2012152546] at prices 1040300 rupees. Multiplying gives the revenues: [200+600+1200120+1000+1800]=[20002920].
The transpose AT turns rows into columns: (AT)ij=aji. Its rules are easy to remember: (AT)T=A, (A+B)T=AT+BT, (kA)T=kAT, and, with the order reversed, (AB)T=BTAT.
If A is 3×4 and B is 4×2, what is the order of AB? Is BA defined?
A factory makes items X and Y using 2 and 3 hours of labour and 4 and 1 kg of material. Labour costs ₹150 per hour and material ₹60 per kg. Use matrices to find the cost of each item.
Find two non-zero 2×2 matrices whose product is O.