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

Miscellaneous · Q7: Solve a system in 1x\frac1x⁠, 1y\frac1y⁠, 1z\frac1z

Miscellaneous ExerciseSolving systems AX = B · Section 4.6.1
The question

Solve the system of equations

2x+3y+10z=44x−6y+5z=16x+9y−20z=2\begin{aligned} \frac{2}{x} + \frac{3}{y} + \frac{10}{z} &= 4 \\ \frac{4}{x} - \frac{6}{y} + \frac{5}{z} &= 1 \\ \frac{6}{x} + \frac{9}{y} - \frac{20}{z} &= 2 \end{aligned}

(In the book this question comes straight after the line "Using properties of determinants in Exercises 11 to 15, prove that:". That line is left over from an older edition and does not apply here: this exercise has only Questions 1 to 9, and Question 7 asks us to solve a system.)

Exam answer

Put 1x=u\frac1x = u⁠, 1y=v\frac1y = v⁠, 1z=w\frac1z = w⁠. Then

2u+3v+10w=44u−6v+5w=16u+9v−20w=2\begin{aligned} 2u + 3v + 10w &= 4 \\ 4u - 6v + 5w &= 1 \\ 6u + 9v - 20w &= 2 \end{aligned}

This is AX=BAX = B⁠, where

A=[23104−6569−20],X=[uvw], B=[412]\begin{aligned} A &= \begin{bmatrix} 2 & 3 & 10 \\ 4 & -6 & 5 \\ 6 & 9 & -20 \end{bmatrix}, \\ X &= \begin{bmatrix} u \\ v \\ w \end{bmatrix},\ B = \begin{bmatrix} 4 \\ 1 \\ 2 \end{bmatrix} \end{aligned}

Expanding along R1R_1⁠:

∣A∣=2∣−659−20∣−3∣456−20∣+10∣4−669∣=2(75)−3(−110)+10(72)=1200\begin{aligned} |A| &= 2\begin{vmatrix} -6 & 5 \\ 9 & -20 \end{vmatrix} - 3\begin{vmatrix} 4 & 5 \\ 6 & -20 \end{vmatrix} \\ &\quad + 10\begin{vmatrix} 4 & -6 \\ 6 & 9 \end{vmatrix} \\ &= 2(75) - 3(-110) + 10(72) \\ &= 1200 \end{aligned}

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

Cofactors:

A11=∣−659−20∣=75A12=−∣456−20∣=110A13=∣4−669∣=72\begin{aligned} A_{11} &= \begin{vmatrix} -6 & 5 \\ 9 & -20 \end{vmatrix} = 75 \\ A_{12} &= -\begin{vmatrix} 4 & 5 \\ 6 & -20 \end{vmatrix} = 110 \\ A_{13} &= \begin{vmatrix} 4 & -6 \\ 6 & 9 \end{vmatrix} = 72 \end{aligned} A21=−∣3109−20∣=150A22=∣2106−20∣=−100A23=−∣2369∣=0\begin{aligned} A_{21} &= -\begin{vmatrix} 3 & 10 \\ 9 & -20 \end{vmatrix} = 150 \\ A_{22} &= \begin{vmatrix} 2 & 10 \\ 6 & -20 \end{vmatrix} = -100 \\ A_{23} &= -\begin{vmatrix} 2 & 3 \\ 6 & 9 \end{vmatrix} = 0 \end{aligned} A31=∣310−65∣=75A32=−∣21045∣=30A33=∣234−6∣=−24\begin{aligned} A_{31} &= \begin{vmatrix} 3 & 10 \\ -6 & 5 \end{vmatrix} = 75 \\ A_{32} &= -\begin{vmatrix} 2 & 10 \\ 4 & 5 \end{vmatrix} = 30 \\ A_{33} &= \begin{vmatrix} 2 & 3 \\ 4 & -6 \end{vmatrix} = -24 \end{aligned} adj⁡A=[7515075110−10030720−24]A−1=1∣A∣adj⁡A=11200[7515075110−10030720−24]\begin{aligned} \operatorname{adj}A &= \begin{bmatrix} 75 & 150 & 75 \\ 110 & -100 & 30 \\ 72 & 0 & -24 \end{bmatrix} \\ A^{-1} &= \frac{1}{|A|}\operatorname{adj}A \\ &= \frac{1}{1200}\begin{bmatrix} 75 & 150 & 75 \\ 110 & -100 & 30 \\ 72 & 0 & -24 \end{bmatrix} \end{aligned} X=A−1B=11200[7515075110−10030720−24]×[412]=11200[300+150+150440−100+60288+0−48]=11200[600400240]=[121315]\begin{aligned} X &= A^{-1}B \\ &= \frac{1}{1200}\begin{bmatrix} 75 & 150 & 75 \\ 110 & -100 & 30 \\ 72 & 0 & -24 \end{bmatrix} \\ &\qquad \times \begin{bmatrix} 4 \\ 1 \\ 2 \end{bmatrix} \\ &= \frac{1}{1200}\begin{bmatrix} 300 + 150 + 150 \\ 440 - 100 + 60 \\ 288 + 0 - 48 \end{bmatrix} \\ &= \frac{1}{1200}\begin{bmatrix} 600 \\ 400 \\ 240 \end{bmatrix} = \begin{bmatrix} \frac{1}{2} \\ \frac{1}{3} \\ \frac{1}{5} \end{bmatrix} \end{aligned}

So u=12u = \frac12⁠, v=13v = \frac13⁠, w=15w = \frac15⁠.

∴ x=1u=2\therefore\ x = \dfrac1u = 2⁠, y=1v=3y = \dfrac1v = 3⁠, z=1w=5z = \dfrac1w = 5⁠.

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

The one idea this problem is built on

The equations are not linear in xx⁠, yy⁠, zz⁠, but they are linear in 1x\frac1x⁠, 1y\frac1y⁠, 1z\frac1z. Renaming u=1xu = \frac1x⁠, v=1yv = \frac1y⁠, w=1zw = \frac1z turns them into an ordinary system AX=BAX = B⁠, which the matrix method solves: X=A−1BX = A^{-1}B when ∣A∣≠0|A| \ne 0⁠. Taking reciprocals at the end gives xx⁠, yy⁠, zz⁠.

Given, to find, and the plan
Given
Three equations in 1x\frac1x⁠, 1y\frac1y⁠, 1z\frac1z⁠; necessarily x,y,z≠0x, y, z \ne 0⁠.
To find
All (x,y,z)(x, y, z) satisfying all three equations.
Plan
(1) Substitute u,v,wu, v, w and write AX=BAX = B⁠. (2) ∣A∣|A|⁠. (3) All cofactors, adj A, A−1A^{-1}⁠, and the check A (adj⁡A)=∣A∣ IA\,(\operatorname{adj}A) = |A|\,I⁠. (4) X=A−1BX = A^{-1}B⁠. (5) Take reciprocals. (6) Check in the original equations.

Basics you need

1Matrix form of a system

Three linear equations aix+biy+ciz=dia_ix + b_iy + c_iz = d_i are the single matrix equation AX=BAX = B⁠, with A the coefficients, X the unknowns and B the right-hand sides. Lesson: solving systems AX = B

2Minors, cofactors, adjoint

Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}⁠; adj A is the transpose of the cofactor matrix. Basics: the + − + sign pattern

3Inverse

If ∣A∣≠0|A| \ne 0⁠, A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A⁠, and then AX=BAX = B has exactly one solution, X=A−1BX = A^{-1}B⁠. Basics: why the inverse divides by |A|

4Row times column

Each entry of a product is a row times a column. Basics: matrix facts the chapter uses

Solution

  1. Substitute and write AX=BAX = B

    Let u=1xu = \frac1x⁠, v=1yv = \frac1y⁠, w=1zw = \frac1z⁠. The system becomes

    2u+3v+10w=44u−6v+5w=16u+9v−20w=2\begin{aligned} 2u + 3v + 10w &= 4 \\ 4u - 6v + 5w &= 1 \\ 6u + 9v - 20w &= 2 \end{aligned}

    that is, AX=BAX = B with

    A=[23104−6569−20],X=[uvw],B=[412].A = \begin{bmatrix} 2 & 3 & 10 \\ 4 & -6 & 5 \\ 6 & 9 & -20 \end{bmatrix}, \quad X = \begin{bmatrix} u \\ v \\ w \end{bmatrix}, \quad B = \begin{bmatrix} 4 \\ 1 \\ 2 \end{bmatrix}.
    2x=2⋅1x=2u\frac{2}{x} = 2\cdot\frac1x = 2u⁠, and similarly for every term, so each equation is linear in u,v,wu, v, w⁠. The orders fit: A is 3×33\times3 and X is 3×13\times1⁠, so AX is 3×13\times1⁠, the order of B. The equations only make sense for x,y,z≠0x, y, z \ne 0⁠; conversely, any solution (u,v,w)(u, v, w) with all three non-zero gives back x=1ux = \frac1u⁠, y=1vy = \frac1v⁠, z=1wz = \frac1w⁠. So the two systems have exactly the same solutions, provided we check u,v,w≠0u, v, w \ne 0 at the end.
    Section 4.6.1: the system written as AX=BAX = B⁠. Lesson: solving systems AX = B
  2. The determinant of A

    No entry is zero; expand along R1=(2,3,10)R_1 = (2, 3, 10)⁠, with signs +,−,++, -, +⁠:

    M11=∣−659−20∣=120−45=75M_{11} = \begin{vmatrix} -6 & 5 \\ 9 & -20 \end{vmatrix} = 120 - 45 = 75 M12=∣456−20∣=−80−30=−110M_{12} = \begin{vmatrix} 4 & 5 \\ 6 & -20 \end{vmatrix} = -80 - 30 = -110 M13=∣4−669∣=36+36=72M_{13} = \begin{vmatrix} 4 & -6 \\ 6 & 9 \end{vmatrix} = 36 + 36 = 72 ∣A∣=2(75)−3(−110)+10(72)=150+330+720=1200.\begin{aligned} |A| &= 2(75) - 3(-110) + 10(72) \\ &= 150 + 330 + 720 = 1200. \end{aligned}

    Since ∣A∣=1200≠0|A| = 1200 \ne 0⁠, A is non-singular: the system has a unique solution.

    In M11M_{11}⁠, (−6)(−20)=120(-6)(-20) = 120 and 5⋅9=455\cdot9 = 45⁠. In M13M_{13}⁠, 4⋅9=364\cdot9 = 36 and (−6)⋅6=−36(-6)\cdot6 = -36⁠, and subtracting −36-36 adds 36. A non-zero determinant is Case I of Section 4.6.1: A−1A^{-1} exists and gives the one and only solution.
    Section 4.2.3 (expansion); Section 4.6.1, Case I. Lesson: expanding a 3 × 3 determinant
  3. All cofactors, adj A and A−1A^{-1}

    Row 1 of minors is in Step 2. The others (rows of A: (2,3,10)(2, 3, 10)⁠, (4,−6,5)(4, -6, 5)⁠, (6,9,−20)(6, 9, -20)⁠):

    M21=∣3109−20∣=−150M22=∣2106−20∣=−100M23=∣2369∣=0M31=∣310−65∣=75M32=∣21045∣=−30M33=∣234−6∣=−24\begin{aligned} M_{21} &= \begin{vmatrix} 3 & 10 \\ 9 & -20 \end{vmatrix} = -150 \\ M_{22} &= \begin{vmatrix} 2 & 10 \\ 6 & -20 \end{vmatrix} = -100 \\ M_{23} &= \begin{vmatrix} 2 & 3 \\ 6 & 9 \end{vmatrix} = 0 \\ M_{31} &= \begin{vmatrix} 3 & 10 \\ -6 & 5 \end{vmatrix} = 75 \\ M_{32} &= \begin{vmatrix} 2 & 10 \\ 4 & 5 \end{vmatrix} = -30 \\ M_{33} &= \begin{vmatrix} 2 & 3 \\ 4 & -6 \end{vmatrix} = -24 \end{aligned}

    With the signs (−1)i+j(-1)^{i+j}⁠:

    A11=75,A12=110,A13=72A21=150,A22=−100,A23=0A31=75,A32=30,A33=−24\begin{aligned} A_{11} &= 75,\quad A_{12} = 110,\quad A_{13} = 72 \\ A_{21} &= 150,\quad A_{22} = -100,\quad A_{23} = 0 \\ A_{31} &= 75,\quad A_{32} = 30,\quad A_{33} = -24 \end{aligned}

    Transpose the cofactor matrix to get the adjoint, then divide by ∣A∣|A|⁠:

    adj⁡A=[7515075110−10030720−24],A−1=11200adj⁡A.\operatorname{adj}A = \begin{bmatrix} 75 & 150 & 75 \\ 110 & -100 & 30 \\ 72 & 0 & -24 \end{bmatrix}, \quad A^{-1} = \frac{1}{1200}\operatorname{adj}A.
    For example, M21=3(−20)−10⋅9M_{21} = 3(-20) - 10\cdot9 =−60−90=−150= -60 - 90 = -150⁠, so A21=(−1)3(−150)=150A_{21} = (-1)^3(-150) = 150⁠; and M23=2⋅9−3⋅6=0M_{23} = 2\cdot9 - 3\cdot6 = 0⁠, because rows 1 and 3 of A agree in their first two entries up to the factor 3. Row 1 of adj A is (A11,A21,A31)(A_{11}, A_{21}, A_{31})⁠: the cofactors of column 1, because of the transpose.
    Section 4.4, Definitions 1, 2; Section 4.5.1, Definition 3; Section 4.5, Theorem 4. Lesson: the adjoint
  4. Check A (adj⁡A)=∣A∣ IA\,(\operatorname{adj}A) = |A|\,I

    Rows of A times the columns of adj A, which are (75,110,72)(75, 110, 72)⁠, (150,−100,0)(150, -100, 0)⁠, (75,30,−24)(75, 30, -24)⁠:

    (1,1):150+330+720=1200(1,2):300−300+0=0(1,3):150+90−240=0(2,1):300−660+360=0(2,2):600+600+0=1200(2,3):300−180−120=0(3,1):450+990−1440=0(3,2):900−900+0=0(3,3):450+270+480=1200\begin{aligned} (1,1)&: 150 + 330 + 720 = 1200 \\ (1,2)&: 300 - 300 + 0 = 0 \\ (1,3)&: 150 + 90 - 240 = 0 \\ (2,1)&: 300 - 660 + 360 = 0 \\ (2,2)&: 600 + 600 + 0 = 1200 \\ (2,3)&: 300 - 180 - 120 = 0 \\ (3,1)&: 450 + 990 - 1440 = 0 \\ (3,2)&: 900 - 900 + 0 = 0 \\ (3,3)&: 450 + 270 + 480 = 1200 \end{aligned}

    So A (adj⁡A)=1200 IA\,(\operatorname{adj}A) = 1200\,I ✓, which confirms every cofactor and gives AA−1=IAA^{-1} = I⁠.

    This is Theorem 1 of Section 4.5. Dividing both sides by 1200 shows that 11200adj⁡A\frac{1}{1200}\operatorname{adj}A really is A−1A^{-1}⁠. For instance, entry (2,1)(2,1) is 4⋅75+(−6)⋅110+5⋅724\cdot75 + (-6)\cdot110 + 5\cdot72 =300−660+360= 300 - 660 + 360⁠.
    Section 4.5, Theorem 1. Lesson: inverse of a matrix
  5. Solve X=A−1BX = A^{-1}B

    First multiply adj A by B=(4,1,2)B = (4, 1, 2)⁠:

    row 1:75⋅4+150⋅1+75⋅2=600row 2:110⋅4−100⋅1+30⋅2=400row 3:72⋅4+0⋅1−24⋅2=240\begin{aligned} \text{row 1}&: 75\cdot4 + 150\cdot1 + 75\cdot2 = 600 \\ \text{row 2}&: 110\cdot4 - 100\cdot1 + 30\cdot2 = 400 \\ \text{row 3}&: 72\cdot4 + 0\cdot1 - 24\cdot2 = 240 \end{aligned}

    Then divide by 1200:

    X=[uvw]=11200[600400240]=[121315].X = \begin{bmatrix} u \\ v \\ w \end{bmatrix} = \frac{1}{1200}\begin{bmatrix} 600 \\ 400 \\ 240 \end{bmatrix} = \begin{bmatrix} \frac12 \\[2pt] \frac13 \\[2pt] \frac15 \end{bmatrix}.
    From AX=BAX = B⁠, multiplying on the left by A−1A^{-1} gives A−1AX=A−1BA^{-1}AX = A^{-1}B⁠, that is, X=A−1BX = A^{-1}B⁠. The inverse is unique, so this is the only solution. Multiplying by adj A first and dividing by 1200 last keeps the arithmetic in whole numbers: 400÷1200=13400 \div 1200 = \frac13 and 240÷1200=15240 \div 1200 = \frac15⁠.
    Section 4.6.1, Case I: X=A−1BX = A^{-1}B⁠. Lesson: solving systems AX = B
  6. Go back to xx⁠, yy⁠, zz

    All three of u=12u = \frac12⁠, v=13v = \frac13⁠, w=15w = \frac15 are non-zero, so we may take reciprocals:

    x=1u=2,y=1v=3,z=1w=5.x = \frac1u = 2, \quad y = \frac1v = 3, \quad z = \frac1w = 5.
    We set u=1xu = \frac1x⁠, so x=1ux = \frac1u⁠, which needs u≠0u \ne 0⁠. Had any of u,v,wu, v, w been 0, there would be no matching xx⁠, yy or zz and the original system would have no solution. Here all is well, and since (u,v,w)(u, v, w) is unique, so is (x,y,z)(x, y, z)⁠.
Result

The system has exactly one solution: x=2x = 2⁠, y=3y = 3⁠, z=5z = 5. (Textbook answer: x=2x = 2⁠, y=3y = 3⁠, z=5z = 5⁠.)

Check it with numbers

Substitute into the original equations:

22+33+105=1+1+2=4 ✓42−63+55=2−2+1=1 ✓62+93−205=3+3−4=2 ✓\begin{aligned} \tfrac22 + \tfrac33 + \tfrac{10}{5} &= 1 + 1 + 2 = 4 \ ✓ \\ \tfrac42 - \tfrac63 + \tfrac55 &= 2 - 2 + 1 = 1 \ ✓ \\ \tfrac62 + \tfrac93 - \tfrac{20}{5} &= 3 + 3 - 4 = 2 \ ✓ \end{aligned}
Common mistakes
  1. Treating the equations as linear in xx⁠, yy⁠, zz and writing 2x+3y+10z=42x + 3y + 10z = 4⁠. The unknowns appear as reciprocals.
  2. Stopping at u,v,wu, v, w and reporting x=12x = \frac12⁠, y=13y = \frac13⁠, z=15z = \frac15⁠. Those are the values of 1x\frac1x⁠, 1y\frac1y⁠, 1z\frac1z⁠.
  3. Forgetting the transpose in adj A, which gives a wrong A−1A^{-1} and wrong values.
  4. Sign slips in the cofactors with the negative entries −6-6 and −20-20⁠. The check of Step 4 catches them.
What to take away
  1. A system that is linear in some expressions (here 1x\frac1x⁠, 1y\frac1y⁠, 1z\frac1z⁠) can be solved by the matrix method after renaming those expressions.
  2. After solving, translate back and check that the translation is allowed (here, no zero denominators).
  3. Compute (adj⁡A)B(\operatorname{adj}A)B first and divide by ∣A∣|A| last to avoid fractions.

Every fact used, and where it comes from

FactUsed inSource
A system as AX=BAX = B⁠; unique solution 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); compare Example 17
Expansion of a 3×33\times3 determinantStep 2Section 4.2.3 (Lesson: expanding a 3 × 3 determinant)
Minors and cofactorsSteps 2, 3Section 4.4, Definitions 1, 2 (Lesson: minors and cofactors)
Adjoint; A (adj⁡A)=∣A∣ IA\,(\operatorname{adj}A) = |A|\,I⁠; A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}ASteps 3, 4Section 4.5.1, Definition 3; Section 4.5, Theorems 1 and 4 (Lesson: the adjoint)
Every cofactor, A−1A^{-1}⁠, the solution and the checkSteps 2–6, CheckRecomputed with sympy (and parsed from this page) in the site's verification script
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 →