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

Exercise 4.5 · Q2: Is 2x−y=52x-y=5⁠, x+y=4x+y=4 consistent?

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

Examine the consistency of the system of equations.

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

The system is AX=BAX = B⁠, where

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

∣A∣=3≠0|A| = 3 \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

Consistency means "at least one solution exists". Put the system in the form AX=BAX = B and look at ∣A∣|A|⁠. A non-zero determinant guarantees that A−1A^{-1} exists and that X=A−1BX = A^{-1}B is the one and only solution. Here ∣A∣=3|A| = 3⁠, so the system is consistent; solving it gives x=3x = 3⁠, y=1y = 1⁠, the point where the two lines cross.

Given, to find, and the plan
Given
Two linear equations in xx and yy⁠. Note the −y-y in the first one: its coefficient is −1-1⁠.
To find
Whether the system is consistent or inconsistent.
Plan
(1) Write AX=BAX = B⁠. (2) Compute ∣A∣|A|⁠. (3) ∣A∣≠0|A| \ne 0⁠, so Case I of Section 4.6.1 applies: consistent. (4) Find X=A−1BX = A^{-1}B using the adjoint, and check it.

Basics you need

1Consistent and inconsistent

Section 4.6: consistent means a solution (one or more) exists; inconsistent means none exists. With two unknowns, each equation is a line, and solutions are the points on both lines. Basics: two lines, cross, parallel or the same

2Reading coefficients

A term written −y-y means (−1)⋅y(-1)\cdot y⁠, and a term xx means 1⋅x1\cdot x⁠. These hidden 1s and −1-1s are entries of AA⁠. Basics: algebra the chapter leans on

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⁠, where adj⁡A\operatorname{adj}A is the transpose of the matrix of cofactors. Basics: why the inverse divides by |A|

Solution

  1. Write the system as AX=BAX = B

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

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

    AX=[2⋅x+(−1)⋅y1⋅x+1⋅y]=[2x−yx+y].AX=\begin{bmatrix}2\cdot x+(-1)\cdot y\\1\cdot x+1\cdot y\end{bmatrix}=\begin{bmatrix}2x-y\\x+y\end{bmatrix}.

    Setting this equal to BB entry by entry gives back 2x−y=52x - y = 5 and x+y=4x + y = 4⁠.

    The first row of AA holds the coefficients of the first equation, in the order xx⁠, then yy⁠. The −y-y supplies the entry −1-1⁠; the second equation x+yx + y supplies two 1s. Multiplying AXAX out confirms nothing has been misplaced.
    Equal matrices have equal entries, so AX=BAX = B is the same as both equations together. Basics: matrix facts the chapter uses
  2. Compute ∣A∣|A|

    ∣A∣=∣2−111∣=2⋅1−1⋅(−1)=2+1=3\begin{aligned} |A|&=\begin{vmatrix}2&-1\\1&1\end{vmatrix}=2\cdot1-1\cdot(-1)\\ &=2+1=3 \end{aligned}

    So ∣A∣=3≠0|A| = 3 \ne 0⁠, and AA is non-singular.

    The other diagonal is 11 and −1-1⁠, with product −1-1⁠. Subtracting −1-1 adds 1, which is why the answer is 33⁠, not 11⁠. Brackets around −1-1 keep that sign visible.
    ad−cbad - cb with a=2a = 2⁠, b=−1b = -1⁠, c=1c = 1⁠, d=1d = 1⁠. Lesson: determinant of a square matrix
  3. Conclude: the system is consistent

    Since ∣A∣≠0|A| \ne 0⁠, A−1A^{-1} exists (Theorem 4, Section 4.5). Pre-multiplying AX=BAX = B by A−1A^{-1} gives X=A−1BX = A^{-1}B⁠, and this XX does satisfy the system because A(A−1B)=BA(A^{-1}B) = B⁠. So a solution exists, and it is the only one: the system is consistent.

    This is Case I of Section 4.6.1. The determinant alone settles consistency here; the solution is found next as confirmation and because the matrix method is the point of the exercise.
    ∣A∣≠0|A| \ne 0 ⇒\Rightarrow exactly one solution. Lesson: solving systems AX = B
  4. Cofactors and adj⁡A\operatorname{adj}A

    For each entry, delete its row and column; the single entry left is the minor MijM_{ij}⁠. Then Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}⁠:

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

    The adjoint is the transpose of the matrix of cofactors:

    adj⁡A=[A11A21A12A22]=[11−12]\operatorname{adj}A=\begin{bmatrix}A_{11}&A_{21}\\A_{12}&A_{22}\end{bmatrix}=\begin{bmatrix}1&1\\-1&2\end{bmatrix}
    A21A_{21} is the cofactor of the entry in row 2, column 1. Deleting row 2 and column 1 leaves the entry −1-1⁠, and the sign (−1)3=−1(-1)^{3} = -1 turns it into +1+1⁠. In the adjoint, A21A_{21} moves to row 1, column 2: that is the transpose. Shortcut check: swap 2 and 1 on the diagonal, change the signs of −1-1 and 11⁠.
    Definition 3, Section 4.5.1. Lesson: the adjoint
  5. A−1A^{-1}⁠, checked by A(adj⁡A)=∣A∣IA(\operatorname{adj}A) = |A|I

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

    Check with Theorem 1: A(adj⁡A)A(\operatorname{adj}A) should be 3I3I⁠. Entry by entry:

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

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

    Leaving the 13\frac13 outside the matrix keeps the arithmetic in whole numbers. The check is worth the half minute: a wrong sign in a cofactor would show up as a non-zero off-diagonal entry.
    A(adj⁡A)=∣A∣IA(\operatorname{adj}A) = |A|I (Theorem 1, Section 4.5.1). Basics: why the inverse divides by |A|
  6. The solution X=A−1BX = A^{-1}B

    X=A−1B=13[11−12][54]X=A^{-1}B=\frac{1}{3}\begin{bmatrix}1&1\\-1&2\end{bmatrix}\begin{bmatrix}5\\4\end{bmatrix} x=13(1⋅5+1⋅4)=93=3y=13((−1)⋅5+2⋅4)=33=1\begin{aligned} x&=\tfrac{1}{3}(1\cdot5+1\cdot4)=\tfrac{9}{3}=3\\ y&=\tfrac{1}{3}((-1)\cdot5+2\cdot4)=\tfrac{3}{3}=1 \end{aligned}

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

    The product of the 2×22\times2 matrix and the 2×12\times1 column BB is a 2×12\times1 column, one entry per unknown. Each entry is a row times BB⁠, then the factor 13\frac13 is applied.
    Row times column, then the scalar. Basics: matrix facts the chapter uses
  7. Check in both original equations

    2x−y=2(3)−1=5 ✓x+y=3+1=4 ✓\begin{aligned} 2x-y&=2(3)-1=5\ \checkmark\\ x+y&=3+1=4\ \checkmark \end{aligned}
    −1 0 1 2 3 4 5 6 −2 −1 0 1 2 3 4 5 x y P 2x − y = 5 x + y = 4 P = (3, 1) slopes 2 and −1 differ: one crossing point
    The line 2x−y=52x - y = 5 rises (slope 2), the line x+y=4x + y = 4 falls (slope −1-1⁠). Different slopes, so they meet exactly once, at P=(3,1)P = (3, 1)⁠.
    Both equations hold, so (3,1)(3, 1) really is a solution, which is exactly what "consistent" asks for. Geometrically, rewriting the equations as y=2x−5y = 2x - 5 and y=4−xy = 4 - x shows the slopes 2 and −1-1 are different, so the lines cannot be parallel.
    Lines with different slopes cross at one point. Basics: two lines, cross, parallel or the same
Result

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

Check it with numbers

Add the two equations: (2x−y)+(x+y)=5+4(2x - y) + (x + y) = 5 + 4⁠, so 3x=93x = 9 and x=3x = 3⁠. Then y=4−x=1y = 4 - x = 1⁠. Elimination gives the same point, and the "3" in 3x=93x = 9 is no accident: it is ∣A∣|A|⁠.

Common mistakes
  1. Entering −y-y as 11 or forgetting x+yx + y has coefficients 1. Then AA is wrong and so is everything after it.
  2. Computing ∣A∣|A| as 2−1=12 - 1 = 1⁠. The other diagonal product is 1⋅(−1)=−11\cdot(-1) = -1⁠, and subtracting it gives 2+1=32 + 1 = 3⁠.
  3. Forgetting the transpose. The matrix of cofactors has rows (1,−1)(1, -1) and (1,2)(1, 2)⁠; using it as the adjoint, without transposing, gives the wrong inverse.
  4. Applying 13\frac13 to only one entry. The scalar multiplies every entry of the product.
What to take away
  1. ∣A∣≠0|A| \ne 0 settles consistency at once: there is exactly one solution.
  2. Keep the factor 1∣A∣\frac{1}{|A|} outside until the end; the arithmetic stays in whole numbers.
  3. Check the answer in the original equations, and A(adj⁡A)=∣A∣IA(\operatorname{adj}A) = |A|I for the adjoint.

Every fact used, and where it comes from

FactUsed inSource
Consistent and inconsistent systemsStep 3, ResultSection 4.6 (Lesson: solving systems AX = B)
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 unique solution X=A−1BX = A^{-1}BStep 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 cofactorsStep 4Definition 3, Section 4.5.1
A(adj⁡A)=(adj⁡A)A=∣A∣IA(\operatorname{adj}A) = (\operatorname{adj}A)A = |A|IStep 5Theorem 1, Section 4.5.1
A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A when ∣A∣≠0|A| \ne 0Steps 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 →