All 26 questions UPSC has asked on vector spaces 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 · 3a 2025 · 1a 2025 · 4c(ii) 2024 · 1a 2023 · 1a 2022 · 1a 2022 · 3a 2021 · 2c 2020 · 1a 2018 · 1b 2017 · 2d 2016 · 1b(ii) 2015 · 1a 2015 · 4b 2014 · 1a 2014 · 2a 2013 · 2c(ii) 2012 · 1c 2012 · 2a(i) 2011 · 2b(i) 2010 · 4a 2010 · 7a 2009 · 1b 2009 · 4a 2008 · 1b 2008 · 4a
Given as a vector space over the field . (i) Let . Prove that is a subspace of and find a basis of . (ii) Find a subspace of such that .
Solution
(i) For , So .
Subspace: the zero polynomial is in . If and , then by linearity of the integral , so .
Basis: , with free: So spans . It is linearly independent (the three have different degrees), so it is a basis and .
(ii) Take , the constant polynomials.
- : a constant has , which is only if .
- .
Hence .
✓ Proof checked step by step Part (i) is a proof, checked step by step; the basis and the direct sum were confirmed by computer (SymPy).
Can the set be extended to form a basis of the vector space ? Justify your answer.
Solution
Yes. A set can be extended to a basis of exactly when it is linearly independent. Suppose Then , and , so the set is linearly independent.
Add any vector outside its span, e.g. : so is a basis of .
✓ Checked by computer We checked by computer (SymPy): the three vectors have rank 3, and adding gives a non-zero determinant.
Let denote the vector space of all polynomials of degree over . Verify that
Solution
(basis ) and (basis ). is a subspace of .
Basis of . Every coset is so spans the quotient. It is independent: if (the zero coset), then , which forces .
So . ✓
✓ Proof checked step by step A short verification, checked step by step.
Let be a subspace of spanned by the vectors , , . Then find a basis and dimension of , and extend the basis of to a basis of .
Solution
Row-reduce the matrix whose rows are : The rank is 2 (indeed ). So and is a basis of .
Extension. Add and : So is a basis of extending the basis of .
✓ Checked by computer We checked by computer (SymPy): the rank is 2, and has determinant .
Let , and be three vectors of the space . Does ? Justify your answer.
Solution
We need with : Adding the first two: , so . Then the second gives . Substituting into the third: . The system is inconsistent.
(Equivalently, , so the span is two-dimensional, and is not in it.) Hence .
✓ Checked by computer We checked by computer (SymPy): rank of is 2, while the augmented matrix has rank 3.
Prove that any set of linearly independent vectors in a vector space of dimension constitutes a basis for .
Solution
Let and let be linearly independent. We need only show that spans .
Take any . The vectors must be linearly dependent, since a space of dimension cannot contain more than independent vectors. So there are scalars, not all zero, with If , the independence of would force all , a contradiction. So and Hence spans and, being independent, is a basis.
✓ Proof checked step by step A proof, checked step by step.
Let the set be the collection of vectors of a vector space . Then (i) prove that is a subspace of . (ii) find a basis and dimension of .
Solution
(i) is the solution set of the homogeneous system with . It contains . If and , then . So is a subspace of .
(ii) Subtracting the first equation from the second: , so . Then . So A basis is , and . (Check: and . ✓)
✓ Checked by computer We checked by computer (SymPy): the null space is spanned by .
Show that is a subspace of . Find two bases of . Also find the dimension of .
Solution
Subspace. , so . A span is always a subspace. Directly: , and with , .
Two bases.
- (take and ; neither is a multiple of the other)
Dimension: .
✓ Checked by computer We checked by computer (SymPy): both pairs have rank 2 and lie in .
Consider the set of all real magic squares. Show that is a vector space over . Give examples of two distinct magic squares.
Solution
Call an real matrix a magic square if all its row sums, column sums and the two diagonal sums are equal (to a common value ).
Vector space. is a subset of the vector space of all real matrices, so it is enough to check it is a subspace.
- The zero matrix is magic, with .
- If and are magic with sums and , then every row, column and diagonal sum of equals , because sums are linear. So .
Hence is a subspace, and therefore a vector space over .
examples. For : gives ; gives ; and then gives . So every magic square has all four entries equal. Two distinct examples:
✓ Proof checked step by step A proof, checked step by step; the case was checked by solving the equations.
Express basis vectors and as linear combinations of and .
Solution
Write : . This gives and , so Write : . This gives and , so Check: ✓ and ✓.
✓ Checked by computer We checked by computer (SymPy): both linear combinations give back and .
Suppose and are distinct four dimensional subspaces of a vector space , where . Find the possible dimensions of subspace .
Solution
is a subspace of , so . Since , strictly contains , so . Hence and Both occur. In : with gives 3, and with gives 2.
✓ Proof checked step by step A short argument, checked step by step.
If then find and .
Solution
Each is a plane through the origin (dimension 2) with normal , , .
is the solution space of the system with these rows. Since while are independent, the matrix of normals has rank 2, so the solution space has dimension . It is spanned by . So .
. is the line along , so it has dimension 1. Then i.e. .
✓ Checked by computer We checked by computer (SymPy): the three normals have rank 2.
The vectors , , and are linearly independent. Is it true? Justify your answer.
Solution
Not true. Row-reducing the matrix with rows gives rank 2, so the four vectors are linearly dependent. An explicit relation is (Also .) A set with a non-trivial linear relation is linearly dependent.
✓ Checked by computer We checked by computer (SymPy): rank 2, and .
Find the dimension of the subspace of , spanned by the set Hence find its basis.
Solution
Note , so it is redundant. The remaining three vectors are clearly independent. Hence the subspace has (It is the subspace , i.e. the vectors with third coordinate .)
✓ Checked by computer We checked by computer (SymPy): the rank is 3.
Find one vector in which generates the intersection of and , where is the plane and is the space generated by the vectors and .
Solution
A vector of is . It lies in the -plane when its -coordinate is : , i.e. . Then the vector is So is generated by the vector .
✓ Checked by computer We checked by computer (SymPy): the intersection is spanned by .
Let and be the following subspaces of : and Find a basis and the dimension of (i) , (ii) , (iii) .
Solution
(i) : , with free: Basis , .
(ii) : , : Basis , .
(iii) : a vector of , , is in if , i.e. . So , with basis and .
(Check: , so . ✓)
✓ Checked by computer We checked by computer (SymPy): bases of , and as shown.
Show that the vectors , and in are linearly independent over the field of real numbers but are linearly dependent over the field of complex numbers.
Solution
Dependent over . This is a non-trivial relation with complex coefficients .
Independent over . Let with . Compare real and imaginary parts of each coordinate:
- first coordinate , so and
- then the second coordinate gives , so
Only the trivial real combination vanishes, so the vectors are linearly independent over .
✓ Checked by computer We checked by computer (SymPy): over , ; over , the real system has only the trivial solution.
Prove or disprove the following statement : If is a basis for and is a two-dimensional subspace of , then has a basis made of just two members of .
Solution
The statement is false. Take to be the standard basis and a two-dimensional subspace. No lies in : each vector of has equal first and second coordinates and equal third and fourth, which no satisfies. So no two members of (indeed, not even one) can form a basis of .
✓ Proof checked step by step A counterexample, checked by hand and by computer.
Let be the vector space of all matrices over the field of real numbers. Let be the set consisting of all matrices with zero determinant. Is a subspace of ? Justify your answer.
Solution
No. is not closed under addition: Both summands have determinant , but the sum has determinant . So is not a subspace. (It is closed under scalar multiplication, and contains , but that is not enough.)
✓ Proof checked step by step A counterexample, checked by hand.
Show that the subspaces of spanned by two sets of vectors and are identical. Also find the dimension of this subspace.
Solution
Let and . Write the vectors of in terms of those of : So . Both spanning pairs are independent (neither vector is a multiple of the other), so . A subspace of with the same dimension is itself, so .
Dimension . (It is the plane .)
✓ Checked by computer We checked by computer (SymPy): each pair has rank 2 and all four vectors together also have rank 2.
(i) In the -space , determine whether or not the set is linearly independent. (ii) Let be a linear transformation from a vector space over reals into such that . Show that is invertible.
Solution
(i) Linearly dependent. Adding all vectors, This is a non-trivial relation (all coefficients ), so the set is not linearly independent.
(ii) From : So is a two-sided inverse of . Hence is invertible, with .
✓ Proof checked step by step Both parts are short proofs, checked step by step.
Show that the set of solutions of the homogeneous linear differential equation on an interval forms a vector subspace of the real vector space of continuous functions on . What is the dimension of ?
Solution
Take continuous on . Let be the set of solutions in .
Subspace. The zero function is a solution. If and , then So is closed under linear combinations, and is a subspace.
Dimension. Multiplying by the integrating factor , where , gives . So every solution is Hence , and since , .
✓ Proof checked step by step A proof, checked step by step; the general solution was checked by substitution.
Prove that the set of the vectors in which satisfy the equations and , is a subspace of . What is the dimension of this subspace? Find one of its bases.
Solution
Subspace. is the solution set of a homogeneous system . It contains and is closed under linear combinations, since .
Dimension and basis. Subtracting twice the first equation from the second: , so . Then . With free: , with basis .
✓ Checked by computer We checked by computer (SymPy): the null space is spanned by and .
Prove that the set of all real symmetric matrices forms a linear subspace of the space of all real matrices. What is the dimension of this subspace? Find at least one of the bases for .
Solution
Subspace. The zero matrix is symmetric. If and , then .
Basis and dimension. A symmetric matrix is fixed by its entries on and above the diagonal: where has in position and elsewhere. These six matrices span . They are independent, since each has its ’s in positions where the others have ’s. So is a basis, and .
✓ Proof checked step by step A proof, checked step by step.
Let be a non-empty set and let denote the set of all functions from into . Show that is a vector space with respect to the vector addition and scalar multiplication .
Solution
The sum and the multiple are again functions from to , so both operations are closed. The axioms hold pointwise, because they hold in . For all :
- (commutativity), and similarly (associativity)
- the zero function satisfies , and , given by , satisfies
- and
- and
Each identity holds at every , so it holds for the functions. Hence is a vector space over .
✓ Proof checked step by step A proof, checked axiom by axiom.
Find the dimension of the subspace of spanned by the set . Hence find a basis for the subspace.
Solution
Here , so it can be dropped without changing the span. The other three, , are linearly independent. Hence the subspace has (This repeats the 2015 question above.)
✓ Checked by computer We checked by computer (SymPy): the rank is 3.
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.

