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

Exercise 4.5 · Q1: Is x+2y=2x+2y=2⁠, 2x+3y=32x+3y=3 consistent?

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

Examine the consistency of the system of equations.

x+2y=22x+3y=3\begin{aligned} x+2y&=2\\ 2x+3y&=3 \end{aligned}
Exam answer

The system is AX=BAX = B⁠, where

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

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

∴\therefore The system is consistent.

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

The one idea this problem is built on

A system is consistent when it has at least one solution. Write it as one matrix equation AX=BAX = B⁠. If the coefficient matrix has ∣A∣≠0|A| \ne 0⁠, then A−1A^{-1} exists and X=A−1BX = A^{-1}B is a solution (in fact the only one), so the system is consistent. Here ∣A∣=−1|A| = -1⁠, so the answer is "consistent", and the solution itself is x=0x = 0⁠, y=1y = 1⁠: the two lines cross at the point (0,1)(0, 1)⁠.

Given, to find, and the plan
Given
Two linear equations in the two unknowns xx and yy⁠.
To find
Whether the system is consistent (has a solution) or inconsistent (has none).
Plan
(1) Write the system as AX=BAX = B⁠. (2) Compute ∣A∣|A|⁠. (3) Since ∣A∣≠0|A| \ne 0⁠, conclude by Case I of Section 4.6.1. (4) Find the solution X=A−1BX = A^{-1}B through the adjoint, and check it in both equations.

Basics you need

1Consistent and inconsistent

Section 4.6: a system is consistent if a solution (one or more) exists, and inconsistent if no solution exists. For two equations in x,yx, y⁠, each equation is a line: lines that cross give one solution, parallel lines give none, the same line twice gives infinitely many. Basics: two lines, cross, parallel or the same

2A system as one matrix equation

The coefficients form AA⁠, the unknowns form the column XX⁠, the right-hand sides form the column BB⁠. Multiplying out AXAX row by column gives back the left-hand sides. Basics: matrix facts the chapter uses

3The 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

4Inverse through the adjoint

If ∣A∣≠0|A| \ne 0⁠, then A−1=1∣A∣adj⁡AA^{-1} = \dfrac{1}{|A|}\operatorname{adj}A⁠. For order 2, adj⁡A\operatorname{adj}A is found by swapping the two diagonal entries and changing the signs of the other two. Basics: why the inverse divides by |A|

Solution

  1. Write the system as AX=BAX = B

    Take the coefficients of xx and yy row by row, the unknowns as a column, and the right-hand sides as a column:

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

    Orders: AA is 2×22\times2 and XX is 2×12\times1⁠, so AXAX is defined and is 2×12\times1⁠, the same order as BB⁠. Row times column:

    AX=[1⋅x+2⋅y2⋅x+3⋅y]=[x+2y2x+3y].AX=\begin{bmatrix}1\cdot x+2\cdot y\\2\cdot x+3\cdot y\end{bmatrix}=\begin{bmatrix}x+2y\\2x+3y\end{bmatrix}.

    So AX=BAX = B says x+2y=2x + 2y = 2 and 2x+3y=32x + 3y = 3⁠: exactly the given system.

    Two matrices are equal when their corresponding entries are equal, so the single equation AX=BAX = B holds precisely when both original equations hold. Multiplying AXAX out is the check that the coefficients sit in the right places (row 1 of AA belongs to the first equation, column 1 of AA to xx⁠).
    Row ii of AA times the column XX gives the left side of equation ii⁠. Basics: matrix facts the chapter uses
  2. Compute ∣A∣|A|

    ∣A∣=∣1223∣=1⋅3−2⋅2=3−4=−1\begin{aligned} |A|&=\begin{vmatrix}1&2\\2&3\end{vmatrix}=1\cdot3-2\cdot2\\ &=3-4=-1 \end{aligned}

    So ∣A∣=−1≠0|A| = -1 \ne 0⁠: AA is non-singular.

    The determinant decides which case of Section 4.6.1 we are in. A non-zero value, positive or negative, is all that matters; the minus sign does not make it "fail". It only matters later, because we divide by ∣A∣|A|⁠.
    Main diagonal product minus the other diagonal product. Lesson: determinant of a square matrix
  3. Conclude: the system is consistent

    Because ∣A∣≠0|A| \ne 0⁠, AA is invertible (Theorem 4, Section 4.5). Multiply AX=BAX = B on the left by A−1A^{-1}⁠:

    A−1(AX)=A−1B(A−1A)X=A−1BX=A−1B\begin{aligned} A^{-1}(AX)&=A^{-1}B\\ (A^{-1}A)X&=A^{-1}B\\ X&=A^{-1}B \end{aligned}

    So any solution must equal A−1BA^{-1}B⁠, and A−1BA^{-1}B really is a solution, since A(A−1B)=(AA−1)B=BA(A^{-1}B) = (AA^{-1})B = B⁠. A solution exists and is unique, so the system is consistent.

    "Consistent" only asks whether a solution exists. This is Case I of Section 4.6.1: a non-singular AA always gives exactly one solution, so no further test is needed. We still find the solution below, because it confirms the conclusion and is what the matrix method is for.
    ∣A∣≠0|A| \ne 0 ⇒\Rightarrow unique solution X=A−1BX = A^{-1}B⁠. Lesson: solving systems AX = B
  4. Cofactors and adj⁡A\operatorname{adj}A

    Cofactor Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}⁠, where the minor MijM_{ij} is what is left after deleting row ii and column jj⁠. For a 2×22\times2 matrix each minor is a single entry, and the signs (−1)i+j(-1)^{i+j} follow the pattern

    +−−+\begin{matrix}+&-\\-&+\end{matrix} A11=(−1)1+1(3)=3A12=(−1)1+2(2)=−2A21=(−1)2+1(2)=−2A22=(−1)2+2(1)=1\begin{aligned} A_{11}&=(-1)^{1+1}(3)=3\\ A_{12}&=(-1)^{1+2}(2)=-2\\ A_{21}&=(-1)^{2+1}(2)=-2\\ A_{22}&=(-1)^{2+2}(1)=1 \end{aligned}

    adj⁡A\operatorname{adj}A is the transpose of the matrix of cofactors, so the cofactors of row ii go down column ii⁠:

    adj⁡A=[A11A21A12A22]=[3−2−21]\operatorname{adj}A=\begin{bmatrix}A_{11}&A_{21}\\A_{12}&A_{22}\end{bmatrix}=\begin{bmatrix}3&-2\\-2&1\end{bmatrix}
    Deleting row 1 and column 1 leaves the entry 3; deleting row 1 and column 2 leaves 2 (the bottom-left entry); and so on. Here the matrix of cofactors happens to be symmetric, so transposing it changes nothing, but the transpose is still part of the definition. The quick rule agrees: swap the diagonal entries 1 and 3, change the signs of the two 2s.
    Definition 3, Section 4.5.1, and the Remark after Example 12 for order 2. Lesson: the adjoint
  5. A−1A^{-1}⁠, and a check that it is right

    A−1=1∣A∣adj⁡A=1−1[3−2−21]=[−322−1]\begin{aligned} A^{-1}&=\frac{1}{|A|}\operatorname{adj}A=\frac{1}{-1}\begin{bmatrix}3&-2\\-2&1\end{bmatrix}\\ &=\begin{bmatrix}-3&2\\2&-1\end{bmatrix} \end{aligned}

    Check AA−1=IAA^{-1} = I⁠, entry by entry (row of AA times column of A−1A^{-1}⁠):

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

    So AA−1=IAA^{-1} = I⁠. ✓

    Dividing by ∣A∣=−1|A| = -1 flips every sign of adj⁡A\operatorname{adj}A⁠. Forgetting that sign is the most common slip, and the product check catches it at once: with the wrong sign the diagonal entries would come out −1-1⁠.
    A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A (Theorem 4). Basics: why the inverse divides by |A|
  6. The solution X=A−1BX = A^{-1}B

    X=A−1B=[−322−1][23]X=A^{-1}B=\begin{bmatrix}-3&2\\2&-1\end{bmatrix}\begin{bmatrix}2\\3\end{bmatrix} x=(−3)(2)+2(3)=−6+6=0y=2(2)+(−1)(3)=4−3=1\begin{aligned} x&=(-3)(2)+2(3)=-6+6=0\\ y&=2(2)+(-1)(3)=4-3=1 \end{aligned}

    So x=0x = 0⁠, y=1y = 1⁠.

    A−1A^{-1} is 2×22\times2 and BB is 2×12\times1⁠, so the product is 2×12\times1⁠: one entry for xx⁠, one for yy⁠. Each entry is a row of A−1A^{-1} times the column BB⁠.
  7. Check in both original equations

    x+2y=0+2(1)=2 ✓2x+3y=2(0)+3(1)=3 ✓\begin{aligned} x+2y&=0+2(1)=2\ \checkmark\\ 2x+3y&=2(0)+3(1)=3\ \checkmark \end{aligned}
    −2 −1 0 1 2 3 4 −1 0 1 2 3 x y P x + 2y = 2 2x + 3y = 3 P = (0, 1) the only point on both lines
    The two equations as lines. Their slopes differ, so they cross at exactly one point, P=(0,1)P = (0, 1)⁠: the unique solution.
    Substituting back into the equations as printed in the question (not into the matrices) catches any slip made while building AA and BB⁠. The picture shows the meaning: each equation is a line, and the lines have different slopes, −12-\tfrac12 and −23-\tfrac23⁠, so they cross at exactly one point.
    One crossing point means exactly one solution. Basics: two lines, cross, parallel or the same
Result

∣A∣=−1≠0|A| = -1 \ne 0⁠, so the system is consistent, with the unique solution x=0x = 0⁠, y=1y = 1⁠. (Textbook answer: Consistent.)

Check it with numbers

Solve by elimination instead. Twice the first equation is 2x+4y=42x + 4y = 4⁠. Subtract the second equation 2x+3y=32x + 3y = 3⁠: the xx terms cancel and y=1y = 1⁠. Then x=2−2y=0x = 2 - 2y = 0⁠. Same answer, by a method that does not use determinants at all.

Common mistakes
  1. Thinking a negative determinant means "inconsistent". Only ∣A∣=0|A| = 0 needs further testing; −1-1 is non-zero.
  2. Dropping the sign when dividing by ∣A∣=−1|A| = -1⁠. Then A−1A^{-1} has the wrong sign, and AA−1AA^{-1} gives −I-I instead of II⁠.
  3. Using the matrix of cofactors without transposing. Here the two agree by luck; in general they do not.
  4. Stopping at "consistent" with no reason. The reason is the rule: ∣A∣≠0|A| \ne 0 guarantees the unique solution X=A−1BX = A^{-1}B⁠.
What to take away
  1. To examine consistency, compute ∣A∣|A| first. If ∣A∣≠0|A| \ne 0⁠, the system is consistent with exactly one solution.
  2. The solution X=A−1BX = A^{-1}B is worth finding anyway: substituting it back is the best check.
  3. For two unknowns, ∣A∣≠0|A| \ne 0 means the two lines have different slopes, so they cross once.

Every fact used, and where it comes from

FactUsed inSource
Consistent: a solution exists; inconsistent: none existsStep 3, ResultSection 4.6 (Lesson: solving systems AX = B)
Writing a system as AX=BAX = BStep 1Section 4.6.1
2×22\times2 determinant =ad−cb= ad - cbStep 2Section 4.2.2
∣A∣≠0|A| \ne 0 ⇒\Rightarrow X=A−1BX = A^{-1}B⁠, uniqueStep 3Section 4.6.1, Case I
Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}Step 4Definitions 1 and 2, Section 4.4
adj⁡A\operatorname{adj}A = transpose of the matrix of cofactors; order 2 shortcutStep 4Definition 3 and Remark, Section 4.5.1
AA invertible   ⟺  ∣A∣≠0\iff |A| \ne 0⁠, and A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}ASteps 3, 5Theorem 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 →