Skip to content
GATEiit

GATE All 17 EM papers & ES · Linear Algebra

Systems of Linear Equations

Matrix form Ax = b, Gaussian elimination, Rouché–Capelli rank consistency test for unique/infinite/no solutions, homogeneous null spaces, and Cramer's rule.

Before you start

  • Matrices and determinants →

    Writing Ax = b in matrix form and checking det(A) != 0 via Cramer's rule relies directly on matrix algebra.

  • Rank of a matrix →

    Rouché–Capelli determines zero, unique, or infinitely many solutions by comparing rank(A) and rank([A|b]).

This topic comes before: Space resection, Stiffness matrix method, System of forces, free-body diagrams, equilibrium equations, Network solution methods: KCL, KVL, Node and Mesh analysis, Symmetrical components, Numerical Solutions of Algebraic Equations (Bisection and Newton–Raphson), Correlation, Linear Regression and Least Squares, Eigenvalues, Eigenvectors, Diagonalisation and Cayley–Hamilton, LU Decomposition, Vector Spaces, Basis and Linear 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 $3V1 - V2 = 5$ and $-V1 + 2V2 = 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
Consistency (rank test)Necessary and sufficient for at least one solution
rank⁡A=rank⁡ [A∣b]

Common mistakes

  • Concluding 'no solution' from det⁡A=0; it could also mean infinitely many. Use the rank test.
  • Dividing by an expression like λ−2 during elimination without treating λ=2 separately.
  • Forgetting that a homogeneous system is always consistent.
  • Counting free parameters as m−r (equations) instead of n−r (unknowns).
  • Believing a linear system can have exactly two solutions.
  • Applying Cramer's rule when det⁡A=0.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Gaussian elimination with back substitution

numerical

Solve x+2y+z=8, 2x+y−z=1, 3x−y+2z=7.

  1. Step 1: Eliminate x from rows 2 and 3.

    Try it on paper first.

Example 2: Classifying a system with two parameters

numerical

For x+y+z=3, x+2y+2z=5, x+2y+λz=μ, find when the system has a unique solution, infinitely many, or none.

  1. 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 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: Underdetermined system without solving

conceptual

Explain why a system of 3 homogeneous equations in 5 unknowns always has infinitely many solutions.

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

Topic test

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.