Solution of linear equations - existence and uniqueness
When Ax = b has no solution, exactly one or infinitely many: the rank test, Gaussian elimination, homogeneous systems and the null space, Cramer's rule, parameter cases, and nodal equations of circuits.
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 $3V_1 - V_2 = 5$ and $-V_1 + 2V_2 = 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
Common mistakes
Reading det A = 0 as 'no solution'; it can equally mean infinitely many, so check the rank of [A | b].
Dividing by an expression such as λ − 2 during elimination without handling λ = 2 as a separate case.
Forgetting that a homogeneous system is always consistent; the only question is whether a non-trivial solution exists.
Counting free parameters as m − r (equations) instead of n − r (unknowns).
Claiming a linear system can have exactly two solutions.
Writing nodal equations without a reference node and then trying to invert the singular conductance matrix.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Elimination with back substitution
numerical
Solve , , .
Step 1: Pick a convenient first pivot.
Try it on paper first.
Example 2: No, one or infinitely many solutions
numerical
For , , , find the values of and that give (a) a unique solution, (b) infinitely many solutions, (c) no solution.
Step 1: Eliminate x.
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: A circuit with no reference node
conceptual
Three nodes are joined pairwise by conductances, and no node is grounded. Currents of enter node 1 and leave node 2. KCL gives with G=2−1−1−12−1−1−12 and . How many solutions are there, and what do they look like?
Step 1: Is G singular?
Try it on paper first.
Previous year questions
No official GATE EC question is tagged with this topic yet. The topic test below uses practice questions.
Topic test
8 questions: 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 EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.