SOLVER7 Study. Nothing Else.
Chapter 3 Examples Q13

If \( A=\left[\begin{array}\text 1&-2&3\\ -4&2&5\end{array} \right] \text and\ B=\left[ \begin{array}\text 2&3&\\ 4&5\\ 2&1\end{array} \right], \) then find AB, BA. Show that \(AB\ne BA.\)

CBSE Class 12 Maths · Matrices

Solution

👶 Simple Explanation

Simple Explanation

Imagine two friends swapping gifts. The gift A gives to B is never the same as the gift B gives to A. Matrix multiplication works the same way. When you multiply matrix A and matrix B, the answer you get is different from multiplying B and then A. Sometimes the answers are even different sizes, like a small box versus a big box. Here, one answer is a tiny \(2 \times 2\) grid and the other is a bigger \(3 \times 3\) grid, so they simply cannot be equal.

Answer: \[AB = \begin{bmatrix} 0 & -4 \\ 10 & 3 \end{bmatrix}, \quad BA = \begin{bmatrix} -10 & 2 & 21 \\ -16 & 2 & 37 \\ -2 & -2 & 11 \end{bmatrix}\] Since \(AB\) is \(2 \times 2\) and \(BA\) is \(3 \times 3\), they have different orders, hence \(AB \ne BA\).

📖 Multiplying Matrices AB and BA

Detailed Explanation

Two matrices can be multiplied only when the number of columns of the first equals the number of rows of the second. If \(A\) is of order \(m \times n\) and \(B\) is of order \(n \times p\), then the product \(AB\) exists and has order \(m \times p\). To find each entry of the product, we take a row of the first matrix and a column of the second, multiply corresponding elements, and add them. Here \(A\) is a \(2 \times 3\) matrix and \(B\) is a \(3 \times 2\) matrix. So \(AB\) is \(2 \times 2\) while \(BA\) is \(3 \times 3\). Since \(AB\) and \(BA\) even have different orders, they can never be equal. This shows that matrix multiplication is not commutative in general.

Formula Used

If \(A = [a_{ij}]_{m \times n}\) and \(B = [b_{jk}]_{n \times p}\), then \((AB)_{ik} = \sum_{j=1}^{n} a_{ij} b_{jk}\), and \(AB\) has order \(m \times p\).

Solution

  1. Step 1: Write down the two matrices and check their orders. \[A = \begin{bmatrix} 1 & -2 & 3 \\ -4 & 2 & 5 \end{bmatrix}, \quad B = \begin{bmatrix} 2 & 3 \\ 4 & 5 \\ 2 & 1 \end{bmatrix}\] Here \(A\) is \(2 \times 3\) and \(B\) is \(3 \times 2\).
  2. Step 2: Check that both products exist. For \(AB\): columns of \(A\) = 3 equals rows of \(B\) = 3, so \(AB\) exists with order \(2 \times 2\). For \(BA\): columns of \(B\) = 2 equals rows of \(A\) = 2, so \(BA\) exists with order \(3 \times 3\).
  3. Step 3: Compute the entries of \(AB\) using row of \(A\) times column of \(B\). \[(AB)_{11} = (1)(2) + (-2)(4) + (3)(2) = 2 - 8 + 6 = 0\] \[(AB)_{12} = (1)(3) + (-2)(5) + (3)(1) = 3 - 10 + 3 = -4\] \[(AB)_{21} = (-4)(2) + (2)(4) + (5)(2) = -8 + 8 + 10 = 10\] \[(AB)_{22} = (-4)(3) + (2)(5) + (5)(1) = -12 + 10 + 5 = 3\]
  4. Step 4: Assemble the product \(AB\). \[AB = \begin{bmatrix} 0 & -4 \\ 10 & 3 \end{bmatrix}\] This is a \(2 \times 2\) matrix, as expected.
  5. Step 5: Now compute the entries of \(BA\) using row of \(B\) times column of \(A\). \[(BA)_{11} = (2)(1) + (3)(-4) = 2 - 12 = -10\] \[(BA)_{12} = (2)(-2) + (3)(2) = -4 + 6 = 2\] \[(BA)_{13} = (2)(3) + (3)(5) = 6 + 15 = 21\] \[(BA)_{21} = (4)(1) + (5)(-4) = 4 - 20 = -16\] \[(BA)_{22} = (4)(-2) + (5)(2) = -8 + 10 = 2\] \[(BA)_{23} = (4)(3) + (5)(5) = 12 + 25 = 37\] \[(BA)_{31} = (2)(1) + (1)(-4) = 2 - 4 = -2\] \[(BA)_{32} = (2)(-2) + (1)(2) = -4 + 2 = -2\] \[(BA)_{33} = (2)(3) + (1)(5) = 6 + 5 = 11\]
  6. Step 6: Assemble the product \(BA\). \[BA = \begin{bmatrix} -10 & 2 & 21 \\ -16 & 2 & 37 \\ -2 & -2 & 11 \end{bmatrix}\] This is a \(3 \times 3\) matrix.
  7. Step 7: Compare the two products. \(AB\) has order \(2 \times 2\) while \(BA\) has order \(3 \times 3\). Since they do not even have the same order, they cannot be equal. Therefore \(AB \ne BA\).

Final Answer

\[AB = \begin{bmatrix} 0 & -4 \\ 10 & 3 \end{bmatrix}, \quad BA = \begin{bmatrix} -10 & 2 & 21 \\ -16 & 2 & 37 \\ -2 & -2 & 11 \end{bmatrix}\] Since \(AB\) is \(2 \times 2\) and \(BA\) is \(3 \times 3\), they have different orders, hence \(AB \ne BA\).

Common Mistake

A common mistake is to multiply column of the first matrix by row of the second, or to assume \(AB = BA\). Always use row-of-first times column-of-second, and remember that matrix multiplication is generally not commutative.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify both matrices and note their orders. \[A = \\begin{bmatrix} 1 & -2 & 3 \\\\ -4 & 2 & 5 \\end{bmatrix}, \quad B = \\begin{bmatrix} 2 & 3 \\\\ 4 & 5 \\\\ 2 & 1 \\end{bmatrix}\] Here \(A\) is of order \(2 \times 3\) and \(B\) is of order \(3 \times 2\). — Reason: Knowing the order of each matrix tells us whether a given product exists and what order the result will have.
  2. Step 2: Verify that both products \(AB\) and \(BA\) exist and determine their orders. For \(AB\): columns of \(A\) \(= 3 =\) rows of \(B\), so \(AB\) exists and has order \(2 \times 2\). For \(BA\): columns of \(B\) \(= 2 =\) rows of \(A\), so \(BA\) exists and has order \(3 \times 3\). — Reason: A product \(PQ\) is defined only when the inner dimensions match; the outer dimensions give the size of the result.
  3. Step 3: Compute all four entries of \(AB\) by taking each row of \(A\) with each column of \(B\). \[(AB)_{11} = (1)(2) + (-2)(4) + (3)(2) = 2 - 8 + 6 = 0\] \[(AB)_{12} = (1)(3) + (-2)(5) + (3)(1) = 3 - 10 + 3 = -4\] \[(AB)_{21} = (-4)(2) + (2)(4) + (5)(2) = -8 + 8 + 10 = 10\] \[(AB)_{22} = (-4)(3) + (2)(5) + (5)(1) = -12 + 10 + 5 = 3\] — Reason: The \((i,k)\) entry of a product is found by multiplying corresponding elements of the \(i\)-th row of the first matrix with the \(k\)-th column of the second matrix, then summing.
  4. Step 4: Write down the result for \(AB\). \[AB = \\begin{bmatrix} 0 & -4 \\\\ 10 & 3 \\end{bmatrix}\] — Reason: Collecting all computed entries into a single matrix gives the complete product \(AB\).
  5. Step 5: Compute all nine entries of \(BA\) by taking each row of \(B\) with each column of \(A\). Row 1 of \(B\) is \([2,\\ 3]\), Row 2 is \([4,\\ 5]\), Row 3 is \([2,\\ 1]\); columns of \(A\) are \([1,-4]^T\), \([-2,2]^T\), \([3,5]^T\). \[(BA)_{11} = (2)(1) + (3)(-4) = 2 - 12 = -10\] \[(BA)_{12} = (2)(-2) + (3)(2) = -4 + 6 = 2\] \[(BA)_{13} = (2)(3) + (3)(5) = 6 + 15 = 21\] \[(BA)_{21} = (4)(1) + (5)(-4) = 4 - 20 = -16\] \[(BA)_{22} = (4)(-2) + (5)(2) = -8 + 10 = 2\] \[(BA)_{23} = (4)(3) + (5)(5) = 12 + 25 = 37\] \[(BA)_{31} = (2)(1) + (1)(-4) = 2 - 4 = -2\] \[(BA)_{32} = (2)(-2) + (1)(2) = -4 + 2 = -2\] \[(BA)_{33} = (2)(3) + (1)(5) = 6 + 5 = 11\] — Reason: The same row-times-column rule is applied, but now \(B\) is on the left and \(A\) is on the right, producing a larger \(3 \times 3\) matrix.
  6. Step 6: Write down the result for \(BA\). \[BA = \\begin{bmatrix} -10 & 2 & 21 \\\\ -16 & 2 & 37 \\\\ -2 & -2 & 11 \\end{bmatrix}\] — Reason: Arranging all nine computed entries in a \(3 \times 3\) grid gives the complete product \(BA\).
  7. Step 7: Compare \(AB\) and \(BA\). \(AB\) is a \(2 \times 2\) matrix while \(BA\) is a \(3 \times 3\) matrix. Two matrices are equal only if they have the same order and every corresponding entry is identical. Since the orders differ, \(AB \ne BA\). — Reason: This confirms that matrix multiplication is, in general, not commutative, meaning reversing the order of factors can change (or even alter the size of) the product.

Final Answer

\[AB = \begin{bmatrix} 0 & -4 \\ 10 & 3 \end{bmatrix}, \quad BA = \begin{bmatrix} -10 & 2 & 21 \\ -16 & 2 & 37 \\ -2 & -2 & 11 \end{bmatrix}\] Since \(AB\) is \(2 \times 2\) and \(BA\) is \(3 \times 3\), they have different orders, hence \(AB \ne BA\).

Common Mistake

One common mistake: Students often try to verify \(AB = BA\) by comparing individual entries without first checking whether the two products even have the same order — if the orders differ, equality is impossible without any further calculation.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Given: \[A = \begin{bmatrix} 1 & -2 & 3 \\ -4 & 2 & 5 \end{bmatrix}_{2\times3}, \quad B = \begin{bmatrix} 2 & 3 \\ 4 & 5 \\ 2 & 1 \end{bmatrix}_{3\times2}\]
  2. Step 2: Compute \(AB\) (order \(2\times2\)): \[\begin{aligned} (AB)_{11} &= (1)(2)+(-2)(4)+(3)(2) = 2-8+6 = 0 \\ (AB)_{12} &= (1)(3)+(-2)(5)+(3)(1) = 3-10+3 = -4 \\ (AB)_{21} &= (-4)(2)+(2)(4)+(5)(2) = -8+8+10 = 10 \\ (AB)_{22} &= (-4)(3)+(2)(5)+(5)(1) = -12+10+5 = 3 \end{aligned}\]
  3. Step 3: Compute \(BA\) (order \(3\times3\)): \[\begin{aligned} (BA)_{11} &= (2)(1)+(3)(-4) = 2-12 = -10, \quad (BA)_{12} = (2)(-2)+(3)(2) = 2, \quad (BA)_{13} = (2)(3)+(3)(5) = 21 \\ (BA)_{21} &= (4)(1)+(5)(-4) = -16, \quad (BA)_{22} = (4)(-2)+(5)(2) = 2, \quad (BA)_{23} = (4)(3)+(5)(5) = 37 \\ (BA)_{31} &= (2)(1)+(1)(-4) = -2, \quad (BA)_{32} = (2)(-2)+(1)(2) = -2, \quad (BA)_{33} = (2)(3)+(1)(5) = 11 \end{aligned}\]

Answer: \[AB = \begin{bmatrix} 0 & -4 \\ 10 & 3 \end{bmatrix}, \quad BA = \begin{bmatrix} -10 & 2 & 21 \\ -16 & 2 & 37 \\ -2 & -2 & 11 \end{bmatrix}\] Since \(AB\) is \(2 \times 2\) and \(BA\) is \(3 \times 3\), they have different orders, hence \(AB \ne BA\).

➕ More Examples

More Examples

Example 1

Question: Let \[A = \begin{bmatrix} 2 & -1 & 4 \\ 0 & 3 & -2 \end{bmatrix}\] and \[B = \begin{bmatrix} 1 & 0 \\ -1 & 2 \\ 3 & 1 \end{bmatrix}.\] Find AB and BA, and show that \(AB \ne BA\).

Solution: Step 1: Identify the orders of the matrices. Matrix A has order \(2 \times 3\) and matrix B has order \(3 \times 2\). Step 2: Compute AB. Since A is \(2 \times 3\) and B is \(3 \times 2\), the product AB has order \(2 \times 2\). The (1,1) entry of AB: \((2)(1) + (-1)(-1) + (4)(3) = 2 + 1 + 12 = 15\) The (1,2) entry of AB: \((2)(0) + (-1)(2) + (4)(1) = 0 - 2 + 4 = 2\) The (2,1) entry of AB: \((0)(1) + (3)(-1) + (-2)(3) = 0 - 3 - 6 = -9\) The (2,2) entry of AB: \((0)(0) + (3)(2) + (-2)(1) = 0 + 6 - 2 = 4\) Therefore, \[AB = \begin{bmatrix} 15 & 2 \\ -9 & 4 \end{bmatrix}.\] Step 3: Compute BA. Since B is \(3 \times 2\) and A is \(2 \times 3\), the product BA has order \(3 \times 3\). The (1,1) entry: \((1)(2) + (0)(0) = 2\) The (1,2) entry: \((1)(-1) + (0)(3) = -1\) The (1,3) entry: \((1)(4) + (0)(-2) = 4\) The (2,1) entry: \((-1)(2) + (2)(0) = -2\) The (2,2) entry: \((-1)(-1) + (2)(3) = 1 + 6 = 7\) The (2,3) entry: \((-1)(4) + (2)(-2) = -4 - 4 = -8\) The (3,1) entry: \((3)(2) + (1)(0) = 6\) The (3,2) entry: \((3)(-1) + (1)(3) = -3 + 3 = 0\) The (3,3) entry: \((3)(4) + (1)(-2) = 12 - 2 = 10\) Therefore, \[BA = \begin{bmatrix} 2 & -1 & 4 \\ -2 & 7 & -8 \\ 6 & 0 & 10 \end{bmatrix}.\] Step 4: Compare AB and BA. AB is a \(2 \times 2\) matrix while BA is a \(3 \times 3\) matrix. Since they have different orders, \(AB \ne BA\).

Answer: \(AB = \begin{bmatrix} 15 & 2 \\ -9 & 4 \end{bmatrix}\) (order \(2 \times 2\)), \(BA = \begin{bmatrix} 2 & -1 & 4 \\ -2 & 7 & -8 \\ 6 & 0 & 10 \end{bmatrix}\) (order \(3 \times 3\)). Since AB and BA have different orders, \(AB \ne BA\).

Example 2

Question: Let \[P = \begin{bmatrix} 1 & 2 \\ -3 & 4 \\ 0 & 5 \end{bmatrix}\] and \[Q = \begin{bmatrix} 3 & -1 & 2 \\ 1 & 4 & -3 \end{bmatrix}.\] Find PQ and QP, and verify that \(PQ \ne QP\).

Solution: Step 1: Identify the orders. Matrix P has order \(3 \times 2\) and matrix Q has order \(2 \times 3\). Step 2: Compute PQ. Since P is \(3 \times 2\) and Q is \(2 \times 3\), the product PQ has order \(3 \times 3\). The (1,1) entry: \((1)(3) + (2)(1) = 3 + 2 = 5\) The (1,2) entry: \((1)(-1) + (2)(4) = -1 + 8 = 7\) The (1,3) entry: \((1)(2) + (2)(-3) = 2 - 6 = -4\) The (2,1) entry: \((-3)(3) + (4)(1) = -9 + 4 = -5\) The (2,2) entry: \((-3)(-1) + (4)(4) = 3 + 16 = 19\) The (2,3) entry: \((-3)(2) + (4)(-3) = -6 - 12 = -18\) The (3,1) entry: \((0)(3) + (5)(1) = 0 + 5 = 5\) The (3,2) entry: \((0)(-1) + (5)(4) = 0 + 20 = 20\) The (3,3) entry: \((0)(2) + (5)(-3) = 0 - 15 = -15\) Therefore, \[PQ = \begin{bmatrix} 5 & 7 & -4 \\ -5 & 19 & -18 \\ 5 & 20 & -15 \end{bmatrix}.\] Step 3: Compute QP. Since Q is \(2 \times 3\) and P is \(3 \times 2\), the product QP has order \(2 \times 2\). The (1,1) entry: \((3)(1) + (-1)(-3) + (2)(0) = 3 + 3 + 0 = 6\) The (1,2) entry: \((3)(2) + (-1)(4) + (2)(5) = 6 - 4 + 10 = 12\) The (2,1) entry: \((1)(1) + (4)(-3) + (-3)(0) = 1 - 12 + 0 = -11\) The (2,2) entry: \((1)(2) + (4)(4) + (-3)(5) = 2 + 16 - 15 = 3\) Therefore, \[QP = \begin{bmatrix} 6 & 12 \\ -11 & 3 \end{bmatrix}.\] Step 4: Compare PQ and QP. PQ has order \(3 \times 3\) while QP has order \(2 \times 2\). Since they have different orders, \(PQ \ne QP\).

Answer: \(PQ = \begin{bmatrix} 5 & 7 & -4 \\ -5 & 19 & -18 \\ 5 & 20 & -15 \end{bmatrix}\) (order \(3 \times 3\)), \(QP = \begin{bmatrix} 6 & 12 \\ -11 & 3 \end{bmatrix}\) (order \(2 \times 2\)). Since PQ and QP have different orders, \(PQ \ne QP\).

🎯 Try a Similar Question

Try a Similar Question

Question: Let \[P = \begin{bmatrix} 2 & 1 & -3 \\ 0 & -2 & 4 \end{bmatrix}\] and \[Q = \begin{bmatrix} 1 & -1 \\ 3 & 2 \\ -1 & 0 \end{bmatrix}.\] Find the products PQ and QP. Hence show that \( PQ \ne QP \).

Solution

  1. Step 1: Identify the orders of P and Q: Matrix P has 2 rows and 3 columns, so its order is \( 2 \times 3 \). Matrix Q has 3 rows and 2 columns, so its order is \( 3 \times 2 \).
  2. Step 2: Check that PQ is defined and find its order: For PQ, the number of columns of P is 3 and the number of rows of Q is 3. Since these are equal, PQ is defined and its order is \( 2 \times 2 \).
  3. Step 3: Compute PQ: \[PQ = \begin{bmatrix} 2 & 1 & -3 \\ 0 & -2 & 4 \end{bmatrix} \begin{bmatrix} 1 & -1 \\ 3 & 2 \\ -1 & 0 \end{bmatrix}\] Computing each entry: \((PQ)_{11} = (2)(1) + (1)(3) + (-3)(-1) = 2 + 3 + 3 = 8\), \((PQ)_{12} = (2)(-1) + (1)(2) + (-3)(0) = -2 + 2 + 0 = 0\), \((PQ)_{21} = (0)(1) + (-2)(3) + (4)(-1) = 0 - 6 - 4 = -10\), \((PQ)_{22} = (0)(-1) + (-2)(2) + (4)(0) = 0 - 4 + 0 = -4\). Therefore: \[PQ = \begin{bmatrix} 8 & 0 \\ -10 & -4 \end{bmatrix}\]
  4. Step 4: Check that QP is defined and find its order: For QP, the number of columns of Q is 2 and the number of rows of P is 2. Since these are equal, QP is defined and its order is \( 3 \times 3 \).
  5. Step 5: Compute QP: \[QP = \begin{bmatrix} 1 & -1 \\ 3 & 2 \\ -1 & 0 \end{bmatrix} \begin{bmatrix} 2 & 1 & -3 \\ 0 & -2 & 4 \end{bmatrix}\] Row 1: \((1)(2)+(-1)(0) = 2\), \((1)(1)+(-1)(-2) = 1+2 = 3\), \((1)(-3)+(-1)(4) = -3-4 = -7\). Row 2: \((3)(2)+(2)(0) = 6\), \((3)(1)+(2)(-2) = 3-4 = -1\), \((3)(-3)+(2)(4) = -9+8 = -1\). Row 3: \((-1)(2)+(0)(0) = -2\), \((-1)(1)+(0)(-2) = -1\), \((-1)(-3)+(0)(4) = 3\). Therefore: \[QP = \begin{bmatrix} 2 & 3 & -7 \\ 6 & -1 & -1 \\ -2 & -1 & 3 \end{bmatrix}\]
  6. Step 6: Show that PQ ≠ QP: PQ is a \( 2 \times 2 \) matrix, whereas QP is a \( 3 \times 3 \) matrix. Since they have different orders, they cannot be equal. Hence \( PQ \ne QP \).

Answer: \[PQ = \begin{bmatrix} 8 & 0 \\ -10 & -4 \end{bmatrix}, \quad QP = \begin{bmatrix} 2 & 3 & -7 \\ 6 & -1 & -1 \\ -2 & -1 & 3 \end{bmatrix}\] Since PQ is of order \( 2 \times 2 \) and QP is of order \( 3 \times 3 \), they have different orders, and therefore \( PQ \ne QP \).

Everything you get with Solver7

More questions in Matrices

Chapter 3 Examples Q1 65/1/1 2023 / Section A Q1 65/2/1 2024 / Section A Q1 65/3/1 2023 / Section A Q1 65/3/1 2024 / Section A Q1 65/4/1 2023 / Section A Q1 65/5/1 2026 / Section A Q1 Chapter 3 Examples Q2 65(B) 2026 / Section A Q2 65/1/1 2024 / Section A Q2 65/1/1 2026 / Section A Q2 65/3/1 2026 / Section A Q2 65/4/1 2023 / Section A Q2 65/4/1 2026 / Section A Q2 65/5/1 2026 / Section A Q2 Chapter 3 Examples Q3 65(B) 2026 / Section A Q3 65/1/1 2026 / Section A Q3 65/3/1 2023 / Section A Q3 65/3/1 2026 / Section A Q3 65/4/1 2023 / Section A Q3 Chapter 3 Examples Q4 65/1/1 2023 / Section A Q4 65/3/1 2023 / Section A Q4 65/3/1 2026 / Section A Q4 65/4/1 2023 / Section A Q4 65/5/1 2026 / Section A Q4 Chapter 3 Examples Q5 65/1/1 2024 / Section A Q5 65/3/1 2026 / Section A Q5 65/4/2 2024 / Section A Q5 Chapter 3 Examples Q6 65/1/1 2026 / Section A Q6 65/2/3 2026 / Section A Q6 Chapter 3 Examples Q7 65/2/3 2026 / Section A Q7 Chapter 3 Examples Q8 65/2/3 2026 / Section A Q8 Chapter 3 Examples Q9 65/2/3 2026 / Section A Q9 Chapter 3 Examples Q10 65/4/2 2024 / Section A Q10 Chapter 3 Examples Q11(i) 65/4/2 2024 / Section A Q11 Chapter 3 Examples Q11(ii) 65/2/1 2024 / Section A Q12 65/3/1 2024 / Section A Q12 65/4/2 2024 / Section A Q12 Chapter 3 Examples Q11(iii) Chapter 3 Examples Q12 65/1/1 2023 / Section A Q14 65/2/2 2023 / Section A Q15 Chapter 3 Examples Q14 65/2/2 2023 / Section A Q16 Chapter 3 Examples Q15 65/2/1 2024 / Section A Q17 Chapter 3 Examples Q16 65/1/1 2024 / Section A Q18 65/3/1 2024 / Section A Q18 Chapter 3 Examples Q17