Skip to content
GATEiit

GATE EC · Engineering Mathematics

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.

Before you start

  • Rank of a matrix →

    The existence and uniqueness test compares the rank of A with the rank of [A∣b] and the number of unknowns.

  • Determinants and inverse →

    For a square system, det⁡A≠0 decides uniqueness, and Cramer's rule is built from determinants.

This topic comes before: Eigen values and eigen vectors, Node and mesh analysis, Vector space, basis, linear dependence and independence

Concept notes

1. Existence and uniqueness: the rank test

Write m linear equations in n unknowns as Ax=b, with A the m×n coefficient matrix, and attach b as an extra column to get the augmented matrix [A∣b]. Let r=rank⁡A and r′=rank⁡[A∣b]; always r≤r′≤r+1.

Ranks Nature of the system
r<r′ inconsistent: no solution
r=r′=n consistent, exactly one solution
r=r′<n consistent, infinitely many solutions with n−r free parameters

Why it works. Ax is a combination of the columns of A, so a solution exists exactly when b lies in the column space of A. Appending such a b cannot raise the rank. Uniqueness then needs the columns to be independent, i.e. r=n.

Never exactly two. If x1≠x2 both solve the system, so does x1+t(x2−x1) for every real t. A linear system has 0, 1 or infinitely many solutions.

Shape shortcuts for an m×n matrix A:

  • m<n (fewer equations than unknowns): r≤m<n, so a unique solution is impossible. Either none or infinitely many.
  • r=m (full row rank): the columns span all of Rm, so the system is consistent for every b.
  • r=n (full column rank): at most one solution for any b; with m>n some b 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.

Reduce [A | b] to echelon formr = rank A, r′ = rank [A | b], n = unknownsr = r′ ?noNo solution(inconsistent)yesr = n ?yesExactly one solution(only x = 0 if b = 0)noInfinitely manyn − r freeparametersA homogeneous system (b = 0) always has r = r′, so it never takes the left branch at the top.
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:

  1. interchange two rows;
  2. multiply a row by a non-zero number;
  3. add a multiple of one row to another.

Gaussian elimination applies them to [A∣b] 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 1 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 [A∣I] it yields [I∣A−1].

Reading the final form:

What you see Conclusion
a row (0  ⋯  0∣c) with c≠0 the equation 0=c: no solution
a pivot in every column of A, no such row unique solution
some columns of A 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 n×n system costs about n33 multiplications, i.e. O(n3), and back substitution O(n2). That is why circuit simulators solve nodal equations by elimination (LU factorisation), not by Cramer's rule.
  • Row operations can change det⁡A (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 Ax=0 is always consistent: x=0, the trivial solution, works.

  • A non-trivial solution exists if and only if r<n.
  • For square A: non-trivial solutions   ⟺  det⁡A=0.
  • If m<n, then r≤m<n, so non-trivial solutions always exist.

The solutions of Ax=0 form a subspace, the null space of A, of dimension n−r (rank–nullity). A basis comes from setting one free variable to 1 and the rest to 0, in turn, and solving for the pivot variables.

General solution of Ax=b. If xp is any one solution, every solution is x=xp+xh,Axh=0. So a consistent system has the same number of free parameters, n−r, as its homogeneous version; only the starting point xp changes. This mirrors linear differential equations, where the complete solution is a particular integral plus the complementary function.

Consequences used in options:

  • If Ax=0 has only x=0, then Ax=b has at most one solution for each b.
  • If Ax=0 has non-trivial solutions, then Ax=b has either none or infinitely many.
  • The difference of two solutions of Ax=b solves Ax=0.
  • For b≠0 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 (1,1,…,1) 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 (m=n):

  • det⁡A≠0: exactly one solution, x=A−1b, for every b.
  • det⁡A=0: no solution or infinitely many, depending on b; settle it with the rank test.

Cramer's rule. If det⁡A≠0, xi=det⁡Aidet⁡A, where Ai is A with its i-th column replaced by b. It is quick for a 2×2 or 3×3 system or when only one unknown is asked; it is useless when det⁡A=0.

Nodal analysis is a linear system. For a circuit with a reference node and k other nodes, KCL gives GV=I, where G is the k×k 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, G is non-singular, so the node voltages are unique.

Systems with a parameter (k, λ, μ) are a favourite GATE form.

  1. Eliminate with the parameter kept symbolic; never divide by an expression that could be zero.
  2. The last row usually becomes (0    0    f(λ)∣g(λ,μ)).
  3. Read the cases:
Last row Result
f(λ)≠0 unique solution
f(λ)=0, g=0 infinitely many solutions
f(λ)=0, g≠0 no solution

For a square system, f(λ)=0 is the same condition as det⁡A=0, which is often faster to compute. A homogeneous system with a parameter has non-trivial solutions exactly at the roots of det⁡A=0.

5 A0.5 Ω(2 S)1 Ω (1 S)1 Ω (1 S)V₁V₂reference node (ground), V = 0
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
Ax=b is solvable  ⟺  rank⁡A=rank⁡[A∣b]
Uniquenessn = number of unknowns
rank⁡A=rank⁡[A∣b]=n
Free parameters
n−rank⁡A
General solution
x=xp+xh,Axh=0
Cramer's ruleAi: column i of A replaced by b
xi=det⁡Aidet⁡A,det⁡A≠0
Unique solution of a square system
x=A−1b(det⁡A≠0)
Rank–nullity
dim⁡N(A)=n−rank⁡A

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 2x+y−z=3, x−y+2z=1, 3x+2y+z=8.

  1. Step 1: Pick a convenient first pivot.

    Try it on paper first.

Example 2: No, one or infinitely many solutions

numerical

For x+2y+z=4, 2x+5y+3z=9, x+3y+λz=μ, find the values of λ and μ that give (a) a unique solution, (b) infinitely many solutions, (c) no solution.

  1. 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 3V1−V2=5 and −V1+2V2=0. Show that the node voltages are unique and find them using Cramer's rule.

  1. 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 1 S conductances, and no node is grounded. Currents of 1 A enter node 1 and leave node 2. KCL gives GV=I with and I=(1,−1,0)T. How many solutions are there, and what do they look like?

  1. 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.