Menu Close

First order first degree equations: UPSC Maths Optional PYQ Solutions (2008–2026)

All 42 questions UPSC has asked on first order first degree equations 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 · 5a 2026 · 7c(i) 2025 · 5b 2024 · 5a 2024 · 7a 2023 · 5a 2023 · 7a(i) 2022 · 5a 2022 · 5b 2021 · 8a(i) 2020 · 5a 2020 · 5b 2019 · 5a 2018 · 7d 2018 · 8d 2017 · 5a 2017 · 5b 2017 · 6a(ii) 2016 · 5c 2016 · 5d 2016 · 6a 2015 · 5a 2015 · 5b 2015 · 6a 2014 · 5a 2014 · 5b 2014 · 8a 2013 · 5a 2013 · 5b 2013 · 6a 2012 · 5a 2012 · 5b 2012 · 6a 2011 · 5a 2011 · 5b 2010 · 5a 2010 · 5b 2010 · 6a 2010 · 7a 2009 · 6a 2009 · 6c 2008 · 5a

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

If y1 and y2 are two solutions of dydx+P(x)y=Q(x), and y2=y1u, then show that u=1+ae−∫(Qy1)dx, where a is a non-zero constant.

2026 · Paper I · Q5a · 10 marks

Solution

Since y1y_1 and y2=y1uy_2=y_1u both satisfy y′+Py=Qy'+Py=Q: y1′+Py1=Q,(y1u)′+Py1u=Q.y_1'+Py_1=Q,\qquad (y_1u)'+Py_1u=Q . Expanding the second: y1u′+u(y1′+Py1)=Qy_1u'+u(y_1'+Py_1)=Q, i.e. y1u′+uQ=Qy_1u'+uQ=Q. Hence u′=Qy1(1−u)⇒du1−u=Qy1dx.u'=\frac{Q}{y_1}(1-u)\quad\Rightarrow\quad\frac{du}{1-u}=\frac{Q}{y_1}\,dx . Integrating, −log|1−u|=∫Qy1dx+c⇒1−u=Ce−∫(Q/y1)dx.-\log|1-u|=\int\frac{Q}{y_1}dx+c\quad\Rightarrow\quad 1-u=Ce^{-\int(Q/y_1)dx}. Writing a=−Ca=-C: u=1+ae−∫(Qy1)dx.u=1+a\,e^{-\int\left(\frac{Q}{y_1}\right)dx}. Here a≠0a\ne0: if a=0a=0 then u=1u=1 and y2=y1y_2=y_1, but the two solutions are distinct. ◼\blacksquare

✓ Proof checked step by step A derivation: we checked each step by differentiating back.

↑ Back to the question list

Show that (x+y+1)−4 is an integrating factor of (2x−y−1)ydx+(2y−x−1)xdy=0 Hence solve it.

2026 · Paper I · Q7c(i) · 10 marks

Solution

Let M=(2x−y−1)yM=(2x-y-1)y, N=(2y−x−1)xN=(2y-x-1)x and μ=(x+y+1)−4\mu=(x+y+1)^{-4}.

Exactness. Write s=x+y+1s=x+y+1. Rather than expanding ∂(μM)/∂y\partial(\mu M)/\partial y and ∂(μN)/∂x\partial(\mu N)/\partial x, we exhibit a function whose differential is μMdx+μNdy\mu M\,dx+\mu N\,dy: ∂∂x(−xys3)=−ys+3xys4=y(2x−y−1)s4=μM,∂∂y(−xys3)=x(2y−x−1)s4=μN.\frac{\partial}{\partial x}\!\left(\frac{-xy}{s^3}\right)=\frac{-y\,s+3xy}{s^4}=\frac{y(2x-y-1)}{s^4}=\mu M,\qquad \frac{\partial}{\partial y}\!\left(\frac{-xy}{s^3}\right)=\frac{x(2y-x-1)}{s^4}=\mu N . So μMdx+μNdy=d(−xy(x+y+1)3)\mu M\,dx+\mu N\,dy=d\!\left(\dfrac{-xy}{(x+y+1)^3}\right) is an exact differential, and (x+y+1)−4(x+y+1)^{-4} is an integrating factor.

Solution. xy(x+y+1)3=C,i.e.xy=C(x+y+1)3.\frac{xy}{(x+y+1)^3}=C,\qquad\text{i.e.}\qquad xy=C(x+y+1)^3 .

✓ Checked by computer We checked by computer (SymPy): with the factor the equation is exact (∂M/∂y=∂N/∂x\partial M/\partial y=\partial N/\partial x), and the solution’s differential reproduces the equation.

↑ Back to the question list

Form the differential equation of all ellipses whose axes coincide with coordinate axes.

2025 · Paper I · Q5b · 10 marks

Solution

The family x2a2+y2b2=1\dfrac{x^2}{a^2}+\dfrac{y^2}{b^2}=1 has two arbitrary constants, so we differentiate twice. Writing A=1a2A=\dfrac{1}{a^2}, B=1b2B=\dfrac1{b^2}: Ax2+By2=1,Ax+Byy′=0,A+B(y′2+yy″)=0.Ax^2+By^2=1,\qquad Ax+Byy'=0,\qquad A+B\left(y'^2+yy''\right)=0 . From the second, A=−Byy′xA=-\dfrac{Byy'}{x}. Putting this into the third and dividing by BB: −yy′x+y′2+yy″=0⇒xyy″+xy′2−yy′=0.-\frac{yy'}{x}+y'^2+yy''=0\quad\Longrightarrow\quad xyy''+xy'^2-yy'=0 .

✓ Checked by computer We checked by computer (SymPy): every ellipse x2a2+y2b2=1\frac{x^2}{a^2}+\frac{y^2}{b^2}=1 satisfies the equation.

↑ Back to the question list

Find the orthogonal trajectories of the family of curves r=c(secθ+tanθ), where c is a parameter.

2024 · Paper I · Q5a · 10 marks

Solution

Take logarithms: logr=logc+log(secθ+tanθ)\log r=\log c+\log(\sec\theta+\tan\theta). Differentiating with respect to θ\theta eliminates cc: 1rdrdθ=secθtanθ+sec2θsecθ+tanθ=secθ.\frac1r\frac{dr}{d\theta}=\frac{\sec\theta\tan\theta+\sec^2\theta}{\sec\theta+\tan\theta}=\sec\theta . For orthogonal trajectories in polar form, replace 1rdrdθ\dfrac1r\dfrac{dr}{d\theta} by −rdθdr-r\dfrac{d\theta}{dr}: −rdθdr=secθ⇒drr=−cosθdθ⇒logr=−sinθ+logk.-r\frac{d\theta}{dr}=\sec\theta\quad\Rightarrow\quad\frac{dr}{r}=-\cos\theta\,d\theta\quad\Rightarrow\quad\log r=-\sin\theta+\log k . The orthogonal trajectories are r=ke−sinθ.r=k\,e^{-\sin\theta}.

✓ Checked by computer We checked by computer (SymPy) that the new family cuts the old one at right angles.

↑ Back to the question list

State uniqueness theorem for the existence of unique solution of the initial value problem dydx=f(x,y), y(x0)=y0 in the rectangular region R:|x−x0|≤a, |y−y0|≤b. Test the existence and uniqueness of the solution of the initial value problem dydx=2y, y(1)=0, in a suitable rectangle R. If more than one solution exist, then find all the solutions.

2024 · Paper I · Q7a · 15 marks

Solution

Theorem (existence and uniqueness). Let f(x,y)f(x,y) be continuous in R:|x−x0|≤a,|y−y0|≤bR:|x-x_0|\le a,\ |y-y_0|\le b, with |f|≤M|f|\le M there, and let ff satisfy a Lipschitz condition in yy on RR: |f(x,y1)−f(x,y2)|≤K|y1−y2|.|f(x,y_1)-f(x,y_2)|\le K|y_1-y_2| . (This holds, for example, when ∂f/∂y\partial f/\partial y is continuous on RR.) Then the problem y′=f(x,y)y'=f(x,y), y(x0)=y0y(x_0)=y_0 has exactly one solution on |x−x0|≤h|x-x_0|\le h, where h=min(a,bM)h=\min\left(a,\dfrac bM\right).

The problem y′=2yy'=2\sqrt y, y(1)=0y(1)=0. Take R:|x−1|≤a,0≤y≤bR:|x-1|\le a,\ 0\le y\le b.

  • Existence. f=2yf=2\sqrt y is continuous on RR, so a solution exists (Peano’s theorem).
  • Uniqueness fails. ∂f∂y=1y\dfrac{\partial f}{\partial y}=\dfrac1{\sqrt y} is unbounded as y→0+y\to0^+. Nor is there any Lipschitz constant: with y2=0y_2=0, |2y1−0||y1−0|=2y1→∞\dfrac{|2\sqrt{y_1}-0|}{|y_1-0|}=\dfrac2{\sqrt{y_1}}\to\infty. So the uniqueness theorem cannot be applied in any rectangle containing (1,0)(1,0).

All solutions. Separating variables where y>0y>0: dy2y=dx\dfrac{dy}{2\sqrt y}=dx, so y=x−c\sqrt y=x-c with x≥cx\ge c. A solution may stay at 00 for a while and then leave the axis. With y(1)=0y(1)=0 the solutions are:

  • y≡0y\equiv0;
  • y={0,x≤c(x−c)2,x>cy=\begin{cases}0,&x\le c\\(x-c)^2,&x>c\end{cases} for any c≥1c\ge1 (the most common one, c=1c=1, gives y=(x−1)2y=(x-1)^2 for x≥1x\ge1);
  • to the left of x=1x=1 every solution is 00: where y>0y>0, y=x−c\sqrt y=x-c increases with xx, so a solution that is positive at some x<1x<1 cannot come down to 00 at x=1x=1.

So there are infinitely many solutions: y≡0y\equiv0 and the family above, one for each c≥1c\ge1.

✓ Proof checked step by step Proof checked step by step; we also checked both solutions by substitution.

↑ Back to the question list

Obtain the solution of the initial-value problem dydx−2xy=2,y(0)=1 in the form y=ex2[1+πerf(x)].

2023 · Paper I · Q5a · 10 marks

Solution

The equation is linear with P=−2xP=-2x, so the integrating factor is e−x2e^{-x^2}: ddx(ye−x2)=2e−x2.\frac{d}{dx}\left(ye^{-x^2}\right)=2e^{-x^2}. Integrate from 00 to xx, using y(0)=1y(0)=1: ye−x2−1=2∫0xe−t2dt=π⋅2π∫0xe−t2dt=πerf(x).ye^{-x^2}-1=2\int_0^xe^{-t^2}\,dt=\sqrt\pi\cdot\frac{2}{\sqrt\pi}\int_0^xe^{-t^2}dt=\sqrt\pi\,\operatorname{erf}(x). Hence y=ex2[1+πerf(x)].y=e^{x^2}\left[1+\sqrt\pi\,\operatorname{erf}(x)\right].

✓ Checked by computer We checked by computer (SymPy): the function satisfies the equation and y(0)=1y(0)=1.

↑ Back to the question list

Find the solution of the differential equation : dydx=−2xy3+23x2y2+8e4y

2023 · Paper I · Q7a(i) · 10 marks

Solution

Write it as Mdx+Ndy=0M\,dx+N\,dy=0 with M=2xy3+2,N=3x2y2+8e4y.M=2xy^3+2,\qquad N=3x^2y^2+8e^{4y}. ∂M∂y=6xy2=∂N∂x\dfrac{\partial M}{\partial y}=6xy^2=\dfrac{\partial N}{\partial x}, so it is exact.

Integrate MM with respect to xx: x2y3+2xx^2y^3+2x. The terms of NN free of xx give ∫8e4ydy=2e4y\int8e^{4y}dy=2e^{4y}. The solution is x2y3+2x+2e4y=C.x^2y^3+2x+2e^{4y}=C .

✓ Checked by computer We checked by computer (SymPy): the equation is exact and the solution’s differential reproduces it.

↑ Back to the question list

Show that the general solution of the differential equation dydx+Py=Q can be written in the form y=QP−e−∫Pdx{C+∫e∫Pdxd(QP)}, where P, Q are non-zero functions of x and C, an arbitrary constant.

2022 · Paper I · Q5a · 10 marks

Solution

The usual solution of the linear equation is ye∫Pdx=∫Qe∫Pdxdx+c.y\,e^{\int P\,dx}=\int Q\,e^{\int P\,dx}\,dx+c . Since ddxe∫Pdx=Pe∫Pdx\dfrac{d}{dx}e^{\int P\,dx}=P\,e^{\int P\,dx}, we can write Qe∫Pdxdx=QPd(e∫Pdx)Q\,e^{\int Pdx}\,dx=\dfrac QP\,d\!\left(e^{\int Pdx}\right) and integrate by parts: ∫QPd(e∫Pdx)=QPe∫Pdx−∫e∫Pdxd(QP).\int\frac QP\,d\!\left(e^{\int Pdx}\right)=\frac QP\,e^{\int Pdx}-\int e^{\int Pdx}\,d\!\left(\frac QP\right). So ye∫Pdx=QPe∫Pdx−∫e∫Pdxd(QP)+c.y\,e^{\int Pdx}=\frac QP\,e^{\int Pdx}-\int e^{\int Pdx}\,d\!\left(\frac QP\right)+c . Dividing by e∫Pdxe^{\int Pdx} and writing c=−Cc=-C: y=QP−e−∫Pdx{C+∫e∫Pdxd(QP)}.◼y=\frac QP-e^{-\int P\,dx}\left\{C+\int e^{\int P\,dx}\,d\!\left(\frac QP\right)\right\}.\qquad\blacksquare

✓ Proof checked step by step Proof checked step by step (integration by parts).

↑ Back to the question list

Show that the orthogonal trajectories of the system of parabolas : x2=4a(y+a) belong to the same system.

2022 · Paper I · Q5b · 10 marks

Solution

Equation of the family. Differentiate x2=4a(y+a)x^2=4a(y+a): 2x=4ap2x=4ap, where p=y′p=y'. So a=x2pa=\dfrac{x}{2p}. Substituting, x2=2xp(y+x2p)⇒x2p2=2xyp+x2⇒xp2−2yp−x=0.x^2=\frac{2x}{p}\left(y+\frac{x}{2p}\right)\quad\Rightarrow\quad x^2p^2=2xyp+x^2\quad\Rightarrow\quad xp^2-2yp-x=0 . Orthogonal trajectories. Replace pp by −1p-\dfrac1p: xp2+2yp−x=0⇒x+2yp−xp2=0⇒xp2−2yp−x=0.\frac{x}{p^2}+\frac{2y}{p}-x=0\quad\Rightarrow\quad x+2yp-xp^2=0\quad\Rightarrow\quad xp^2-2yp-x=0 . This is the same differential equation, so the orthogonal trajectories are again of the form x2=4a(y+a)x^2=4a(y+a): the system is self-orthogonal. ◼\blacksquare

✓ Checked by computer We checked by computer (SymPy): replacing pp by −1/p-1/p gives back the same equation.

↑ Back to the question list

Find the orthogonal trajectories of the family of confocal conics x2a2+λ+y2b2+λ=1; a>b>0 are constants and λ is a parameter. Show that the given family of curves is self orthogonal.

2021 · Paper I · Q8a(i) · 10 marks

Solution

Differentiate the conic, with p=y′p=y': xa2+λ+ypb2+λ=0.\frac{x}{a^2+\lambda}+\frac{yp}{b^2+\lambda}=0 . Write A=a2+λA=a^2+\lambda, B=b2+λB=b^2+\lambda, so A−B=a2−b2A-B=a^2-b^2. From this equation xA=−ypB\dfrac{x}{A}=-\dfrac{yp}{B}, so B=−ypAxB=-\dfrac{ypA}{x}. Substituting into A−B=a2−b2A-B=a^2-b^2: A(1+ypx)=a2−b2⇒A=(a2−b2)xx+yp,B=−(a2−b2)ypx+yp.A\left(1+\frac{yp}{x}\right)=a^2-b^2\quad\Rightarrow\quad A=\frac{(a^2-b^2)x}{x+yp},\qquad B=-\frac{(a^2-b^2)yp}{x+yp}. Now put these into x2A+y2B=1\dfrac{x^2}{A}+\dfrac{y^2}{B}=1: (x+yp)a2−b2(x−yp)=1⇒(x+yp)(xp−y)=(a2−b2)p.\frac{(x+yp)}{a^2-b^2}\left(x-\frac yp\right)=1\quad\Rightarrow\quad (x+yp)(xp-y)=(a^2-b^2)\,p . Orthogonal trajectories. Replace pp by −1p-\dfrac1p: (x−yp)(−xp−y)=−a2−b2p.\left(x-\frac yp\right)\left(-\frac xp-y\right)=-\frac{a^2-b^2}{p}. Multiply by −p2-p^2: (xp−y)(x+yp)=(a2−b2)p(xp-y)(x+yp)=(a^2-b^2)\,p, the same equation. So the orthogonal trajectories belong to the family itself: the confocal conics are self-orthogonal. (Geometrically, through each point pass one ellipse and one hyperbola of the family, and they cut at right angles.) ◼\blacksquare

✓ Checked by computer We checked by computer (SymPy): eliminating λ\lambda gives this equation, and p→−1/pp\to-1/p leaves it unchanged.

↑ Back to the question list

Solve the following differential equation : xcos(yx)(ydx+xdy)=ysin(yx)(xdy−ydx)

2020 · Paper I · Q5a · 10 marks

Solution

Divide the equation by xx: cosyx(ydx+xdy)−yxsinyx(xdy−ydx)=0.\cos\frac yx\,(y\,dx+x\,dy)-\frac yx\sin\frac yx\,(x\,dy-y\,dx)=0 . Now notice that ydx+xdy=d(xy)y\,dx+x\,dy=d(xy) and xdy−ydx=x2d(yx)x\,dy-y\,dx=x^2\,d\!\left(\dfrac yx\right). So the left side is cosyxd(xy)−xysinyxd(yx)=d(xycosyx).\cos\frac yx\,d(xy)-xy\,\sin\frac yx\,d\!\left(\frac yx\right)=d\!\left(xy\cos\frac yx\right). Hence the solution is xycosyx=C.xy\cos\frac yx=C .

✓ Checked by computer We checked by computer (SymPy): the differential of xycos(y/x)xy\cos(y/x) is the equation divided by xx.

↑ Back to the question list

Find the orthogonal trajectories of the family of circles passing through the points (0,2) and (0,−2).

2020 · Paper I · Q5b · 10 marks

Solution

The family. A circle through (0,2)(0,2) and (0,−2)(0,-2) has its centre on the perpendicular bisector, the xx-axis: x2+y2+2gx−4=0.x^2+y^2+2gx-4=0 . Differentiate: 2x+2yp+2g=02x+2yp+2g=0, so g=−(x+yp)g=-(x+yp). Substituting, x2+y2−2x(x+yp)−4=0⇒y2−x2−4−2xyp=0.x^2+y^2-2x(x+yp)-4=0\quad\Rightarrow\quad y^2-x^2-4-2xyp=0 . Orthogonal trajectories. Replace pp by −1p-\dfrac1p and multiply by pp: (y2−x2−4)p+2xy=0⇒dydx=2xyx2−y2+4.(y^2-x^2-4)\,p+2xy=0\quad\Rightarrow\quad\frac{dy}{dx}=\frac{2xy}{x^2-y^2+4}. Try circles x2+y2+2fy+4=0x^2+y^2+2fy+4=0: differentiating, f=−x+yppf=-\dfrac{x+yp}{p}, and eliminating ff gives (x2−y2+4)p=2xy(x^2-y^2+4)p=2xy, exactly the equation above. So the orthogonal trajectories are x2+y2+2fy+4=0,x^2+y^2+2fy+4=0, circles with centres on the yy-axis (a coaxal system with limiting points (0,±2)(0,\pm2)).

✓ Checked by computer We checked by computer (SymPy): both families satisfy the equations shown, and the slopes multiply to −1-1.

↑ Back to the question list

Solve the differential equation (2ysinx+3y4sinxcosx)dx−(4y3cos2x+cosx)dy=0

2019 · Paper I · Q5a · 10 marks

Solution

Here M=2ysinx+3y4sinxcosxM=2y\sin x+3y^4\sin x\cos x and N=−(4y3cos2x+cosx)N=-(4y^3\cos^2x+\cos x). ∂M∂y=2sinx+12y3sinxcosx,∂N∂x=8y3cosxsinx+sinx.\frac{\partial M}{\partial y}=2\sin x+12y^3\sin x\cos x,\qquad\frac{\partial N}{\partial x}=8y^3\cos x\sin x+\sin x . Not exact. But 1N(∂M∂y−∂N∂x)=sinx(1+4y3cosx)−cosx(1+4y3cosx)=−tanx,\frac{1}{N}\left(\frac{\partial M}{\partial y}-\frac{\partial N}{\partial x}\right)=\frac{\sin x\,(1+4y^3\cos x)}{-\cos x\,(1+4y^3\cos x)}=-\tan x, a function of xx alone, so e∫−tanxdx=cosxe^{\int-\tan x\,dx}=\cos x is an integrating factor. Multiplying, (2ysinxcosx+3y4sinxcos2x)dx−(4y3cos3x+cos2x)dy=0,(2y\sin x\cos x+3y^4\sin x\cos^2x)\,dx-(4y^3\cos^3x+\cos^2x)\,dy=0, which is d(−ycos2x−y4cos3x)=0d\left(-y\cos^2x-y^4\cos^3x\right)=0. The solution is ycos2x+y4cos3x=C.y\cos^2x+y^4\cos^3x=C .

✓ Checked by computer We checked by computer (SymPy): with the factor cosx\cos x the equation is exact, and the solution’s differential reproduces it.

↑ Back to the question list

Find α and β such that xαyβ is an integrating factor of (4y2+3xy)dx−(3xy+2x2)dy=0 and solve the equation.

2018 · Paper I · Q7d · 12 marks

Solution

Multiply by xαyβx^\alpha y^\beta: M=4xαyβ+2+3xα+1yβ+1M=4x^\alpha y^{\beta+2}+3x^{\alpha+1}y^{\beta+1}, N=−3xα+1yβ+1−2xα+2yβN=-3x^{\alpha+1}y^{\beta+1}-2x^{\alpha+2}y^\beta. For exactness, ∂M∂y=4(β+2)xαyβ+1+3(β+1)xα+1yβ,\frac{\partial M}{\partial y}=4(\beta+2)x^\alpha y^{\beta+1}+3(\beta+1)x^{\alpha+1}y^\beta, ∂N∂x=−3(α+1)xαyβ+1−2(α+2)xα+1yβ.\frac{\partial N}{\partial x}=-3(\alpha+1)x^\alpha y^{\beta+1}-2(\alpha+2)x^{\alpha+1}y^\beta . Equating coefficients: 4β+8=−3α−3,3β+3=−2α−4⇒3α+4β=−11,2α+3β=−7.4\beta+8=-3\alpha-3,\qquad 3\beta+3=-2\alpha-4\quad\Rightarrow\quad 3\alpha+4\beta=-11,\quad2\alpha+3\beta=-7 . So α=−5\alpha=-5, β=1\beta=1: the integrating factor is yx5\dfrac{y}{x^5}. The equation becomes (4y3x5+3y2x4)dx−(3y2x4+2yx3)dy=0=−d(y3x4+y2x3).\left(\frac{4y^3}{x^5}+\frac{3y^2}{x^4}\right)dx-\left(\frac{3y^2}{x^4}+\frac{2y}{x^3}\right)dy=0=-\,d\!\left(\frac{y^3}{x^4}+\frac{y^2}{x^3}\right). The solution is y3x4+y2x3=C,i.e.y2(x+y)=Cx4.\frac{y^3}{x^4}+\frac{y^2}{x^3}=C,\qquad\text{i.e.}\qquad y^2(x+y)=Cx^4 .

✓ Checked by computer We solved for α,β\alpha,\beta by computer (SymPy): α=−5\alpha=-5, β=1\beta=1; the solution’s differential reproduces the equation.

↑ Back to the question list

Find f(y) such that (2xey+3y2)dy+(3x2+f(y))dx=0 is exact and hence solve.

2018 · Paper I · Q8d · 12 marks

Solution

Here M=3x2+f(y)M=3x^2+f(y) (the coefficient of dxdx) and N=2xey+3y2N=2xe^y+3y^2. Exactness requires ∂M∂y=f′(y)=∂N∂x=2ey⇒f(y)=2ey+k.\frac{\partial M}{\partial y}=f'(y)=\frac{\partial N}{\partial x}=2e^y\quad\Rightarrow\quad f(y)=2e^y+k . Taking k=0k=0, f(y)=2eyf(y)=2e^y. Then ∫Mdx=x3+2xey,and the x-free part of N gives ∫3y2dy=y3.\int M\,dx=x^3+2xe^y,\qquad\text{and the }x\text{-free part of }N\text{ gives }\int3y^2dy=y^3 . The solution is x3+2xey+y3=C.x^3+2xe^y+y^3=C . (With a general kk the solution is x3+2xey+kx+y3=Cx^3+2xe^y+kx+y^3=C.)

✓ Checked by computer We checked by computer (SymPy): with f(y)=2eyf(y)=2e^y the equation is exact and the solution’s differential reproduces it.

↑ Back to the question list

Find the differential equation representing all the circles in the x–y plane.

2017 · Paper I · Q5a · 10 marks

Solution

Every circle (x−h)2+(y−k)2=r2(x-h)^2+(y-k)^2=r^2 has three constants, so differentiate three times: (x−h)+(y−k)y′=0,1+y′2+(y−k)y″=0.(x-h)+(y-k)y'=0,\qquad 1+y'^2+(y-k)y''=0 . From the second, y−k=−1+y′2y″y-k=-\dfrac{1+y'^2}{y''}. Differentiate the second once more: 2y′y″+y′y″+(y−k)y‴=0⇒3y′y″=1+y′2y″y‴.2y'y''+y'y''+(y-k)y'''=0\quad\Rightarrow\quad 3y'y''=\frac{1+y'^2}{y''}\,y''' . The differential equation of all circles is (1+y′2)y‴−3y′y″2=0.(1+y'^2)\,y'''-3y'\,y''^2=0 .

✓ Checked by computer We checked by computer (SymPy): a general circle satisfies the equation.

↑ Back to the question list

Suppose that the streamlines of the fluid flow are given by a family of curves xy=c. Find the equipotential lines, that is, the orthogonal trajectories of the family of curves representing the streamlines.

2017 · Paper I · Q5b · 10 marks

Solution

Differentiate xy=cxy=c: y+xy′=0y+xy'=0, so y′=−yxy'=-\dfrac yx. For the orthogonal trajectories, replace y′y' by −1y′-\dfrac1{y'}: −1y′=−yx⇒ydy=xdx⇒y2−x2=k.-\frac1{y'}=-\frac yx\quad\Rightarrow\quad y\,dy=x\,dx\quad\Rightarrow\quad y^2-x^2=k . The equipotential lines are the rectangular hyperbolas x2−y2=kx^2-y^2=k.

✓ Checked by computer We checked by computer (SymPy) that the slopes of the two families multiply to −1-1.

↑ Back to the question list

If the growth rate of the population of bacteria at any time t is proportional to the amount present at that time and population doubles in one week, then how much bacterias can be expected after 4 weeks?

2017 · Paper I · Q6a(ii) · 8 marks

Solution

Let N(t)N(t) be the population at time tt (in weeks). Then dNdt=kN\dfrac{dN}{dt}=kN, so N=N0ektN=N_0e^{kt}.

Doubling in one week: 2N0=N0ek2N_0=N_0e^{k}, so ek=2e^k=2, k=log2k=\log2.

After 4 weeks: N(4)=N0e4k=N0⋅24=16N0.N(4)=N_0e^{4k}=N_0\cdot2^4=16N_0 . We can expect 16 times the initial number of bacteria.

✓ Checked by computer We checked the arithmetic by computer: N(4)=24N0=16N0N(4)=2^4N_0=16N_0.

↑ Back to the question list

Solve : dydx=11+x2(etan−1x−y)

2016 · Paper I · Q5c · 10 marks

Solution

Rewrite as a linear equation: dydx+y1+x2=etan−1x1+x2.\frac{dy}{dx}+\frac{y}{1+x^2}=\frac{e^{\tan^{-1}x}}{1+x^2}. The integrating factor is e∫dx1+x2=etan−1xe^{\int\frac{dx}{1+x^2}}=e^{\tan^{-1}x}. So yetan−1x=∫e2tan−1x1+x2dx=12e2tan−1x+Cy\,e^{\tan^{-1}x}=\int\frac{e^{2\tan^{-1}x}}{1+x^2}\,dx=\frac12e^{2\tan^{-1}x}+C (put t=tan−1xt=\tan^{-1}x). Hence y=12etan−1x+Ce−tan−1x.y=\frac12e^{\tan^{-1}x}+Ce^{-\tan^{-1}x}.

✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.

↑ Back to the question list

Show that the family of parabolas y2=4cx+4c2 is self-orthogonal.

2016 · Paper I · Q5d · 10 marks

Solution

Equation of the family. Differentiate y2=4cx+4c2y^2=4cx+4c^2: 2yp=4c2yp=4c, so c=yp2c=\dfrac{yp}2. Substituting, y2=2xyp+y2p2⇒y=2xp+yp2(y≠0).y^2=2xyp+y^2p^2\quad\Rightarrow\quad y=2xp+yp^2\qquad(y\ne0). Orthogonal trajectories. Replace pp by −1p-\dfrac1p: y=−2xp+yp2⇒yp2=−2xp+y⇒y=2xp+yp2.y=-\frac{2x}{p}+\frac{y}{p^2}\quad\Rightarrow\quad yp^2=-2xp+y\quad\Rightarrow\quad y=2xp+yp^2 . The same equation, so the orthogonal trajectories are members of the same family: the family is self-orthogonal. ◼\blacksquare

✓ Checked by computer We checked by computer (SymPy): replacing pp by −1/p-1/p gives back the same equation.

↑ Back to the question list

Solve : {y(1−xtanx)+x2cosx}dx−xdy=0

2016 · Paper I · Q6a · 10 marks

Solution

Divide by xdxx\,dx: dydx=yx−ytanx+xcosx⇒dydx+(tanx−1x)y=xcosx.\frac{dy}{dx}=\frac yx-y\tan x+x\cos x\quad\Rightarrow\quad\frac{dy}{dx}+\left(\tan x-\frac1x\right)y=x\cos x . The integrating factor is e∫(tanx−1x)dx=elogsecx−logx=secxx.e^{\int(\tan x-\frac1x)dx}=e^{\log\sec x-\log x}=\frac{\sec x}{x}. So ddx(ysecxx)=xcosx⋅secxx=1⇒ysecxx=x+C.\frac{d}{dx}\left(\frac{y\sec x}{x}\right)=x\cos x\cdot\frac{\sec x}{x}=1\quad\Rightarrow\quad\frac{y\sec x}{x}=x+C . y=x(x+C)cosx.y=x(x+C)\cos x .

✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Solve the differential equation : xcosxdydx+y(xsinx+cosx)=1.

2015 · Paper I · Q5a · 10 marks

Solution

Divide by xcosxx\cos x: dydx+(tanx+1x)y=1xcosx.\frac{dy}{dx}+\left(\tan x+\frac1x\right)y=\frac{1}{x\cos x}. The integrating factor is e∫(tanx+1x)dx=xsecxe^{\int(\tan x+\frac1x)dx}=x\sec x. So ddx(xysecx)=1xcosx⋅xsecx=sec2x⇒xysecx=tanx+C.\frac{d}{dx}(xy\sec x)=\frac{1}{x\cos x}\cdot x\sec x=\sec^2x\quad\Rightarrow\quad xy\sec x=\tan x+C . xy=sinx+Ccosx.xy=\sin x+C\cos x .

✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation.

↑ Back to the question list

Solve the differential equation : (2xy4ey+2xy3+y)dx+(x2y4ey−x2y2−3x)dy=0.

2015 · Paper I · Q5b · 10 marks

Solution

M=2xy4ey+2xy3+yM=2xy^4e^y+2xy^3+y, N=x2y4ey−x2y2−3xN=x^2y^4e^y-x^2y^2-3x. ∂M∂y=8xy3ey+2xy4ey+6xy2+1,∂N∂x=2xy4ey−2xy2−3.\frac{\partial M}{\partial y}=8xy^3e^y+2xy^4e^y+6xy^2+1,\qquad\frac{\partial N}{\partial x}=2xy^4e^y-2xy^2-3 . Not exact. But 1M(∂N∂x−∂M∂y)=−8xy3ey−8xy2−4y(2xy3ey+2xy2+1)=−4y,\frac1M\left(\frac{\partial N}{\partial x}-\frac{\partial M}{\partial y}\right)=\frac{-8xy^3e^y-8xy^2-4}{y\,(2xy^3e^y+2xy^2+1)}=-\frac4y, a function of yy alone, so e∫−4/ydy=1y4e^{\int-4/y\,dy}=\dfrac1{y^4} is an integrating factor. Then (2xey+2xy+1y3)dx+(x2ey−x2y2−3xy4)dy=0\left(2xe^y+\frac{2x}{y}+\frac1{y^3}\right)dx+\left(x^2e^y-\frac{x^2}{y^2}-\frac{3x}{y^4}\right)dy=0 is exact; integrating the first bracket with respect to xx gives the solution x2ey+x2y+xy3=C.x^2e^y+\frac{x^2}{y}+\frac{x}{y^3}=C .

✓ Checked by computer We checked by computer (SymPy): with the factor 1/y41/y^4 the equation is exact, and the solution’s differential reproduces it.

↑ Back to the question list

Find the constant a so that (x+y)a is the Integrating factor of (4x2+2xy+6y)dx+(2x2+9y+3x)dy=0 and hence solve the differential equation.

2015 · Paper I · Q6a · 12 marks

Solution

Let M=4x2+2xy+6yM=4x^2+2xy+6y, N=2x2+9y+3xN=2x^2+9y+3x, μ=(x+y)a\mu=(x+y)^a. Then ∂(μM)∂y−∂(μN)∂x=(x+y)a−1[a(M−N)+(x+y)(∂M∂y−∂N∂x)].\frac{\partial(\mu M)}{\partial y}-\frac{\partial(\mu N)}{\partial x}=(x+y)^{a-1}\left[a(M-N)+(x+y)\left(\frac{\partial M}{\partial y}-\frac{\partial N}{\partial x}\right)\right]. Here M−N=2x2+2xy−3x−3y=(x+y)(2x−3)M-N=2x^2+2xy-3x-3y=(x+y)(2x-3) and ∂M∂y−∂N∂x=(2x+6)−(4x+3)=3−2x\dfrac{\partial M}{\partial y}-\dfrac{\partial N}{\partial x}=(2x+6)-(4x+3)=3-2x. So the bracket is (x+y)(2x−3)(a−1),(x+y)(2x-3)(a-1), which vanishes identically only when a=1a=1. The integrating factor is x+yx+y.

The exact equation is (x+y)(4x2+2xy+6y)dx+(x+y)(2x2+9y+3x)dy=0(x+y)(4x^2+2xy+6y)\,dx+(x+y)(2x^2+9y+3x)\,dy=0, with potential x4+2x3y+x2y2+3x2y+6xy2+3y3=(x+y)2(x2+3y).x^4+2x^3y+x^2y^2+3x^2y+6xy^2+3y^3=(x+y)^2(x^2+3y). The solution is (x+y)2(x2+3y)=C.(x+y)^2(x^2+3y)=C .

✓ Checked by computer We checked by computer (SymPy): exactness holds only for a=1a=1, and the solution’s differential reproduces the equation.

↑ Back to the question list

Justify that a differential equation of the form : [y+xf(x2+y2)]dx+[yf(x2+y2)−x]dy=0, where f(x2+y2) is an arbitrary function of (x2+y2), is not an exact differential equation and 1x2+y2 is an integrating factor for it. Hence solve this differential equation for f(x2+y2)=(x2+y2)2.

2014 · Paper I · Q5a · 10 marks

Solution

Not exact. With M=y+xfM=y+xf and N=yf−xN=yf-x, where f=f(x2+y2)f=f(x^2+y^2): ∂M∂y=1+2xyf′,∂N∂x=2xyf′−1.\frac{\partial M}{\partial y}=1+2xyf',\qquad\frac{\partial N}{\partial x}=2xyf'-1 . They differ by 22, so the equation is never exact.

Integrating factor. Regroup the equation: (ydx−xdy)+f(x2+y2)(xdx+ydy)=0.(y\,dx-x\,dy)+f(x^2+y^2)\,(x\,dx+y\,dy)=0 . Divide by x2+y2x^2+y^2. Since ydx−xdyx2+y2=−d(tan−1yx)\dfrac{y\,dx-x\,dy}{x^2+y^2}=-d\left(\tan^{-1}\dfrac yx\right) and xdx+ydyx2+y2=12duu\dfrac{x\,dx+y\,dy}{x^2+y^2}=\dfrac12\dfrac{du}{u} with u=x2+y2u=x^2+y^2: −d(tan−1yx)+f(u)2udu=0,-d\left(\tan^{-1}\frac yx\right)+\frac{f(u)}{2u}\,du=0, which is exact. So 1x2+y2\dfrac1{x^2+y^2} is an integrating factor.

The case f=(x2+y2)2=u2f=(x^2+y^2)^2=u^2. Then f(u)2udu=u2du\dfrac{f(u)}{2u}du=\dfrac u2du, and the solution is (x2+y2)24−tan−1yx=C.\frac{(x^2+y^2)^2}{4}-\tan^{-1}\frac yx=C .

✓ Checked by computer We checked by computer (SymPy): with f=(x2+y2)2f=(x^2+y^2)^2 the solution’s differential is the equation divided by x2+y2x^2+y^2.

↑ Back to the question list

Find the curve for which the part of the tangent cut-off by the axes is bisected at the point of tangency.

2014 · Paper I · Q5b · 10 marks

Solution

Let P(x,y)P(x,y) be the point of tangency and p=y′p=y'. The tangent Y−y=p(X−x)Y-y=p(X-x) meets the axes at A(x−yp,0),B(0,y−px).A\left(x-\frac yp,\,0\right),\qquad B\left(0,\,y-px\right). PP is the midpoint of ABAB: x−yp=2x⇒dydx=−yx.x-\frac yp=2x\quad\Rightarrow\quad\frac{dy}{dx}=-\frac yx . (The second coordinate gives y−px=2yy-px=2y, the same condition.) Separating, dyy=−dxx\dfrac{dy}{y}=-\dfrac{dx}{x}, so xy=c,xy=c, a family of rectangular hyperbolas with the axes as asymptotes.

✓ Checked by computer We checked by computer (SymPy): on xy=cxy=c the tangent’s intercepts are (2x,0)(2x,0) and (0,2y)(0,2y).

↑ Back to the question list

Find the sufficient condition for the differential equation M(x,y)dx+N(x,y)dy=0 to have an integrating factor as a function of (x+y). What will be the integrating factor in that case ? Hence find the integrating factor for the differential equation (x2+xy)dx+(y2+xy)dy=0, and solve it.

2014 · Paper I · Q8a · 15 marks

Solution

Condition. Suppose μ=μ(u)\mu=\mu(u) with u=x+yu=x+y is an integrating factor. Exactness of μMdx+μNdy\mu M\,dx+\mu N\,dy means ∂(μM)∂y=∂(μN)∂x\dfrac{\partial(\mu M)}{\partial y}=\dfrac{\partial(\mu N)}{\partial x}. Since ∂u∂x=∂u∂y=1\dfrac{\partial u}{\partial x}=\dfrac{\partial u}{\partial y}=1: μ′M+μ∂M∂y=μ′N+μ∂N∂x⇒μ′μ=∂N∂x−∂M∂yM−N.\mu'M+\mu\frac{\partial M}{\partial y}=\mu'N+\mu\frac{\partial N}{\partial x}\quad\Rightarrow\quad\frac{\mu'}{\mu}=\frac{\frac{\partial N}{\partial x}-\frac{\partial M}{\partial y}}{M-N}. So the condition is that ∂N∂x−∂M∂yM−N=ϕ(x+y)\frac{\frac{\partial N}{\partial x}-\frac{\partial M}{\partial y}}{M-N}=\phi(x+y) be a function of x+yx+y alone. The integrating factor is then μ=e∫ϕ(u)du\mu=e^{\int\phi(u)\,du}, u=x+yu=x+y.

Example. M=x2+xyM=x^2+xy, N=y2+xyN=y^2+xy: ∂N∂x−∂M∂y=y−x\dfrac{\partial N}{\partial x}-\dfrac{\partial M}{\partial y}=y-x and M−N=x2−y2M-N=x^2-y^2. So ϕ=y−x(x−y)(x+y)=−1x+y,μ=e−log(x+y)=1x+y.\phi=\frac{y-x}{(x-y)(x+y)}=-\frac{1}{x+y},\qquad\mu=e^{-\log(x+y)}=\frac{1}{x+y}. Multiplying, the equation becomes xdx+ydy=0x\,dx+y\,dy=0, so x2+y2=Cx^2+y^2=C (together with the line x+y=0x+y=0, which was removed by the integrating factor and also satisfies the equation).

✓ Checked by computer We checked by computer (SymPy): for the example the ratio is −1/(x+y)-1/(x+y), and with the factor the equation becomes exact.

↑ Back to the question list

y is a function of x, such that the differential coefficient dydx is equal to cos(x+y)+sin(x+y). Find out a relation between x and y, which is free from any derivative/differential.

2013 · Paper I · Q5a · 10 marks

Solution

Put u=x+yu=x+y, so dudx=1+cosu+sinu\dfrac{du}{dx}=1+\cos u+\sin u. Using half angles, 1+cosu+sinu=2cos2u2+2sinu2cosu2=2cos2u2(1+tanu2).1+\cos u+\sin u=2\cos^2\frac u2+2\sin\frac u2\cos\frac u2=2\cos^2\frac u2\left(1+\tan\frac u2\right). So ∫sec2u22(1+tanu2)du=∫dx⇒log|1+tanu2|=x+C.\int\frac{\sec^2\frac u2}{2\left(1+\tan\frac u2\right)}\,du=\int dx\quad\Rightarrow\quad\log\left|1+\tan\frac u2\right|=x+C . The required relation is log|1+tanx+y2|=x+C.\log\left|1+\tan\frac{x+y}{2}\right|=x+C .

✓ Checked by computer We checked by computer (SymPy) that the relation satisfies y′=cos(x+y)+sin(x+y)y'=\cos(x+y)+\sin(x+y).

↑ Back to the question list

Obtain the equation of the orthogonal trajectory of the family of curves represented by rn=asinnθ, (r,θ) being the plane polar coordinates.

2013 · Paper I · Q5b · 10 marks

Solution

Take logarithms: nlogr=loga+logsinnθn\log r=\log a+\log\sin n\theta. Differentiating with respect to θ\theta: nrdrdθ=ncotnθ⇒1rdrdθ=cotnθ.\frac nr\frac{dr}{d\theta}=n\cot n\theta\quad\Rightarrow\quad\frac1r\frac{dr}{d\theta}=\cot n\theta . Replace 1rdrdθ\dfrac1r\dfrac{dr}{d\theta} by −rdθdr-r\dfrac{d\theta}{dr}: −rdθdr=cotnθ⇒drr=−tannθdθ⇒logr=1nlogcosnθ+logc.-r\frac{d\theta}{dr}=\cot n\theta\quad\Rightarrow\quad\frac{dr}r=-\tan n\theta\,d\theta\quad\Rightarrow\quad\log r=\frac1n\log\cos n\theta+\log c . The orthogonal trajectories are rn=bcosnθ.r^n=b\cos n\theta .

✓ Checked by computer We checked by computer (SymPy) that the two families cut at right angles.

↑ Back to the question list

Solve the differential equation (5x3+12x2+6y2)dx+6xydy=0.

2013 · Paper I · Q6a · 10 marks

Solution

M=5x3+12x2+6y2M=5x^3+12x^2+6y^2, N=6xyN=6xy. ∂M∂y=12y\dfrac{\partial M}{\partial y}=12y, ∂N∂x=6y\dfrac{\partial N}{\partial x}=6y: not exact. But 1N(∂M∂y−∂N∂x)=6y6xy=1x,\frac1N\left(\frac{\partial M}{\partial y}-\frac{\partial N}{\partial x}\right)=\frac{6y}{6xy}=\frac1x, so e∫dx/x=xe^{\int dx/x}=x is an integrating factor: (5x4+12x3+6xy2)dx+6x2ydy=0.(5x^4+12x^3+6xy^2)\,dx+6x^2y\,dy=0 . Integrating, the solution is x5+3x4+3x2y2=C.x^5+3x^4+3x^2y^2=C .

✓ Checked by computer We checked by computer (SymPy): with the factor xx the equation is exact, and the solution’s differential reproduces it.

↑ Back to the question list

Solve dydx=2xye(x/y)2y2(1+e(x/y)2)+2x2e(x/y)2

2012 · Paper I · Q5a · 12 marks

Solution

Since x/yx/y appears throughout, write the equation for dxdy\dfrac{dx}{dy} and put x=vyx=vy: dxdy=y2(1+ev2)+2x2ev22xyev2=1+ev2+2v2ev22vev2.\frac{dx}{dy}=\frac{y^2(1+e^{v^2})+2x^2e^{v^2}}{2xy\,e^{v^2}}=\frac{1+e^{v^2}+2v^2e^{v^2}}{2v\,e^{v^2}}. With dxdy=v+ydvdy\dfrac{dx}{dy}=v+y\dfrac{dv}{dy}: ydvdy=1+ev2+2v2ev22vev2−v=1+ev22vev2.y\frac{dv}{dy}=\frac{1+e^{v^2}+2v^2e^{v^2}}{2ve^{v^2}}-v=\frac{1+e^{v^2}}{2ve^{v^2}}. Separating, 2vev21+ev2dv=dyy⇒log(1+ev2)=logy+logC.\frac{2ve^{v^2}}{1+e^{v^2}}\,dv=\frac{dy}{y}\quad\Rightarrow\quad\log\left(1+e^{v^2}\right)=\log y+\log C . The solution is 1+ex2/y2=Cy.1+e^{x^2/y^2}=Cy .

✓ Checked by computer We checked by computer (SymPy): the relation’s slope equals the right-hand side.

↑ Back to the question list

Find the orthogonal trajectories of the family of curves x2+y2=ax.

2012 · Paper I · Q5b · 12 marks

Solution

Differentiate x2+y2=axx^2+y^2=ax: 2x+2yp=a2x+2yp=a. Eliminate aa: x2+y2=x(2x+2yp)⇒y2−x2=2xyp.x^2+y^2=x(2x+2yp)\quad\Rightarrow\quad y^2-x^2=2xyp . Replace pp by −1p-\dfrac1p: (y2−x2)p=−2xy(y^2-x^2)p=-2xy, i.e. dydx=2xyx2−y2.\frac{dy}{dx}=\frac{2xy}{x^2-y^2}. This is homogeneous. Rather than substituting, note that circles x2+y2=byx^2+y^2=by give 2x+2yp=bp2x+2yp=bp, and eliminating bb: (x2+y2)p=y(2x+2yp)(x^2+y^2)p=y(2x+2yp), i.e. (x2−y2)p=2xy(x^2-y^2)p=2xy. That is exactly our equation. The orthogonal trajectories are x2+y2=by,x^2+y^2=by, circles touching the xx-axis at the origin.

✓ Checked by computer We checked by computer (SymPy) that the two families cut at right angles.

↑ Back to the question list

Show that the differential equation (2xylogy)dx+(x2+y2y2+1)dy=0 is not exact. Find an integrating factor and hence, the solution of the equation.

2012 · Paper I · Q6a · 20 marks

Solution

M=2xylogyM=2xy\log y, N=x2+y2y2+1N=x^2+y^2\sqrt{y^2+1}.

Not exact: ∂M∂y=2xlogy+2x\dfrac{\partial M}{\partial y}=2x\log y+2x, but ∂N∂x=2x\dfrac{\partial N}{\partial x}=2x.

Integrating factor: 1M(∂N∂x−∂M∂y)=−2xlogy2xylogy=−1y,\frac1M\left(\frac{\partial N}{\partial x}-\frac{\partial M}{\partial y}\right)=\frac{-2x\log y}{2xy\log y}=-\frac1y, a function of yy only, so μ=e−∫dy/y=1y\mu=e^{-\int dy/y}=\dfrac1y. The equation becomes 2xlogydx+(x2y+yy2+1)dy=0,2x\log y\,dx+\left(\frac{x^2}{y}+y\sqrt{y^2+1}\right)dy=0, which is exact. Integrating, x2logy+13(y2+1)3/2=C.x^2\log y+\frac13\left(y^2+1\right)^{3/2}=C .

✓ Checked by computer We checked by computer (SymPy): with the factor 1/y1/y the equation is exact, and the solution’s differential reproduces it.

↑ Back to the question list

Obtain the solution of the ordinary differential equation dydx=(4x+y+1)2, if y(0)=1.

2011 · Paper I · Q5a · 10 marks

Solution

Put u=4x+y+1u=4x+y+1. Then dudx=4+dydx=4+u2\dfrac{du}{dx}=4+\dfrac{dy}{dx}=4+u^2, so ∫du4+u2=∫dx⇒12tan−1u2=x+c⇒u=2tan(2x+2c).\int\frac{du}{4+u^2}=\int dx\quad\Rightarrow\quad\frac12\tan^{-1}\frac u2=x+c\quad\Rightarrow\quad u=2\tan(2x+2c). At x=0x=0: u=0+1+1=2u=0+1+1=2, so tan2c=1\tan2c=1 and 2c=π42c=\dfrac\pi4. Hence 4x+y+1=2tan(2x+π4)4x+y+1=2\tan\left(2x+\dfrac\pi4\right): y=2tan(2x+π4)−4x−1.y=2\tan\left(2x+\frac\pi4\right)-4x-1 .

✓ Checked by computer We checked by computer (SymPy): the solution satisfies the equation and y(0)=1y(0)=1.

↑ Back to the question list

Determine the orthogonal trajectory of a family of curves represented by the polar equation r=a(1−cosθ), (r,θ) being the plane polar coordinates of any point.

2011 · Paper I · Q5b · 10 marks

Solution

Take logarithms: logr=loga+log(1−cosθ)\log r=\log a+\log(1-\cos\theta). Differentiating, 1rdrdθ=sinθ1−cosθ=cotθ2.\frac1r\frac{dr}{d\theta}=\frac{\sin\theta}{1-\cos\theta}=\cot\frac\theta2 . Replace 1rdrdθ\dfrac1r\dfrac{dr}{d\theta} by −rdθdr-r\dfrac{d\theta}{dr}: drr=−tanθ2dθ⇒logr=2logcosθ2+logc.\frac{dr}{r}=-\tan\frac\theta2\,d\theta\quad\Rightarrow\quad\log r=2\log\cos\frac\theta2+\log c . So r=ccos2θ2=c2(1+cosθ)r=c\cos^2\dfrac\theta2=\dfrac c2(1+\cos\theta). The orthogonal trajectories are the cardioids r=b(1+cosθ).r=b(1+\cos\theta).

✓ Checked by computer We checked by computer (SymPy) that the cardioids r=a(1−cosθ)r=a(1-\cos\theta) and r=b(1+cosθ)r=b(1+\cos\theta) cut at right angles.

↑ Back to the question list

Consider the differential equation y′=αx,x>0 where α is a constant. Show that— (i) if ϕ(x) is any solution and ψ(x)=ϕ(x)e−αx, then ψ(x) is a constant; (ii) if α<0, then every solution tends to zero as x→∞.

2010 · Paper I · Q5a · 12 marks

Solution

A note on the question. With y′=αxy'=\alpha x, every solution is ϕ=αx22+c\phi=\frac{\alpha x^2}2+c, and ψ=ϕe−αx\psi=\phi e^{-\alpha x} is not constant. The intended equation is y′=αyy'=\alpha y.

(i) Let ϕ\phi be any solution of y′=αyy'=\alpha y and ψ=ϕe−αx\psi=\phi e^{-\alpha x}. Then ψ′=ϕ′e−αx−αϕe−αx=(ϕ′−αϕ)e−αx=0,\psi'=\phi'e^{-\alpha x}-\alpha\phi e^{-\alpha x}=(\phi'-\alpha\phi)e^{-\alpha x}=0, so ψ\psi is a constant, say ψ=k\psi=k.

(ii) By (i), every solution is ϕ(x)=keαx\phi(x)=k\,e^{\alpha x}. If α<0\alpha<0, then eαx→0e^{\alpha x}\to0 as x→∞x\to\infty, so ϕ(x)→0\phi(x)\to0. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step. As printed, the equation reads y′=αxy'=\alpha x; the question only makes sense for y′=αyy'=\alpha y, which we solve.

↑ Back to the question list

Show that the differential equation (3y2−x)+2y(y2−3x)y′=0 admits an integrating factor which is a function of (x+y2). Hence solve the equation.

2010 · Paper I · Q5b · 12 marks

Solution

Write the equation as Mdx+Ndy=0M\,dx+N\,dy=0 with M=3y2−xM=3y^2-x, N=2y(y2−3x)N=2y(y^2-3x).

Condition for a factor μ(u)\mu(u), u=x+y2u=x+y^2. Here ux=1u_x=1, uy=2yu_y=2y. Exactness of μMdx+μNdy\mu M\,dx+\mu N\,dy gives μ′2yM+μMy=μ′N+μNx⇒μ′μ=Nx−My2yM−N.\mu'\,2y\,M+\mu M_y=\mu' N+\mu N_x\quad\Rightarrow\quad\frac{\mu'}{\mu}=\frac{N_x-M_y}{2yM-N}. Now Nx−My=−6y−6y=−12yN_x-M_y=-6y-6y=-12y and 2yM−N=2y(3y2−x)−2y(y2−3x)=4y(x+y2)2yM-N=2y(3y^2-x)-2y(y^2-3x)=4y(x+y^2). So μ′μ=−3x+y2=−3u,\frac{\mu'}{\mu}=-\frac{3}{x+y^2}=-\frac3u, a function of uu alone. The integrating factor exists and equals μ=(x+y2)−3\mu=(x+y^2)^{-3}.

Solution. Multiplying by μ\mu and integrating gives the potential x−y2(x+y2)2\dfrac{x-y^2}{(x+y^2)^2}. The solution is x−y2=C(x+y2)2.x-y^2=C\,(x+y^2)^2 .

✓ Checked by computer We checked by computer (SymPy): with the factor (x+y2)−3(x+y^2)^{-3} the equation is exact, and the solution’s differential reproduces it.

↑ Back to the question list

Verify that 12(Mx+Ny)d(loge(xy))+12(Mx−Ny)d(loge(xy))=Mdx+Ndy Hence show that— (i) if the differential equation Mdx+Ndy=0 is homogeneous, then (Mx+Ny) is an integrating factor unless Mx+Ny≡0; (ii) if the differential equation Mdx+Ndy=0 is not exact but is of the form f1(xy)ydx+f2(xy)xdy=0 then (Mx−Ny)−1 is an integrating factor unless Mx−Ny≡0.

2010 · Paper I · Q6a · 20 marks

Solution

The identity. dlog(xy)=dxx+dyyd\log(xy)=\dfrac{dx}x+\dfrac{dy}y and dlogxy=dxx−dyyd\log\dfrac xy=\dfrac{dx}x-\dfrac{dy}y. So the left side is 12(Mx+Ny)(dxx+dyy)+12(Mx−Ny)(dxx−dyy)=Mxxdx+Nyydy=Mdx+Ndy.✓\frac12(Mx+Ny)\left(\frac{dx}x+\frac{dy}y\right)+\frac12(Mx-Ny)\left(\frac{dx}x-\frac{dy}y\right)=\frac{Mx}{x}dx+\frac{Ny}{y}dy=M\,dx+N\,dy .\quad\checkmark Dividing by Mx+NyMx+Ny: Mdx+NdyMx+Ny=12dlog(xy)+12Mx−NyMx+Nydlogxy.(*)\frac{M\,dx+N\,dy}{Mx+Ny}=\frac12\,d\log(xy)+\frac12\,\frac{Mx-Ny}{Mx+Ny}\,d\log\frac xy .\qquad(*)

(i) Homogeneous equation. If MM, NN are homogeneous of degree nn, then Mx−NyMx+Ny\dfrac{Mx-Ny}{Mx+Ny} is homogeneous of degree 00, so it is a function of xy\dfrac xy alone, hence of logxy\log\dfrac xy. Then the last term of (*)(*) is g(t)dtg(t)\,dt with t=logxyt=\log\frac xy, an exact differential, and so is 12dlog(xy)\frac12d\log(xy). Hence 1Mx+Ny\dfrac{1}{Mx+Ny} is an integrating factor (provided Mx+Ny≢0Mx+Ny\not\equiv0).

(ii) M=yf1(xy)M=y\,f_1(xy), N=xf2(xy)N=x\,f_2(xy). Then Mx=xyf1Mx=xy\,f_1 and Ny=xyf2Ny=xy\,f_2 are functions of xyxy. Divide the identity by Mx−NyMx-Ny instead: Mdx+NdyMx−Ny=12Mx+NyMx−Nydlog(xy)+12dlogxy.\frac{M\,dx+N\,dy}{Mx-Ny}=\frac12\,\frac{Mx+Ny}{Mx-Ny}\,d\log(xy)+\frac12\,d\log\frac xy . The ratio Mx+NyMx−Ny=f1+f2f1−f2\dfrac{Mx+Ny}{Mx-Ny}=\dfrac{f_1+f_2}{f_1-f_2} is a function of xyxy, hence of log(xy)\log(xy), so the first term is exact, and so is the second. So 1Mx−Ny\dfrac{1}{Mx-Ny} is an integrating factor (provided Mx−Ny≢0Mx-Ny\not\equiv0). ◼\blacksquare

✓ Proof checked step by step Proof checked step by step. In (i) the integrating factor is 1/(Mx+Ny)1/(Mx+Ny); the printed “(Mx+Ny)(Mx+Ny)” has lost its exponent −1-1.

↑ Back to the question list

Show that the set of solutions of the homogeneous linear differential equation y′+p(x)y=0 on an interval I=[a,b] forms a vector subspace W of the real vector space of continuous functions on I. What is the dimension of W?

2010 · Paper I · Q7a · 20 marks

Solution

Let WW be the set of (differentiable, hence continuous) solutions of y′+p(x)y=0y'+p(x)y=0 on II, where pp is continuous.

Subspace. The zero function is a solution, so W≠⌀W\ne\varnothing. If y1,y2∈Wy_1,y_2\in W and α,β∈ℝ\alpha,\beta\in\mathbb R, then (αy1+βy2)′+p(αy1+βy2)=α(y1′+py1)+β(y2′+py2)=0,(\alpha y_1+\beta y_2)'+p(\alpha y_1+\beta y_2)=\alpha(y_1'+py_1)+\beta(y_2'+py_2)=0, so αy1+βy2∈W\alpha y_1+\beta y_2\in W. Hence WW is a subspace of C[a,b]C[a,b].

Dimension. Let y1(x)=e−∫axp(t)dty_1(x)=e^{-\int_a^xp(t)\,dt}, a non-zero solution. If y∈Wy\in W, then ddx(yy1)=y′y1−yy1′y12=(−py)y1−y(−py1)y12=0,\frac{d}{dx}\left(\frac{y}{y_1}\right)=\frac{y'y_1-yy_1'}{y_1^2}=\frac{(-py)y_1-y(-py_1)}{y_1^2}=0, so y=cy1y=c\,y_1. Thus {y1}\{y_1\} is a basis and dimW=1.◼\dim W=1 .\qquad\blacksquare

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

Find the differential equation of the family of circles in the xy-plane passing through (−1,1) and (1,1).

2009 · Paper I · Q6a · 20 marks

Solution

The centre lies on the perpendicular bisector of the two points, the yy-axis. So the circle is x2+y2+2fy+c=0x^2+y^2+2fy+c=0. It passes through (1,1)(1,1): 2+2f+c=02+2f+c=0. So the family is x2+y2−2+2f(y−1)=0,x^2+y^2-2+2f(y-1)=0, with one parameter ff. Differentiating, 2x+2yp+2fp=02x+2yp+2fp=0, so f=−x+yppf=-\dfrac{x+yp}{p}. Substituting: (x2+y2−2)p−2(x+yp)(y−1)=0.(x^2+y^2-2)\,p-2(x+yp)(y-1)=0 . Simplifying, the required differential equation is (x2−y2+2y−2)dydx=2x(y−1).(x^2-y^2+2y-2)\frac{dy}{dx}=2x(y-1).

✓ Checked by computer We checked by computer (SymPy): every circle through the two points satisfies the equation.

↑ Back to the question list

Solve : dydx=y2(x−y)3xy2−x2y−4y3,y(0)=1

2009 · Paper I · Q6c · 20 marks

Solution

The right side is homogeneous of degree 00: dydx=y(x−y)3xy−x2−4y2\dfrac{dy}{dx}=\dfrac{y(x-y)}{3xy-x^2-4y^2}. It is easier to treat xx as the dependent variable and put x=uyx=uy: dxdy=3xy−x2−4y2y(x−y)=3u−u2−4u−1.\frac{dx}{dy}=\frac{3xy-x^2-4y^2}{y(x-y)}=\frac{3u-u^2-4}{u-1}. With dxdy=u+ydudy\dfrac{dx}{dy}=u+y\dfrac{du}{dy}: ydudy=3u−u2−4−u2+uu−1=−2(u2−2u+2)u−1.y\frac{du}{dy}=\frac{3u-u^2-4-u^2+u}{u-1}=-\frac{2(u^2-2u+2)}{u-1}. Separating, (u−1)duu2−2u+2=−2dyy⇒12log(u2−2u+2)=−2logy+c.\frac{(u-1)\,du}{u^2-2u+2}=-\frac{2\,dy}{y}\quad\Rightarrow\quad\frac12\log(u^2-2u+2)=-2\log y+c . So (u2−2u+2)y4=C(u^2-2u+2)\,y^4=C, i.e. y2(x2−2xy+2y2)=Cy^2(x^2-2xy+2y^2)=C. At (0,1)(0,1): C=2C=2. The solution is y2(x2−2xy+2y2)=2.y^2\left(x^2-2xy+2y^2\right)=2 .

✓ Checked by computer We checked by computer (SymPy): the relation satisfies the equation and passes through (0,1)(0,1).

↑ Back to the question list

Solve the differential equation ydx+(x+x3y2)dy=0.

2008 · Paper I · Q5a · 12 marks

Solution

Group the terms: (ydx+xdy)+x3y2dy=0⇒d(xy)+x3y2dy=0.(y\,dx+x\,dy)+x^3y^2\,dy=0\quad\Rightarrow\quad d(xy)+x^3y^2\,dy=0 . Divide by x3y3x^3y^3: d(xy)(xy)3+dyy=0⇒−12x2y2+logy=C.\frac{d(xy)}{(xy)^3}+\frac{dy}{y}=0\quad\Rightarrow\quad-\frac{1}{2x^2y^2}+\log y=C . The solution is logy−12x2y2=C.\log y-\frac{1}{2x^2y^2}=C .

✓ Checked by computer We checked by computer (SymPy): the solution’s differential is a multiple of the equation.

↑ Back to the question list

More on Ordinary Differential Equations

Questions: UPSC Civil Services (Main) Examination, Mathematics Paper I, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted