Class 12 Maths, Worked in Full Past papersGet updates
Chapter 4 · Determinants

Exercise 4.5 · Q8: Solve 2x−y=−22x-y=-2⁠, 3x+4y=33x+4y=3 by the matrix method

Exercise 4.5Solving systems AX = B · Section 4.6.1
The question

Solve the system of linear equations, using matrix method.

2x−y=−23x+4y=3\begin{aligned} 2x-y&=-2\\ 3x+4y&=3 \end{aligned}
Exam answer

The system is AX=BAX = B⁠, where

A=[2−134],X=[xy], B=[−23]\begin{aligned} A &= \begin{bmatrix} 2 & -1 \\ 3 & 4 \end{bmatrix}, \\ X &= \begin{bmatrix} x \\ y \end{bmatrix},\ B = \begin{bmatrix} -2 \\ 3 \end{bmatrix} \end{aligned} ∣A∣=∣2−134∣=8+3=11|A| = \begin{vmatrix} 2 & -1 \\ 3 & 4 \end{vmatrix} = 8 + 3 = 11

∣A∣=11≠0|A| = 11 \ne 0⁠. So A−1A^{-1} exists and the system has a unique solution, X=A−1BX = A^{-1}B⁠.

adj⁡A=[41−32]A−1=1∣A∣adj⁡A=111[41−32]\begin{aligned} \operatorname{adj}A &= \begin{bmatrix} 4 & 1 \\ -3 & 2 \end{bmatrix} \\ A^{-1} &= \frac{1}{|A|}\operatorname{adj}A \\ &= \frac{1}{11}\begin{bmatrix} 4 & 1 \\ -3 & 2 \end{bmatrix} \end{aligned} X=A−1B=111[41−32][−23]=111[−8+36+6]=111[−512]=[−5111211]\begin{aligned} X &= A^{-1}B \\ &= \frac{1}{11}\begin{bmatrix} 4 & 1 \\ -3 & 2 \end{bmatrix}\begin{bmatrix} -2 \\ 3 \end{bmatrix} \\ &= \frac{1}{11}\begin{bmatrix} -8 + 3 \\ 6 + 6 \end{bmatrix} \\ &= \frac{1}{11}\begin{bmatrix} -5 \\ 12 \end{bmatrix} = \begin{bmatrix} -\frac{5}{11} \\ \frac{12}{11} \end{bmatrix} \end{aligned}

∴ x=−511, y=1211\therefore\ x = -\dfrac{5}{11},\ y = \dfrac{12}{11}⁠.

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

The one idea this problem is built on

Write the system as AX=BAX = B⁠. Since ∣A∣=11≠0|A| = 11 \ne 0⁠, AA has an inverse and the unique solution is X=A−1B=111(adj⁡A)BX = A^{-1}B = \frac{1}{11}(\operatorname{adj}A)B⁠. The answers are fractions with denominator 11, x=−511x = -\frac{5}{11}⁠, y=1211y = \frac{12}{11}⁠, and that is no surprise: we divide by ∣A∣=11|A| = 11 at the end.

Given, to find, and the plan
Given
Two linear equations in xx and yy⁠; note the −y-y and the negative right-hand side −2-2⁠.
To find
xx and yy⁠, by the matrix method.
Plan
(1) Write AX=BAX = B⁠. (2) Compute ∣A∣|A|⁠. (3) Cofactors and adj⁡A\operatorname{adj}A⁠. (4) A−1A^{-1}⁠, with a check. (5) X=111(adj⁡A)BX = \frac{1}{11}(\operatorname{adj}A)B⁠. (6) Check in both equations, keeping the fractions exact.

Basics you need

1Why X=A−1BX = A^{-1}B

If ∣A∣≠0|A| \ne 0⁠, pre-multiplying AX=BAX = B by A−1A^{-1} gives X=A−1BX = A^{-1}B⁠, the only solution (Section 4.6.1, Case I). Basics: why the inverse divides by |A|

2The 2×22\times2 determinant

For order 2 (Section 4.2.2):

∣abcd∣=ad−cb.\begin{vmatrix}a&b\\c&d\end{vmatrix}=ad-cb.

Basics: where the determinant comes from

3The adjoint of a 2×22\times2 matrix

The transpose of the matrix of cofactors; in practice, swap the diagonal entries and change the signs of the other two. Basics: transpose and identity

4Fractions with a common denominator

−1011−1211=−2211=−2\frac{-10}{11} - \frac{12}{11} = \frac{-22}{11} = -2⁠: with equal denominators, add or subtract the numerators. Basics: algebra the chapter leans on

Solution

  1. Write the system as AX=BAX = B

    A=[2−134]X=[xy],B=[−23]\begin{gathered} A=\begin{bmatrix}2&-1\\3&4\end{bmatrix}\\ X=\begin{bmatrix}x\\y\end{bmatrix},\quad B=\begin{bmatrix}-2\\3\end{bmatrix} \end{gathered}

    AA is 2×22\times2 and XX is 2×12\times1⁠, so AXAX is 2×12\times1⁠:

    AX=[2⋅x+(−1)⋅y3⋅x+4⋅y]=[2x−y3x+4y].AX=\begin{bmatrix}2\cdot x+(-1)\cdot y\\3\cdot x+4\cdot y\end{bmatrix}=\begin{bmatrix}2x-y\\3x+4y\end{bmatrix}.

    So AX=BAX = B is the given system.

    The −y-y is the coefficient −1-1⁠, and the right-hand side −2-2 goes into BB with its sign. Both minus signs will matter later.
  2. Compute ∣A∣|A|

    ∣A∣=∣2−134∣=2⋅4−3⋅(−1)=8+3=11\begin{aligned} |A|&=\begin{vmatrix}2&-1\\3&4\end{vmatrix}=2\cdot4-3\cdot(-1)\\ &=8+3=11 \end{aligned}

    ∣A∣=11≠0|A| = 11 \ne 0⁠: AA is non-singular, so the system has a unique solution and the matrix method applies.

    The other diagonal product is 3⋅(−1)=−33\cdot(-1) = -3⁠; subtracting −3-3 adds 3. A non-zero determinant is exactly the condition for A−1A^{-1} to exist (Theorem 4).
  3. Cofactors and adj⁡A\operatorname{adj}A

    A11=(−1)1+1(4)=4A12=(−1)1+2(3)=−3A21=(−1)2+1(−1)=1A22=(−1)2+2(2)=2\begin{aligned} A_{11}&=(-1)^{1+1}(4)=4\\ A_{12}&=(-1)^{1+2}(3)=-3\\ A_{21}&=(-1)^{2+1}(-1)=1\\ A_{22}&=(-1)^{2+2}(2)=2 \end{aligned} adj⁡A=[A11A21A12A22]=[41−32]\operatorname{adj}A=\begin{bmatrix}A_{11}&A_{21}\\A_{12}&A_{22}\end{bmatrix}=\begin{bmatrix}4&1\\-3&2\end{bmatrix}
    For A21A_{21}⁠, delete row 2 and column 1: the entry left is −1-1⁠, and the sign (−1)3=−1(-1)^3 = -1 makes the cofactor +1+1⁠. Shortcut check: swap 2 and 4, change −1-1 to 11 and 33 to −3-3⁠.
    Definitions 1, 2 (Section 4.4) and Definition 3 (Section 4.5.1). Lesson: the adjoint
  4. A−1A^{-1}⁠, checked by A(adj⁡A)=11IA(\operatorname{adj}A) = 11I

    A−1=1∣A∣adj⁡A=111[41−32]A^{-1}=\frac{1}{|A|}\operatorname{adj}A=\frac{1}{11}\begin{bmatrix}4&1\\-3&2\end{bmatrix}

    Row of AA times column of adj⁡A\operatorname{adj}A⁠:

    (1,1): 2(4)+(−1)(−3)=8+3=11(1,2): 2(1)+(−1)(2)=2−2=0(2,1): 3(4)+4(−3)=12−12=0(2,2): 3(1)+4(2)=3+8=11\begin{aligned} (1,1)&:\ 2(4)+(-1)(-3)=8+3=11\\ (1,2)&:\ 2(1)+(-1)(2)=2-2=0\\ (2,1)&:\ 3(4)+4(-3)=12-12=0\\ (2,2)&:\ 3(1)+4(2)=3+8=11 \end{aligned}

    So A(adj⁡A)=11IA(\operatorname{adj}A) = 11I⁠, and dividing by 11 gives AA−1=IAA^{-1} = I⁠. ✓

    Keeping 111\frac{1}{11} outside lets the check run in whole numbers. Theorem 1 says the product must be ∣A∣I=11I|A|I = 11I⁠, which it is.
    Theorem 1, Section 4.5.1; Theorem 4. Lesson: inverse of a matrix
  5. The solution X=A−1BX = A^{-1}B

    X=A−1B=111[41−32][−23]X=A^{-1}B=\frac{1}{11}\begin{bmatrix}4&1\\-3&2\end{bmatrix}\begin{bmatrix}-2\\3\end{bmatrix} x=111(4(−2)+1(3))=111(−8+3)=−511y=111((−3)(−2)+2(3))=111(6+6)=1211\begin{aligned} x&=\tfrac{1}{11}(4(-2)+1(3))\\ &=\tfrac{1}{11}(-8+3)=-\tfrac{5}{11}\\ y&=\tfrac{1}{11}((-3)(-2)+2(3))\\ &=\tfrac{1}{11}(6+6)=\tfrac{12}{11} \end{aligned}

    So x=−511x = -\frac{5}{11}⁠, y=1211y = \frac{12}{11}⁠.

    The 2×22\times2 times 2×12\times1 product is 2×12\times1⁠. In the second entry, (−3)(−2)=+6(-3)(-2) = +6⁠: two negatives give a positive. The fractions cannot be simplified because 5 and 12 have no common factor with 11.
    Section 4.6.1, Case I. Lesson: solving systems AX = B
  6. Check in both equations

    2x−y=−1011−1211=−2211=−2 ✓3x+4y=−1511+4811=3311=3 ✓\begin{aligned} 2x-y&=-\tfrac{10}{11}-\tfrac{12}{11}=-\tfrac{22}{11}=-2\ \checkmark\\ 3x+4y&=-\tfrac{15}{11}+\tfrac{48}{11}=\tfrac{33}{11}=3\ \checkmark \end{aligned}
    −2 −1 0 1 2 −1 0 1 2 3 x y P 2x − y = −2 3x + 4y = 3 P = (−5/11, 12/11) ≈ (−0.45, 1.09) the one common point
    The line 2x−y=−22x - y = -2 (slope 2) and the line 3x+4y=33x + 4y = 3 (slope −34-\tfrac34⁠) cross once, at P=(−511,1211)P = \left(-\tfrac{5}{11}, \tfrac{12}{11}\right)⁠, about (−0.45,1.09)(-0.45, 1.09)⁠.
    Fractional answers are easy to get slightly wrong, so the exact check matters. Both equations hold, so the solution is right.
Result

x=−511x = -\dfrac{5}{11}⁠, y=1211y = \dfrac{12}{11}⁠. (Textbook answer: x=−511x = \frac{-5}{11}⁠, y=1211y = \frac{12}{11}⁠.)

Check it with numbers

In decimals, x≈−0.4545x \approx -0.4545 and y≈1.0909y \approx 1.0909⁠. Then

2x−y≈−0.9091−1.0909=−2.00003x+4y≈−1.3636+4.3636=3.0000\begin{aligned} 2x-y&\approx-0.9091-1.0909\\ &=-2.0000\\ 3x+4y&\approx-1.3636+4.3636\\ &=3.0000 \end{aligned}

By elimination: 4 times the first equation plus the second gives 11x=−511x = -5⁠, so x=−511x = -\frac{5}{11}⁠, and the "11" is ∣A∣|A| again.

Common mistakes
  1. Losing the sign of the right-hand side. BB has first entry −2-2⁠, not 22⁠.
  2. Computing ∣A∣=8−3=5|A| = 8 - 3 = 5⁠. The other diagonal product is 3⋅(−1)=−33\cdot(-1) = -3⁠, and subtracting it gives 11.
  3. Forgetting the 111\frac{1}{11} and reporting x=−5x = -5⁠, y=12y = 12⁠. A quick substitution shows these fail: 2(−5)−12=−222(-5) - 12 = -22⁠, not −2-2⁠.
What to take away
  1. The denominators of the solution come from ∣A∣|A|⁠: here 11.
  2. Compute (adj⁡A)B(\operatorname{adj}A)B in whole numbers and divide by ∣A∣|A| last.
  3. Check fractional answers exactly, using a common denominator.

Every fact used, and where it comes from

FactUsed inSource
AX=BAX = B⁠, and X=A−1BX = A^{-1}B when ∣A∣≠0|A| \ne 0Steps 1, 2, 5Section 4.6.1, Case I (Lesson: solving systems AX = B)
2×22\times2 determinant =ad−cb= ad - cbStep 2Section 4.2.2
Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}Step 3Definitions 1, 2, Section 4.4
Adjoint = transpose of the cofactor matrixStep 3Definition 3, Section 4.5.1
A(adj⁡A)=∣A∣IA(\operatorname{adj}A) = |A|IStep 4Theorem 1, Section 4.5.1
A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A for ∣A∣≠0|A| \ne 0Steps 2, 4Theorem 4, Section 4.5
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 →