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

Example 9: Find XX and YY from X+YX+Y and X−YX-Y

ExamplesProperties of matrix addition · Section 3.4.3
The question

Find XX and YY⁠, if

X+Y=[5209]X + Y = \begin{bmatrix} 5 & 2 \\ 0 & 9 \end{bmatrix}

and

X−Y=[360−1].X - Y = \begin{bmatrix} 3 & 6 \\ 0 & -1 \end{bmatrix}.
Exam answer

Adding the two equations,

2X=[5+32+60+09−1]=[8808]∴ X=[4404]\begin{aligned} 2X &= \begin{bmatrix} 5 + 3 & 2 + 6 \\ 0 + 0 & 9 - 1 \end{bmatrix} = \begin{bmatrix} 8 & 8 \\ 0 & 8 \end{bmatrix} \\ \therefore\ X &= \begin{bmatrix} 4 & 4 \\ 0 & 4 \end{bmatrix} \end{aligned}

Subtracting the second equation from the first,

2Y=[5−32−60−09+1]=[2−4010]2Y = \begin{bmatrix} 5 - 3 & 2 - 6 \\ 0 - 0 & 9 + 1 \end{bmatrix} = \begin{bmatrix} 2 & -4 \\ 0 & 10 \end{bmatrix}

∴ Y=[1−205]\therefore\ Y = \begin{bmatrix} 1 & -2 \\ 0 & 5 \end{bmatrix}

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

The one idea this problem is built on

This is a pair of simultaneous equations, with matrices in place of numbers. For numbers, x+y=px + y = p and x−y=qx - y = q are solved by adding (the yy's cancel, giving 2x=p+q2x = p + q⁠) and subtracting (the xx's cancel, giving 2y=p−q2y = p - q⁠). The same moves work for matrices, because matrix addition obeys the same commutative, associative, inverse and identity laws.

Given, to find, and the plan
Given
X+Y=PX + Y = P and X−Y=QX - Y = Q⁠, where PP and QQ are the two 2×22\times2 matrices shown.
To find
The matrices XX and YY⁠.
Plan
Fix the orders. Add the equations to get 2X=P+Q2X = P + Q⁠, so X=12(P+Q)X = \frac12(P + Q)⁠. Subtract them to get 2Y=P−Q2Y = P - Q⁠, so Y=12(P−Q)Y = \frac12(P - Q)⁠. Compute entry by entry and check.

Basics you need

1Adding and subtracting matrices

Same order required; entries are added or subtracted position by position. Basics: adding only like with like

2Laws of matrix addition

Commutative A+B=B+AA + B = B + A⁠; associative (A+B)+C=A+(B+C)(A + B) + C = A + (B + C)⁠; A+O=AA + O = A⁠; A+(−A)=OA + (-A) = O⁠. These allow us to regroup and cancel exactly as with numbers. Lesson: properties of the operations

3Simultaneous equations by elimination

Add or subtract equations so that one unknown cancels. Basics: solving equations

Solution

  1. Fix the orders

    Call the two given matrices PP (the value of X+YX + Y⁠) and QQ (the value of X−YX - Y⁠). Both are 2×22\times2⁠. Since X+YX + Y is defined only when XX and YY have the same order, and the sum then has that order, XX and YY are both 2×22\times2.

    Knowing the shape of the unknowns first tells us we are looking for 4 entries in XX and 4 in YY⁠, and confirms that every sum and difference below is defined.
    Sums and differences need the same order, and keep it (Sections 3.4.1, 3.4.2).
  2. Add the two equations to eliminate YY

    Adding equal matrices to equal matrices gives equal matrices, so

    (X+Y)+(X−Y)=P+Q.(X + Y) + (X - Y) = P + Q.

    On the left, regroup using the commutative and associative laws, then cancel:

    (X+Y)+(X−Y)=(X+X)+(Y−Y)=2X+O=2X.\begin{aligned} (X + Y) + (X - Y) &= (X + X) + (Y - Y)\\ &= 2X + O = 2X. \end{aligned}

    On the right, entry by entry:

    P+Q=[5+32+60+09+(−1)]=[8808].P + Q = \begin{bmatrix} 5+3 & 2+6 \\ 0+0 & 9+(-1) \end{bmatrix} = \begin{bmatrix} 8 & 8 \\ 0 & 8 \end{bmatrix}.

    So

    2X=[8808].2X = \begin{bmatrix} 8 & 8 \\ 0 & 8 \end{bmatrix}.
    +Y+Y and −Y-Y are additive inverses, so they cancel to the zero matrix OO⁠, and X+X=1X+1X=(1+1)X=2XX + X = 1X + 1X = (1 + 1)X = 2X⁠. The regrouping is allowed because matrix addition is commutative and associative; this is exactly why the textbook writes (X+X)+(Y−Y)(X + X) + (Y - Y)⁠.
    Y+(−Y)=OY + (-Y) = O⁠, A+O=AA + O = A⁠, and (k+l)A=kA+lA(k + l)A = kA + lA (Sections 3.4.3, 3.4.4). Lesson: properties of the operations
  3. Find XX

    Multiply both sides by 12\frac12⁠:

    X=12[8808]=[4404].X = \tfrac12\begin{bmatrix} 8 & 8 \\ 0 & 8 \end{bmatrix} = \begin{bmatrix} 4 & 4 \\ 0 & 4 \end{bmatrix}.

    Entry by entry: 12⋅8=4\frac12\cdot8 = 4⁠, 12⋅8=4\frac12\cdot8 = 4⁠, 12⋅0=0\frac12\cdot0 = 0⁠, 12⋅8=4\frac12\cdot8 = 4⁠.

    12(2X)=X\frac12(2X) = X⁠, because each entry 2xij2x_{ij} becomes xijx_{ij}⁠. This is the matrix version of dividing both sides by 2.
    Scalar multiplication acts on every entry (Section 3.4.2). Basics: identity and undo
  4. Subtract the equations to eliminate XX

    Now subtract the second equation from the first:

    (X+Y)−(X−Y)=P−Q.(X + Y) - (X - Y) = P - Q.

    On the left, −(X−Y)=−X+Y-(X - Y) = -X + Y⁠, so

    (X+Y)−(X−Y)=(X−X)+(Y+Y)=O+2Y=2Y.\begin{aligned} (X + Y) - (X - Y) &= (X - X) + (Y + Y)\\ &= O + 2Y = 2Y. \end{aligned}

    On the right, entry by entry:

    P−Q=[5−32−60−09−(−1)]=[2−4010].P - Q = \begin{bmatrix} 5-3 & 2-6 \\ 0-0 & 9-(-1) \end{bmatrix} = \begin{bmatrix} 2 & -4 \\ 0 & 10 \end{bmatrix}.
    Subtracting X−YX - Y means adding (−1)(X−Y)=−X+Y(-1)(X - Y) = -X + Y⁠; the minus sign reaches both terms. Then XX and −X-X cancel and Y+Y=2YY + Y = 2Y⁠. Watch 9−(−1)=109 - (-1) = 10⁠.
    k(A+B)=kA+kBk(A + B) = kA + kB with k=−1k = -1 gives −(X−Y)=−X+Y-(X - Y) = -X + Y (Section 3.4.4).
  5. Find YY

    Y=12[2−4010]=[1−205].Y = \tfrac12\begin{bmatrix} 2 & -4 \\ 0 & 10 \end{bmatrix} = \begin{bmatrix} 1 & -2 \\ 0 & 5 \end{bmatrix}.

    Entry by entry: 12⋅2=1\frac12\cdot2 = 1⁠, 12⋅(−4)=−2\frac12\cdot(-4) = -2⁠, 12⋅0=0\frac12\cdot0 = 0⁠, 12⋅10=5\frac12\cdot10 = 5⁠.

    Same reason as Step 3: multiplying by 12\frac12 undoes the factor 2.
Result X=[4404],Y=[1−205]X = \begin{bmatrix} 4 & 4 \\ 0 & 4 \end{bmatrix}, \qquad Y = \begin{bmatrix} 1 & -2 \\ 0 & 5 \end{bmatrix}

This agrees with the textbook's solution.

Check it with numbers

X+YX + Y⁠: 4+1=54 + 1 = 5⁠, 4+(−2)=24 + (-2) = 2⁠, 0+0=00 + 0 = 0⁠, 4+5=94 + 5 = 9⁠, which is PP⁠. X−YX - Y⁠: 4−1=34 - 1 = 3⁠, 4−(−2)=64 - (-2) = 6⁠, 0−0=00 - 0 = 0⁠, 4−5=−14 - 5 = -1⁠, which is QQ⁠. Both given equations hold.

Common mistakes
  1. Sign error when subtracting a bracket. (X+Y)−(X−Y)=2Y(X + Y) - (X - Y) = 2Y⁠, not 00⁠: the minus sign turns −Y-Y into +Y+Y⁠.
  2. Forgetting the 12\frac12⁠. Adding the equations gives 2X2X⁠, not XX⁠.
  3. Subtracting the matrices in the wrong order. Y=12(P−Q)Y = \frac12(P - Q)⁠, not 12(Q−P)\frac12(Q - P)⁠, which would give −Y-Y⁠.
What to take away
  1. Given X+Y=PX + Y = P and X−Y=QX - Y = Q⁠: X=12(P+Q)X = \frac12(P + Q) and Y=12(P−Q)Y = \frac12(P - Q)⁠, for matrices just as for numbers.
  2. The laws of matrix addition (commutative, associative, identity, inverse) are what license each regrouping and cancellation.

Every fact used, and where it comes from

FactUsed inSource
Sum and difference: same order, entry by entrySteps 1, 2, 4Sections 3.4.1, 3.4.2 (Lesson: addition and scalar multiplication)
Commutative and associative laws; A+O=AA + O = A⁠; A+(−A)=OA + (-A) = OSteps 2, 4Section 3.4.3 (Lesson: properties of the operations)
(k+l)A=kA+lA(k + l)A = kA + lA⁠; k(A+B)=kA+kBk(A + B) = kA + kBSteps 2, 4Section 3.4.4
kA=[k aij]kA = [k\,a_{ij}]Steps 3, 5Section 3.4.2
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 →