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

Exercise 4.5 · Q9: Solve 4x−3y=34x-3y=3⁠, 3x−5y=73x-5y=7 by the matrix method

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

Solve system of linear equations, using matrix method, in Exercises 7 to 14.

9.

4x−3y=33x−5y=7\begin{aligned} 4x - 3y &= 3\\ 3x - 5y &= 7 \end{aligned}
Exam answer

The system is AX=BAX = B⁠, where

A=[4−33−5],X=[xy], B=[37]\begin{aligned} A &= \begin{bmatrix} 4 & -3 \\ 3 & -5 \end{bmatrix}, \\ X &= \begin{bmatrix} x \\ y \end{bmatrix},\ B = \begin{bmatrix} 3 \\ 7 \end{bmatrix} \end{aligned} ∣A∣=∣4−33−5∣=−20+9=−11|A| = \begin{vmatrix} 4 & -3 \\ 3 & -5 \end{vmatrix} = -20 + 9 = -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=[−53−34]A−1=1∣A∣adj⁡A=−111[−53−34]\begin{aligned} \operatorname{adj}A &= \begin{bmatrix} -5 & 3 \\ -3 & 4 \end{bmatrix} \\ A^{-1} &= \frac{1}{|A|}\operatorname{adj}A \\ &= -\frac{1}{11}\begin{bmatrix} -5 & 3 \\ -3 & 4 \end{bmatrix} \end{aligned} X=A−1B=−111[−53−34][37]=−111[−15+21−9+28]=−111[619]=[−611−1911]\begin{aligned} X &= A^{-1}B \\ &= -\frac{1}{11}\begin{bmatrix} -5 & 3 \\ -3 & 4 \end{bmatrix}\begin{bmatrix} 3 \\ 7 \end{bmatrix} \\ &= -\frac{1}{11}\begin{bmatrix} -15 + 21 \\ -9 + 28 \end{bmatrix} \\ &= -\frac{1}{11}\begin{bmatrix} 6 \\ 19 \end{bmatrix} = \begin{bmatrix} -\frac{6}{11} \\ -\frac{19}{11} \end{bmatrix} \end{aligned}

∴ x=−611, y=−1911\therefore\ x = -\dfrac{6}{11},\ y = -\dfrac{19}{11}⁠.

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

The one idea this problem is built on

Two equations in two unknowns are one matrix equation AX=BAX = B⁠: the coefficients form AA⁠, the unknowns form XX and the right-hand sides form BB⁠. If ∣A∣≠0|A| \ne 0⁠, the matrix AA has an inverse, and multiplying both sides by A−1A^{-1} "undoes" AA exactly the way dividing undoes multiplying for numbers: X=A−1BX = A^{-1}B, with A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj} A⁠. The whole solution is: find ∣A∣|A|⁠, build adj⁡A\operatorname{adj} A⁠, divide, multiply.

Given, to find, and the plan
Given
The equations 4x−3y=34x - 3y = 3 and 3x−5y=73x - 5y = 7⁠.
To find
The values of xx and yy that satisfy both, using the matrix method.
Plan
(1) Write the system as AX=BAX = B⁠. (2) Compute ∣A∣|A|⁠; it must not be 0. (3) Find the cofactors and adj⁡A\operatorname{adj} A⁠. (4) Form A−1A^{-1} and check AA−1=IAA^{-1} = I⁠. (5) Compute X=A−1BX = A^{-1}B entry by entry. (6) Check the answer in both equations.

Basics you need

1A system is a matrix product

Row ii of AA times the column XX gives the left side of equation ii⁠. A 2×22\times2 matrix times a 2×12\times1 column is a 2×12\times1 column, so AX=BAX = B is two number equations at once, by equality of matrices. Basics: matrix facts the chapter uses

2The 2×22\times2 determinant

For rows (a,b)(a, b) and (c,d)(c, d)⁠, the determinant is ad−bcad - bc⁠: the product down the main diagonal minus the product down the other diagonal. Basics: where the determinant comes from

3Minors, cofactors and the adjoint

The minor MijM_{ij} is what remains after deleting row ii and column jj⁠; the cofactor is Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij} (signs + −+\,- / − +-\,+⁠). The adjoint is the transpose of the matrix of cofactors. Basics: the + − + sign pattern

4The inverse divides by ∣A∣|A|

A(adj⁡A)=∣A∣ IA(\operatorname{adj} A) = |A|\,I (Theorem 1). So when ∣A∣≠0|A| \ne 0⁠, the matrix 1∣A∣adj⁡A\frac{1}{|A|}\operatorname{adj} A times AA gives II⁠: it is A−1A^{-1}⁠. Basics: why the inverse divides by |A|

5What ∣A∣≠0|A| \ne 0 means for two lines

Each equation is a straight line. ∣A∣≠0|A| \ne 0 means the lines have different slopes, so they cross at exactly one point: the system has exactly one solution. Basics: two lines, cross, parallel or the same

Solution

  1. Write the system as AX=BAX = B

    Put the coefficients of xx and yy in the rows of AA (one row per equation, xx-column first), the unknowns in XX⁠, and the right-hand sides in BB⁠:

    A=[4−33−5],A = \begin{bmatrix} 4 & -3 \\ 3 & -5 \end{bmatrix}, X=[xy],B=[37].X = \begin{bmatrix} x \\ y \end{bmatrix},\quad B = \begin{bmatrix} 3 \\ 7 \end{bmatrix}.

    Orders: AA is 2×22\times2⁠, XX is 2×12\times1⁠, so AXAX is defined (2 columns of AA⁠, 2 rows of XX⁠) and is 2×12\times1⁠, the same order as BB⁠. Multiplying out,

    AX=[4x−3y3x−5y],AX = \begin{bmatrix} 4x - 3y \\ 3x - 5y \end{bmatrix},

    so AX=BAX = B says exactly 4x−3y=34x - 3y = 3 and 3x−5y=73x - 5y = 7⁠.

    Writing the product out is how we know AA was built correctly: each entry of AXAX must reproduce the left side of one equation. Note the coefficient of yy in both equations is negative, so the second column of AA holds −3-3 and −5-5⁠, signs included.
    Section 4.6.1 writes any system as AX=BAX = B in this way. A product is row times column (Section 3.4.5). Lesson: solving systems AX = B
  2. Compute ∣A∣|A| and decide whether there is a unique solution

    ∣A∣=∣4−33−5∣=4(−5)−(−3)(3)=−20+9=−11.\begin{aligned} |A| &= \begin{vmatrix} 4 & -3 \\ 3 & -5 \end{vmatrix} = 4(-5) - (-3)(3)\\ &= -20 + 9 = -11. \end{aligned}

    Since ∣A∣=−11≠0|A| = -11 \ne 0⁠, AA is nonsingular, so A−1A^{-1} exists and the system has a unique solution.

    Here is why the solution is unique. If XX solves AX=BAX = B⁠, multiply both sides on the left by A−1A^{-1}⁠: A−1(AX)=A−1BA^{-1}(AX) = A^{-1}B⁠, so (A−1A)X=A−1B(A^{-1}A)X = A^{-1}B⁠, that is IX=X=A−1BIX = X = A^{-1}B⁠. So any solution must equal A−1BA^{-1}B⁠. And A−1BA^{-1}B really is a solution, because A(A−1B)=(AA−1)B=IB=BA(A^{-1}B) = (AA^{-1})B = IB = B⁠. Geometrically, the slopes are 43\frac{4}{3} and 35\frac{3}{5}⁠, which differ, so the two lines cross once.
    Case I of Section 4.6.1: if AA is nonsingular, X=A−1BX = A^{-1}B is the unique solution. Definition 5, Section 4.5: nonsingular means ∣A∣≠0|A| \ne 0⁠. Basics: two lines
  3. Find the four cofactors and adj⁡A\operatorname{adj} A

    For a 2×22\times2 matrix, deleting a row and a column leaves a single entry, and that entry is the minor. With a11=4a_{11} = 4⁠, a12=−3a_{12} = -3⁠, a21=3a_{21} = 3⁠, a22=−5a_{22} = -5⁠:

    A11=(−1)1+1M11=+(−5)=−5,A12=(−1)1+2M12=−(3)=−3,A21=(−1)2+1M21=−(−3)=3,A22=(−1)2+2M22=+(4)=4.\begin{aligned} A_{11} &= (-1)^{1+1} M_{11} = +(-5) = -5,\\ A_{12} &= (-1)^{1+2} M_{12} = -(3) = -3,\\ A_{21} &= (-1)^{2+1} M_{21} = -(-3) = 3,\\ A_{22} &= (-1)^{2+2} M_{22} = +(4) = 4. \end{aligned}

    The matrix of cofactors, and its transpose, the adjoint:

    [A11A12A21A22]=[−5−334],\begin{bmatrix} A_{11} & A_{12} \\ A_{21} & A_{22} \end{bmatrix} = \begin{bmatrix} -5 & -3 \\ 3 & 4 \end{bmatrix}, adj⁡A=[A11A21A12A22]=[−53−34].\operatorname{adj} A = \begin{bmatrix} A_{11} & A_{21} \\ A_{12} & A_{22} \end{bmatrix} = \begin{bmatrix} -5 & 3 \\ -3 & 4 \end{bmatrix}.

    Shortcut check: swapping a11a_{11} and a22a_{22} (4 and −5-5⁠) and changing the signs of a12a_{12} and a21a_{21} (−3→3-3 \to 3⁠, 3→−33 \to -3⁠) gives the same matrix.

    M11M_{11} is what is left after deleting row 1 and column 1, namely −5-5⁠; M12M_{12} is left after deleting row 1 and column 2, namely 33⁠; and so on. The sign (−1)i+j(-1)^{i+j} is ++ when i+ji+j is even and −- when it is odd. The transpose matters: cofactor A12A_{12} goes to position (2, 1) of the adjoint.
    Definitions 1 and 2, Section 4.4 (minor, cofactor); Definition 3, Section 4.5.1 (adjoint); the Remark after Example 12 (the 2×22\times2 shortcut). Basics: the sign pattern
  4. Form A−1A^{-1} and check that AA−1=IAA^{-1} = I

    A−1=1∣A∣adj⁡A=−111[−53−34].A^{-1} = \frac{1}{|A|}\operatorname{adj} A = -\frac{1}{11}\begin{bmatrix} -5 & 3 \\ -3 & 4 \end{bmatrix}.

    Check: compute A(adj⁡A)A(\operatorname{adj} A) entry by entry (row of AA times column of adj⁡A\operatorname{adj} A⁠):

    (1,1): 4(−5)+(−3)(−3)=−20+9=−11,(1,2): 4(3)+(−3)(4)=12−12=0,(2,1): 3(−5)+(−5)(−3)=−15+15=0,(2,2): 3(3)+(−5)(4)=9−20=−11.\begin{aligned} (1,1)&:\ 4(-5) + (-3)(-3)\\ &= -20 + 9 = -11,\\ (1,2)&:\ 4(3) + (-3)(4)\\ &= 12 - 12 = 0,\\ (2,1)&:\ 3(-5) + (-5)(-3)\\ &= -15 + 15 = 0,\\ (2,2)&:\ 3(3) + (-5)(4)\\ &= 9 - 20 = -11. \end{aligned} A(adj⁡A)=[−1100−11]=−11 I,A(\operatorname{adj} A) = \begin{bmatrix} -11 & 0 \\ 0 & -11 \end{bmatrix} = -11\,I,

    so

    AA−1=−111 A(adj⁡A)=−111(−11 I)=I.\begin{aligned} AA^{-1} &= -\frac{1}{11}\,A(\operatorname{adj} A)\\ &= -\frac{1}{11}(-11\,I) = I. \end{aligned}
    The check costs four short products and catches almost every slip in the cofactors. The diagonal entries must come out as ∣A∣|A| and the off-diagonal ones as 0, exactly as Theorem 1 says. We keep the factor −111-\frac{1}{11} outside the matrix to avoid fractions inside it.
    Theorem 1, Section 4.5: A(adj⁡A)=∣A∣ IA(\operatorname{adj} A) = |A|\,I⁠. Theorem 4: A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj} A⁠. Basics: why the inverse divides by |A|
  5. Compute X=A−1BX = A^{-1}B⁠, entry by entry

    A−1A^{-1} is 2×22\times2 and BB is 2×12\times1⁠, so A−1BA^{-1}B is defined and is 2×12\times1⁠, like XX⁠. First multiply adj⁡A\operatorname{adj} A by BB⁠:

    row 1: (−5)(3)+3(7)=−15+21=6,row 2: (−3)(3)+4(7)=−9+28=19.\begin{aligned} \text{row 1}&:\ (-5)(3) + 3(7)\\ &= -15 + 21 = 6,\\ \text{row 2}&:\ (-3)(3) + 4(7)\\ &= -9 + 28 = 19. \end{aligned}

    Then divide by ∣A∣=−11|A| = -11⁠:

    X=[xy]=−111[619]=[−611−1911].X = \begin{bmatrix} x \\ y \end{bmatrix} = -\frac{1}{11}\begin{bmatrix} 6 \\ 19 \end{bmatrix} = \begin{bmatrix} -\frac{6}{11} \\ -\frac{19}{11} \end{bmatrix}.

    By equality of matrices, x=−611x = -\frac{6}{11}⁠, y=−1911y = -\frac{19}{11}.

    The order matters: X=A−1BX = A^{-1}B⁠, never BA−1BA^{-1}⁠. We got there by multiplying AX=BAX = B on the left by A−1A^{-1}⁠, and here BA−1BA^{-1} is not even defined (a 2×12\times1 times a 2×22\times2⁠). Multiplying adj⁡A\operatorname{adj} A by BB first keeps the arithmetic in whole numbers until the last line.
    Equality of matrices (Section 3.3.1): two columns are equal when their entries are equal one by one. Basics: rows, columns and positions
  6. Check the answer in both original equations

    4x−3y=4(−611)−3(−1911)=−2411+5711=3311=3,3x−5y=3(−611)−5(−1911)=−1811+9511=7711=7.\begin{aligned} 4x - 3y &= 4\left(-\tfrac{6}{11}\right) - 3\left(-\tfrac{19}{11}\right)\\ &= -\tfrac{24}{11} + \tfrac{57}{11} = \tfrac{33}{11} = 3,\\ 3x - 5y &= 3\left(-\tfrac{6}{11}\right) - 5\left(-\tfrac{19}{11}\right)\\ &= -\tfrac{18}{11} + \tfrac{95}{11} = \tfrac{77}{11} = 7. \end{aligned}

    Both equations hold, so the solution is correct.

    A check in only one equation is not enough: many wrong pairs satisfy one of the two lines. Checking both confirms the point lies on both lines, which is what "solution of the system" means.
−3−2−10123−4−3−2−10123 xy 4x − 3y = 3 3x − 5y = 7 (−6/11, −19/11)
Each equation is a line. Their slopes, 43\frac{4}{3} and 35\frac{3}{5}⁠, differ (that is what ∣A∣≠0|A| \ne 0 says), so they cross at exactly one point, about (−0.545, −1.727)(-0.545,\ -1.727)⁠.
Result

∣A∣=−11≠0|A| = -11 \ne 0⁠, so AA is invertible with

A−1=−111[−53−34],A^{-1} = -\frac{1}{11}\begin{bmatrix} -5 & 3 \\ -3 & 4 \end{bmatrix},

and the unique solution is

x=−611,y=−1911.x = -\frac{6}{11},\qquad y = -\frac{19}{11}.

(Textbook answer: x=−611x = \frac{-6}{11}⁠, y=−1911y = \frac{-19}{11}⁠.)

Check it with numbers

Solve again by elimination, without matrices. Multiply the first equation by 5 and the second by 3: 20x−15y=1520x - 15y = 15 and 9x−15y=219x - 15y = 21⁠. Subtracting, 11x=−611x = -6⁠, so x=−611x = -\frac{6}{11}⁠. Then 3y=4x−3=−2411−3311=−57113y = 4x - 3 = -\frac{24}{11} - \frac{33}{11} = -\frac{57}{11}⁠, so y=−1911y = -\frac{19}{11}⁠. Same answer.

In decimals, x≈−0.545455x \approx -0.545455 and y≈−1.727273y \approx -1.727273⁠. Then

4x−3y≈−2.181818+5.181818=3.000000,3x−5y≈−1.636364+8.636364=7.000000.\begin{aligned} 4x - 3y &\approx -2.181818 + 5.181818\\ &= 3.000000,\\ 3x - 5y &\approx -1.636364 + 8.636364\\ &= 7.000000. \end{aligned}
Common mistakes
  1. Losing the sign of ∣A∣|A|⁠. ∣A∣=−20−(−9)|A| = -20 - (-9) is −11-11⁠, not −29-29 or 1111⁠. Dropping the minus in 1∣A∣\frac{1}{|A|} gives x=611x = \frac{6}{11}⁠, y=1911y = \frac{19}{11}⁠, which fails both equations.
  2. Using the matrix of cofactors as the adjoint. The adjoint is its transpose: −3-3 and 33 swap places.
  3. Writing X=BA−1X = BA^{-1}⁠. That product is not defined here, and in general matrix multiplication is not commutative. It is A−1BA^{-1}B⁠.
  4. Dropping the signs of the coefficients when building AA⁠. The yy-column is −3,−5-3, -5⁠, not 3,53, 5⁠.
What to take away
  1. The matrix method is always the same four moves: AX=BAX = B⁠; ∣A∣≠0|A| \ne 0⁠; A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj} A⁠; X=A−1BX = A^{-1}B⁠.
  2. For a 2×22\times2 matrix, adj⁡A\operatorname{adj} A is "swap the diagonal, negate the other two". Check it with A(adj⁡A)=∣A∣ IA(\operatorname{adj} A) = |A|\,I⁠.
  3. Fractional answers are normal. Keep 1∣A∣\frac{1}{|A|} outside until the last step, and always check in every equation.

Every fact used, and where it comes from

FactUsed inSource
A system written as AX=BAX = BStep 1Section 4.6.1 (Lesson: solving systems)
Matrix product, row times columnSteps 1, 4, 5Section 3.4.5 (Chapter 3)
2×22\times2 determinant =ad−bc= ad - bcStep 2Section 4.2.2 (Lesson: determinant)
Nonsingular means ∣A∣≠0|A| \ne 0Step 2Definition 5, Section 4.5
If AA is nonsingular, X=A−1BX = A^{-1}B is the unique solutionSteps 2, 5Section 4.6.1, Case I
Minor and cofactor Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}Step 3Definitions 1 and 2, Section 4.4 (Lesson: minors and cofactors)
adj⁡A\operatorname{adj} A = transpose of the cofactor matrix; 2×22\times2 shortcutStep 3Definition 3 and the Remark after Example 12, Section 4.5.1 (Lesson: the adjoint)
A(adj⁡A)=∣A∣ IA(\operatorname{adj} A) = |A|\,IStep 4Theorem 1, Section 4.5
A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj} AStep 4Theorem 4, Section 4.5 (Lesson: inverse of a matrix)
Equality of matrices, entry by entrySteps 1, 5Section 3.3.1 (Chapter 3)
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 →