Why this chapter matters. This chapter drew 3 real questions in the seven papers from NDA II 2023 to NDA II 2026: one on whether a system has a solution, one on Cramer's rule, and one on a system with letters in place of numbers. The count is small, but the chapter uses everything in this unit, and the question "how many solutions?" can be answered in seconds. Two of the real questions are solved in section 7, followed by three practice questions in the exam style.
What you will be able to do
- Write a system of linear equations as one matrix equation โAX = Bโ.
- Solve a system by Cramer's rule and by the matrix method.
- Say, without solving, whether a system has one solution, no solution or infinitely many.
- Find the value of a constant for which a homogeneous system has a non-zero solution.
Before you start you should know: how to find a determinant (Chapter M2-2) and the inverse of a matrix (Chapter M2-3).
1. A system as one matrix equation
Take the system โ2x + 3y = 8โ, โx - y = -1โ. Put the coefficients in a matrix โAโ, the unknowns in a column โXโ and the constants in a column โBโ:
\begin{bmatrix} 2 & 3 \\ 1 & -1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 8 \\ -1 \end{bmatrix}, \quad \text{that is} \quad AX = B
โAโ is called the coefficient matrix. Its determinant is written โDโ (or โ\Deltaโ). Before you read off โAโ and โBโ, write every equation with the unknowns on the left, in the same order, and the constant on the right.
A system is consistent if it has at least one solution, and inconsistent if it has none.
2. Cramer's rule
For three equations โa_1x + b_1y + c_1z = d_1โ, โa_2x + b_2y + c_2z = d_2โ, โa_3x + b_3y + c_3z = d_3โ, make four determinants:
- โDโ: the determinant of the coefficients.
- โD_1โ: replace the first column of โDโ (the โxโ column) by the constants โd_1, d_2, d_3โ.
- โD_2โ: replace the second column (the โyโ column) by the constants.
- โD_3โ: replace the third column (the โzโ column) by the constants.
If โD \ne 0โ, the system has exactly one solution:
x = \frac{D_1}{D}, \qquad y = \frac{D_2}{D}, \qquad z = \frac{D_3}{D}
For two equations in two unknowns the rule is the same, with โDโ, โD_1โ and โD_2โ of order 2. For the system in section 1:
โD = \begin{vmatrix} 2 & 3 \\ 1 & -1 \end{vmatrix} = -5โ, โD_1 = \begin{vmatrix} 8 & 3 \\ -1 & -1 \end{vmatrix} = -5โ, โD_2 = \begin{vmatrix} 2 & 8 \\ 1 & -1 \end{vmatrix} = -10โ.
So โx = \dfrac{-5}{-5} = 1โ and โy = \dfrac{-10}{-5} = 2โ. Check: โ2 + 6 = 8โ and โ1 - 2 = -1โ.
3. The matrix method
If โ|A| \ne 0โ, multiply โAX = Bโ on the left by โA^{-1}โ:
X = A^{-1}B
The order matters: it is โA^{-1}Bโ, never โBA^{-1}โ.
For the same system, โ|A| = -5โ and โ\operatorname{adj} A = \begin{bmatrix} -1 & -3 \\ -1 & 2 \end{bmatrix}โ. So
X = \frac{1}{-5} \begin{bmatrix} -1 & -3 \\ -1 & 2 \end{bmatrix} \begin{bmatrix} 8 \\ -1 \end{bmatrix} = \frac{1}{-5} \begin{bmatrix} -5 \\ -10 \end{bmatrix} = \begin{bmatrix} 1 \\ 2 \end{bmatrix}
Are Cramer's rule and the matrix method the same? They are two routes to the same answer. Cramer's rule finds each unknown on its own, as a ratio of two determinants. The matrix method finds all the unknowns together, as โX = A^{-1}Bโ. Since โA^{-1} = \dfrac{\operatorname{adj} A}{|A|}โ, Cramer's rule is the matrix method written out one unknown at a time. Both need the same thing: the determinant of the coefficients must not be zero.
4. How many solutions?
| What you find | Number of solutions | The system is |
|---|---|---|
| โD \ne 0โ | Exactly one | Consistent |
| โD = 0โ, and at least one of โD_1, D_2, D_3โ is not zero | None | Inconsistent |
| โD = 0โ, and โD_1 = D_2 = D_3 = 0โ | Infinitely many, or in rare cases none. Look at the equations | Usually consistent |
An example of the rare case: โx + y + z = 1โ, โx + y + z = 2โ, โx + y + z = 3โ. Every determinant is zero, but the equations contradict each other.
In the matrix method the same test reads: if โ|A| = 0โ, find โ(\operatorname{adj} A)Bโ. If it is not the zero matrix, there is no solution. If it is the zero matrix, there are infinitely many solutions or none.
Two equations in two unknowns have a faster test. For โa_1x + b_1y = c_1โ and โa_2x + b_2y = c_2โ, compare ratios:
| Ratios | Picture | Solutions |
|---|---|---|
| โ\dfrac{a_1}{a_2} \ne \dfrac{b_1}{b_2}โ | Two lines that cross | Exactly one |
| โ\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} \ne \dfrac{c_1}{c_2}โ | Two parallel lines | None |
| โ\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}โ | The same line twice | Infinitely many |

The picture shows one system of each kind. On the left, the system of section 1: the lines cross at โ(1, 2)โ, which is its solution. In the middle and on the right, the systems of Example 3 below.
5. Homogeneous systems
A system is homogeneous when every constant on the right is zero: โAX = Oโ. Then โx = y = z = 0โ is always a solution. It is called the trivial solution. So a homogeneous system is always consistent, and the only question is whether it has other solutions:
- If โ|A| \ne 0โ, the trivial solution is the only one.
- If โ|A| = 0โ, there are infinitely many solutions, so there are non-zero (non-trivial) ones.
6. Worked examples
Example 1. Solve by Cramer's rule: โx + y + z = 6โ, โx - y + z = 2โ, โ2x + y - z = 1โ.
โD = \begin{vmatrix} 1 & 1 & 1 \\ 1 & -1 & 1 \\ 2 & 1 & -1 \end{vmatrix} = 1(1 - 1) - 1(-1 - 2) + 1(1 + 2) = 0 + 3 + 3 = 6โ.
โD_1 = \begin{vmatrix} 6 & 1 & 1 \\ 2 & -1 & 1 \\ 1 & 1 & -1 \end{vmatrix} = 6(1 - 1) - 1(-2 - 1) + 1(2 + 1) = 6โ.
โD_2 = \begin{vmatrix} 1 & 6 & 1 \\ 1 & 2 & 1 \\ 2 & 1 & -1 \end{vmatrix} = 1(-2 - 1) - 6(-1 - 2) + 1(1 - 4) = -3 + 18 - 3 = 12โ.
โD_3 = \begin{vmatrix} 1 & 1 & 6 \\ 1 & -1 & 2 \\ 2 & 1 & 1 \end{vmatrix} = 1(-1 - 2) - 1(1 - 4) + 6(1 + 2) = -3 + 3 + 18 = 18โ.
So โx = \dfrac{6}{6} = 1โ, โy = \dfrac{12}{6} = 2โ, โz = \dfrac{18}{6} = 3โ. Check in the third equation: โ2 + 2 - 3 = 1โ.
Example 2. Solve by the matrix method: โ5x + 2y = 4โ, โ7x + 3y = 5โ.
โA = \begin{bmatrix} 5 & 2 \\ 7 & 3 \end{bmatrix}โ and โ|A| = 15 - 14 = 1โ. So โA^{-1} = \operatorname{adj} A = \begin{bmatrix} 3 & -2 \\ -7 & 5 \end{bmatrix}โ, and
X = A^{-1}B = \begin{bmatrix} 3 & -2 \\ -7 & 5 \end{bmatrix} \begin{bmatrix} 4 \\ 5 \end{bmatrix} = \begin{bmatrix} 12 - 10 \\ -28 + 25 \end{bmatrix} = \begin{bmatrix} 2 \\ -3 \end{bmatrix}
So โx = 2โ and โy = -3โ. Check: โ10 - 6 = 4โ and โ14 - 9 = 5โ.
Example 3. For what values of โkโ does the system โx + 2y = 3โ, โ2x + ky = 6โ have (i) exactly one solution, (ii) infinitely many solutions?
โD = k - 4โ. (i) If โk \ne 4โ, then โD \ne 0โ and there is exactly one solution. (ii) If โk = 4โ, the ratios are โ\dfrac{1}{2} = \dfrac{2}{4} = \dfrac{3}{6}โ: the second equation is twice the first, so there are infinitely many solutions.
If the second equation were โ2x + 4y = 7โ, the ratios would be โ\dfrac{1}{2} = \dfrac{2}{4} \ne \dfrac{3}{7}โ and there would be no solution.
Example 4. For what value of โkโ does the system โx + y + z = 0โ, โx + 2y + 3z = 0โ, โx + 3y + kz = 0โ have a non-zero solution?
The system is homogeneous, so we need โ|A| = 0โ:
โ\begin{vmatrix} 1 & 1 & 1 \\ 1 & 2 & 3 \\ 1 & 3 & k \end{vmatrix} = 1(2k - 9) - 1(k - 3) + 1(3 - 2) = k - 5โ.
So โk = 5โ.
7. From the real papers
Only two real questions are given here. The third question captured on this chapter (NDA II 2025, Q14, on Cramer's rule) has a slip in its printed wording, so practice question 1 below takes its place.
NDA II 2025, Q12. The system of equations โ2x - 3y - 5 = 0โ, โ15y - 10x + 50 = 0โ
(a) has a unique solutionโโ(b) has infinitely many solutionsโโ(c) is inconsistentโโ(d) is consistent and has exactly two solutions
Solution. Write both in the same form: โ2x - 3y = 5โ and โ-10x + 15y = -50โ. The ratios are โ\dfrac{2}{-10} = \dfrac{-3}{15} = -\dfrac{1}{5}โ, but โ\dfrac{5}{-50} = -\dfrac{1}{10}โ. The first two ratios are equal and the third is different, so the lines are parallel and there is no solution. Answer (c).
NDA II 2026, Q39. If โx + ay + a^2z = 1โ, โx + by + b^2z = 1โ, โx + cy + c^2z = 1โ where โa \ne b \ne cโ, then what is โx + y + zโ equal to?
(a) โ0โโโ(b) โ1โโโ(c) โ3โโโ(d) โa + b + cโ
Solution. Try โx = 1โ, โy = 0โ, โz = 0โ: it satisfies all three equations. Is it the only solution? The coefficient determinant is โ\begin{vmatrix} 1 & a & a^2 \\ 1 & b & b^2 \\ 1 & c & c^2 \end{vmatrix} = (a-b)(b-c)(c-a)โ (Chapter M2-2, Example 3), which is not zero because โaโ, โbโ, โcโ are different. So the solution is unique, and โx + y + z = 1โ. Answer (b).
Practice questions in the exam style
These three questions are our own, written in the style of the paper. They are not from a real paper.
Practice 1. The system โx + y + z = 6โ, โx + 2y + 3z = 14โ, โx + 4y + 9z = 36โ is solved by Cramer's rule. What is the value of the determinant โD_2โ, which is used to find โyโ?
(a) 2โโ(b) 4โโ(c) 6โโ(d) 12
Solution. Replace the second column of โDโ by the constants: โD_2 = \begin{vmatrix} 1 & 6 & 1 \\ 1 & 14 & 3 \\ 1 & 36 & 9 \end{vmatrix} = 1(126 - 108) - 6(9 - 3) + 1(36 - 14) = 18 - 36 + 22 = 4โ. (Here โD = 2โ, so โy = \dfrac{4}{2} = 2โ.) Answer (b).
Practice 2. For what value of โkโ does the system โkx + y = 1โ, โx + ky = 1โ have no solution?
(a) โ-1โโโ(b) โ0โโโ(c) โ1โโโ(d) โ2โ
Solution. โD = k^2 - 1โ, which is zero when โk = 1โ or โk = -1โ. For โk = 1โ both equations are โx + y = 1โ: infinitely many solutions. For โk = -1โ the equations are โ-x + y = 1โ and โx - y = 1โ, that is โx - y = -1โ and โx - y = 1โ: no solution. Answer (a).
Practice 3. If โA^{-1} = \begin{bmatrix} 1 & -1 \\ 2 & 0 \end{bmatrix}โ and โAX = \begin{bmatrix} 3 \\ 1 \end{bmatrix}โ, what is โXโ?
(a) โ\begin{bmatrix} 2 \\ 6 \end{bmatrix}โโโ(b) โ\begin{bmatrix} 4 \\ 2 \end{bmatrix}โโโ(c) โ\begin{bmatrix} 2 \\ 2 \end{bmatrix}โโโ(d) โ\begin{bmatrix} 3 \\ 1 \end{bmatrix}โ
Solution. โX = A^{-1}B = \begin{bmatrix} 3 - 1 \\ 6 + 0 \end{bmatrix} = \begin{bmatrix} 2 \\ 6 \end{bmatrix}โ. Answer (a).
8. Mistakes that cost marks
- Turning Cramer's rule upside down. It is โx = \dfrac{D_1}{D}โ, with โDโ below. Not โ\dfrac{D}{D_1}โ.
- Reading the constants with the wrong sign. โ2x - 3y - 5 = 0โ means โ2x - 3y = 5โ. Move the constant to the right before you write โBโ, โD_1โ, โD_2โ or the ratios.
- Writing โX = BA^{-1}โ. The right version is โX = A^{-1}Bโ. The product โBA^{-1}โ is not even defined, because โBโ is a column.
- Saying "โD = 0โ, so there is no solution". โD = 0โ only tells you that there is not exactly one solution. There may be none, or infinitely many. Check further.
9. Quick check
Do these without help. Answers are at the end.
- Solve by Cramer's rule: โ3x + 2y = 7โ, โx - y = 4โ.
- For what value of โkโ does the system โ2x + ky = 5โ, โ3x + 6y = 1โ not have a unique solution?
- How many solutions has the system โx + 2y = 3โ, โ2x + 4y = 6โ?
- For what value of โkโ does the system โx + 2y + 3z = 0โ, โ2x + 3y + z = 0โ, โ3x + 5y + kz = 0โ have a non-zero solution?
- Solve: โx + y = 5โ, โy + z = 7โ, โz + x = 6โ.
10. Read and watch more, free
| What | Where | Language |
|---|---|---|
| Textbook, the matrix method | NCERT Class 12 Mathematics, Chapter 4 Determinants (the last section) ยท Hindi edition | English, Hindi |
| Self-study notes | NIOS Mathematics, Lesson 22 Inverse of a Matrix and its Applications ยท Hindi edition | English, Hindi |
| Textbook, with Cramer's rule | OpenStax Algebra and Trigonometry 2e, from section 11.5 onwards | English |
| Video, the whole unit for NDA | Defence Wallah: Matrices and Determinants (first video of the playlist, about 5 hours) | Hinglish |
| Video, every textbook problem | Magnet Brains: Class 12 Maths, Chapter 4 | Hinglish |
| Video, short lessons | Khan Academy India: เคธเคพเคฐเคฃเคฟเค | Hindi |
The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.
Answers to the quick check
- โD = -3 - 2 = -5โ, โD_1 = -7 - 8 = -15โ, โD_2 = 12 - 7 = 5โ. So โx = 3โ and โy = -1โ.
- โD = 12 - 3k = 0โ, so โk = 4โ. (Then the ratios are โ\dfrac{2}{3} = \dfrac{4}{6} \ne \dfrac{5}{1}โ, so there is no solution at all.)
- Infinitely many: the second equation is twice the first.
- โ|A| = 1(3k - 5) - 2(2k - 3) + 3(10 - 9) = 4 - kโ, so โk = 4โ.
- Add the three equations: โ2(x + y + z) = 18โ, so โx + y + z = 9โ. Then โz = 9 - 5 = 4โ, โx = 9 - 7 = 2โ, โy = 9 - 6 = 3โ.
Next chapter: Angles: degrees and radians.