All 16 questions UPSC has asked on rings and ideals in the Mathematics Optional (Paper II, Algebra) from 2008 to 2025, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our 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):
2025 · 4a 2024 · 4a 2022 · 4a 2018 · 4a 2016 · 1a 2015 · 1b 2015 · 2a 2014 · 4a 2013 · 3b 2012 · 4a 2011 · 3a 2010 · 3b 2009 · 2a 2009 · 3b 2008 · 1b 2008 · 3b
Examine whether the mapping defined by , for , is a homomorphism. Deduce that the ideal is a prime ideal in , but not a maximal ideal in .
Solution
is a homomorphism. For : It is onto: the constant polynomial maps to .
Kernel. exactly when has zero constant term, i.e. . So .
Prime, not maximal. By the first isomorphism theorem for rings,
- is an integral domain, so is a prime ideal.
- is not a field (2 has no inverse), so is not maximal. Indeed .
✓ Proof checked step by step Proof checked step by step.
Consider the polynomial ring over the ring of integers. Let be an ideal of generated by . Show that is prime but not a maximal ideal of .
Solution
Define , (the constant term).
- It is a ring homomorphism: and .
- It is onto (constants map to themselves).
- .
So .
- is prime because is an integral domain. (Directly: if then , so or .)
- is not maximal because is not a field. Explicitly : the middle ideal contains , and it is proper since every element has an even constant term, so .
✓ Proof checked step by step Proof checked step by step.
Let be a field of real numbers and , the field of all those polynomials such that . Prove that is an ideal of . Is the residue class ring an integral domain? Give justification for your answer.
Solution
is an ideal. If and :
- , so ;
- and , so .
(In fact : means and both divide .)
Not an integral domain. Take and . Neither is zero, since ( is at ) and . But because . So has zero divisors and is not an integral domain. (Equivalently, is not a prime ideal.)
✓ Proof checked step by step Proof checked step by step.
Suppose be the set of all real numbers and is a function such that the following equations hold for all : (i) (ii) Show that either , or, .
Solution
Step 1: or . .
- If : for all .
- Now let . We show for all .
Step 2: rationals. , so , and . By additivity for integers . For : , so .
Step 3: is increasing. If , then with , and . So .
Step 4: all reals. Suppose for some ; say . Pick a rational with . Then gives , contradicting . The case is the same. Hence .
So either or for all .
✓ Proof checked step by step Proof checked step by step.
Let be a field and be the ring of polynomials over in a single variable . For a polynomial , let denote the ideal in generated by . Show that is a maximal ideal in if and only if is an irreducible polynomial over .
Solution
In every ideal is principal (it is a Euclidean domain). Assume is non-constant (if is a non-zero constant, is the whole ring and is a unit, so neither side holds).
() Let be maximal and suppose . Then . By maximality or .
- means is a unit (non-zero constant).
- means , so , , and is a unit.
So every factorisation is trivial: is irreducible.
() Let be irreducible and for an ideal . Write . Then . By irreducibility either is a unit, so , or is a unit, so . Also since is not a unit. Hence is maximal.
✓ Proof checked step by step Proof checked step by step.
Give an example of a ring having identity but a subring of this having a different identity.
Solution
Example. has identity . Its subring has a different identity, : So acts as the identity of , while the identity of is .
(Another example: with identity , and the subring with identity .)
✓ Checked by computer We checked by computer that and in .
If is a ring with unit element 1 and is a homomorphism of onto , prove that is the unit element of .
Solution
Let . Since is onto, for some . Then So is a two-sided identity of , i.e. the unit element of .
✓ Proof checked step by step Proof checked step by step.
Prove that the set is a commutative ring with identity.
Solution
is a subset of the field , so it is enough to check it is a subring containing 1 (associativity, distributivity and commutativity are inherited from ).
- Closed under subtraction: .
- Closed under multiplication: , with rational coefficients.
- Identity: . Zero: .
- Commutative: multiplication in is commutative.
So is a commutative ring with identity. (It is even a field: , and for since is irrational.)
✓ Proof checked step by step Proof checked step by step.
Let = ring of all real valued continuous functions on , under the operations Let . Is a maximal ideal of ? Justify your answer.
Solution
Yes, is a maximal ideal. Define the evaluation map
- It is a ring homomorphism: and .
- It is onto: the constant function maps to .
- .
So , a field. An ideal is maximal exactly when the quotient is a field, so is maximal.
✓ Proof checked step by step Proof checked step by step.
Describe the maximal ideals in the ring of Gaussian integers .
Solution
is a Euclidean domain (with norm ), hence a PID. In a PID the maximal ideals are exactly with irreducible (prime). So we list the Gaussian primes, up to units :
- (norm 2), lying over .
- , a rational prime with (norm ); such stays prime in because is not a sum of two squares.
- with , a rational prime ; then splits into two non-associate primes.
So the maximal ideals of are , for primes , and with a prime . The quotient is a finite field with elements.
✓ Proof checked step by step Proof checked step by step.
Let be the set of all real valued continuous functions defined on the closed interval . Prove that is a Commutative Ring with unity with respect to addition and multiplication of functions defined pointwise as below : where .
Solution
Sums and products of continuous functions are continuous, so is closed under and . Each axiom holds pointwise because it holds in :
- is an abelian group: and pointwise; the zero function is the identity; (continuous) is the inverse.
- Multiplication is associative and commutative: and .
- Distributive: .
- Unity: the constant function , since .
Hence is a commutative ring with unity.
✓ Proof checked step by step Proof checked step by step.
Show that the quotient ring is isomorphic to the ring where denotes the ring of Gaussian integers.
Solution
Define by Homomorphism. Additivity is clear. For products we need , i.e. is respected: . ✓ So .
Onto. .
Kernel . , so . Conversely, , so has exactly 10 elements (the index of the ideal equals ). Since induces an onto map between sets of 10 elements, it is a bijection, and the kernel is exactly .
Hence .
✓ Proof checked step by step Proof checked step by step; checked by computer that satisfies and .
How many proper, non-zero ideals does the ring have ? Justify your answer. How many ideals does the ring have ? Why ?
Solution
. Every ideal is an additive subgroup, and the subgroups of the cyclic group are for the divisors of 12; each is also an ideal. Divisors: , giving Excluding and , there are 4 proper non-zero ideals: .
. In a direct sum of rings with identity, every ideal is of the form with ideals of the factors (multiply by and to split any ideal). So there are 36 ideals.
✓ Checked by computer We checked by computer: has six ideals (one per divisor of 12).
How many elements does the quotient ring have ? Is it an integral domain ? Justify yours answers.
Solution
Number of elements. By the division algorithm, every class has a unique representative with . So the quotient has 25 elements.
Not an integral domain. In , , so has roots and : So and are non-zero but their product is . The quotient has zero divisors and is not an integral domain (the ideal is not prime because is reducible).
✓ Checked by computer We checked by computer: in .
Suppose that there is a positive even integer such that for all the elements ‘‘ of some ring . show that for all and for all .
Solution
. Apply the hypothesis to . Since is even, . So
. From , . By the first part (as ). So .
✓ Proof checked step by step Proof checked step by step.
Show that any maximal ideal in the commutative ring of polynomials over a field is the principal ideal generated by an irreducible polynomial.
Solution
Let be a maximal ideal of .
is principal. (since , the zero ideal is not maximal). Choose non-zero of least degree. For , divide: with or . Then , so by minimality . Hence .
is irreducible. is not a unit (else ). Suppose . Then , so by maximality (then is a unit) or (then is a unit). So has no non-trivial factorisation.
Hence with irreducible.
✓ Proof checked step by step Proof checked step by step.
More on Algebra
- 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 II, 2008–2025. Solutions: Optional Province. Found an error? Tell us.

