Class 12 Maths, Worked in Full Past papersGet updates
Chapter 3 · Matrices

Miscellaneous · Q8: Find XX from XA=BXA=B

Miscellaneous ExerciseMatrix multiplication and equality · Sections 3.3.1 and 3.4.5
The question

Find the matrix X so that

X[123456]=[−7−8−9246]X \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix} = \begin{bmatrix} -7 & -8 & -9 \\ 2 & 4 & 6 \end{bmatrix}
Exam answer

Let AA be the given 2×32\times3 matrix. For XAXA to be defined, XX has 2 columns. As XAXA is 2×32\times3⁠, XX has 2 rows. So XX is of order 2×22\times2⁠.

Let X=[abcd]\text{Let } X = \begin{bmatrix} a & b \\ c & d \end{bmatrix} XA=[abcd][123456]=[a+4b2a+5b3a+6bc+4d2c+5d3c+6d]\begin{aligned} &XA \\ &= \begin{bmatrix} a & b \\ c & d \end{bmatrix}\begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix} \\ &= \begin{bmatrix} a + 4b & 2a + 5b & 3a + 6b \\ c + 4d & 2c + 5d & 3c + 6d \end{bmatrix} \end{aligned}

Equating corresponding entries with the right side:

a+4b=−7,c+4d=2,2a+5b=−8,2c+5d=4,3a+6b=−9,3c+6d=6\begin{aligned} a + 4b &= -7, & c + 4d &= 2, \\ 2a + 5b &= -8, & 2c + 5d &= 4, \\ 3a + 6b &= -9, & 3c + 6d &= 6 \end{aligned}

From the first two: a=−7−4ba = -7 - 4b⁠, so −14−3b=−8-14 - 3b = -8⁠, giving b=−2b = -2⁠, a=1a = 1⁠.

Similarly c=2−4dc = 2 - 4d⁠, so 4−3d=44 - 3d = 4⁠, giving d=0d = 0⁠, c=2c = 2⁠.

These values also satisfy 3a+6b=−93a + 6b = -9 and 3c+6d=63c + 6d = 6⁠.

∴ X=[1−220]\therefore\ X = \begin{bmatrix} 1 & -2 \\ 2 & 0 \end{bmatrix}

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

We cannot "divide by a matrix", but we do not need to. First let the orders tell us the shape of X: it must be 2×22\times2⁠. Then write X with four unknown entries, multiply out, and use equality of matrices: six entry equations for four unknowns. Each row of X gives its own little system of two unknowns, plus one extra equation that must agree.

Given, to find, and the plan
Given
XA=BXA = B⁠, where A is the 2×32\times3 matrix with rows (1,2,3)(1, 2, 3)⁠, (4,5,6)(4, 5, 6) and B is the 2×32\times3 matrix with rows (−7,−8,−9)(-7, -8, -9)⁠, (2,4,6)(2, 4, 6)⁠.
To find
The matrix X (all matrices X, if there were more than one).
Plan
(1) Work out the order of X. (2) Write XX with entries a,b,c,da, b, c, d and compute XA entry by entry. (3) Equate with B. (4) Solve for a,ba, b and for c,dc, d⁠, checking the extra equations. (5) Check XA=BXA = B⁠.

Basics you need

1Orders in a product

(m×n)(n×p)=m×p(m\times n)(n\times p) = m\times p⁠: the columns of the first factor must equal the rows of the second. Basics: rows, columns and the address aija_{ij}

2Row times column

Each entry of XA is a row of X times a column of A. Basics: pair up, multiply, add

3Equal matrices

Same order, and every corresponding pair of entries equal. Lesson: equality of matrices

4Two equations, two unknowns

Solve one equation for one unknown, substitute into the other (substitution), then check. Basics: solving equations, one unknown at a time

Solution

  1. The orders force X to be 2×22\times2

    Let X be m×nm\times n⁠. A is 2×32\times3 and B is 2×32\times3⁠.

    • For XA to be defined, the columns of X must equal the rows of A: n=2n = 2⁠.
    • Then XA is m×3m\times3⁠. For it to equal B (2×32\times3⁠), we need m=2m = 2⁠.

    So X is a 2×22\times2 matrix.

    Finding the order first turns "find a matrix" into "find four numbers". Without it we would not know how many unknowns to write down.
    Section 3.4.5 (order of a product) and Definition 2 (equal matrices have the same order). Lesson: matrix multiplication
  2. Write X with unknown entries and compute XA

    X=[abcd]X = \begin{bmatrix} a & b \\ c & d \end{bmatrix}

    The columns of A are (1,4)(1, 4)⁠, (2,5)(2, 5)⁠, (3,6)(3, 6)⁠. Row 1 of X, (a,b)(a, b)⁠, times each column, and then row 2, (c,d)(c, d)⁠, times each column:

    (XA)11=a⋅1+b⋅4=a+4b(XA)12=a⋅2+b⋅5=2a+5b(XA)13=a⋅3+b⋅6=3a+6b(XA)21=c⋅1+d⋅4=c+4d(XA)22=c⋅2+d⋅5=2c+5d(XA)23=c⋅3+d⋅6=3c+6d\begin{aligned} (XA)_{11} &= a\cdot1 + b\cdot4 = a + 4b \\ (XA)_{12} &= a\cdot2 + b\cdot5 = 2a + 5b \\ (XA)_{13} &= a\cdot3 + b\cdot6 = 3a + 6b \\ (XA)_{21} &= c\cdot1 + d\cdot4 = c + 4d \\ (XA)_{22} &= c\cdot2 + d\cdot5 = 2c + 5d \\ (XA)_{23} &= c\cdot3 + d\cdot6 = 3c + 6d \end{aligned}
    Notice that row 1 of XA involves only aa and bb (row 1 of X), and row 2 involves only cc and dd⁠. That splits the problem into two independent small systems.
    Entry formula of Section 3.4.5. Basics: pair up, multiply, add
  3. Equate with B, entry by entry

    XA and B are both 2×32\times3⁠, so XA=BXA = B means these six equations all hold:

    a+4b=−7c+4d=22a+5b=−82c+5d=43a+6b=−93c+6d=6\begin{aligned} a + 4b &= -7 & c + 4d &= 2 \\ 2a + 5b &= -8 & 2c + 5d &= 4 \\ 3a + 6b &= -9 & 3c + 6d &= 6 \end{aligned}

    The left column comes from row 1 of B, the right column from row 2.

    Six equations but only four unknowns: each system has one equation more than it needs. We solve with two of them and use the third as a test. If the third failed, there would be no X at all.
    Definition 2 (Section 3.3.1). Lesson: equality of matrices
  4. Solve for aa and bb

    From the first equation, a=−7−4ba = -7 - 4b⁠. Substitute into the second:

    2(−7−4b)+5b=−8−14−8b+5b=−8−3b=6b=−2\begin{aligned} 2(-7 - 4b) + 5b &= -8 \\ -14 - 8b + 5b &= -8 \\ -3b &= 6 \\ b &= -2 \end{aligned}

    and then a=−7−4(−2)=−7+8=1a = -7 - 4(-2) = -7 + 8 = 1⁠.

    Third equation: 3a+6b=3(1)+6(−2)=3−12=−93a + 6b = 3(1) + 6(-2) = 3 - 12 = -9 ✓. So a=1a = 1⁠, b=−2b = -2⁠.

    Substitution reduces two unknowns to one. Dividing by −3-3 is allowed and reversible, so b=−2b = -2 is the only value; hence a=1a = 1 is forced too. The third equation is not used to find anything, only to confirm that this pair satisfies all three.
  5. Solve for cc and dd

    From the first equation, c=2−4dc = 2 - 4d⁠. Substitute into the second:

    2(2−4d)+5d=44−8d+5d=4−3d=0d=0\begin{aligned} 2(2 - 4d) + 5d &= 4 \\ 4 - 8d + 5d &= 4 \\ -3d &= 0 \\ d &= 0 \end{aligned}

    and then c=2−4(0)=2c = 2 - 4(0) = 2⁠.

    Third equation: 3c+6d=3(2)+6(0)=63c + 6d = 3(2) + 6(0) = 6 ✓. So c=2c = 2⁠, d=0d = 0⁠.

    The same method as Step 4. A zero entry is a perfectly good answer: d=0d = 0 is the unique solution of −3d=0-3d = 0⁠.
  6. Assemble X and check

    X=[1−220]X = \begin{bmatrix} 1 & -2 \\ 2 & 0 \end{bmatrix}

    Check every entry of XA against B:

    (1,1):1⋅1+(−2)⋅4=−7(1,2):1⋅2+(−2)⋅5=−8(1,3):1⋅3+(−2)⋅6=−9(2,1):2⋅1+0⋅4=2(2,2):2⋅2+0⋅5=4(2,3):2⋅3+0⋅6=6\begin{aligned} (1,1) &: 1\cdot1 + (-2)\cdot4 = -7 \\ (1,2) &: 1\cdot2 + (-2)\cdot5 = -8 \\ (1,3) &: 1\cdot3 + (-2)\cdot6 = -9 \\ (2,1) &: 2\cdot1 + 0\cdot4 = 2 \\ (2,2) &: 2\cdot2 + 0\cdot5 = 4 \\ (2,3) &: 2\cdot3 + 0\cdot6 = 6 \end{aligned}

    These are exactly the entries −7,−8,−9-7, -8, -9 and 2,4,62, 4, 6 of B ✓. Because each pair (a,b)(a, b) and (c,d)(c, d) was forced, this X is the only solution.

    The final check multiplies the actual numbers, independently of the algebra, so it would catch any slip in Steps 2 to 5.
Result X=[1−220]X = \begin{bmatrix} 1 & -2 \\ 2 & 0 \end{bmatrix}

and it is the only matrix with XA=BXA = B⁠. (Textbook answer: the same matrix.)

Check it with numbers

A quick pattern check: row 2 of B is (2,4,6)=2×(1,2,3)(2, 4, 6) = 2\times(1, 2, 3)⁠, which is twice row 1 of A. So row 2 of X should be (2,0)(2, 0)⁠, "2 of row 1 of A and none of row 2" ✓. Likewise row 1 of B is (−7,−8,−9)(-7, -8, -9)⁠, which is 1×(1,2,3)−2×(4,5,6)1\times(1, 2, 3) - 2\times(4, 5, 6) =(1−8,2−10,3−12)= (1-8, 2-10, 3-12) ✓, matching row 1 of X, (1,−2)(1, -2)⁠.

Common mistakes
  1. Guessing the order of X as 2×32\times3 or 3×23\times2⁠. Only 2×22\times2 makes XA defined and of order 2×32\times3⁠.
  2. Multiplying in the wrong order (computing AX). The question has X on the left.
  3. Ignoring the third equation in each system. It must be checked; if it failed, no X would exist.
  4. Trying to "divide by A". A is not square, so it has no inverse; equating entries is the right tool.
What to take away
  1. To find an unknown matrix, first find its order from the product rule, then give it unknown entries and equate.
  2. Row ii of XA is "row ii of X combined with the rows of A". So each row of X can be found separately.
  3. More equations than unknowns means some equations are tests. Always use them.

Every fact used, and where it comes from

FactUsed inSource
When a product is defined; its order and entriesSteps 1, 2, 6Section 3.4.5 (Lesson: matrix multiplication)
Equality of matricesSteps 1, 3Definition 2, Section 3.3.1 (Lesson: equality of matrices)
Solving two linear equations by substitutionSteps 4, 5Algebra (linear equations in two variables)
Only square matrices have inversesCommon mistakesDefinition 6, Section 3.7 (Lesson: invertible matrices)
The solution and its uniquenessSteps 4–6Solved with sympy (all six equations) in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →