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

Example 25: Find DD with CD−AB=OCD-AB=O

ExamplesMiscellaneous examples · Chapter 3
The question

Let

A=[2−134],B=[5274],A = \begin{bmatrix} 2 & -1 \\ 3 & 4 \end{bmatrix},\quad B = \begin{bmatrix} 5 & 2 \\ 7 & 4 \end{bmatrix}, C=[2538].C = \begin{bmatrix} 2 & 5 \\ 3 & 8 \end{bmatrix}.

Find a matrix DD such that CD−AB=OCD - AB = O⁠.

Exam answer

AA⁠, BB⁠, CC are 2×22\times2⁠, so ABAB is 2×22\times2 and DD must be 2×22\times2⁠. Let

D=[abcd]D = \begin{bmatrix} a & b \\ c & d \end{bmatrix} AB=[2⋅5+(−1)⋅72⋅2+(−1)⋅43⋅5+4⋅73⋅2+4⋅4]=[304322]\begin{aligned} &AB \\ &= \begin{bmatrix} 2{\cdot}5 + (-1){\cdot}7 & 2{\cdot}2 + (-1){\cdot}4 \\ 3{\cdot}5 + 4{\cdot}7 & 3{\cdot}2 + 4{\cdot}4 \end{bmatrix} \\ &= \begin{bmatrix} 3 & 0 \\ 43 & 22 \end{bmatrix} \end{aligned} CD=[2a+5c2b+5d3a+8c3b+8d]CD = \begin{bmatrix} 2a + 5c & 2b + 5d \\ 3a + 8c & 3b + 8d \end{bmatrix}

CD−AB=O⇒CD=ABCD - AB = O \Rightarrow CD = AB⁠. Equating the corresponding entries,

2a+5c=3…(i)3a+8c=43…(ii)2b+5d=0…(iii)3b+8d=22…(iv)\begin{aligned} 2a + 5c &= 3 \quad\ldots(\text{i}) \\ 3a + 8c &= 43 \quad\ldots(\text{ii}) \\ 2b + 5d &= 0 \quad\ldots(\text{iii}) \\ 3b + 8d &= 22 \quad\ldots(\text{iv}) \end{aligned}

2×2\times(ii) −3×- 3\times(i) (the aa terms cancel): c=2(43)−3(3)=77c = 2(43) - 3(3) = 77⁠. Then from (i), 2a=3−3852a = 3 - 385⁠, so a=−191a = -191⁠.

2×2\times(iv) −3×- 3\times(iii) (the bb terms cancel): d=2(22)−3(0)=44d = 2(22) - 3(0) = 44⁠. Then from (iii), 2b=−2202b = -220⁠, so b=−110b = -110⁠.

∴ D=[−191−1107744]\therefore\ D = \begin{bmatrix} -191 & -110 \\ 77 & 44 \end{bmatrix}

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

The one idea this problem is built on

An unknown matrix is just a grid of unknown numbers. Once we know its order, we write DD with letters for its entries, compute CDCD entry by entry, and use equality of matrices: CD−AB=OCD - AB = O means every entry of CD−ABCD - AB is 0. That gives four ordinary linear equations, which split into two independent pairs, one pair for each column of DD⁠.

Given, to find, and the plan
Given
AA⁠, BB⁠, CC⁠, each of order 2×22\times2⁠, and the condition CD−AB=OCD - AB = O⁠, where OO is a zero matrix.
To find
The matrix DD⁠.
Plan
(1) Find the order of DD⁠. (2) Compute ABAB⁠. (3) Write DD with unknown entries and compute CDCD⁠. (4) Set each entry of CD−ABCD - AB equal to 0. (5) Solve the two pairs of equations. (6) Check.

Basics you need

1Orders in a product

If CC is m×nm\times n and DD is n×pn\times p⁠, then CDCD is m×pm\times p⁠. A product is defined only when the inner numbers match. Basics: pair up, multiply, add

2Equality of matrices

Two matrices are equal when they have the same order and every pair of corresponding entries is equal. So a matrix equation of order 2×22\times2 is really four number equations. Basics: rows, columns and the address

3Solving two linear equations in two unknowns

Eliminate one unknown by making its coefficients equal and subtracting, then substitute back. Always check the solution in both original equations. Basics: solving equations, one unknown at a time

4Subtracting matrices

Matrices of the same order are subtracted entry by entry. Basics: adding only like with like

Solution

  1. Work out the order of DD

    AA and BB are 2×22\times2⁠, so ABAB is defined and is 2×22\times2⁠. For CD−ABCD - AB to be defined, CDCD must have the same order as ABAB⁠, namely 2×22\times2⁠.

    • CC is 2×22\times2⁠, so for CDCD to be defined, DD must have 2 rows (the columns of CC⁠).
    • CDCD has as many columns as DD⁠; since CDCD must be 2×22\times2⁠, DD must have 2 columns.

    So DD is a 2×22\times2 matrix. Write

    D=[abcd].D = \begin{bmatrix} a & b \\ c & d \end{bmatrix}.
    The question does not say what size DD is, so we must deduce it before we can write it down. Each condition (the product is defined; the difference is defined) fixes one of the two numbers in the order. The letters a,b,c,da, b, c, d are just names for the four unknown entries.
    Section 3.4.5 (when a product is defined and its order); Section 3.4.1 (a sum or difference needs equal orders). Lesson: matrix multiplication
  2. Compute ABAB⁠, entry by entry

    Row ii of AA times column jj of BB⁠:

    (AB)11=2⋅5+(−1)⋅7=10−7=3,(AB)12=2⋅2+(−1)⋅4=4−4=0,(AB)21=3⋅5+4⋅7=15+28=43,(AB)22=3⋅2+4⋅4=6+16=22.\begin{aligned} (AB)_{11} &= 2\cdot5 + (-1)\cdot7 = 10 - 7 = 3,\\ (AB)_{12} &= 2\cdot2 + (-1)\cdot4 = 4 - 4 = 0,\\ (AB)_{21} &= 3\cdot5 + 4\cdot7 = 15 + 28 = 43,\\ (AB)_{22} &= 3\cdot2 + 4\cdot4 = 6 + 16 = 22. \end{aligned} AB=[304322].AB = \begin{bmatrix} 3 & 0 \\ 43 & 22 \end{bmatrix}.
    ABAB contains no unknowns, so we compute it fully first. That keeps the equations in Step 4 simple.
    (AB)ij=ai1b1j+ai2b2j(AB)_{ij} = a_{i1}b_{1j} + a_{i2}b_{2j} for 2×22\times2 matrices. Basics: pair up, multiply, add
  3. Compute CDCD⁠, entry by entry

    Row ii of CC times column jj of DD (column 1 of DD is a,ca, c⁠; column 2 is b,db, d⁠):

    (CD)11=2a+5c,(CD)12=2b+5d,(CD)21=3a+8c,(CD)22=3b+8d.\begin{aligned} (CD)_{11} &= 2a + 5c,\\ (CD)_{12} &= 2b + 5d,\\ (CD)_{21} &= 3a + 8c,\\ (CD)_{22} &= 3b + 8d. \end{aligned} CD=[2a+5c2b+5d3a+8c3b+8d].CD = \begin{bmatrix} 2a + 5c & 2b + 5d \\ 3a + 8c & 3b + 8d \end{bmatrix}.
    Notice that column 1 of CDCD involves only aa and cc (column 1 of DD⁠), and column 2 only bb and dd⁠. This is always so: column jj of a product CDCD depends only on column jj of DD⁠. It is why the problem splits into two separate pairs of equations.
  4. Turn CD−AB=OCD - AB = O into four equations

    Subtract entry by entry:

    CD−AB=[2a+5c−32b+5d−03a+8c−433b+8d−22].CD - AB = \begin{bmatrix} 2a + 5c - 3 & 2b + 5d - 0 \\ 3a + 8c - 43 & 3b + 8d - 22 \end{bmatrix}.

    This equals the 2×22\times2 zero matrix, so by equality of matrices each entry is 0:

    2a+5c−3=0(1)3a+8c−43=0(2)2b+5d=0(3)3b+8d−22=0(4)\begin{aligned} 2a + 5c - 3 &= 0 &&\text{(1)}\\ 3a + 8c - 43 &= 0 &&\text{(2)}\\ 2b + 5d &= 0 &&\text{(3)}\\ 3b + 8d - 22 &= 0 &&\text{(4)} \end{aligned}
    Two matrices are equal exactly when all corresponding entries are equal. The zero matrix has every entry 0, so we get one equation per position. Equations (1) and (2) involve only aa⁠, cc⁠; equations (3) and (4) only bb⁠, dd⁠.
    Definition 2, Section 3.3.1 (equality of matrices). Lesson: equality of matrices
  5. Solve (1) and (2) for aa and cc

    Rewrite them as 2a+5c=32a + 5c = 3 and 3a+8c=433a + 8c = 43⁠. To eliminate aa⁠, multiply (1) by 3 and (2) by 2, so both have 6a6a⁠:

    6a+15c=9,6a+16c=86.\begin{aligned} 6a + 15c &= 9,\\ 6a + 16c &= 86. \end{aligned}

    Subtract the first from the second: 16c−15c=86−916c - 15c = 86 - 9⁠, so c=77c = 77⁠. Substitute into (1): 2a+5(77)=32a + 5(77) = 3⁠, so 2a=3−385=−3822a = 3 - 385 = -382 and a=−191a = -191⁠.

    Check in (2): 3(−191)+8(77)=−573+616=433(-191) + 8(77) = -573 + 616 = 43⁠. Correct.

    Multiplying so that one unknown has the same coefficient, and then subtracting, removes that unknown and leaves one equation in one unknown. Checking in the equation we did not substitute into catches arithmetic slips.
    Elimination method for two linear equations (Class X). Basics: solving equations
  6. Solve (3) and (4) for bb and dd

    Rewrite them as 2b+5d=02b + 5d = 0 and 3b+8d=223b + 8d = 22⁠. Multiply (3) by 3 and (4) by 2:

    6b+15d=0,6b+16d=44.\begin{aligned} 6b + 15d &= 0,\\ 6b + 16d &= 44. \end{aligned}

    Subtract: d=44d = 44⁠. Substitute into (3): 2b+5(44)=02b + 5(44) = 0⁠, so 2b=−2202b = -220 and b=−110b = -110⁠.

    Check in (4): 3(−110)+8(44)=−330+352=223(-110) + 8(44) = -330 + 352 = 22⁠. Correct.

    The coefficients 2,5,3,82, 5, 3, 8 are the same as in Step 5, because both pairs come from multiplying by the same matrix CC⁠. Only the right-hand sides differ.
  7. Assemble DD⁠, check, and note that it is the only answer

    D=[abcd]=[−191−1107744].D = \begin{bmatrix} a & b \\ c & d \end{bmatrix} = \begin{bmatrix} -191 & -110 \\ 77 & 44 \end{bmatrix}.

    Check by computing CDCD directly:

    (CD)11=2(−191)+5(77)=−382+385=3,(CD)12=2(−110)+5(44)=−220+220=0,(CD)21=3(−191)+8(77)=−573+616=43,(CD)22=3(−110)+8(44)=−330+352=22.\begin{aligned} (CD)_{11} &= 2(-191) + 5(77)\\ &= -382 + 385 = 3,\\ (CD)_{12} &= 2(-110) + 5(44)\\ &= -220 + 220 = 0,\\ (CD)_{21} &= 3(-191) + 8(77)\\ &= -573 + 616 = 43,\\ (CD)_{22} &= 3(-110) + 8(44)\\ &= -330 + 352 = 22. \end{aligned}

    So every entry of CDCD equals the corresponding entry of ABAB⁠, and CD−AB=OCD - AB = O⁠:

    CD=[304322]=AB.CD = \begin{bmatrix} 3 & 0 \\ 43 & 22 \end{bmatrix} = AB.

    Each pair of equations has exactly one solution, because the elimination in Steps 5 and 6 left cc (or dd⁠) with coefficient 16−15=1≠016 - 15 = 1 \ne 0⁠. So this DD is the only matrix with CD−AB=OCD - AB = O⁠.

    Substituting the answer back into the original condition is the surest check: it does not depend on how the equations were solved.
Result D=[−191−1107744].D = \begin{bmatrix} -191 & -110 \\ 77 & 44 \end{bmatrix}.

This is the unique 2×22\times2 matrix with CD−AB=OCD - AB = O⁠. (The textbook solution gives the same DD⁠.)

Check it with numbers

A different route to the same answer. The matrix EE with rows 8,−58, -5 and −3,2-3, 2 satisfies EC=IEC = I⁠: the entries of ECEC are 8⋅2+(−5)⋅3=18\cdot2 + (-5)\cdot3 = 1⁠, 8⋅5+(−5)⋅8=08\cdot5 + (-5)\cdot8 = 0⁠, (−3)⋅2+2⋅3=0(-3)\cdot2 + 2\cdot3 = 0⁠, (−3)⋅5+2⋅8=1(-3)\cdot5 + 2\cdot8 = 1⁠. Multiplying CD=ABCD = AB on the left by EE gives D=E(AB)D = E(AB)⁠, whose entries are 8⋅3−5⋅43=−1918\cdot3 - 5\cdot43 = -191⁠, 8⋅0−5⋅22=−1108\cdot0 - 5\cdot22 = -110⁠, −3⋅3+2⋅43=77-3\cdot3 + 2\cdot43 = 77⁠, −3⋅0+2⋅22=44-3\cdot0 + 2\cdot22 = 44⁠. The same DD⁠.

Common mistakes
  1. Writing DD without finding its order. The order is not given; it has to be deduced from the requirement that CDCD and CD−ABCD - AB are defined.
  2. Multiplying in the wrong order. CDCD is not DCDC⁠. In CDCD the rows of CC meet the columns of DD⁠, giving 2a+5c2a + 5c⁠, not 2a+3b2a + 3b⁠.
  3. Sign slips in ABAB⁠. (−1)⋅7=−7(-1)\cdot 7 = -7⁠, so (AB)11=10−7=3(AB)_{11} = 10 - 7 = 3⁠, and (−1)⋅4=−4(-1)\cdot4 = -4⁠, so (AB)12=0(AB)_{12} = 0⁠.
  4. Not checking. Large values like −191-191 look suspicious; substituting back shows they are right.
What to take away
  1. To find an unknown matrix: fix its order, name its entries, multiply out, and compare entries.
  2. Column jj of CDCD depends only on column jj of DD⁠, so the equations split by columns of DD⁠.
  3. Here DD is "ABAB divided by CC on the left", that is, D=C−1(AB)D = C^{-1}(AB)⁠; you will meet the systematic way to find C−1C^{-1} in Chapter 4.

Every fact used, and where it comes from

FactUsed inSource
Product defined when inner orders match; order m×pm\times pStep 1Section 3.4.5 (Lesson: matrix multiplication)
Difference needs equal orders; entrywise subtractionSteps 1, 4Section 3.4.1 (Lesson: addition)
Entry rule for productsSteps 2, 3, 7; CheckSection 3.4.5
Equality of matrices, entry by entryStep 4Definition 2, Section 3.3.1 (Lesson: equality)
Elimination for two linear equationsSteps 5, 6Class X, pair of linear equations
EC=IEC = I and D=E(AB)D = E(AB)CheckSection 3.7 (inverse), associative law Section 3.4.6 (Lesson: invertible matrices)
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 →