All 30 questions UPSC has asked on second order equations with variable coefficients in the Mathematics Optional (Paper I, Ordinary Differential Equations) from 2008 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Ordinary Differential Equations 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 · 6a 2026 · 8a 2025 · 7c(ii) 2025 · 8a 2024 · 6c(i) 2024 · 6c(ii) 2022 · 6b 2022 · 8a(ii) 2021 · 6b 2021 · 8a(ii) 2020 · 6a 2020 · 8a(i) 2019 · 6c(i) 2019 · 7a 2018 · 7a 2017 · 7b(i) 2017 · 7b(ii) 2016 · 6b 2016 · 6c 2015 · 8d 2014 · 6a 2014 · 6b 2014 · 7a 2013 · 6b 2013 · 6c 2012 · 6c 2011 · 6c 2009 · 5b 2008 · 5b 2008 · 6c
Solve
Solution
This is a Cauchy–Euler equation. Put (), , so that and :
Complementary function. gives :
Particular integral. Shift through the operator ():
Term :
Term : Expanding to first order in , Taking the imaginary part:
Complete solution (with ):
✓ Checked by computer We solved the equation by computer (SymPy); its particular integral agrees term by term with ours.
Solve by the method of variation of parameters.
Solution
CF: . Take , , with Wronskian PI : Complete solution:
✓ Checked by computer We checked by computer (SymPy): substituting the particular integral into the equation leaves exactly .
Find the complete solution of .
Solution
This is a Cauchy–Euler equation. Put , , so that : CF. : : PI. Shift through: Complete solution:
✓ Checked by computer We checked by computer (SymPy): substituting the complete solution into the equation leaves exactly .
Solve the differential equation by the method of variation of parameters.
Solution
Two solutions of the homogeneous equation.
- Try : for all needs and ; works. So .
- Try : gives . So .
Variation of parameters. In standard form , and since . Next, using and : So Complete solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Find the second solution of the differential equation using as one of the solutions.
Solution
In standard form , so and . With , reduction of order gives the second solution So the second solution is (a constant multiple does not matter). Check: , ✓. The general solution is
✓ Checked by computer We checked by computer (SymPy): satisfies the equation, and so does the general solution.
Find the general solution of the differential equation by the method of variation of parameters.
Solution
CF. Trying : , so , .
Variation of parameters. In standard form the right side is , and . General solution:
✓ Checked by computer We checked by computer (SymPy): substituting the solution into the equation leaves exactly .
Solve the following differential equation by using the method of variation of parameters : , given that is one solution of the reduced equation.
Solution
Second solution of the reduced equation. Try : gives . So (with ).
Variation of parameters. Standard form: , and General solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve the following differential equation :
Solution
This is a Legendre equation. Put , . Then and : On the right, , so . The equation is CF. : .
PI. .
Complete solution (with ):
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve the equation : completely by demonstrating all the steps involved.
Solution
Change of independent variable. Choose so that : take . Then Substituting: The bracket is . Dividing by : CF: , : .
PI: Complete solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Find the general solution of the differential equation : Hence, solve the differential equation : by the method of variation of parameters.
Solution
Homogeneous equation. works: . In standard form , so . Reduction of order: So the general solution of the homogeneous equation is .
The equation with right side . Standard form: . With , : The term belongs to the CF, so
✓ Checked by computer We checked by computer (SymPy): both parts satisfy their equations.
Using the method of variation of parameters, solve the differential equation , if is one solution of CF.
Solution
Second solution of the CF. , so . With : Take . Then .
Variation of parameters with : So Complete solution:
✓ Checked by computer We checked by computer (SymPy): the second solution and the complete solution satisfy their equations.
Solve the following differential equation :
Solution
Put , : CF: .
PI for . is a simple root: .
PI for . With : Complete solution ():
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve the differential equation
Solution
Change of independent variable. Take , so , : Substituting, the coefficient of is , and dividing by : CF: : .
PI: .
Complete solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Find the linearly independent solutions of the corresponding homogeneous differential equation of the equation and then find the general solution of the given equation by the method of variation of parameters.
Solution
Independent solutions of the homogeneous equation. Try in : so and . They are independent since for .
Variation of parameters. In standard form the right side is . General solution:
✓ Checked by computer We checked by computer (SymPy): substituting the solution into the equation leaves exactly .
Solve :
Solution
Put : .
CF: .
PI. This is resonant: , so .
Complete solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve the differential equation :
Solution
Change of independent variable : Then , and the equation becomes CF: . PI: .
Solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve the following differential equation using method of variation of parameters :
Solution
CF: : , , and .
With , Integrating by parts, So General solution:
✓ Checked by computer We checked by computer (SymPy): both integrals, and the PI , which also satisfies the equation.
Using the method of variation of parameters, solve the differential equation
Solution
CF: : , , .
With : General solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Find the general solution of the equation .
Solution
Multiply by to get a Cauchy–Euler equation: . With : CF: .
PI: .
General solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve :
Solution
Put . The operator is The equation is .
CF: .
PI for ( is a simple root): PI for (resonant): Complete solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve by the method of variation of parameters :
Solution
Complementary function: .
Variation of parameter. Let . Then , so Solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve the differential equation :
Solution
Put : , so CF. : : PI. With , : Complete solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve the following differential equation : when is a solution to its corresponding homogeneous differential equation.
Solution
Put . Then , , and the equation becomes With : . The integrating factor is : Integrating, . So
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Using the method of variation of parameters, solve the differential equation
Solution
CF: . Take , , with Wronskian PI : Complete solution:
✓ Checked by computer We checked by computer (SymPy): substituting the particular integral into the equation leaves exactly .
Find the general solution of the equation
Solution
Put : .
CF: .
PI. : The imaginary part is .
General solution ():
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve the ordinary differential equation
Solution
CF. Try : ✓. Try : , so ✓. So PI. Since the right side is a cubic, try : So and
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Using the method of variation of parameters, solve the second order differential equation
Solution
CF: , , .
With : Solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Find the Wronskian of the set of functions on the interval and determine whether the set is linearly dependent on .
Solution
Let and , so for and for . Both are differentiable on , with .
Wronskian.
- For : , so .
- For : , so .
So for every .
Linear independence. Suppose on .
- : .
- : .
So : the set is linearly independent on , even though its Wronskian vanishes everywhere. (This shows that does not imply dependence in general. It does when the functions are solutions of one linear differential equation with continuous coefficients, which these are not on .)
✓ Proof checked step by step Proof checked step by step.
Use the method of variation of parameters to find the general solution of
Solution
CF. Trying : , so , , and .
In standard form : General solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
Solve the differential equation
Solution
Divide by : . With : CF: : .
PI. Shift through (): . Complete solution:
✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.
More on Ordinary Differential Equations
- Ordinary Differential Equations 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.

