Systems of linear equations and their solutions; Gaussian elimination
Linear systems Ax = b: the rank test for no, one or infinitely many solutions, Gaussian elimination and back substitution, homogeneous systems and parameter cases; GATE asks to solve, count solutions and find critical parameters.
A system of equations in unknowns is , with of size . Form the augmented matrix . Let .
Condition
Solutions
none (inconsistent)
exactly one
infinitely many, with free parameters
This is the rank test (Rouché–Capelli theorem). In words: is solvable exactly when is in the column space of .
A real linear system has 0, 1 or infinitely many solutions, never exactly 2: if both work, so does for every .
For a square system (): gives a unique solution for every . If there is either no solution or infinitely many, depending on .
Two special shapes:
If (full row rank), the columns span and the system is consistent for every .
If (full column rank), there is at most one solution.
Two equations in two unknowns: the three possible cases
2. Gaussian elimination
Gaussian elimination turns into row echelon form using three elementary row operations, none of which changes the solution set:
swap two rows;
multiply a row by a non-zero scalar;
add a multiple of one row to another ().
In echelon form, each row's first non-zero entry (the pivot) lies to the right of the pivot above it, and zero rows are at the bottom. The number of pivots is the rank. Then back substitution solves from the last equation upwards.
Procedure for column : pick a non-zero pivot (swap rows if needed), compute multipliers for the rows below, and subtract. The multipliers are exactly the entries of in .
Reading the result:
A row with means : no solution.
Columns without a pivot give free variables; set them as parameters.
Gauss–Jordan continues to reduced row echelon form (pivots equal 1, zeros above and below each pivot). Applied to it produces .
Cost: elimination on an matrix needs about multiplications, and back substitution about , so the work is . Partial pivoting (choose the largest available pivot in the column) avoids division by zero and reduces rounding error.
3. Homogeneous systems and the structure of solutions
A homogeneous system always has the trivial solution . Its solutions form the null space , a subspace of dimension .
Non-trivial solutions exist if and only if . For a square matrix this means .
If (fewer equations than unknowns), , so non-trivial solutions always exist.
For a consistent non-homogeneous system, every solution has the form
where is any one particular solution and runs over . So the solution set is a shifted copy of the null space (a line or plane that need not pass through the origin). It is a subspace only when .
Parameter questions. GATE often gives a system with unknown constants such as and and asks when it has no, one or infinitely many solutions. Eliminate until the last row reads . Then:
: unique solution;
, : no solution;
, : infinitely many.
For a square system, is the same as , which is often the faster route to the critical value.
4. Cramer's rule and other routes
For a square system with , Cramer's rule gives
where is with column replaced by . It is handy for one unknown of a or system, but costs far more than elimination for large .
When to use what:
Situation
Best tool
Solve a specific system
elimination and back substitution
Only one unknown needed, small system
Cramer's rule
Decide no / one / infinite
rank test, or for square systems
Many right-hand sides with the same
factor once, then two triangular solves each
Inverse needed
Gauss–Jordan on
Checks that save marks: substitute your answer into every original equation; count pivots before declaring the solution unique; remember that row operations change the determinant (a swap flips its sign, scaling a row scales it) but never the rank or the solution set.
When the system has no exact solution (more equations than unknowns, inconsistent), data science uses the least squares solution of , which is linked to projection matrices.
Formulas to remember
Consistency
Number of free parameters = number of unknowns
General solution
Elimination multiplier
Cramer's rule: column of replaced by
Elimination costFor an system
Common mistakes
Concluding 'infinitely many solutions' from alone; you must also check consistency, since the system may have no solution.
Forgetting that homogeneous systems are always consistent; the only question is whether non-trivial solutions exist.
Counting equations instead of independent equations; a repeated or combined equation does not reduce the solution dimension.
Dividing by an expression such as during elimination without treating as a separate case.
Thinking row operations preserve the determinant; swaps and scalings change it, though they never change the rank or the solutions.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Solve a 3 by 3 system by elimination
numerical
Solve , , .
Step 1: Clear the first column below the pivot.
Try it on paper first.
Example 2: No, one or infinitely many solutions
numerical
For the system , , , find the values of and for which there is (a) a unique solution, (b) no solution, (c) infinitely many solutions.
Step 1: Eliminate $x$ from rows 2 and 3.
Try it on paper first.
Example 3: When does a homogeneous system have a non-trivial solution?
numerical
Find for which , , has a non-trivial solution, and find that solution.
Step 1: Square homogeneous system: what must happen to $\det A$?
Try it on paper first.
Example 4: Fewer equations than unknowns
conceptual
A homogeneous system has 3 equations in 5 unknowns. Can it have only the trivial solution? What if the system is non-homogeneous?
Step 1: Bound the rank.
Try it on paper first.
Previous year questions
3 official GATE DA questions on this topic, newest first.
10 questions: up to 3 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 DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.