Matrix form Ax = b, Gaussian elimination, Rouché–Capelli rank consistency test for unique/infinite/no solutions, homogeneous null spaces, and Cramer's rule.
Write linear equations in unknowns as , with the coefficient matrix, and attach as an extra column to get the augmented matrix . Let and ; always .
Ranks
Nature of the system
inconsistent: no solution
consistent, exactly one solution
consistent, infinitely many solutions with free parameters
Why it works. is a combination of the columns of , so a solution exists exactly when lies in the column space of . Appending such a cannot raise the rank. Uniqueness then needs the columns to be independent, i.e. .
Never exactly two. If both solve the system, so does for every real . A linear system has , or infinitely many solutions.
Shape shortcuts for an matrix :
(fewer equations than unknowns): , so a unique solution is impossible. Either none or infinitely many.
(full row rank): the columns span all of , so the system is consistent for every .
(full column rank): at most one solution for any ; with some give none.
Geometry. In two unknowns each equation is a line: the lines cross once, are parallel (no solution), or coincide (infinitely many). In three unknowns each equation is a plane, and the same three outcomes appear.
Deciding existence and uniqueness for $Ax = b$ from two ranks and the number of unknowns.
2. Gaussian elimination and reading the echelon form
Elementary row operations leave the solution set unchanged:
interchange two rows;
multiply a row by a non-zero number;
add a multiple of one row to another.
Gaussian elimination applies them to to reach row echelon form: below each leading non-zero entry (pivot) everything is zero, each pivot sits to the right of the one above, and any all-zero rows are at the bottom. The number of pivots equals the rank. Solve the last equation first and substitute upwards (back substitution).
Gauss–Jordan elimination continues until each pivot is and is the only non-zero entry in its column (reduced row echelon form, which is unique). The answer can then be read directly; applied to it yields .
Reading the final form:
What you see
Conclusion
a row with
the equation : no solution
a pivot in every column of , no such row
unique solution
some columns of without a pivot, no such row
infinitely many; those columns are free variables
A row of all zeros, including the right-hand side, is harmless: it just says one equation was a combination of the others.
Practical notes.
Choosing the largest available entry in the column as pivot (partial pivoting) avoids division by zero and limits rounding error in numerical work.
Elimination on an system costs about multiplications, i.e. , and back substitution . That is why circuit simulators solve nodal equations by elimination ( factorisation), not by Cramer's rule.
Row operations can change (a swap flips its sign, scaling a row scales it), but never the rank or the solutions.
3. Homogeneous systems and the structure of all solutions
A homogeneous system is always consistent: , the trivial solution, works.
A non-trivial solution exists if and only if .
For square : non-trivial solutions .
If , then , so non-trivial solutions always exist.
The solutions of form a subspace, the null space of , of dimension (rank–nullity). A basis comes from setting one free variable to and the rest to , in turn, and solving for the pivot variables.
General solution of . If is any one solution, every solution is
So a consistent system has the same number of free parameters, , as its homogeneous version; only the starting point changes. This mirrors linear differential equations, where the complete solution is a particular integral plus the complementary function.
Consequences used in options:
If has only , then has at most one solution for each .
If has non-trivial solutions, then has either none or infinitely many.
The difference of two solutions of solves .
For the solution set is not a subspace (it misses the origin), but it is a shifted copy of the null space.
Circuit example. Write nodal equations for a network without choosing a reference node. Every row of the conductance matrix then adds to zero, so is in the null space and the matrix is singular. If the source currents add to zero (as KCL demands), the system is consistent with infinitely many solutions: all node voltages can be raised by the same constant. Grounding one node removes this freedom and makes the solution unique.
4. Square systems: determinant, Cramer's rule and parameters
For a square system ():
: exactly one solution, , for every .
: no solution or infinitely many, depending on ; settle it with the rank test.
Cramer's rule. If ,
where is with its -th column replaced by . It is quick for a or system or when only one unknown is asked; it is useless when .
Nodal analysis is a linear system. For a circuit with a reference node and other nodes, KCL gives , where is the conductance matrix (sum of conductances at a node on the diagonal, minus the conductance between two nodes off the diagonal). For a connected resistive network with positive conductances and a ground, is non-singular, so the node voltages are unique.
Systems with a parameter (, , ) are a favourite GATE form.
Eliminate with the parameter kept symbolic; never divide by an expression that could be zero.
The last row usually becomes .
Read the cases:
Last row
Result
unique solution
,
infinitely many solutions
,
no solution
For a square system, is the same condition as , which is often faster to compute. A homogeneous system with a parameter has non-trivial solutions exactly at the roots of .
A two-node circuit. KCL at the nodes gives $3V1 - V2 = 5$ and $-V1 + 2V2 = 0$ (conductances in siemens, current in amperes).
Formulas to remember
Consistency condition
Uniqueness = number of unknowns
Free parameters
General solution
Cramer's rule: column of replaced by
Unique solution of a square system
Rank–nullity
Consistency (rank test)Necessary and sufficient for at least one solution
Common mistakes
Concluding 'no solution' from ; it could also mean infinitely many. Use the rank test.
Dividing by an expression like during elimination without treating separately.
Forgetting that a homogeneous system is always consistent.
Counting free parameters as (equations) instead of (unknowns).
Believing a linear system can have exactly two solutions.
Applying Cramer's rule when .
Worked examples
Try each step yourself, then reveal the working.
Example 1: Gaussian elimination with back substitution
numerical
Solve , , .
Step 1: Eliminate x from rows 2 and 3.
Try it on paper first.
Example 2: Classifying a system with two parameters
numerical
For , , , find when the system has a unique solution, infinitely many, or none.
Step 1: Reduce the augmented matrix.
Try it on paper first.
Example 3: Node voltages by Cramer's rule
numerical
For the two-node circuit drawn in the last concept above, KCL gives and . Show that the node voltages are unique and find them using Cramer's rule.
Step 1: Find det G.
Try it on paper first.
Example 4: Underdetermined system without solving
conceptual
Explain why a system of homogeneous equations in unknowns always has infinitely many solutions.
Step 1: Bound the rank of A.
Try it on paper first.
Previous year questions
9 official GATE Engineering Mathematics questions mapped to this topic across published papers, newest first.
10 questions: up to 4 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE Engineering Mathematics (All 17 EM papers & ES) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.