Writing a system as Ax = b, Gaussian elimination and echelon forms, the rank test for no, one or infinitely many solutions, homogeneous systems and the null space, Cramer's rule, and systems with a parameter.
A system of equations in unknowns is written , where is the coefficient matrix. The augmented matrix carries the right-hand side along.
Elementary row operations do not change the solution set:
swap two rows;
multiply a row by a non-zero constant;
add a multiple of one row to another.
Gaussian elimination uses them to reach row echelon form: each row's first non-zero entry (the pivot) is to the right of the pivot above it, and zero rows are at the bottom. Then solve by back substitution from the last pivot row upwards.
Gauss-Jordan elimination goes further to reduced row echelon form (RREF): every pivot is 1 and is the only non-zero entry in its column. The solution can then be read off directly. The RREF of a matrix is unique.
Variables:
a column with a pivot gives a basic (pivot) variable;
a column without one gives a free variable, which can take any value;
the number of free variables is .
Cost: elimination on an system takes about arithmetic operations, that is , and back substitution takes .
Reading the final echelon form:
Last non-zero row of
Meaning
with
: inconsistent, no solution
a pivot in every column of
unique solution
fewer pivots than unknowns, no row
infinitely many solutions
2. The rank test for consistency
Let and . Always .
Condition
Solutions
none (inconsistent)
exactly one
infinitely many, with free parameters
Over the real numbers a linear system never has exactly two (or any finite number above one) solutions: if both solve it, so does every point on the line through them.
Square systems ():
: a unique solution for every .
: either no solution or infinitely many, depending on ; use the rank test.
Shape shortcuts for of size :
(more unknowns than equations): never a unique solution. Either none or infinitely many.
: may be inconsistent for some . If there is at most one solution.
(full row rank): consistent for every .
Geometric picture: in two unknowns each equation is a line. Two lines meet in one point, are parallel (no solution), or coincide (infinitely many). In three unknowns each equation is a plane.
Two equations in two unknowns: the three possible outcomes and the rank condition for each.
3. Homogeneous systems and the solution structure
A homogeneous system is always consistent, since (the trivial solution) works.
It has a non-trivial solution if and only if .
For a square : non-trivial solutions exist .
If (fewer equations than unknowns), non-trivial solutions always exist.
The solutions form a subspace, the null space of . Its dimension, the nullity, is (rank-nullity theorem). A basis is found by setting each free variable to 1 in turn (others 0) and solving for the pivot variables.
Structure of the general solution. If is any one solution of , then every solution is
So the solution set of a consistent system is the null space shifted by . It has the same number of free parameters, , whatever is.
Consequences:
If has only the trivial solution, then has at most one solution for each .
If has non-trivial solutions, then has either no solution or infinitely many.
The difference of two solutions of solves ; the sum of two solutions solves , so the solution set of with is not a subspace.
4. Cramer's rule and systems with a parameter
Cramer's rule: if is and , then
where is with column replaced by . It is handy for and systems or when only one unknown is asked. For large systems it is far slower than elimination.
Systems with a parameter (, , ) are the most common GATE form. Method:
Row-reduce keeping the parameter symbolic. Avoid dividing by an expression that might be zero.
The last row typically becomes .
Read off the cases:
Last row
Result
unique solution
and
infinitely many
and
no solution
For a square system there is a shortcut: compute as a function of the parameter. Values with give a unique solution. Only the roots of need the rank test.
A homogeneous system with a parameter has a non-trivial solution exactly at the roots of . For example
detλ111λ111λ=(λ−1)2(λ+2).
Formulas to remember
Consistency (rank test)Necessary and sufficient for at least one solution
Number of free parameters
Cramer's rule
Unique solution of a square system
General solution
Rank-nullity
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: Null space of a wide homogeneous system
numerical
Find all solutions of and .
Step 1: Find the rank and the number of free variables.
Try it on paper first.
Example 4: Cramer's rule for a 2 by 2 system
numerical
Solve , by Cramer's rule.
Step 1: Compute det A.
Try it on paper first.
Previous year questions
9 official GATE CSE questions on this topic, 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 CSE syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.