Write a system of linear equations as one matrix equation AX = B. If |A| ≠ 0 there is exactly one solution, X = A⁻¹B; if |A| = 0, the adjoint tells you when there is none.
A stationery shop sells notebooks, pens and geometry boxes. One customer pays $\text{₹}\,200$ for three notebooks, two pens and a box; another pays $\text{₹}\,110$ for one of each; a third pays $\text{₹}\,270$ for two notebooks, a pen and three boxes. What does each item cost? That is three linear equations in three unknowns. Elimination works, but it is a different sequence of steps for every system, and it does not tell you in advance whether the equations even have a solution.
Matrices turn every such system into a single equation $AX=B$ that looks just like $ax=b$ for numbers. For numbers, $ax=b$ has the unique solution $x=\tfrac ba$ when $a\ne0$; when $a=0$ there is either no solution ($0x=5$) or every $x$ works ($0x=0$). In this section you will see that the same three outcomes happen for systems, with $|A|$ playing the part of $a$ and $A^{-1}$ (from Section 4.2) playing the part of $\tfrac1a$.
Systems of Equations as $AX=B$; Consistency
The system
$$\begin{aligned}a_1x+b_1y+c_1z&=d_1\\a_2x+b_2y+c_2z&=d_2\\a_3x+b_3y+c_3z&=d_3\end{aligned}$$
is exactly the matrix equation $AX=B$ with
$$A=\begin{bmatrix}a_1&b_1&c_1\\a_2&b_2&c_2\\a_3&b_3&c_3\end{bmatrix},$$
$$X=\begin{bmatrix}x\\y\\z\end{bmatrix},\qquad B=\begin{bmatrix}d_1\\d_2\\d_3\end{bmatrix},$$
because the row-by-column product $AX$ (Section 3.2) has entries $a_1x+b_1y+c_1z$, and so on. $A$ is the coefficient matrix, $X$ the column of unknowns and $B$ the column of constants. Two equations in two unknowns work in the same way with $2\times2$ and $2\times1$ matrices.
📘 Definition 4.7 — Consistent and inconsistent systems
A system of linear equations is consistent if it has at least one solution, and inconsistent if it has no solution.
For two equations in $x$ and $y$ each equation is a straight line, and a solution is a point on both lines. Exactly one of three things happens:
the lines cross at one point — consistent, with a unique solution;
the lines are parallel and distinct — inconsistent, no solution;
the lines coincide — consistent, with infinitely many solutions.
The last two happen exactly when the lines have the same slope, i.e. when $\tfrac{a_1}{a_2}=\tfrac{b_1}{b_2}$, i.e. when $a_1b_2-a_2b_1=0$: the determinant of the coefficient matrix is zero. Three equations in $x,y,z$ are three planes in space, and the same three outcomes occur. The rest of the section turns this picture into tests you can apply without drawing anything.
Interactive 1 — Two Lines, Three Outcomes
The blue line is $x+2y=4$. The red line is $kx+4y=c$. Move $k$ (or press Play): while $|A|=4-2k\ne0$ the lines cross at the point $X=A^{-1}B$, shown in green. At $k=2$ the determinant is $0$ and the lines become parallel: with $c=6$ they never meet (inconsistent); with $c=8$ they are the same line (infinitely many solutions). The readouts also show $(\operatorname{adj}A)B$, which decides between these two cases.
system—
$|A|$—
$(\operatorname{adj}A)B$—
outcome—
✏️ Example 1 — Writing a system as $AX=B$
(a) Write the shop problem above as $AX=B$, with $x,y,z$ the prices (in rupees) of a notebook, a pen and a geometry box. (b) Write $2x-y=3$, $\ 5y+4x=0$ in matrix form, taking care with the order of the terms.
💡 Show solution▶
(a) The equations are $3x+2y+z=200$, $x+y+z=110$, $2x+y+3z=270$, so
$$\begin{bmatrix}3&2&1\\1&1&1\\2&1&3\end{bmatrix}\begin{bmatrix}x\\y\\z\end{bmatrix}=\begin{bmatrix}200\\110\\270\end{bmatrix}.$$
(b) Rewrite the second equation with $x$ first: $4x+5y=0$. Then
$$\begin{bmatrix}2&-1\\4&5\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}3\\0\end{bmatrix}.$$
Check Multiplying out (b): row 1 gives $2x-y$, row 2 gives $4x+5y$ ✓. A missing variable gets the coefficient $0$, and every column of $A$ must belong to one variable.
Unique Solutions: the Matrix Method $X=A^{-1}B$
📐 Theorem 4.7 — Non-singular coefficient matrix
Let $A$ be a square matrix of order $2$ or $3$ and $B$ a column of the same height. If $A$ is non-singular ($|A|\ne0$), the system $AX=B$ is consistent and has exactly one solution,
$$X=A^{-1}B=\frac1{|A|}(\operatorname{adj}A)B.$$
Proof. Since $|A|\ne0$, $A^{-1}$ exists (Theorem 4.6). It is a solution: $A(A^{-1}B)=(AA^{-1})B=IB=B$. It is the only one: if $AX=B$, multiply both sides on the left by $A^{-1}$: $A^{-1}AX=A^{-1}B$, i.e. $IX=X=A^{-1}B$. $\square$
This is the matrix method. It costs one inverse, but once $A^{-1}$ is known, every system with the same left-hand side — the same coefficients, different right-hand sides — is solved by a single multiplication.
🧭 Problem-solving strategy — the matrix method
Write the system as $AX=B$, with every equation's terms in the order $x,y,z$ and zeros for missing variables.
Find $|A|$. If $|A|\ne0$, continue; if $|A|=0$, use Theorem 4.8 below.
Find $\operatorname{adj}A$ (cofactors, then transpose — Section 4.2).
Multiply $(\operatorname{adj}A)B$ first, then divide by $|A|$. This keeps fractions out until the very end.
Check by substituting $x,y,z$ into every original equation.
✏️ Example 2 — Two equations
Solve $3x+5y=4$, $\ 2x+4y=2$ by the matrix method.
💡 Show solution▶
Set up $A=\begin{bmatrix}3&5\\2&4\end{bmatrix}$, $B=\begin{bmatrix}4\\2\end{bmatrix}$, $|A|=12-10=2\ne0$: a unique solution exists.
Inverse From Example 4 of Section 4.2, $A^{-1}=\tfrac12\begin{bmatrix}4&-5\\-2&3\end{bmatrix}$.
Solve $$X=\frac12\begin{bmatrix}4&-5\\-2&3\end{bmatrix}\begin{bmatrix}4\\2\end{bmatrix}=\frac12\begin{bmatrix}16-10\\-8+6\end{bmatrix}=\begin{bmatrix}3\\-1\end{bmatrix}.$$ So $x=3$, $y=-1$.
Check $3(3)+5(-1)=4$ ✓; $2(3)+4(-1)=2$ ✓.
✏️ Example 3 — Three equations
Solve by the matrix method: $\ 2x+y+z=6$, $\ x-y+2z=9$, $\ 3x+2y-z=1$.
💡 Show solution▶
Set up $$A=\begin{bmatrix}2&1&1\\1&-1&2\\3&2&-1\end{bmatrix},\quad B=\begin{bmatrix}6\\9\\1\end{bmatrix}.$$ Along row 1: $|A|=2(1-4)-1(-1-6)+1(2+3)=-6+7+5=6\ne0$.
Answer A notebook costs $\text{₹}\,40$, a pen $\text{₹}\,10$ and a geometry box $\text{₹}\,60$. Check: $120+20+60=200$ ✓, $40+10+60=110$ ✓, $80+10+180=270$ ✓.
Interactive 2 — Matrix-Method Solver
Pick a system and press Play (or Next step). The solver follows the strategy box: (1) $|A|$, (2) $\operatorname{adj}A$, (3) the product $(\operatorname{adj}A)B$, (4) the verdict — $X=\tfrac1{|A|}(\operatorname{adj}A)B$ when $|A|\ne0$, or the test of Theorem 4.8 when $|A|=0$ — and finally substitutes the answer back. All arithmetic is exact. 🎲 makes a fresh system with a whole-number solution.
step—
$|A|$—
$(\operatorname{adj}A)B$—
outcome—
When $|A|=0$: No Solution or Infinitely Many
If $A$ is singular there is no $A^{-1}$, so Theorem 4.7 is silent. The adjoint still exists, however, and the identity $(\operatorname{adj}A)A=|A|\,I$ of Theorem 4.4 still holds — with $|A|=0$ it says $(\operatorname{adj}A)A=O$. That is enough to detect many inconsistent systems.
📐 Theorem 4.8 — Singular coefficient matrix
Let $|A|=0$ in the system $AX=B$, and compute $(\operatorname{adj}A)B$.
(a) If $(\operatorname{adj}A)B\ne O$, the system is inconsistent (no solution).
(b) If $(\operatorname{adj}A)B=O$, the system may be consistent (with infinitely many solutions) or inconsistent. Decide by solving it directly: express some unknowns in terms of the others and check every equation.
Proof of (a). Suppose, on the contrary, that some $X$ satisfies $AX=B$. Multiply on the left by $\operatorname{adj}A$: $(\operatorname{adj}A)AX=(\operatorname{adj}A)B$. By Theorem 4.4 the left side is $|A|\,IX=0\cdot X=O$. So $(\operatorname{adj}A)B=O$ — contradicting the hypothesis. Hence there is no solution. $\square$
Part (b) cannot be sharpened using the adjoint alone. For example, the system $x+y+z=1$, $\ 2x+2y+2z=2$, $\ 3x+3y+3z=4$ has every $2\times2$ minor equal to $0$, so $\operatorname{adj}A=O$ and $(\operatorname{adj}A)B=O$ — yet it is inconsistent, because the first equation says $x+y+z=1$ and the third says $x+y+z=\tfrac43$. When $(\operatorname{adj}A)B=O$, always finish by solving.
✏️ Example 5 — Singular 2 × 2 systems
Decide whether each system is consistent. If it is, find all solutions. (a) $2x-4y=3$, $\ -x+2y=1$ (b) $x+2y=3$, $\ 3x+6y=9$.
💡 Show solution▶
(a) $|A|=\begin{vmatrix}2&-4\\-1&2\end{vmatrix}=4-4=0$. $\operatorname{adj}A=\begin{bmatrix}2&4\\1&2\end{bmatrix}$, and $(\operatorname{adj}A)B=\begin{bmatrix}6+4\\3+2\end{bmatrix}=\begin{bmatrix}10\\5\end{bmatrix}\ne O$. By Theorem 4.8(a) the system is inconsistent: the lines $y=\tfrac x2-\tfrac34$ and $y=\tfrac x2+\tfrac12$ are parallel.
(b) $|A|=6-6=0$; $\operatorname{adj}A=\begin{bmatrix}6&-2\\-3&1\end{bmatrix}$, $(\operatorname{adj}A)B=\begin{bmatrix}18-18\\-9+9\end{bmatrix}=O$. Solve directly: the second equation is $3$ times the first, so only $x+2y=3$ remains. Put $y=t$: then $x=3-2t$.
Answer (b) is consistent with infinitely many solutions $(x,y)=(3-2t,\,t)$, $t\in\mathbb R$ — every point of one line. For example $t=0$ gives $(3,0)$ and $t=1$ gives $(1,1)$; both satisfy both equations ✓.
✏️ Example 6 — Singular 3 × 3 systems
Both systems have the coefficient matrix $S=\begin{bmatrix}1&1&1\\1&2&3\\1&3&5\end{bmatrix}$ of Example 3 in Section 4.2 ($|S|=0$). (a) $x+y+z=1$, $\ x+2y+3z=2$, $\ x+3y+5z=4$. (b) $x+y+z=1$, $\ x+2y+3z=2$, $\ x+3y+5z=3$.
💡 Show solution▶
Adjoint From Exercise II.5 of Section 4.2: $$\operatorname{adj}S=\begin{bmatrix}1&-2&1\\-2&4&-2\\1&-2&1\end{bmatrix}.$$
(a) $(\operatorname{adj}S)B$ with $B=(1,2,4)$: $1-4+4=1$, $\ -2+8-8=-2$, $\ 1-4+4=1$. Not $O$, so by Theorem 4.8(a) the system is inconsistent.
(b) With $B=(1,2,3)$: $1-4+3=0$, $\ -2+8-6=0$, $\ 1-4+3=0$, so $(\operatorname{adj}S)B=O$ and we must solve. Subtract equation 1 from equation 2: $y+2z=1$. Put $z=t$: $y=1-2t$, and then $x=1-y-z=t$. Test equation 3: $t+3(1-2t)+5t=3$ ✓ for every $t$.
Answer (b) is consistent with infinitely many solutions $(x,y,z)=(t,\,1-2t,\,t)$, $t\in\mathbb R$. Geometrically, the three planes share a whole line.
Why Row 3 of $S$ is $2\times$ row 2 $-$ row 1. In (b) the right sides obey the same rule ($2\cdot2-1=3$), so equation 3 adds nothing new; in (a) they do not ($4\ne3$), so equation 3 contradicts the others.
Homogeneous systems. A system $AX=O$ (all constants zero) is always consistent, because $X=O$ — that is, $x=y=z=0$ — is a solution. By Theorem 4.7, if $|A|\ne0$ this is the only solution. Non-zero solutions can exist only when $|A|=0$; Example 6(b) with right-hand sides $(0,0,0)$ instead gives $(t,-2t,t)$.
⚠️ Common mistakes when studying alone
1. $XA$ instead of $AX$. The unknowns form a column on the right of $A$, and the solution is $X=A^{-1}B$ — not $BA^{-1}$, which is not even defined for a $3\times1$ column $B$.
2. Terms out of order. Rewrite every equation as $(\ )x+(\ )y+(\ )z=\text{constant}$ before reading off $A$, with $0$ for a missing variable.
3. Concluding “infinitely many” too soon. $|A|=0$ and $(\operatorname{adj}A)B=O$ do not guarantee a solution (see the example after Theorem 4.8). Solve and check.
4. Concluding “no solution” from $|A|=0$ alone. $|A|=0$ only says the solution is not unique or does not exist; you must compute $(\operatorname{adj}A)B$.
5. Skipping the check. Substituting the answer into all the original equations takes a minute and catches almost every sign error in the cofactors.
Exercises
I
Matrix form and consistency.
1 Write $3x-2y+z=4$, $\ x+5z=-1$, $\ 2y-z=0$ in the form $AX=B$.
2 Is $x+2y=2$, $\ 2x+4y=3$ consistent? Use Theorem 4.8.
3 Is $3x-y=5$, $\ 6x-2y=10$ consistent? If so, describe all solutions.
4 Without solving, show that $2x+y=5$, $\ x-3y=-1$ has exactly one solution.
5 For which $k$ does $x+y+z=2$, $\ x+2y+3z=1$, $\ x+3y+kz=0$ have a unique solution?
6 Take $k=5$ in part 5. Show that $(\operatorname{adj}A)B=O$, and find all solutions.
7 Still with $k=5$, change the third constant from $0$ to $1$. Show that the new system is inconsistent.
8 Show that the homogeneous system $2x-y+z=0$, $\ x+y-z=0$, $\ x-2y+3z=0$ has only the solution $x=y=z=0$.
9 For which $\lambda$ is $2x+3y=5$, $\ 4x+\lambda y=10$ not uniquely solvable? Is it then consistent?
10 Repeat part 9 with the second equation $4x+\lambda y=9$.
3 $|A|=-6+6=0$; $\operatorname{adj}A=\begin{bmatrix}-2&1\\-6&3\end{bmatrix}$; $(\operatorname{adj}A)B=(-10+10,\,-30+30)=O$. The second equation is twice the first: consistent, with infinitely many solutions $(x,y)=(t,\,3t-5)$, $t\in\mathbb R$.
4 $|A|=-6-1=-7\ne0$, so by Theorem 4.7 there is exactly one solution (it is $x=2$, $y=1$).
5 $|A|=1(2k-9)-1(k-3)+1(3-2)=k-5$: unique solution exactly when $k\ne5$.
6 $\operatorname{adj}A$ is the matrix of Example 6; with $B=(2,1,0)$: $2-2+0=0$, $-4+4-0=0$, $2-2+0=0$. Solving: equation 2 $-$ equation 1 gives $y+2z=-1$; put $z=t$, $y=-1-2t$, $x=2-y-z=3+t$. Equation 3: $(3+t)+3(-1-2t)+5t=0$ ✓. Solutions $(3+t,\,-1-2t,\,t)$.
7 With $B=(2,1,1)$: $(\operatorname{adj}A)B=(1,-2,1)\ne O$, so the system is inconsistent (Theorem 4.8(a)).
8 $|A|=2(3-2)-(-1)(3+1)+1(-2-1)=2+4-3=3\ne0$, so $X=A^{-1}O=O$ is the only solution.
9 $|A|=2\lambda-12=0$ at $\lambda=6$. Then $\operatorname{adj}A=\begin{bmatrix}6&-3\\-4&2\end{bmatrix}$ and $(\operatorname{adj}A)B=(30-30,\,-20+20)=O$; the second equation is twice the first, so it is consistent with infinitely many solutions.
10 Again $\lambda=6$, but now $(\operatorname{adj}A)B=(30-27,\,-20+18)=(3,-2)\ne O$: inconsistent.
II
Solve by the matrix method.
1 $4x+3y=2$, $\ 5x+4y=4$
2 $2x-3y=8$, $\ x+2y=-3$
3 $3x+4y=7$, $\ x-2y=-1$
4 $\tfrac12x+\tfrac13y=2$, $\ x-y=1$
5 $x+y+z=6$, $\ x-y+z=2$, $\ 2x+y-z=1$
6 $x+2y-z=-3$, $\ 3x-y+2z=8$, $\ 2x+y+z=3$
7 $x-y=-1$, $\ 2x+3y+4z=9$, $\ y+2z=1$ (the inverse was found in Exercise III.5 of Section 4.2)
8 $x+2z=1$, $\ 3x-y+4z=-1$, $\ 5y-2z=8$
9 Let $A=\begin{bmatrix}1&-2&0\\2&1&3\\0&-2&1\end{bmatrix}$ and $C=\begin{bmatrix}7&2&-6\\-2&1&-3\\-4&2&5\end{bmatrix}$. Find $AC$, and use it to solve $x-2y=10$, $\ 2x+y+3z=8$, $\ -2y+z=7$.
Check: solve AX = B in exact fractions
=
=
=
—
Type the coefficients of $x$, $y$ (and $z$) and the constant. Fractions such as 1/2 are allowed.
9 $AC=11I$ (check: row 1 of $A$ times column 1 of $C$ is $7+4+0=11$, times column 2 is $2-2+0=0$, …). So $A^{-1}=\tfrac1{11}C$ and $X=\tfrac1{11}C\begin{bmatrix}10\\8\\7\end{bmatrix}=\tfrac1{11}(44,-33,11)$: $x=4$, $y=-3$, $z=1$.
III
Applications. Set up a system, solve it by the matrix method and answer in context.
1Canteen. Two samosas and a cup of tea cost $\text{₹}\,40$; one samosa and three cups of tea cost $\text{₹}\,45$. Find each price.
2Groceries. Three customers buy rice, dal and sugar (in kg) in the amounts $(2,1,1)$, $(1,2,1)$, $(1,1,2)$ and pay $\text{₹}\,255$, $\text{₹}\,315$ and $\text{₹}\,250$. Find the price per kg of each.
3Savings. A family invests $\text{₹}\,50\,000$ in three schemes paying $6\%$, $7\%$ and $8\%$ simple interest a year, earning $\text{₹}\,3\,550$ in a year. The amount in the $8\%$ scheme equals the total in the other two. How much is in each?
4Circuit. The currents (in amperes) in a circuit satisfy $I_1=I_2+I_3$, $\ 2I_1+3I_2=12$, $\ 3I_2-6I_3=0$. Find them.
5Fitting a curve. Find $a,b,c$ such that the parabola $y=ax^2+bx+c$ passes through $(1,2)$, $(2,3)$ and $(3,6)$.
6Spot the error. A sports shop's records say that one bat and two balls cost $\text{₹}\,1100$, and two bats and four balls cost $\text{₹}\,2000$. Show that the records cannot both be right.
💡 Show solutions▶
1 $2s+t=40$, $s+3t=45$: $|A|=5$, $X=\tfrac15\begin{bmatrix}3&-1\\-1&2\end{bmatrix}\begin{bmatrix}40\\45\end{bmatrix}=\tfrac15(75,50)$. A samosa costs $\text{₹}\,15$ and a tea $\text{₹}\,10$.
2 $|A|=4$, $\operatorname{adj}A=\begin{bmatrix}3&-1&-1\\-1&3&-1\\-1&-1&3\end{bmatrix}$, $(\operatorname{adj}A)B=(200,440,180)$: rice $\text{₹}\,50$/kg, dal $\text{₹}\,110$/kg, sugar $\text{₹}\,45$/kg.
3 $x+y+z=50000$, $6x+7y+8z=355000$ (interest $\times100$), $x+y-z=0$. $|A|=-2$, $\operatorname{adj}A=\begin{bmatrix}-15&2&1\\14&-2&-2\\-1&0&1\end{bmatrix}$, $(\operatorname{adj}A)B=(-40000,-10000,-50000)$; dividing by $-2$: $\text{₹}\,20\,000$ at $6\%$, $\text{₹}\,5\,000$ at $7\%$, $\text{₹}\,25\,000$ at $8\%$. Check: $1200+350+2000=3550$ ✓.
4 $I_1-I_2-I_3=0$, $2I_1+3I_2=12$, $3I_2-6I_3=0$: $|A|=-36$, $(\operatorname{adj}A)B=(-108,-72,-36)$, so $I_1=3$ A, $I_2=2$ A, $I_3=1$ A.
6 $x+2y=1100$, $2x+4y=2000$: $|A|=0$, $\operatorname{adj}A=\begin{bmatrix}4&-2\\-2&1\end{bmatrix}$, $(\operatorname{adj}A)B=(4400-4000,\,-2200+2000)=(400,-200)\ne O$. Inconsistent: doubling the first purchase should cost $\text{₹}\,2200$, not $\text{₹}\,2000$.
How this is examined: the Board's 5-mark question almost always reads “find $A^{-1}$ and hence solve the system”, and marks go for $|A|$, the cofactors, the adjoint, the product and the check. 1-mark questions test consistency. JEE asks for the parameter values that give a unique solution, no solution or infinitely many.
E1.Board · 1 mark The system $x+2y=3$, $\ 2x+4y=6$ has (A) a unique solution (B) no solution (C) infinitely many solutions (D) exactly two solutions
💡 Show solution▶
Idea $|A|=4-4=0$ and $(\operatorname{adj}A)B=\begin{bmatrix}4&-2\\-2&1\end{bmatrix}\begin{bmatrix}3\\6\end{bmatrix}=O$; the second equation is twice the first.
Answer (C). Trap (B): $|A|=0$ alone does not mean “no solution”. (D) is impossible: a linear system never has exactly two solutions.
E2.Board · 1 markAssertion–Reason. Assertion (A): the system $3x-6y=2$, $\ x-2y=1$ is inconsistent. Reason (R): if $|A|=0$ and $(\operatorname{adj}A)B\ne O$, the system $AX=B$ has no solution. (A) Both A and R are true and R is the correct explanation of A (B) Both A and R are true but R is not the correct explanation of A (C) A is true but R is false (D) A is false but R is true
💡 Show solution▶
Idea R is Theorem 4.8(a). Here $|A|=-6+6=0$, $\operatorname{adj}A=\begin{bmatrix}-2&6\\-1&3\end{bmatrix}$ and $(\operatorname{adj}A)B=(-4+6,\,-2+3)=(2,1)\ne O$, so A follows from R.
Answer (A).
E3.Board · 5 marks If $A=\begin{bmatrix}2&1&-2\\1&-1&3\\3&2&1\end{bmatrix}$, find $A^{-1}$. Hence solve $2x+y-2z=6$, $\ x-y+3z=-4$, $\ 3x+2y+z=6$.
E4.Board · Case study For sports day a school buys footballs ($\text{₹}\,x$ each), cricket balls ($\text{₹}\,y$) and shuttlecock tubes ($\text{₹}\,z$). The three orders are: $1$ football, $2$ cricket balls and $1$ tube for $\text{₹}\,950$; $2$ footballs, $1$ cricket ball and $2$ tubes for $\text{₹}\,1450$; $1$ football, $1$ cricket ball and $3$ tubes for $\text{₹}\,1300$. (i) Write the orders as $AX=B$ and find $|A|$. [1 mark] (ii) Find $\operatorname{adj}A$. [2 marks] (iii) Find the three prices. [1 mark]
(ii) Cofactors by rows: $(1,-4,1)$, $(-5,2,1)$, $(3,0,-3)$; $$\operatorname{adj}A=\begin{bmatrix}1&-5&3\\-4&2&0\\1&1&-3\end{bmatrix}.$$
(iii) $(\operatorname{adj}A)B=(950-7250+3900,\ -3800+2900,\ 950+1450-3900)=(-2400,-900,-1500)$; dividing by $-6$: a football costs $\text{₹}\,400$, a cricket ball $\text{₹}\,150$ and a tube $\text{₹}\,250$.
E5.JEE Main The system $x+y+z=2$, $\ 2x+y-z=3$, $\ 3x+2y+kz=4$ has a unique solution if and only if (A) $k\ne0$ (B) $k=0$ (C) $k\ne1$ (D) $k$ is any real number
💡 Show solution▶
Method $|A|=1(k+2)-1(2k+3)+1(4-3)=-k$, which is non-zero exactly when $k\ne0$.
Answer (A). At $k=0$ the left side of equation 3 is the sum of the first two left sides, but $2+3=5\ne4$: no solution. Trap (C) comes from a sign slip giving $|A|=1-k$. ⏱ Fast route: spot that row 3 of $A$ at $k=0$ is row 1 $+$ row 2.
E6.JEE Advanced(One or more correct options.) Consider $x+y+2z=4$, $\ 2x-y+z=2$, $\ x-2y+\lambda z=\mu$. Which statements are true? (A) There is a unique solution whenever $\lambda\ne-1$. (B) If $\lambda=-1$ and $\mu\ne-2$, there is no solution. (C) If $\lambda=-1$ and $\mu=-2$, there are infinitely many solutions. (D) If $\lambda=1$ and $\mu=-2$, there are infinitely many solutions.
💡 Show solution▶
Determinant $|A|=1(-\lambda+2)-1(2\lambda-1)+2(-4+1)=-3\lambda-3$, zero only at $\lambda=-1$. So (A) is true, and (D) is false ($\lambda=1$ gives $|A|=-6\ne0$: a unique solution).
At λ = −1 Row 3 of $A$, $(1,-2,-1)$, equals row 2 $-$ row 1. The system is consistent only if the constants obey the same rule: $\mu=2-4=-2$. Then equation 3 is redundant and the first two equations (two non-parallel planes) share a whole line: infinitely many solutions. If $\mu\ne-2$, equation 3 contradicts the others.
Answer (A), (B), (C). Check (C) with the adjoint test: at $\lambda=-1$, $\mu=-2$, $(\operatorname{adj}A)B=O$ — and a solution exists, e.g. $(2,2,0)$: $2+2=4$ ✓, $4-2=2$ ✓, $2-4=-2$ ✓.
🔬 Research–Teaching NexusMini project · about 60 minutes
Research question. Can you design a day's snack from three foods you actually eat that hits exact targets for energy, protein and fibre — and what does the matrix method say when it cannot be done?
Why it matters. Dietitians, hospital kitchens and the mid-day meal scheme plan menus to meet nutrient targets. With three foods and three targets the plan is a $3\times3$ system $AX=B$: the columns of $A$ are the nutrients per serving of each food, $X$ the numbers of servings and $B$ the targets. A negative or impossible answer is information too.
What to do.
Choose three packaged foods (for example oats, roasted chana, a banana or milk) and copy energy (kcal), protein (g) and fibre (g) per serving from the labels or a nutrition table.
Set targets for a snack, e.g. $400$ kcal, $15$ g protein, $8$ g fibre. Write $AX=B$ and find $|A|$.
Solve with MINVERSE and MMULT in a spreadsheet, and solve once by hand with the adjoint. Are all the servings positive? Round to practical amounts and see how far you miss each target.
Replace one food by a mixture of the other two (e.g. a “half oats, half chana” bar). What happens to $|A|$, and what does Theorem 4.8 tell you?
Tools: Food labels or a nutrition table; spreadsheet (MDETERM, MINVERSE, MMULT).
Hand in: Your matrix $A$, the solution, a table of target vs achieved nutrients after rounding, and a short note on what a negative serving means for the plan.
Going further. With four foods and three targets there are usually infinitely many plans. How would you choose the cheapest? (This leads to linear programming, Chapter 12.)
Instructor note: a food made by mixing two others gives a column of $A$ that is a combination of two other columns, so $|A|=0$; students then see Theorem 4.8 in action — usually $(\operatorname{adj}A)B\ne O$ and no exact plan exists. Negative servings are common when two foods have similar nutrient profiles: the system is nearly singular (see the mini project of Section 4.2).
🧪 Self-check quiz
0/5 correct
Q1. If $|A|\ne0$, the system $AX=B$ has
Q2. A system of equations is called consistent when
Q3. If $|A|=0$ and $(\operatorname{adj}A)B\ne O$, then $AX=B$ has
Q4. The solution of $2x+y=5$, $\ x+y=3$ is
Q5. For a homogeneous system $AX=O$ with $|A|\ne0$,