All 26 questions UPSC has asked on algebra of matrices and linear equations in the Mathematics Optional (Paper I, Linear Algebra) from 2008 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Linear Algebra topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the answer was worked out again independently with computer algebra (SymPy).
- ✓ Proof checked step by step for “prove that” questions, every step was checked against the definitions.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 1a 2025 · 3a 2023 · 4a 2022 · 2a 2021 · 3c(ii) 2021 · 4a(i) 2020 · 4a 2019 · 1d 2019 · 3c 2018 · 1a 2018 · 3a 2017 · 4b 2016 · 1a(i) 2016 · 1b(i) 2015 · 1b 2014 · 1b 2014 · 2b(i) 2013 · 1a 2013 · 2b(ii) 2012 · 2a(ii) 2012 · 2c 2011 · 1a 2011 · 1b 2010 · 3a 2008 · 1a 2008 · 3a
Find all the values of for which the system of homogeneous equations has non-trivial solutions, and hence determine all the solutions for each value of .
Solution
For non-trivial solutions the coefficient determinant must vanish:
So the system has non-trivial solutions only when (a double root).
For the equations are . Subtracting the first two gives , so and . The coefficient matrix has rank 2, so the solution space is one-dimensional:
For every other value of the only solution is .
✓ Checked by computer We solved the system by computer (SymPy): the determinant is and the solution set for matched.
Reduce the following matrix to echelon form :
Solution
: : Continuing to the row-reduced echelon form:
✓ Checked by computer We checked by computer (SymPy): rank 3, and the reduced row echelon form as shown.
Find the rank of the matrix by reducing it to row-reduced echelon form.
Solution
Clearing above the pivots: Three non-zero rows: rank .
✓ Checked by computer We checked by computer (SymPy): reduced row echelon form as shown; rank 3.
Find all solutions to the following system of equations by row-reduced method :
Solution
Augmented matrix: (The last step also uses , then .) Rank of = rank of = , so there are infinitely many solutions. With : Check (): gives , , . ✓
✓ Checked by computer We checked by computer (SymPy): the augmented matrix reduces as shown; each solution satisfies all three equations.
For two square matrices and of order 2, show that trace trace . Hence show that , where is an identity matrix of order 2.
Solution
Let , . Then (For : both equal .)
Hence . But . So , for any matrices and .
✓ Proof checked step by step A proof, checked step by step.
Reduce the following matrix to a row-reduced echelon form and hence also, find its rank :
Solution
Then , , and clear above the pivots: Three non-zero rows: rank .
✓ Checked by computer We checked by computer (SymPy): reduced row echelon form as shown; rank 3.
Let (i) Find . (ii) Find and . (iii) Solve the following system of linear equations :
Solution
(i) Multiplying row by column, (ii) . Since , , so .
(iii) The system is , and . So
✓ Checked by computer We checked by computer (SymPy): , both determinants equal 1, and solves the system.
If then show that . Use this result to solve the following system of equations :
Solution
The system is . From , . So
✓ Checked by computer We checked by computer (SymPy): and the solution .
Let (i) Find the rank of matrix . (ii) Find the dimension of the subspace
Solution
(i) , then clear the first column: Rank .
(ii) is the null space of , so by rank–nullity . (A basis is .)
✓ Checked by computer We checked by computer (SymPy): rank 2, null space of dimension 2.
Let be a matrix and a matrix. Show that is a singular matrix.
Solution
. is , so . Hence A matrix of rank less than 3 has , so is singular.
(Directly: is , so has a non-zero solution , since there are more unknowns than equations. Then with , so is singular.)
✓ Proof checked step by step A proof, checked step by step.
For the system of linear equations determine which of the following statements are true and which are false : (i) The system has no solution. (ii) The system has a unique solution. (iii) The system has infinitely many solutions.
Solution
Rank of the coefficient matrix rank of the augmented matrix , so the system is consistent with one free variable:
- has no solution: false
- has a unique solution: false
- has infinitely many solutions: true
(, , .)
✓ Checked by computer We checked by computer (SymPy): , and rank = rank = 2.
Consider the following system of equations in , , : (i) For which values of does the system have a unique solution? (ii) For which pair of values does the system have more than one solution?
Solution
(i) Unique solution exactly when , i.e. and (for every ).
(ii) If , reduce the augmented matrix:
- : rows , , . Consistent, with infinitely many solutions, iff .
- : rows , , . Infinitely many solutions iff .
More than one solution for and .
✓ Checked by computer We checked by computer (SymPy): , and the echelon forms for and .
Using elementary row operations, find the inverse of .
Solution
, then , then :
✓ Checked by computer We checked by computer (SymPy): .
Using elementary row operations, find the condition that the linear equations have a solution.
Solution
The system has a solution iff the last row is consistent: (Then there are infinitely many solutions, since the coefficient rank is 2.)
✓ Checked by computer We checked by computer (SymPy): the echelon form of the augmented matrix as shown.
Reduce the following matrix to row echelon form and hence find its rank :
Solution
Two non-zero rows in echelon form: rank .
✓ Checked by computer We checked by computer (SymPy): rank 2.
Using elementary row or column operations, find the rank of the matrix
Solution
Order the rows (row swaps): After swapping the last two rows the matrix is in echelon form with three non-zero rows: rank .
✓ Checked by computer We checked by computer (SymPy): rank 3, determinant 0.
Investigate the values of and so that the equations , , have (1) no solution, (2) a unique solution, (3) an infinite number of solutions.
Solution
- No solution: and (the last row reads ).
- Unique solution: ( arbitrary), since the coefficient matrix then has rank 3.
- Infinitely many solutions: and (rank 2 for both matrices).
✓ Checked by computer We checked by computer (SymPy): the echelon form of the augmented matrix.
Find the inverse of the matrix : by using elementary row operations. Hence solve the system of linear equations
Solution
Row-reduce : Back-substituting row by row (, then and , then ): System. :
✓ Checked by computer We checked by computer (SymPy): and the solution .
Find the rank of the matrix
Solution
Subtract multiples of (): makes the last row zero. Three non-zero independent rows remain: rank .
✓ Checked by computer We checked by computer (SymPy): rank 3.
Find the dimension and a basis for the space of all solutions of the following homogeneous system using matrix notation :
Solution
Rank 2, so . The free variables are , with Taking :
✓ Checked by computer We checked by computer (SymPy): the null space has dimension 3, with this basis.
Let be a Hermitian matrix. Find a non-singular matrix such that is diagonal.
Solution
Reduce by congruence: each row operation is followed by the conjugate column operation (so Hermitian form is kept).
- , ; , :
- , :
Applying the same row operations to gives So take
✓ Checked by computer We checked by computer (SymPy): .
Let be a non-singular, square matrix. Show that . Hence show that .
Solution
. The entry of is , where is the cofactor of .
- For , this is the expansion of along row .
- For , it is the expansion of a determinant with two equal rows (row replaced by row ), so it is .
Hence .
. Taking determinants, . Since , .
. Apply the identity to , which is invertible: Multiplying on the left by and using : , so . Therefore
✓ Proof checked step by step A proof, checked step by step.
Let Solve the system of equations given by Using the above, also solve the system of equations where denotes the transpose of matrix .
Solution
, so is invertible. The cofactors give : .
: , so Check: . ✓
✓ Checked by computer We checked by computer (SymPy): gives and gives .
Let and be matrices over reals. Show that is invertible if is invertible. Deduce that and have the same eigenvalues.
Solution
is invertible. Suppose is invertible and put . We show is the inverse of : (Similarly .) So is invertible.
Same eigenvalues. Let . Applying the above to and : invertible invertible, and by symmetry the converse holds. Equivalently, is singular if and only if is singular. So the non-zero eigenvalues of and coincide.
For : , so is singular if and only if is. Hence and have the same eigenvalues.
✓ Proof checked step by step A proof, checked step by step and tested on random matrices by computer.
Show that the matrix is invertible if and only if the is invertible. Hence find .
Solution
Let be (). We use .
If is invertible: with , which is invertible, with inverse .
If is invertible: suppose, to the contrary, . Then , and multiplying on the right by gives . But then every cofactor is , so , which is not invertible, a contradiction. Hence and is invertible.
. Taking determinants in : . So (when ; and when , is singular, so both sides are ).
✓ Proof checked step by step A proof, checked step by step.
Let be a non-singular matrix. Show that if then .
Solution
(Here in the question is the matrix .) Multiply the given relation by : The terms telescope, and the left side is because . So , i.e. . Hence
✓ Proof checked step by step A proof, checked step by step.
More on Linear Algebra
- Linear Algebra topic-wise PYQs (questions only, for practice)
- Mathematics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Mathematics booklist
Questions: UPSC Civil Services (Main) Examination, Mathematics Paper I, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

