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

Exercise 4.5 · Q6: Is 5x−y+4z=55x-y+4z=5⁠, 2x+3y+5z=22x+3y+5z=2⁠, 5x−2y+6z=−15x-2y+6z=-1 consistent?

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

Examine the consistency of the system of equations.

5x−y+4z=52x+3y+5z=25x−2y+6z=−1\begin{aligned} 5x-y+4z&=5\\ 2x+3y+5z&=2\\ 5x-2y+6z&=-1 \end{aligned}
Exam answer

The system is AX=BAX = B⁠, where

A=[5−142355−26],X=[xyz], B=[52−1]\begin{aligned} A &= \begin{bmatrix} 5 & -1 & 4 \\ 2 & 3 & 5 \\ 5 & -2 & 6 \end{bmatrix}, \\ X &= \begin{bmatrix} x \\ y \\ z \end{bmatrix},\ B = \begin{bmatrix} 5 \\ 2 \\ -1 \end{bmatrix} \end{aligned}

Expanding along R1R_1⁠:

∣A∣=5∣35−26∣−(−1)∣2556∣+4∣235−2∣=5(28)+1(−13)+4(−19)=51\begin{aligned} |A| &= 5\begin{vmatrix} 3 & 5 \\ -2 & 6 \end{vmatrix} - (-1)\begin{vmatrix} 2 & 5 \\ 5 & 6 \end{vmatrix} \\ &\quad + 4\begin{vmatrix} 2 & 3 \\ 5 & -2 \end{vmatrix} \\ &= 5(28) + 1(-13) + 4(-19) \\ &= 51 \end{aligned}

∣A∣=51≠0|A| = 51 \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 is settled by one number. Write the system as AX=BAX = B and compute ∣A∣|A|⁠. It comes out 5151⁠, which is not 0, so A−1A^{-1} exists and X=A−1BX = A^{-1}B is a solution, the only one. The system is consistent. Working out A−1A^{-1} through the adjoint gives that solution, x=3x = 3⁠, y=2y = 2⁠, z=−2z = -2⁠, which we check in all three equations.

Given, to find, and the plan
Given
Three linear equations in x,y,zx, y, z⁠; every coefficient is non-zero.
To find
Whether the system is consistent or inconsistent.
Plan
(1) Write AX=BAX = B⁠. (2) Expand ∣A∣|A| along row 1. (3) ∣A∣≠0|A| \ne 0⁠: consistent by Case I of Section 4.6.1. (4) Find all nine cofactors, adj⁡A\operatorname{adj}A⁠, and check A(adj⁡A)=∣A∣IA(\operatorname{adj}A) = |A|I⁠. (5) Compute X=A−1BX = A^{-1}B and check it.

Basics you need

1Consistent and inconsistent

Section 4.6: consistent means at least one solution exists. If ∣A∣≠0|A| \ne 0⁠, Case I of Section 4.6.1 gives exactly one solution, X=A−1BX = A^{-1}B⁠. Basics: when a system has one, none or many solutions

2Expanding a 3×33\times3 determinant

Along row 1,

∣A∣=a11A11+a12A12+a13A13,\begin{aligned} |A|&=a_{11}A_{11}+a_{12}A_{12}\\ &\quad+a_{13}A_{13}, \end{aligned}

and the signs (−1)i+j(-1)^{i+j} of the cofactors follow

+−+−+−+−+\begin{matrix}+&-&+\\-&+&-\\+&-&+\end{matrix}

Basics: the + − + sign pattern

3Adjoint and inverse

adj⁡A\operatorname{adj}A is the transpose of the matrix of cofactors, A(adj⁡A)=∣A∣IA(\operatorname{adj}A) = |A|I⁠, and A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A when ∣A∣≠0|A| \ne 0⁠. Basics: why the inverse divides by |A|

4Row times column

Each entry of a product is a row of the first matrix times a column of the second: multiply in pairs and add. Basics: matrix facts the chapter uses

Solution

  1. Write the system as AX=BAX = B

    A=[5−142355−26]X=[xyz],B=[52−1]\begin{gathered} A=\begin{bmatrix}5&-1&4\\2&3&5\\5&-2&6\end{bmatrix}\\ X=\begin{bmatrix}x\\y\\z\end{bmatrix},\quad B=\begin{bmatrix}5\\2\\-1\end{bmatrix} \end{gathered}

    AA is 3×33\times3 and XX is 3×13\times1⁠, so AXAX is 3×13\times1⁠:

    AX=[5x−y+4z2x+3y+5z5x−2y+6z],AX=\begin{bmatrix}5x-y+4z\\2x+3y+5z\\5x-2y+6z\end{bmatrix},

    and AX=BAX = B is the given system, entry by entry.

    The −y-y in the first equation is the entry −1-1⁠, and the −2y-2y in the third is −2-2⁠. Each row of AA is one equation; each column belongs to one unknown.
  2. Expand ∣A∣|A| along row 1

    No entry is zero, so every row costs three minors; row 1 is as good as any. Signs + − ++\,-\,+⁠:

    ∣A∣=5∣35−26∣−(−1)∣2556∣+4∣235−2∣\begin{aligned} |A|&=5\begin{vmatrix}3&5\\-2&6\end{vmatrix}-(-1)\begin{vmatrix}2&5\\5&6\end{vmatrix}\\ &\quad+4\begin{vmatrix}2&3\\5&-2\end{vmatrix} \end{aligned} ∣35−26∣=18−(−10)=28∣2556∣=12−25=−13∣235−2∣=−4−15=−19\begin{aligned} \begin{vmatrix}3&5\\-2&6\end{vmatrix}&=18-(-10)=28\\ \begin{vmatrix}2&5\\5&6\end{vmatrix}&=12-25=-13\\ \begin{vmatrix}2&3\\5&-2\end{vmatrix}&=-4-15=-19 \end{aligned} ∣A∣=5(28)+1(−13)+4(−19)=140−13−76=51\begin{aligned} |A|&=5(28)+1(-13)+4(-19)\\ &=140-13-76=51 \end{aligned}

    So ∣A∣=51≠0|A| = 51 \ne 0⁠.

    The middle term is −(−1)×(−13)-(-1)\times(-13)⁠: pattern sign −-⁠, entry −1-1⁠, minor −13-13⁠, giving −13-13 overall. In the first minor, 3⋅6=183\cdot6 = 18 and (−2)⋅5=−10(-2)\cdot5 = -10⁠, and subtracting −10-10 adds 10.
    Expansion along R1R_1⁠, Section 4.2.3. Lesson: expanding a 3 × 3 determinant
  3. Conclude: the system is consistent

    ∣A∣=51≠0|A| = 51 \ne 0⁠, so AA is non-singular and invertible (Theorem 4). Then X=A−1BX = A^{-1}B satisfies AX=A(A−1B)=BAX = A(A^{-1}B) = B⁠, and any solution must equal it. So the system is consistent, with exactly one solution.

    This is Case I of Section 4.6.1, and it fully answers the question. The remaining steps find the solution, which the matrix method is designed to do, and give a numerical confirmation.
  4. All nine cofactors

    A11=(−1)1+1∣35−26∣=18+10=28A12=(−1)1+2∣2556∣=−(12−25)=13A13=(−1)1+3∣235−2∣=−4−15=−19A21=(−1)2+1∣−14−26∣=−(−6+8)=−2A22=(−1)2+2∣5456∣=30−20=10A23=(−1)2+3∣5−15−2∣=−(−10+5)=5A31=(−1)3+1∣−1435∣=−5−12=−17A32=(−1)3+2∣5425∣=−(25−8)=−17A33=(−1)3+3∣5−123∣=15+2=17\begin{aligned} A_{11}&=(-1)^{1+1}\begin{vmatrix}3&5\\-2&6\end{vmatrix}\\ &=18+10=28\\ A_{12}&=(-1)^{1+2}\begin{vmatrix}2&5\\5&6\end{vmatrix}\\ &=-(12-25)=13\\ A_{13}&=(-1)^{1+3}\begin{vmatrix}2&3\\5&-2\end{vmatrix}\\ &=-4-15=-19\\ A_{21}&=(-1)^{2+1}\begin{vmatrix}-1&4\\-2&6\end{vmatrix}\\ &=-(-6+8)=-2\\ A_{22}&=(-1)^{2+2}\begin{vmatrix}5&4\\5&6\end{vmatrix}\\ &=30-20=10\\ A_{23}&=(-1)^{2+3}\begin{vmatrix}5&-1\\5&-2\end{vmatrix}\\ &=-(-10+5)=5\\ A_{31}&=(-1)^{3+1}\begin{vmatrix}-1&4\\3&5\end{vmatrix}\\ &=-5-12=-17\\ A_{32}&=(-1)^{3+2}\begin{vmatrix}5&4\\2&5\end{vmatrix}\\ &=-(25-8)=-17\\ A_{33}&=(-1)^{3+3}\begin{vmatrix}5&-1\\2&3\end{vmatrix}\\ &=15+2=17 \end{aligned}
    Each minor deletes the row and column of its entry. For example, A21A_{21} deletes row 2 and column 1, leaving (−1,4)(-1, 4) from row 1 and (−2,6)(-2, 6) from row 3; its value is (−1)(6)−(−2)(4)(-1)(6) - (-2)(4)⁠, that is −6+8=2-6 + 8 = 2⁠, and the sign (−1)3(-1)^3 makes it −2-2⁠. The first row of cofactors, 28,13,−1928, 13, -19⁠, reproduces ∣A∣|A|⁠: 5(28)+(−1)(13)5(28) + (-1)(13) + 4(−19)=51+\, 4(-19) = 51⁠.
    Definitions 1 and 2, Section 4.4. Lesson: minors and cofactors
  5. adj⁡A\operatorname{adj}A⁠, checked by A(adj⁡A)=51IA(\operatorname{adj}A) = 51I

    Transpose the matrix of cofactors: row 1 of cofactors becomes column 1, and so on.

    adj⁡A=[28−2−171310−17−19517]\operatorname{adj}A=\begin{bmatrix}28&-2&-17\\13&10&-17\\-19&5&17\end{bmatrix}

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

    (1,1): 140−13−76=51(1,2): −10−10+20=0(1,3): −85+17+68=0(2,1): 56+39−95=0(2,2): −4+30+25=51(2,3): −34−51+85=0(3,1): 140−26−114=0(3,2): −10−20+30=0(3,3): −85+34+102=51\begin{aligned} (1,1)&:\ 140-13-76=51\\ (1,2)&:\ -10-10+20=0\\ (1,3)&:\ -85+17+68=0\\ (2,1)&:\ 56+39-95=0\\ (2,2)&:\ -4+30+25=51\\ (2,3)&:\ -34-51+85=0\\ (3,1)&:\ 140-26-114=0\\ (3,2)&:\ -10-20+30=0\\ (3,3)&:\ -85+34+102=51 \end{aligned}

    So A(adj⁡A)=51I=∣A∣IA(\operatorname{adj}A) = 51I = |A|I ✓, and therefore

    A−1=151[28−2−171310−17−19517].A^{-1}=\frac{1}{51}\begin{bmatrix}28&-2&-17\\13&10&-17\\-19&5&17\end{bmatrix}.
    For instance, entry (2,1)(2,1) is row 2 of AA⁠, (2,3,5)(2, 3, 5)⁠, times column 1 of adj⁡A\operatorname{adj}A⁠, (28,13,−19)(28, 13, -19)⁠: 56+39−95=056 + 39 - 95 = 0⁠. Getting ∣A∣|A| on the diagonal and 0 elsewhere (Theorem 1) confirms every cofactor at once.
    Definition 3, Theorem 1 (Section 4.5.1) and Theorem 4. Lesson: inverse of a matrix
  6. The solution X=A−1BX = A^{-1}B

    First (adj⁡A)B(\operatorname{adj}A)B⁠, a 3×13\times1 column:

    [28(5)+(−2)(2)+(−17)(−1)13(5)+10(2)+(−17)(−1)−19(5)+5(2)+17(−1)]=[140−4+1765+20+17−95+10−17]=[153102−102]\begin{aligned} &\begin{bmatrix}28(5)+(-2)(2)+(-17)(-1)\\13(5)+10(2)+(-17)(-1)\\-19(5)+5(2)+17(-1)\end{bmatrix}\\ &=\begin{bmatrix}140-4+17\\65+20+17\\-95+10-17\end{bmatrix}=\begin{bmatrix}153\\102\\-102\end{bmatrix} \end{aligned}

    Then divide by 51:

    X=151[153102−102]=[32−2]X=\frac{1}{51}\begin{bmatrix}153\\102\\-102\end{bmatrix}=\begin{bmatrix}3\\2\\-2\end{bmatrix}

    So x=3x = 3⁠, y=2y = 2⁠, z=−2z = -2⁠.

    X=151(adj⁡A)BX = \frac{1}{51}(\operatorname{adj}A)B⁠. Doing the whole-number product first and dividing at the end avoids fractions; 153=3⋅51153 = 3\cdot51 and 102=2⋅51102 = 2\cdot51⁠, so the division comes out exact.
  7. Check in all three equations

    5x−y+4z=15−2−8=5 ✓2x+3y+5z=6+6−10=2 ✓5x−2y+6z=15−4−12=−1 ✓\begin{aligned} 5x-y+4z&=15-2-8=5\ \checkmark\\ 2x+3y+5z&=6+6-10=2\ \checkmark\\ 5x-2y+6z&=15-4-12=-1\ \checkmark \end{aligned}
    Substituting into the equations exactly as printed confirms the solution, and with it the consistency: a solution has been exhibited.
Result

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

Check it with numbers

Expand ∣A∣|A| a second way, down column 1 with the cofactors from Step 4:

∣A∣=5(28)+2(−2)+5(−17)=140−4−85=51\begin{aligned} |A|&=5(28)+2(-2)+5(-17)\\ &=140-4-85=51 \end{aligned}

Same value. And by elimination: the first equation minus the third gives y−2z=6y - 2z = 6⁠; with y=2y = 2⁠, z=−2z = -2⁠: 2+4=62 + 4 = 6⁠. ✓

Common mistakes
  1. Sign slips in the middle term of the expansion: −(−1)(−13)-(-1)(-13) is −13-13⁠, not +13+13⁠.
  2. Using the matrix of cofactors as adj⁡A\operatorname{adj}A without transposing.
  3. Dividing by 51 too early. It works, but every entry becomes a fraction; dividing at the end is cleaner.
  4. Answering only "consistent" without the reason ∣A∣≠0|A| \ne 0⁠. The reason is the whole content of the answer.
What to take away
  1. ∣A∣≠0|A| \ne 0 means consistent with exactly one solution; no other test is needed.
  2. A(adj⁡A)=∣A∣IA(\operatorname{adj}A) = |A|I is the best check of a page of cofactors.
  3. Compute (adj⁡A)B(\operatorname{adj}A)B in whole numbers, then divide by ∣A∣|A|⁠.

Every fact used, and where it comes from

FactUsed inSource
Consistent and inconsistent systemsStep 3, ResultSection 4.6 (Lesson: solving systems AX = B)
Expansion of a 3×33\times3 determinant along a row or columnStep 2, checkSection 4.2.3
Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}Step 4Definitions 1, 2, Section 4.4
adj⁡A\operatorname{adj}A = transpose of the matrix of cofactorsStep 5Definition 3, Section 4.5.1
A(adj⁡A)=∣A∣IA(\operatorname{adj}A) = |A|IStep 5Theorem 1, Section 4.5.1
A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A for ∣A∣≠0|A| \ne 0Steps 3, 5Theorem 4, Section 4.5
∣A∣≠0|A| \ne 0 ⇒\Rightarrow unique solution X=A−1BX = A^{-1}BSteps 3, 6Section 4.6.1, Case I
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 →