📚 Padhai SaathiहिंदीEnglish

Chapter 3: Matrices

What is a matrix

An ordered rectangular array of numbers or functions is called a matrix. The horizontal lines are rows and the vertical lines are columns. A matrix with m rows and n columns has order m × n and mn elements. aᵢⱼ is the element in the i-th row and j-th column. For example, the table of notebooks and pens of Radha, Fauzia and Simran,

156
102
135
, is a 3 × 2 matrix. (In the questions below, matrices are written on one line with rows separated by ;, like [1 2 ; 3 4].)

Writing points as matrices

A point (x, y) of the plane can be written as a column matrix

x
y
or a row matrix [x y]. In the same way the vertices of a closed figure can be written in one matrix. In the figure, the vertices of quadrilateral ABCD are A(1, 0), B(3, 2), C(1, 3), D(−1, 2), and they can be written as the 2 × 4 matrix
131−1
0232
or as a 4 × 2 matrix.

xy−2−11234−1123A(1, 0)B(3, 2)C(1, 3)D(−1, 2)
Vertices of quadrilateral ABCD: A(1, 0), B(3, 2), C(1, 3), D(−1, 2)

Types of matrices and equality

A column matrix has one column and a row matrix has one row. A square matrix has equal numbers of rows and columns. In a diagonal matrix all elements outside the diagonal are zero. A scalar matrix is a diagonal matrix whose diagonal elements are all equal (k). In the identity matrix I the diagonal has 1 and the rest 0. All elements of the zero matrix O are 0. Two matrices are equal if they have the same order and the corresponding elements are equal.

Sum, difference and scalar multiplication

The sum or difference of two matrices of the same order is got by adding or subtracting the corresponding elements. In kA every element of A is multiplied by k, and −A = (−1)A, A − B = A + (−1)B. Properties of addition: A + B = B + A, (A + B) + C = A + (B + C), A + O = A (O is the additive identity) and A + (−A) = O (−A is the additive inverse). Properties of scalar multiplication: k(A + B) = kA + kB and (k + l)A = kA + lA.

Multiplication of matrices

AB is defined only when the number of columns of A equals the number of rows of B. The product of m × n and n × p is of order m × p and cᵢₖ = aᵢ₁b₁ₖ + aᵢ₂b₂ₖ + ... + aᵢₙbₙₖ. That is, the elements of a row of A are multiplied with those of a column of B and added. The figure shows the product of C (2 × 3) and D (3 × 2).

1−12034C (2 × 3)27−115−4D (3 × 2)=13−217−13CD (2 × 2)13 = (1)(2) + (−1)(−1) + (2)(5)
The first element of CD = first row of C × first column of D = 13

Properties: (AB)C = A(BC), A(B + C) = AB + AC, (A + B)C = AC + BC and IA = AI = A. But multiplication is not commutative: even when AB and BA are both defined, AB ≠ BA may happen, and the product of two non-zero matrices can be a zero matrix.

Transpose, symmetric matrices and inverse

In the transpose A′ the rows and columns of A are interchanged. Properties: (A′)′ = A, (kA)′ = kA′, (A + B)′ = A′ + B′, (AB)′ = B′A′. Symmetric: A′ = A; skew symmetric: A′ = −A (zeros on the diagonal). Any square matrix can be written as A = ½(A + A′) + ½(A − A′), the sum of a symmetric and a skew symmetric matrix. If AB = BA = I, then B is the inverse A⁻¹ of A. The inverse, if it exists, is unique and (AB)⁻¹ = B⁻¹A⁻¹. (In this edition, finding the inverse by elementary operations is not part of this chapter.)

Important questions

Q1. What is a matrix? What does order m × n mean and how many elements does an m × n matrix have?

An ordered rectangular array of numbers or functions is called a matrix, and the numbers or functions are its elements (entries). A matrix with m rows and n columns has order m × n and has mn elements. aᵢⱼ is the element in the i-th row and j-th column.

Q2. If a matrix has 24 elements, what are the possible orders it can have? What if it has 13 elements?

For order m × n we need mn = 24, so (m, n) = (1, 24), (24, 1), (2, 12), (12, 2), (3, 8), (8, 3), (4, 6), (6, 4). 13 is a prime number, so only 1 × 13 and 13 × 1.

Q3. Construct a 2 × 2 matrix A = [aᵢⱼ] whose elements are given by aᵢⱼ = (i + j)²/2.

a₁₁ = (1 + 1)²/2 = 2, a₁₂ = (1 + 2)²/2 = 9/2, a₂₁ = (2 + 1)²/2 = 9/2, a₂₂ = (2 + 2)²/2 = 8. So A = [2 9/2 ; 9/2 8] (rows are separated by a semicolon).

Q4. Construct a 3 × 4 matrix whose elements are given by aᵢⱼ = ½|−3i + j|.

For i = 1, |−3 + j| = 2, 1, 0, 1, so row 1 is 1, 1/2, 0, 1/2. For i = 2, |−6 + j| = 5, 4, 3, 2, so 5/2, 2, 3/2, 1. For i = 3, |−9 + j| = 8, 7, 6, 5, so 4, 7/2, 3, 5/2. The matrix is [1 1/2 0 1/2 ; 5/2 2 3/2 1 ; 4 7/2 3 5/2].

Q5. When are two matrices said to be equal? Give an example.

Two matrices A = [aᵢⱼ] and B = [bᵢⱼ] are equal if (i) they have the same order and (ii) aᵢⱼ = bᵢⱼ for all i and j. For example [2 3 ; 0 1] and [2 3 ; 0 1] are equal, but [3 2 ; 0 1] and [2 3 ; 0 1] are not.

Q6. Find x, y and z from the equation [x + y + z ; x + z ; y + z] = [9 ; 5 ; 7].

Corresponding elements are equal: x + y + z = 9, x + z = 5, y + z = 7. Subtracting the second from the first gives y = 4. Then from the third z = 3 and from the second x = 2. So x = 2, y = 4, z = 3.

Q7. Find a, b, c and d from the equation [a − b 2a + c ; 2a − b 3c + d] = [−1 5 ; 0 13].

a − b = −1, 2a + c = 5, 2a − b = 0, 3c + d = 13. From the first and third, a = 1 and b = 2. Then 2(1) + c = 5 gives c = 3 and 3(3) + d = 13 gives d = 4. So a = 1, b = 2, c = 3, d = 4.

Q8. Are there values of x and y for which [3x + 7 5 ; y + 1 2 − 3x] and [0 y − 2 ; 8 4] are equal?

Equating corresponding elements, 3x + 7 = 0 gives x = −7/3, y − 2 = 5 gives y = 7, y + 1 = 8 gives y = 7, but 2 − 3x = 4 gives x = −2/3. We get two different values of x, so it is not possible to find such values.

Q9. What is the relation between diagonal, scalar and identity matrices?

In a diagonal matrix all elements outside the diagonal are zero (bᵢⱼ = 0 for i ≠ j). A scalar matrix is a diagonal matrix whose diagonal elements are all equal (k). In an identity matrix k = 1. So every identity matrix is a scalar matrix and every scalar matrix is diagonal, but not the other way round.

Q10. For which matrices are the sum and difference defined? If A = [1 2 3 ; 2 3 1] and B = [3 −1 3 ; −1 0 2], find 2A − B.

The sum and difference are defined only when both matrices have the same order; then the corresponding elements are added or subtracted. 2A = [2 4 6 ; 4 6 2], so 2A − B = [2 − 3 4 + 1 6 − 3 ; 4 + 1 6 − 0 2 − 2] = [−1 5 3 ; 5 6 0].

Q11. When is the product AB of two matrices defined and what is the order of the product? Write the formula for the (i, k)th element.

AB is defined only when the number of columns of A equals the number of rows of B. If A has order m × n and B has order n × p, then AB has order m × p. The (i, k)th element is cᵢₖ = aᵢ₁b₁ₖ + aᵢ₂b₂ₖ + ... + aᵢₙbₙₖ, the sum of the products of the corresponding elements of the i-th row of A and the k-th column of B.

Q12. For A = [2 4 ; 3 2] and B = [1 3 ; −2 5], find AB and BA. Is AB = BA?

AB = [2(1) + 4(−2) 2(3) + 4(5) ; 3(1) + 2(−2) 3(3) + 2(5)] = [−6 26 ; −1 19]. BA = [1(2) + 3(3) 1(4) + 3(2) ; −2(2) + 5(3) −2(4) + 5(2)] = [11 10 ; 11 2]. AB ≠ BA.

Q13. If A has order 2 × 3 and B has order 3 × 2, what are the orders of AB and BA? For A = [1 −2 3 ; −4 2 5] and B = [2 3 ; 4 5 ; 2 1], find AB.

AB has order 2 × 2 and BA has order 3 × 3, so they cannot be equal. AB = [2 − 8 + 6 3 − 10 + 3 ; −8 + 8 + 10 −12 + 10 + 5] = [0 −4 ; 10 3].

Q14. Can the product of two non-zero matrices be a zero matrix? Give an example.

Yes. A = [0 −1 ; 0 2] and B = [3 5 ; 0 0] are both non-zero, but AB = [0·3 + (−1)·0 0·5 + (−1)·0 ; 0·3 + 2·0 0·5 + 2·0] = [0 0 ; 0 0]. So if a product is zero, it is not necessary that one of the matrices is zero.

Q15. Find A² − 5A + 6I for A = [2 0 1 ; 2 1 3 ; 1 −1 0].

A² = A·A = [5 −1 2 ; 9 −2 5 ; 0 −1 −2]. 5A = [10 0 5 ; 10 5 15 ; 5 −5 0] and 6I = [6 0 0 ; 0 6 0 ; 0 0 6]. So A² − 5A + 6I = [5 − 10 + 6 −1 − 0 + 0 2 − 5 + 0 ; 9 − 10 + 0 −2 − 5 + 6 5 − 15 + 0 ; 0 − 5 + 0 −1 + 5 + 0 −2 − 0 + 6] = [1 −1 −3 ; −1 −1 −10 ; −5 4 4].

Q16. A trust fund has ₹30,000 to invest in two types of bonds: the first pays 5% and the second pays 7% interest per year. How should the money be divided to get a total annual interest of (a) ₹1800 (b) ₹2000?

Invest ₹x in the first bond and ₹(30000 − x) in the second. Interest = [x 30000 − x] [5/100 ; 7/100] = 0.05x + 0.07(30000 − x) = 2100 − 0.02x. (a) 2100 − 0.02x = 1800 gives x = 15000, so ₹15,000 in each. (b) 2100 − 0.02x = 2000 gives x = 5000, so ₹5,000 in the 5% bond and ₹25,000 in the 7% bond.

Q17. Define the transpose of a matrix and state its properties. Give an example of (AB)′ = B′A′.

Interchanging the rows and columns of A = [aᵢⱼ] (m × n) gives its transpose A′ = [aⱼᵢ] (n × m). Properties: (A′)′ = A, (kA)′ = kA′, (A + B)′ = A′ + B′, (AB)′ = B′A′. Example: for A = [−2 ; 4 ; 5], B = [1 3 −6], AB = [−2 −6 12 ; 4 12 −24 ; 5 15 −30] and B′A′ = [1 ; 3 ; −6][−2 4 5] = the same matrix, so (AB)′ = B′A′.

Q18. What are symmetric and skew symmetric matrices? Express A = [3 5 ; 1 −1] as the sum of a symmetric and a skew symmetric matrix.

A square matrix A is symmetric if A′ = A and skew symmetric if A′ = −A (then all diagonal elements are zero). Any square matrix can be written as A = ½(A + A′) + ½(A − A′), the sum of a symmetric and a skew symmetric matrix. Here A′ = [3 1 ; 5 −1], so P = ½(A + A′) = [3 3 ; 3 −1] (symmetric) and Q = ½(A − A′) = [0 2 ; −2 0] (skew symmetric), and P + Q = [3 5 ; 1 −1] = A.

Q19. What is an invertible matrix? State the uniqueness of the inverse and the formula for (AB)⁻¹.

A square matrix A is invertible if there is a matrix B of the same order with AB = BA = I; then B = A⁻¹. For example, for A = [2 3 ; 1 2] and B = [2 −3 ; −1 2], AB = BA = I. The inverse of a square matrix, if it exists, is unique (if B and C are both inverses, B = B(AC) = (BA)C = C). If A and B are invertible matrices of the same order, then (AB)⁻¹ = B⁻¹A⁻¹. A rectangular matrix has no inverse.

Q20. A manufacturer produces three products x, y, z and sells them in two markets. Annual sales (units) are 10,000, 2,000, 18,000 in market I and 6,000, 20,000, 8,000 in market II. (a) If the unit sale prices are ₹2.50, ₹1.50, ₹1.00, find the revenue in each market. (b) If the unit costs are ₹2.00, ₹1.00 and 50 paise, find the gross profit.

(a) [10000 2000 18000 ; 6000 20000 8000] [2.50 ; 1.50 ; 1.00] = [25000 + 3000 + 18000 ; 15000 + 30000 + 8000] = [46000 ; 53000]. So the revenue is ₹46,000 in market I and ₹53,000 in market II. (b) Cost = [20000 + 2000 + 9000 ; 12000 + 20000 + 4000] = [31000 ; 36000]. Profit = revenue − cost = [15000 ; 17000], that is ₹15,000 in market I and ₹17,000 in market II, ₹32,000 in all.

Quiz

1. How many matrices of order 3 × 3 are possible if each entry is 0 or 1?

2. If a matrix A is both symmetric and skew symmetric, then:

3. If A is a square matrix such that A² = A, then (I + A)³ − 7A is equal to:

4. Matrices A and B will be inverses of each other only if:

5. If A = [cos α −sin α ; sin α cos α] and A + A′ = I, then the value of α is:

← Previous chapterAll chaptersNext chapter →