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

Example 8: Find XX with 2A+3X=5B2A+3X=5B

ExamplesProperties of addition and scalar multiplication · Sections 3.4.3 and 3.4.4
The question

If

A=[804−236]A = \begin{bmatrix} 8 & 0 \\ 4 & -2 \\ 3 & 6 \end{bmatrix}

and

B=[2−242−51],B =\begin{bmatrix} 2 & -2 \\ 4 & 2 \\ -5 & 1 \end{bmatrix},

then find the matrix XX⁠, such that 2A+3X=5B2A + 3X = 5B⁠.

Exam answer

2A+3X=5B⇒3X=5B−2A2A + 3X = 5B \Rightarrow 3X = 5B - 2A

⇒X=13(5B−2A)\Rightarrow X = \frac13(5B - 2A)

5B=[10−102010−255]5B = \begin{bmatrix} 10 & -10 \\ 20 & 10 \\ -25 & 5 \end{bmatrix} 2A=[1608−4612]2A = \begin{bmatrix} 16 & 0 \\ 8 & -4 \\ 6 & 12 \end{bmatrix} 5B−2A=[10−16−10−020−810+4−25−65−12]=[−6−101214−31−7]\begin{aligned} 5B - 2A &= \begin{bmatrix} 10 - 16 & -10 - 0 \\ 20 - 8 & 10 + 4 \\ -25 - 6 & 5 - 12 \end{bmatrix} \\ &= \begin{bmatrix} -6 & -10 \\ 12 & 14 \\ -31 & -7 \end{bmatrix} \end{aligned}

∴ X=[−2−1034143−313−73]\therefore\ X = \begin{bmatrix} -2 & -\dfrac{10}{3} \\[2pt] 4 & \dfrac{14}{3} \\[2pt] -\dfrac{31}{3} & -\dfrac73 \end{bmatrix}

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

The one idea this problem is built on

A matrix equation like 2A+3X=5B2A + 3X = 5B can be solved just like the number equation 2a+3x=5b2a + 3x = 5b⁠: subtract 2A2A from both sides, then divide by 3. What makes this legal for matrices is a short list of properties of matrix addition and scalar multiplication (commutative law, additive inverse, additive identity), and we name each one as we use it. Only at the end do we compute with the actual entries.

Given, to find, and the plan
Given
Two 3×23\times2 matrices AA⁠, BB and the equation 2A+3X=5B2A + 3X = 5B⁠.
To find
The matrix XX⁠.
Plan
Find the order of XX⁠. Rearrange the equation to X=13(5B−2A)X = \frac13(5B - 2A)⁠, justifying each step. Compute 5B5B⁠, 2A2A⁠, 5B−2A5B - 2A and finally 13(5B−2A)\frac13(5B - 2A)⁠. Check by substituting.

Basics you need

1Scalar multiples and differences

kA=[k aij]kA = [k\,a_{ij}] (every entry times kk⁠); A−B=A+(−1)BA - B = A + (-1)B⁠, so (A−B)ij=aij−bij(A - B)_{ij} = a_{ij} - b_{ij}⁠. Basics: adding only like with like

2Properties of matrix addition

For matrices of the same order: A+B=B+AA + B = B + A (commutative); (A+B)+C=A+(B+C)(A + B) + C = A + (B + C) (associative); A+O=AA + O = A (OO⁠, the zero matrix, is the additive identity); A+(−A)=OA + (-A) = O (−A-A is the additive inverse). Lesson: properties of the operations

3Undoing a scalar

13(3X)=X\frac13(3X) = X⁠, because each entry becomes 13(3xij)=xij\frac13(3x_{ij}) = x_{ij}⁠. Basics: identity and undo

4Solving 2a+3x=5b2a + 3x = 5b for numbers

Subtract 2a2a⁠, divide by 3: x=13(5b−2a)x = \frac13(5b - 2a)⁠. The matrix solution follows the same steps. Basics: solving equations

Solution

  1. Find the order of XX

    AA and BB are both 3×23\times2⁠, so 2A2A and 5B5B are 3×23\times2⁠. For 2A+3X2A + 3X to be defined, 3X3X must also be 3×23\times2⁠, so XX is a 3×23\times2 matrix.

    We are looking for an unknown matrix, so we should know its shape before hunting for its entries. A sum is defined only for equal orders, and a scalar multiple keeps the order, so XX has the same order as AA⁠.
    Sums need equal orders (Section 3.4.1); kXkX has the order of XX (Section 3.4.2).
  2. Isolate 3X3X

    Add −2A-2A to both sides of 2A+3X=5B2A + 3X = 5B⁠:

    2A+3X−2A=5B−2A2A−2A+3X=5B−2AO+3X=5B−2A3X=5B−2A\begin{aligned} 2A + 3X - 2A &= 5B - 2A\\ 2A - 2A + 3X &= 5B - 2A\\ O + 3X &= 5B - 2A\\ 3X &= 5B - 2A \end{aligned}

    The reasons, line by line: adding the same matrix −2A-2A to equal matrices gives equal matrices; then the commutative law 3X+(−2A)=(−2A)+3X3X + (-2A) = (-2A) + 3X⁠, with the associative law to regroup, lets us bring 2A2A and −2A-2A together; then 2A+(−2A)=O2A + (-2A) = O because −2A-2A is the additive inverse of 2A2A⁠; finally O+3X=3XO + 3X = 3X because OO is the additive identity.

    These are the matrix versions of what we do without thinking for numbers. Matrix multiplication is not commutative (Section 3.4.5, after Example 14), so in matrix algebra we should never assume an order can be swapped unless a property says so. Here only addition is being reordered, and addition of matrices is commutative.
    Commutative law, additive inverse, additive identity: Section 3.4.3 (i), (iv), (iii). Lesson: properties of the operations
  3. Isolate XX

    Multiply both sides of 3X=5B−2A3X = 5B - 2A by the scalar 13\frac13⁠:

    X=13 (5B−2A).X = \tfrac13\,(5B - 2A).
    Every entry of 3X3X is 3xij3x_{ij}⁠, and 13⋅3xij=xij\frac13\cdot3x_{ij} = x_{ij}⁠, so 13(3X)=X\frac13(3X) = X⁠. Multiplying equal matrices by the same scalar keeps them equal. This is the matrix version of "divide both sides by 3".
    (kl)A=k(lA)(kl)A = k(lA) holds entry by entry because multiplication of numbers is associative: 13(3xij)=(13⋅3)xij=1⋅xij\frac13(3x_{ij}) = (\frac13\cdot3)x_{ij} = 1\cdot x_{ij}⁠. Basics: identity and undo
  4. Compute 5B5B and 2A2A

    Multiply every entry of BB by 5, and every entry of AA by 2:

    5B=[5⋅25⋅(−2)5⋅45⋅25⋅(−5)5⋅1]=[10−102010−255],5B = \begin{bmatrix} 5\cdot2 & 5\cdot(-2) \\ 5\cdot4 & 5\cdot2 \\ 5\cdot(-5) & 5\cdot1 \end{bmatrix} = \begin{bmatrix} 10 & -10 \\ 20 & 10 \\ -25 & 5 \end{bmatrix}, 2A=[2⋅82⋅02⋅42⋅(−2)2⋅32⋅6]=[1608−4612].2A = \begin{bmatrix} 2\cdot8 & 2\cdot0 \\ 2\cdot4 & 2\cdot(-2) \\ 2\cdot3 & 2\cdot6 \end{bmatrix} = \begin{bmatrix} 16 & 0 \\ 8 & -4 \\ 6 & 12 \end{bmatrix}.
    The scalar multiplies every one of the six entries. Writing the products out once makes the sign of each entry clear (for example 5⋅(−5)=−255\cdot(-5) = -25⁠).
    kA=[k aij]kA = [k\,a_{ij}] (Section 3.4.2). Lesson: addition and scalar multiplication
  5. Compute 5B−2A5B - 2A

    Subtract corresponding entries, (5B−2A)ij=5bij−2aij(5B - 2A)_{ij} = 5b_{ij} - 2a_{ij}⁠:

    row 1:10−16=−6,−10−0=−10row 2:20−8=12,10−(−4)=14row 3:−25−6=−31,5−12=−7\begin{aligned} \text{row 1:}&\quad 10 - 16 = -6, \quad -10 - 0 = -10\\ \text{row 2:}&\quad 20 - 8 = 12, \quad 10 - (-4) = 14\\ \text{row 3:}&\quad -25 - 6 = -31, \quad 5 - 12 = -7 \end{aligned} 5B−2A=[−6−101214−31−7].5B - 2A = \begin{bmatrix} -6 & -10 \\ 12 & 14 \\ -31 & -7 \end{bmatrix}.
    Both are 3×23\times2⁠, so the difference is defined. The entry 10−(−4)=1410 - (-4) = 14 is the one to watch: subtracting a negative number adds it.
  6. Multiply by 13\tfrac13

    Divide each entry by 3:

    x11=−63=−2,x12=−103,x21=123=4,x22=143,x31=−313,x32=−73.\begin{aligned} x_{11} &= \tfrac{-6}{3} = -2, & x_{12} &= -\tfrac{10}{3},\\ x_{21} &= \tfrac{12}{3} = 4, & x_{22} &= \tfrac{14}{3},\\ x_{31} &= -\tfrac{31}{3}, & x_{32} &= -\tfrac{7}{3}. \end{aligned} X=[−2−1034143−313−73].X = \begin{bmatrix} -2 & -\tfrac{10}{3} \\[2pt] 4 & \tfrac{14}{3} \\[2pt] -\tfrac{31}{3} & -\tfrac73 \end{bmatrix}.
    Some entries divide exactly by 3 and some do not. Fractions are perfectly good matrix entries, so we leave −103-\frac{10}{3}⁠, 143\frac{14}{3}⁠, −313-\frac{31}{3}⁠, −73-\frac73 as fractions rather than rounding.
Result X=13(5B−2A)=[−2−1034143−313−73]X = \tfrac13(5B - 2A) = \begin{bmatrix} -2 & -\tfrac{10}{3} \\[2pt] 4 & \tfrac{14}{3} \\[2pt] -\tfrac{31}{3} & -\tfrac73 \end{bmatrix}

This agrees with the textbook's solution.

Check it with numbers

Substitute back. 3X3X is 5B−2A5B - 2A from Step 5. Adding 2A2A from Step 4, entry by entry:

16+(−6)=10,0+(−10)=−10,8+12=20,−4+14=10,6+(−31)=−25,12+(−7)=5.\begin{aligned} 16 + (-6) &= 10, & 0 + (-10) &= -10,\\ 8 + 12 &= 20, & -4 + 14 &= 10,\\ 6 + (-31) &= -25, & 12 + (-7) &= 5. \end{aligned}

That is 5B5B⁠, so 2A+3X=5B2A + 3X = 5B holds.

Common mistakes
  1. Forgetting to scale. XX is 13(5B−2A)\frac13(5B - 2A)⁠, not 5B−2A5B - 2A⁠.
  2. "Dividing by a matrix". Only the scalar 3 is divided out. There is no such thing as dividing by a matrix.
  3. Sign slip in 10−(−4)10 - (-4)⁠. It is 1414⁠, not 6.
What to take away
  1. Linear matrix equations with scalars are solved like number equations, using the properties of matrix addition and scalar multiplication.
  2. Rearrange in letters first (X=13(5B−2A)X = \frac13(5B - 2A)⁠); compute with entries last. It keeps the arithmetic to one clean pass.
  3. Always check by substituting XX back.

Every fact used, and where it comes from

FactUsed inSource
Sum defined only for equal ordersStep 1Section 3.4.1
kA=[k aij]kA = [k\,a_{ij}]⁠; A−B=A+(−1)BA - B = A + (-1)BSteps 1, 4, 5, 6Section 3.4.2 (Lesson: addition and scalar multiplication)
Commutative law; additive identity OO⁠; additive inverse −A-AStep 2Section 3.4.3 (i), (iii), (iv) (Lesson: properties of the operations)
13(3X)=X\frac13(3X) = X⁠, from (kl)A=k(lA)(kl)A = k(lA)Step 3Entrywise from associativity of multiplication of numbers (not listed separately in the book)
Matrix multiplication is not commutativeStep 2 (remark)Section 3.4.5, remark after Example 14
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 →