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

Exercise 3.2 · Q7: Find XX and YY

Exercise 3.2Matrix equations with addition and scalar multiples · Sections 3.4.2 to 3.4.4
The question

Find XX and YY⁠, if

(i)

X+Y=[7025]X+Y=\begin{bmatrix}7&0\\2&5\end{bmatrix} andX−Y=[3003]\text{and}\quad X-Y=\begin{bmatrix}3&0\\0&3\end{bmatrix}

(ii)

2X+3Y=[2340]2X+3Y=\begin{bmatrix}2&3\\4&0\end{bmatrix} and3X+2Y=[2−2−15]\text{and}\quad 3X+2Y=\begin{bmatrix}2&-2\\-1&5\end{bmatrix}
Exam answer

(i) Adding the two equations,

2X=[7+30+02+05+3]=[10028]\begin{aligned} 2X &= \begin{bmatrix} 7+3 & 0+0 \\ 2+0 & 5+3 \end{bmatrix} \\ &= \begin{bmatrix} 10 & 0 \\ 2 & 8 \end{bmatrix} \end{aligned} ∴ X=[5014]\therefore\ X = \begin{bmatrix} 5 & 0 \\ 1 & 4 \end{bmatrix}

Subtracting the second equation from the first,

2Y=[7−30−02−05−3]=[4022]\begin{aligned} 2Y &= \begin{bmatrix} 7-3 & 0-0 \\ 2-0 & 5-3 \end{bmatrix} \\ &= \begin{bmatrix} 4 & 0 \\ 2 & 2 \end{bmatrix} \end{aligned} ∴ Y=[2011]\therefore\ Y = \begin{bmatrix} 2 & 0 \\ 1 & 1 \end{bmatrix}

(ii) Let

2X+3Y=[2340]…(1)3X+2Y=[2−2−15]…(2)\begin{aligned} 2X + 3Y &= \begin{bmatrix} 2 & 3 \\ 4 & 0 \end{bmatrix} \quad\ldots(1) \\ 3X + 2Y &= \begin{bmatrix} 2 & -2 \\ -1 & 5 \end{bmatrix} \quad\ldots(2) \end{aligned}

3×(2)−2×(1)3\times(2) - 2\times(1) gives

5X=[6−6−315]−[4680]=[2−12−1115]\begin{aligned} 5X &= \begin{bmatrix} 6 & -6 \\ -3 & 15 \end{bmatrix} - \begin{bmatrix} 4 & 6 \\ 8 & 0 \end{bmatrix} \\ &= \begin{bmatrix} 2 & -12 \\ -11 & 15 \end{bmatrix} \end{aligned} ∴ X=[25−125−1153]\therefore\ X = \begin{bmatrix} \frac25 & -\frac{12}{5} \\[1mm] -\frac{11}{5} & 3 \end{bmatrix}

3×(1)−2×(2)3\times(1) - 2\times(2) gives

5Y=[69120]−[4−4−210]=[21314−10]\begin{aligned} 5Y &= \begin{bmatrix} 6 & 9 \\ 12 & 0 \end{bmatrix} - \begin{bmatrix} 4 & -4 \\ -2 & 10 \end{bmatrix} \\ &= \begin{bmatrix} 2 & 13 \\ 14 & -10 \end{bmatrix} \end{aligned}

∴ Y=[25135145−2]\therefore\ Y = \begin{bmatrix} \dfrac25 & \dfrac{13}{5} \\[1mm] \dfrac{14}{5} & -2 \end{bmatrix}

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

The one idea this problem is built on

Matrix addition and scalar multiplication obey the same rules as ordinary algebra (commutative and associative laws, Y−Y=OY-Y=O⁠, k(A+B)=kA+kBk(A+B)=kA+kB⁠). So a pair of matrix equations is solved exactly like a pair of simultaneous equations in numbers: eliminate one unknown by adding or subtracting suitable multiples of the equations, then divide by the number left in front. The only things we never do are divide by a matrix or reorder a product; neither is needed here.

Given, to find, and the plan
Given
Two pairs of equations in unknown matrices XX and YY⁠, with 2×22\times2 right-hand sides.
To find
XX and YY in each part.
Plan
(1) Decide the order of XX and YY⁠. (2) Eliminate YY to find XX⁠. (3) Eliminate XX to find YY⁠. (4) Substitute both back into both original equations.

Basics you need

1Adding, subtracting, scaling

For matrices of the same order: add or subtract in each position; kAkA multiplies every entry by kk⁠. Basics: adding like with like

2Algebra rules that carry over

A+B=B+AA+B=B+A⁠; (A+B)+C=A+(B+C)(A+B)+C=A+(B+C)⁠; A+O=AA+O=A⁠; A+(−A)=OA+(-A)=O⁠; k(A+B)=kA+kBk(A+B)=kA+kB⁠; (k+l)A=kA+lA(k+l)A=kA+lA⁠. These are what let us rearrange and collect terms as with numbers.

3Elimination

To solve 2x+3y=p2x+3y=p⁠, 3x+2y=q3x+2y=q⁠: multiply so that one unknown has the same coefficient in both, then subtract to remove it. Basics: solving equations

4Equal matrices

Same order and equal entries in every position. If 2X=M2X=M⁠, then each entry of XX is half the matching entry of MM⁠, so X=12MX=\frac12M⁠.

Part (i): X+YX+Y and X−YX-Y given

  1. The order of XX and YY

    X+YX+Y is defined only when XX and YY have the same order, and then the sum has that order too. Since X+YX+Y is 2×22\times2⁠, both XX and YY are 2×22\times2⁠.

    Knowing the order in advance tells us what kind of object we are solving for, and guarantees that all the sums below are defined.
  2. Add the two equations to remove YY

    Adding the left sides and the right sides:

    (X+Y)+(X−Y)=[7025]+[3003].\begin{aligned}&(X+Y)+(X-Y)\\&=\begin{bmatrix}7&0\\2&5\end{bmatrix}+\begin{bmatrix}3&0\\0&3\end{bmatrix}.\end{aligned}

    On the left, regroup using the commutative and associative laws: (X+X)+(Y−Y)=2X+O=2X(X+X)+(Y-Y)=2X+O=2X⁠. On the right, add position by position:

    2X=[7+30+02+05+3]=[10028].2X=\begin{bmatrix}7+3&0+0\\2+0&5+3\end{bmatrix}=\begin{bmatrix}10&0\\2&8\end{bmatrix}.
    YY and −Y-Y cancel because −Y-Y is the additive inverse of YY⁠. This is the matrix version of adding x+y=7x+y=7 and x−y=3x-y=3 to get 2x=102x=10⁠. The regrouping is legal because matrix addition is commutative and associative (Section 3.4.3).
  3. Divide each entry by 2

    2X2X has entries twice those of XX⁠, so each entry of XX is half the matching entry:

    X=12[10028]=[5014].X=\frac12\begin{bmatrix}10&0\\2&8\end{bmatrix}=\begin{bmatrix}5&0\\1&4\end{bmatrix}.
    "Dividing by 2" means multiplying by the scalar 12\frac12⁠: 12(2X)=(12⋅2)X=X\frac12(2X)=(\frac12\cdot2)X=X⁠. This is scalar multiplication, which is always allowed.
  4. Subtract the equations to remove XX

    (X+Y)−(X−Y)=[7025]−[3003]\begin{aligned}&(X+Y)-(X-Y)\\&=\begin{bmatrix}7&0\\2&5\end{bmatrix}-\begin{bmatrix}3&0\\0&3\end{bmatrix}\end{aligned}

    On the left, X+Y−X+Y=(X−X)+(Y+Y)=2YX+Y-X+Y=(X-X)+(Y+Y)=2Y⁠. On the right:

    2Y=[7−30−02−05−3]=[4022],2Y=\begin{bmatrix}7-3&0-0\\2-0&5-3\end{bmatrix}=\begin{bmatrix}4&0\\2&2\end{bmatrix},

    and halving each entry,

    Y=[2011].Y=\begin{bmatrix}2&0\\1&1\end{bmatrix}.
    Subtracting X−YX-Y subtracts both of its parts, so −(X−Y)=−X+Y-(X-Y)=-X+Y⁠. This is the same sign rule as with numbers: (x+y)−(x−y)=2y(x+y)-(x-y)=2y⁠.
  5. Check in both original equations

    X+Y=[5+20+01+14+1]=[7025]X−Y=[5−20−01−14−1]=[3003]\begin{aligned} X+Y&=\begin{bmatrix}5+2&0+0\\1+1&4+1\end{bmatrix}=\begin{bmatrix}7&0\\2&5\end{bmatrix}\\ X-Y&=\begin{bmatrix}5-2&0-0\\1-1&4-1\end{bmatrix}=\begin{bmatrix}3&0\\0&3\end{bmatrix} \end{aligned}

    Both match the given matrices. ✓

    Substituting back catches any arithmetic slip, and confirms that the pair we found really satisfies both conditions.

Part (ii): 2X+3Y2X+3Y and 3X+2Y3X+2Y given

  1. Names and orders

    Write PP and QQ for the two right-hand sides:

    P=[2340],Q=[2−2−15].P=\begin{bmatrix}2&3\\4&0\end{bmatrix},\qquad Q=\begin{bmatrix}2&-2\\-1&5\end{bmatrix}.

    So 2X+3Y=P2X+3Y=P and 3X+2Y=Q3X+2Y=Q⁠. As in Part (i), Step 1, XX and YY must be 2×22\times2⁠.

    Short names keep the elimination readable. 2X2X and 3Y3Y have the orders of XX and YY⁠, and their sum is 2×22\times2⁠, so XX and YY are 2×22\times2⁠.
  2. Eliminate YY to find XX

    Multiply the first equation by 2 and the second by 3, so that YY has coefficient 6 in both:

    4X+6Y=2P,9X+6Y=3Q.4X+6Y=2P,\qquad 9X+6Y=3Q.

    Subtract the first from the second: (9X+6Y)−(4X+6Y)=5X(9X+6Y)-(4X+6Y)=5X⁠, so 5X=3Q−2P5X=3Q-2P⁠. Compute the two scalar multiples:

    3Q=[6−6−315],2P=[4680].3Q=\begin{bmatrix}6&-6\\-3&15\end{bmatrix},\qquad 2P=\begin{bmatrix}4&6\\8&0\end{bmatrix}. 5X=3Q−2P=[6−4−6−6−3−815−0]=[2−12−1115]\begin{aligned}5X&=3Q-2P\\&=\begin{bmatrix}6-4&-6-6\\-3-8&15-0\end{bmatrix}\\&=\begin{bmatrix}2&-12\\-11&15\end{bmatrix}\end{aligned}

    Multiply by 15\frac15⁠:

    X=[25−125−1153].X=\begin{bmatrix}\frac25&-\frac{12}{5}\\[1mm]-\frac{11}{5}&3\end{bmatrix}.
    Multiplying an equation of matrices by a number multiplies both sides, and 2(2X+3Y)=4X+6Y2(2X+3Y)=4X+6Y by the distributive law k(A+B)=kA+kBk(A+B)=kA+kB⁠. After subtracting, 9X−4X=5X9X-4X=5X by (k+l)A=kA+lA(k+l)A=kA+lA⁠, and 6Y−6Y=O6Y-6Y=O⁠.
    Elimination, as for numbers. Basics: solving equations
  3. Eliminate XX to find YY

    Multiply the first equation by 3 and the second by 2, so that XX has coefficient 6 in both:

    6X+9Y=3P,6X+4Y=2Q.6X+9Y=3P,\qquad 6X+4Y=2Q.

    Subtract the second from the first: 5Y=3P−2Q5Y=3P-2Q⁠.

    3P=[69120],2Q=[4−4−210].3P=\begin{bmatrix}6&9\\12&0\end{bmatrix},\qquad 2Q=\begin{bmatrix}4&-4\\-2&10\end{bmatrix}. 5Y=3P−2Q=[6−49−(−4)12−(−2)0−10]=[21314−10]\begin{aligned}5Y&=3P-2Q\\&=\begin{bmatrix}6-4&9-(-4)\\12-(-2)&0-10\end{bmatrix}\\&=\begin{bmatrix}2&13\\14&-10\end{bmatrix}\end{aligned} Y=[25135145−2].Y=\begin{bmatrix}\frac25&\frac{13}{5}\\[1mm]\frac{14}{5}&-2\end{bmatrix}.
    Two entries involve subtracting a negative: 9−(−4)=139-(-4)=13 and 12−(−2)=1412-(-2)=14⁠. Finding YY by its own elimination (rather than substituting XX⁠) avoids fractions until the very end.
  4. Check in both original equations

    2X2X has rows (45, −245)(\frac45,\ -\frac{24}{5})⁠, (−225, 6)(-\frac{22}{5},\ 6)⁠, and 3Y3Y has rows (65, 395)(\frac65,\ \frac{39}{5})⁠, (425, −6)(\frac{42}{5},\ -6)⁠. So

    2X+3Y=[4+65−24+395−22+4256−6]=[2340]=P.\begin{aligned}2X+3Y&=\begin{bmatrix}\frac{4+6}{5}&\frac{-24+39}{5}\\[1mm]\frac{-22+42}{5}&6-6\end{bmatrix}\\&=\begin{bmatrix}2&3\\4&0\end{bmatrix}=P.\end{aligned}

    This is the given first right-hand side. ✓

    3X3X has rows (65, −365)(\frac65,\ -\frac{36}{5})⁠, (−335, 9)(-\frac{33}{5},\ 9)⁠, and 2Y2Y has rows (45, 265)(\frac45,\ \frac{26}{5})⁠, (285, −4)(\frac{28}{5},\ -4)⁠. So

    3X+2Y=[6+45−36+265−33+2859−4]=[2−2−15]=Q.\begin{aligned}3X+2Y&=\begin{bmatrix}\frac{6+4}{5}&\frac{-36+26}{5}\\[1mm]\frac{-33+28}{5}&9-4\end{bmatrix}\\&=\begin{bmatrix}2&-2\\-1&5\end{bmatrix}=Q.\end{aligned}

    This is the given second right-hand side. ✓

    Both equations are satisfied, so the pair is a solution. It is the only one: Part (ii), Steps 2 and 3 show that any pair satisfying both equations must have 5X=3Q−2P5X=3Q-2P and 5Y=3P−2Q5Y=3P-2Q⁠, so XX and YY are forced to be the matrices found.
Result

(i)

X=[5014],Y=[2011]X=\begin{bmatrix}5&0\\1&4\end{bmatrix},\qquad Y=\begin{bmatrix}2&0\\1&1\end{bmatrix}

(ii)

X=[25−125−1153]X=\begin{bmatrix}\frac25&-\frac{12}{5}\\[1mm]-\frac{11}{5}&3\end{bmatrix} Y=[25135145−2]Y=\begin{bmatrix}\frac25&\frac{13}{5}\\[1mm]\frac{14}{5}&-2\end{bmatrix}

(Textbook answer: the same matrices.)

Check it with numbers

A second route for Part (ii). Adding the equations gives 5X+5Y=P+Q5X+5Y=P+Q⁠; subtracting the first from the second gives X−Y=Q−PX-Y=Q-P⁠. With our answers, X+YX+Y has rows (45, 15)(\frac45,\ \frac15)⁠, (35, 1)(\frac35,\ 1)⁠, and 15(P+Q)\frac15(P+Q) has rows 15(4, 1)\frac15(4,\ 1)⁠, 15(3, 5)\frac15(3,\ 5)⁠: the same. ✓ And X−YX-Y has rows (0, −5)(0,\ -5)⁠, (−5, 5)(-5,\ 5)⁠, while Q−PQ-P has rows (2−2, −2−3)(2-2,\ -2-3)⁠, (−1−4, 5−0)(-1-4,\ 5-0)⁠, that is (0,−5)(0,-5)⁠, (−5,5)(-5,5)⁠. ✓

Common mistakes
  1. Sign errors when subtracting a negative entry, such as 9−(−4)9-(-4)⁠, which is 13, not 5.
  2. "Dividing by a matrix". There is no such operation. We only ever divide by the number in front of XX or YY⁠, which is multiplication by a scalar.
  3. Forgetting to multiply both sides. When the equation 2X+3Y=P2X+3Y=P is tripled, PP must be tripled too.
  4. Skipping the check. With fractions it is easy to slip; substituting back is quick and decisive.
What to take away
  1. Simultaneous matrix equations involving only sums and scalar multiples are solved by elimination, just like number equations.
  2. The algebra is justified by the properties of matrix addition and scalar multiplication.
  3. Always substitute the answers back into both original equations.

Every fact used, and where it comes from

FactUsed inSource
Sum defined only for equal orders; result has that orderPart (i), Step 1; Part (ii), Step 1Section 3.4.1
Scalar multiple, negative, differencePart (i), Steps 3, 4; Part (ii), Steps 2, 3Section 3.4.2 (Lesson: scalar multiplication)
Commutative and associative laws; OO is the additive identity; −Y-Y is the additive inversePart (i), Steps 2, 4Section 3.4.3 (Lesson: properties)
k(A+B)=kA+kBk(A+B)=kA+kB and (k+l)A=kA+lA(k+l)A=kA+lAPart (ii), Steps 2, 3Section 3.4.4
The same method for X+YX+Y⁠, X−YX-YPart (i)Example 9
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 →