Menu Close

Second order equations with variable coefficients: UPSC Maths Optional PYQ Solutions (2008–2026)

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

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

Solve x2d2ydx2−3xdydx+y=sin(logx)+1xlogx.

2026 · Paper I · Q6a · 15 marks

Solution

This is a Cauchy–Euler equation. Put x=ezx=e^z (z=logxz=\log x), D≡ddzD\equiv\dfrac{d}{dz}, so that xdydx=Dyx\dfrac{dy}{dx}=Dy and x2d2ydx2=D(D−1)yx^2\dfrac{d^2y}{dx^2}=D(D-1)y: [D(D−1)−3D+1]y=(D2−4D+1)y=e−zz(sinz+1).\big[D(D-1)-3D+1\big]y=(D^2-4D+1)\,y=e^{-z}\,z\,(\sin z+1).

Complementary function. m2−4m+1=0m^2-4m+1=0 gives m=2±3m=2\pm\sqrt3: yc=c1e(2+3)z+c2e(2−3)z=c1x2+3+c2x2−3.y_c=c_1e^{(2+\sqrt3)z}+c_2e^{(2-\sqrt3)z}=c_1x^{2+\sqrt3}+c_2x^{2-\sqrt3}.

Particular integral. Shift e−ze^{-z} through the operator (D→D−1D\to D-1): yp=e−z1(D−1)2−4(D−1)+1(zsinz+z)=e−z1D2−6D+6(zsinz+z).y_p=e^{-z}\,\frac{1}{(D-1)^2-4(D-1)+1}\,(z\sin z+z)=e^{-z}\,\frac{1}{D^2-6D+6}\,(z\sin z+z).

Term zz: 16(1−D+D26)z=16(1+D+⋯)z=z+16.\frac{1}{6\left(1-D+\frac{D^2}{6}\right)}\,z=\frac16(1+D+\cdots)\,z=\frac{z+1}{6}.

Term zsinzz\sin z =Imzeiz=\operatorname{Im}\,z e^{iz}: 1D2−6D+6zeiz=eiz1(D+i)2−6(D+i)+6z=eiz1(5−6i)+(2i−6)D+D2z.\frac{1}{D^2-6D+6}\,ze^{iz}=e^{iz}\frac{1}{(D+i)^2-6(D+i)+6}\,z=e^{iz}\frac{1}{(5-6i)+(2i-6)D+D^2}\,z . Expanding to first order in DD, =eiz[z5−6i−2i−6(5−6i)2]=eiz[(5+6i)z61+54+382i3721].\begin{aligned}&=e^{iz}\left[\frac{z}{5-6i}-\frac{2i-6}{(5-6i)^2}\right]\\&=e^{iz}\left[\frac{(5+6i)z}{61}+\frac{54+382i}{3721}\right].\end{aligned} Taking the imaginary part: (5z61+543721)sinz+(6z61+3823721)cosz.\left(\frac{5z}{61}+\frac{54}{3721}\right)\sin z+\left(\frac{6z}{61}+\frac{382}{3721}\right)\cos z .

Complete solution (with z=logxz=\log x): y=c1x2+3+c2x2−3+logx+16x+1x(5logx61+543721)sin(logx)+1x(6logx61+3823721)cos(logx).\begin{aligned}y={}&c_1x^{2+\sqrt3}+c_2x^{2-\sqrt3}+\frac{\log x+1}{6x}\\&+\frac1x\left(\frac{5\log x}{61}+\frac{54}{3721}\right)\sin(\log x)\\&+\frac1x\left(\frac{6\log x}{61}+\frac{382}{3721}\right)\cos(\log x).\end{aligned}

✓ Checked by computer We solved the equation by computer (SymPy); its particular integral agrees term by term with ours.

↑ Back to the question list

Solve d2ydx2+a2y=secax by the method of variation of parameters.

2026 · Paper I · Q8a · 15 marks

Solution

CF: yc=c1cosax+c2sinaxy_c=c_1\cos ax+c_2\sin ax. Take y1=cosaxy_1=\cos ax, y2=sinaxy_2=\sin ax, with Wronskian W=y1y2′−y2y1′=acos2ax+asin2ax=a.W=y_1y_2'-y_2y_1'=a\cos^2ax+a\sin^2ax=a . PI =−y1∫y2secaxWdx+y2∫y1secaxWdx=-y_1\displaystyle\int\frac{y_2\sec ax}{W}dx+y_2\int\frac{y_1\sec ax}{W}dx: −cosax∫tanaxadx+sinax∫1adx=cosaxlog|cosax|a2+xsinaxa.-\cos ax\int\frac{\tan ax}{a}dx+\sin ax\int\frac1a\,dx=\frac{\cos ax\,\log|\cos ax|}{a^2}+\frac{x\sin ax}{a}. Complete solution: y=c1cosax+c2sinax+xsinaxa+cosaxlog|cosax|a2.y=c_1\cos ax+c_2\sin ax+\frac{x\sin ax}{a}+\frac{\cos ax\,\log|\cos ax|}{a^2}.

✓ Checked by computer We checked by computer (SymPy): substituting the particular integral into the equation leaves exactly secax\sec ax.

↑ Back to the question list

Find the complete solution of x3d3ydx3+3x2d2ydx2+xdydx+y=xlogx.

2025 · Paper I · Q7c(ii) · 10 marks

Solution

This is a Cauchy–Euler equation. Put x=ezx=e^z, D≡ddzD\equiv\dfrac d{dz}, so that xky(k)=D(D−1)⋯(D−k+1)yx^ky^{(k)}=D(D-1)\cdots(D-k+1)y: [D(D−1)(D−2)+3D(D−1)+D+1]y=(D3+1)y=zez.\big[D(D-1)(D-2)+3D(D-1)+D+1\big]y=(D^3+1)\,y=z\,e^z . CF. m3+1=(m+1)(m2−m+1)=0m^3+1=(m+1)(m^2-m+1)=0: m=−1,12±32im=-1,\ \dfrac12\pm\dfrac{\sqrt3}2i: yc=c1x+x[c2cos(32logx)+c3sin(32logx)].y_c=\frac{c_1}{x}+\sqrt x\left[c_2\cos\left(\tfrac{\sqrt3}{2}\log x\right)+c_3\sin\left(\tfrac{\sqrt3}{2}\log x\right)\right]. PI. Shift eze^z through: ez1(D+1)3+1z=ez12+3D+⋯z=ez2(1−32D)z=ez(z2−34).e^z\frac{1}{(D+1)^3+1}z=e^z\frac{1}{2+3D+\cdots}z=\frac{e^z}{2}\left(1-\frac32D\right)z=e^z\left(\frac z2-\frac34\right). Complete solution: y=c1x+x[c2cos(32logx)+c3sin(32logx)]+x(logx2−34).y=\frac{c_1}{x}+\sqrt x\left[c_2\cos\left(\tfrac{\sqrt3}{2}\log x\right)+c_3\sin\left(\tfrac{\sqrt3}{2}\log x\right)\right]+x\left(\frac{\log x}{2}-\frac34\right).

✓ Checked by computer We checked by computer (SymPy): substituting the complete solution into the equation leaves exactly xlogxx\log x.

↑ Back to the question list

Solve the differential equation (x+2)d2ydx2−(2x+5)dydx+2y=(1+x)ex by the method of variation of parameters.

2025 · Paper I · Q8a · 15 marks

Solution

Two solutions of the homogeneous equation.

  • Try emxe^{mx}: (x+2)m2−(2x+5)m+2=0(x+2)m^2-(2x+5)m+2=0 for all xx needs m2−2m=0m^2-2m=0 and 2m2−5m+2=02m^2-5m+2=0; m=2m=2 works. So y1=e2xy_1=e^{2x}.
  • Try y=x+ky=x+k: −(2x+5)+2(x+k)=0-(2x+5)+2(x+k)=0 gives k=52k=\tfrac52. So y2=2x+5y_2=2x+5.

Variation of parameters. In standard form R=(1+x)exx+2R=\dfrac{(1+x)e^x}{x+2}, and W=y1y2′−y2y1′=2e2x−2(2x+5)e2x=−4(x+2)e2x.W=y_1y_2'-y_2y_1'=2e^{2x}-2(2x+5)e^{2x}=-4(x+2)e^{2x}. ∫y1RWdx=−14∫(x+1)ex(x+2)2dx=−ex4(x+2),\int\frac{y_1R}{W}dx=-\frac14\int\frac{(x+1)e^x}{(x+2)^2}dx=-\frac{e^x}{4(x+2)}, since ddxexx+2=(x+1)ex(x+2)2\dfrac{d}{dx}\dfrac{e^x}{x+2}=\dfrac{(x+1)e^x}{(x+2)^2}. Next, using (2x+5)(x+1)(x+2)2=2−x+3(x+2)2\dfrac{(2x+5)(x+1)}{(x+2)^2}=2-\dfrac{x+3}{(x+2)^2} and ddxe−xx+2=−(x+3)e−x(x+2)2\dfrac{d}{dx}\dfrac{e^{-x}}{x+2}=-\dfrac{(x+3)e^{-x}}{(x+2)^2}: ∫y2RWdx=−14∫e−x[2−x+3(x+2)2]dx=e−x2−e−x4(x+2).\int\frac{y_2R}{W}dx=-\frac14\int e^{-x}\left[2-\frac{x+3}{(x+2)^2}\right]dx=\frac{e^{-x}}{2}-\frac{e^{-x}}{4(x+2)}. So yp=−y1∫y2RW+y2∫y1RW=−ex2+ex4(x+2)−(2x+5)ex4(x+2)=−ex.y_p=-y_1\int\frac{y_2R}{W}+y_2\int\frac{y_1R}{W}=-\frac{e^x}2+\frac{e^x}{4(x+2)}-\frac{(2x+5)e^x}{4(x+2)}=-e^x . Complete solution: y=c1e2x+c2(2x+5)−ex.y=c_1e^{2x}+c_2(2x+5)-e^x .

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

↑ Back to the question list

Find the second solution of the differential equation xy″+(x−1)y′−y=0 using u(x)=−e−x as one of the solutions.

2024 · Paper I · Q6c(i) · 10 marks

Solution

In standard form y″+(1−1x)y′−yx=0y''+\left(1-\dfrac1x\right)y'-\dfrac yx=0, so P=1−1xP=1-\dfrac1x and e−∫Pdx=xe−xe^{-\int Pdx}=xe^{-x}. With u=−e−xu=-e^{-x}, reduction of order gives the second solution v=u∫e−∫Pdxu2dx=−e−x∫xe−xe−2xdx=−e−x∫xexdx=−e−x(x−1)ex=−(x−1).v=u\int\frac{e^{-\int Pdx}}{u^2}dx=-e^{-x}\int\frac{xe^{-x}}{e^{-2x}}dx=-e^{-x}\int xe^x\,dx=-e^{-x}(x-1)e^x=-(x-1). So the second solution is v=x−1v=x-1 (a constant multiple does not matter). Check: v″=0v''=0, (x−1)⋅1−(x−1)=0(x-1)\cdot1-(x-1)=0 ✓. The general solution is y=c1e−x+c2(x−1).y=c_1e^{-x}+c_2(x-1).

✓ Checked by computer We checked by computer (SymPy): x−1x-1 satisfies the equation, and so does the general solution.

↑ Back to the question list

Find the general solution of the differential equation x2y″−2xy′+2y=x3sinx by the method of variation of parameters.

2024 · Paper I · Q6c(ii) · 10 marks

Solution

CF. Trying y=xmy=x^m: m(m−1)−2m+2=(m−1)(m−2)=0m(m-1)-2m+2=(m-1)(m-2)=0, so y1=xy_1=x, y2=x2y_2=x^2.

Variation of parameters. In standard form the right side is R=xsinxR=x\sin x, and W=x⋅2x−x2⋅1=x2W=x\cdot2x-x^2\cdot1=x^2. ∫y2RWdx=∫xsinxdx=sinx−xcosx,∫y1RWdx=∫sinxdx=−cosx.\int\frac{y_2R}{W}dx=\int x\sin x\,dx=\sin x-x\cos x,\qquad\int\frac{y_1R}{W}dx=\int\sin x\,dx=-\cos x . yp=−x(sinx−xcosx)+x2(−cosx)=−xsinx.y_p=-x(\sin x-x\cos x)+x^2(-\cos x)=-x\sin x . General solution: y=c1x+c2x2−xsinx.y=c_1x+c_2x^2-x\sin x .

✓ Checked by computer We checked by computer (SymPy): substituting the solution into the equation leaves exactly x3sinxx^3\sin x.

↑ Back to the question list

Solve the following differential equation by using the method of variation of parameters : (x2−1)d2ydx2−2xdydx+2y=(x2−1)2, given that y=x is one solution of the reduced equation.

2022 · Paper I · Q6b · 15 marks

Solution

Second solution of the reduced equation. Try y=x2+ky=x^2+k: 2(x2−1)−4x2+2x2+2k=02(x^2-1)-4x^2+2x^2+2k=0 gives k=1k=1. So y2=x2+1y_2=x^2+1 (with y1=xy_1=x).

Variation of parameters. Standard form: R=(x2−1)2x2−1=x2−1R=\dfrac{(x^2-1)^2}{x^2-1}=x^2-1, and W=x⋅2x−(x2+1)=x2−1.W=x\cdot2x-(x^2+1)=x^2-1 . ∫y2RWdx=∫(x2+1)dx=x33+x,∫y1RWdx=∫xdx=x22.\int\frac{y_2R}{W}dx=\int(x^2+1)\,dx=\frac{x^3}{3}+x,\qquad\int\frac{y_1R}{W}dx=\int x\,dx=\frac{x^2}{2}. yp=−x(x33+x)+(x2+1)x22=x46−x22.y_p=-x\left(\frac{x^3}{3}+x\right)+(x^2+1)\frac{x^2}{2}=\frac{x^4}{6}-\frac{x^2}{2}. General solution: y=c1x+c2(x2+1)+x46−x22.y=c_1x+c_2(x^2+1)+\frac{x^4}{6}-\frac{x^2}{2}.

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

↑ Back to the question list

Solve the following differential equation : (3x+2)2d2ydx2+5(3x+2)dydx−3y=x2+x+1

2022 · Paper I · Q8a(ii) · 10 marks

Solution

This is a Legendre equation. Put 3x+2=ez3x+2=e^z, D=ddzD=\dfrac{d}{dz}. Then (3x+2)dydx=3Dy(3x+2)\dfrac{dy}{dx}=3Dy and (3x+2)2d2ydx2=9D(D−1)y(3x+2)^2\dfrac{d^2y}{dx^2}=9D(D-1)y: [9D(D−1)+15D−3]y=3(3D2+2D−1)y.\left[9D(D-1)+15D-3\right]y=3\,(3D^2+2D-1)\,y . On the right, x=ez−23x=\dfrac{e^z-2}{3}, so x2+x+1=e2z−ez+79x^2+x+1=\dfrac{e^{2z}-e^z+7}{9}. The equation is (3D2+2D−1)y=127(e2z−ez+7).(3D^2+2D-1)\,y=\frac{1}{27}\left(e^{2z}-e^z+7\right). CF. 3m2+2m−1=(3m−1)(m+1)3m^2+2m-1=(3m-1)(m+1): yc=c1ez/3+c2e−zy_c=c_1e^{z/3}+c_2e^{-z}.

PI. 127[e2z15−ez4−7]\dfrac1{27}\left[\dfrac{e^{2z}}{15}-\dfrac{e^z}{4}-7\right].

Complete solution (with ez=3x+2e^z=3x+2): y=c1(3x+2)1/3+c23x+2+(3x+2)2405−3x+2108−727.y=c_1(3x+2)^{1/3}+\frac{c_2}{3x+2}+\frac{(3x+2)^2}{405}-\frac{3x+2}{108}-\frac{7}{27}.

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

↑ Back to the question list

Solve the equation : d2ydx2+(tanx−3cosx)dydx+2ycos2x=cos4x completely by demonstrating all the steps involved.

2021 · Paper I · Q6b · 15 marks

Solution

Change of independent variable. Choose zz so that (dzdx)2∝cos2x\left(\dfrac{dz}{dx}\right)^2\propto\cos^2x: take z=sinxz=\sin x. Then y′=cosxdydz,y″=cos2xd2ydz2−sinxdydz.y'=\cos x\,\frac{dy}{dz},\qquad y''=\cos^2x\,\frac{d^2y}{dz^2}-\sin x\,\frac{dy}{dz}. Substituting: cos2xyzz+[−sinx+(tanx−3cosx)cosx]yz+2cos2xy=cos4x.\cos^2x\,y_{zz}+\left[-\sin x+(\tan x-3\cos x)\cos x\right]y_z+2\cos^2x\,y=\cos^4x . The bracket is −3cos2x-3\cos^2x. Dividing by cos2x\cos^2x: yzz−3yz+2y=cos2x=1−z2.y_{zz}-3y_z+2y=\cos^2x=1-z^2 . CF: m2−3m+2=0m^2-3m+2=0, m=1,2m=1,2: yc=c1ez+c2e2zy_c=c_1e^z+c_2e^{2z}.

PI: 12(1−3D−D22)(1−z2)=12[1+3D−D22+9D24+⋯](1−z2)=−z22−3z2−54.\frac{1}{2\left(1-\frac{3D-D^2}{2}\right)}(1-z^2)=\frac12\left[1+\frac{3D-D^2}{2}+\frac{9D^2}{4}+\cdots\right](1-z^2)=-\frac{z^2}{2}-\frac{3z}{2}-\frac54 . Complete solution: y=c1esinx+c2e2sinx−sin2x+3sinx2−54.y=c_1e^{\sin x}+c_2e^{2\sin x}-\frac{\sin^2x+3\sin x}{2}-\frac54 .

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

↑ Back to the question list

Find the general solution of the differential equation : x2d2ydx2−2x(1+x)dydx+2(1+x)y=0. Hence, solve the differential equation : x2d2ydx2−2x(1+x)dydx+2(1+x)y=x3 by the method of variation of parameters.

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

Solution

Homogeneous equation. y1=xy_1=x works: −2x(1+x)+2(1+x)x=0-2x(1+x)+2(1+x)x=0. In standard form P=−2(1+x)xP=-\dfrac{2(1+x)}{x}, so e−∫Pdx=x2e2xe^{-\int Pdx}=x^2e^{2x}. Reduction of order: y2=x∫x2e2xx2dx=xe2x2.y_2=x\int\frac{x^2e^{2x}}{x^2}dx=\frac{xe^{2x}}{2}. So the general solution of the homogeneous equation is y=c1x+c2xe2xy=c_1x+c_2xe^{2x}.

The equation with right side x3x^3. Standard form: R=xR=x. With y1=xy_1=x, y2=xe2xy_2=xe^{2x}: W=x(1+2x)e2x−xe2x=2x2e2x.W=x(1+2x)e^{2x}-xe^{2x}=2x^2e^{2x}. ∫y2RWdx=∫12dx=x2,∫y1RWdx=∫e−2x2dx=−e−2x4.\int\frac{y_2R}{W}dx=\int\frac12\,dx=\frac x2,\qquad\int\frac{y_1R}{W}dx=\int\frac{e^{-2x}}{2}dx=-\frac{e^{-2x}}4 . yp=−x⋅x2+xe2x(−e−2x4)=−x22−x4.y_p=-x\cdot\frac x2+xe^{2x}\left(-\frac{e^{-2x}}{4}\right)=-\frac{x^2}{2}-\frac x4 . The term −x4-\dfrac x4 belongs to the CF, so y=c1x+c2xe2x−x22.y=c_1x+c_2xe^{2x}-\frac{x^2}{2}.

✓ Checked by computer We checked by computer (SymPy): both parts satisfy their equations.

↑ Back to the question list

Using the method of variation of parameters, solve the differential equation y″+(1−cotx)y′−ycotx=sin2x, if y=e−x is one solution of CF.

2020 · Paper I · Q6a · 20 marks

Solution

Second solution of the CF. P=1−cotxP=1-\cot x, so e−∫Pdx=e−xsinxe^{-\int Pdx}=e^{-x}\sin x. With y1=e−xy_1=e^{-x}: y2=e−x∫e−xsinxe−2xdx=e−x∫exsinxdx=sinx−cosx2.y_2=e^{-x}\int\frac{e^{-x}\sin x}{e^{-2x}}dx=e^{-x}\int e^x\sin x\,dx=\frac{\sin x-\cos x}{2}. Take y2=sinx−cosxy_2=\sin x-\cos x. Then W=y1y2′−y2y1′=e−x(cosx+sinx)+e−x(sinx−cosx)=2e−xsinxW=y_1y_2'-y_2y_1'=e^{-x}(\cos x+\sin x)+e^{-x}(\sin x-\cos x)=2e^{-x}\sin x.

Variation of parameters with R=sin2xR=\sin^2x: ∫y1RWdx=∫sinx2dx=−cosx2,\int\frac{y_1R}{W}dx=\int\frac{\sin x}{2}dx=-\frac{\cos x}{2}, ∫y2RWdx=12∫ex(sin2x−sinxcosx)dx=14∫ex(1−cos2x−sin2x)dx=ex4[1−3sin2x−cos2x5].\int\frac{y_2R}{W}dx=\frac12\int e^x(\sin^2x-\sin x\cos x)\,dx=\frac14\int e^x(1-\cos2x-\sin2x)\,dx=\frac{e^x}{4}\left[1-\frac{3\sin2x-\cos2x}{5}\right]. So yp=−14[1−3sin2x−cos2x5]−(sinx−cosx)cosx2=2cos2x−sin2x10.y_p=-\frac14\left[1-\frac{3\sin2x-\cos2x}{5}\right]-\frac{(\sin x-\cos x)\cos x}{2}=\frac{2\cos2x-\sin2x}{10}. Complete solution: y=c1e−x+c2(sinx−cosx)+2cos2x−sin2x10.y=c_1e^{-x}+c_2(\sin x-\cos x)+\frac{2\cos2x-\sin2x}{10}.

✓ Checked by computer We checked by computer (SymPy): the second solution and the complete solution satisfy their equations.

↑ Back to the question list

Solve the following differential equation : (x+1)2y″−4(x+1)y′+6y=6(x+1)2+sinlog(x+1)

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

Solution

Put x+1=ezx+1=e^z, D=ddzD=\dfrac{d}{dz}: [D(D−1)−4D+6]y=(D−2)(D−3)y=6e2z+sinz.\left[D(D-1)-4D+6\right]y=(D-2)(D-3)\,y=6e^{2z}+\sin z . CF: yc=c1e2z+c2e3z=c1(x+1)2+c2(x+1)3y_c=c_1e^{2z}+c_2e^{3z}=c_1(x+1)^2+c_2(x+1)^3.

PI for 6e2z6e^{2z}. m=2m=2 is a simple root: 6ze2z2⋅2−5=−6ze2z\dfrac{6ze^{2z}}{2\cdot2-5}=-6ze^{2z}.

PI for sinz\sin z. With D2=−1D^2=-1: 15−5Dsinz=1+D5(1−D2)sinz=sinz+cosz10.\frac{1}{5-5D}\sin z=\frac{1+D}{5(1-D^2)}\sin z=\frac{\sin z+\cos z}{10}. Complete solution (z=log(x+1)z=\log(x+1)): y=c1(x+1)2+c2(x+1)3−6(x+1)2log(x+1)+sinlog(x+1)+coslog(x+1)10.y=c_1(x+1)^2+c_2(x+1)^3-6(x+1)^2\log(x+1)+\frac{\sin\log(x+1)+\cos\log(x+1)}{10}.

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

↑ Back to the question list

Solve the differential equation d2ydx2+(3sinx−cotx)dydx+2ysin2x=e−cosxsin2x

2019 · Paper I · Q6c(i) · 10 marks

Solution

Change of independent variable. Take z=−cosxz=-\cos x, so dzdx=sinx\dfrac{dz}{dx}=\sin x, d2zdx2=cosx\dfrac{d^2z}{dx^2}=\cos x: y′=sinxyz,y″=sin2xyzz+cosxyz.y'=\sin x\,y_z,\qquad y''=\sin^2x\,y_{zz}+\cos x\,y_z . Substituting, the coefficient of yzy_z is cosx+(3sinx−cotx)sinx=3sin2x\cos x+(3\sin x-\cot x)\sin x=3\sin^2x, and dividing by sin2x\sin^2x: yzz+3yz+2y=e−cosx=ez.y_{zz}+3y_z+2y=e^{-\cos x}=e^{z}. CF: m=−1,−2m=-1,-2: yc=c1e−z+c2e−2z=c1ecosx+c2e2cosxy_c=c_1e^{-z}+c_2e^{-2z}=c_1e^{\cos x}+c_2e^{2\cos x}.

PI: ez1+3+2=ez6\dfrac{e^z}{1+3+2}=\dfrac{e^z}6.

Complete solution: y=c1ecosx+c2e2cosx+e−cosx6.y=c_1e^{\cos x}+c_2e^{2\cos x}+\frac{e^{-\cos x}}{6}.

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

↑ Back to the question list

Find the linearly independent solutions of the corresponding homogeneous differential equation of the equation x2y″−2xy′+2y=x3sinx and then find the general solution of the given equation by the method of variation of parameters.

2019 · Paper I · Q7a · 15 marks

Solution

Independent solutions of the homogeneous equation. Try y=xmy=x^m in x2y″−2xy′+2y=0x^2y''-2xy'+2y=0: m(m−1)−2m+2=(m−1)(m−2)=0,m(m-1)-2m+2=(m-1)(m-2)=0, so y1=xy_1=x and y2=x2y_2=x^2. They are independent since W=x⋅2x−x2⋅1=x2≠0W=x\cdot2x-x^2\cdot1=x^2\ne0 for x≠0x\ne0.

Variation of parameters. In standard form the right side is R=xsinxR=x\sin x. ∫y2RWdx=∫xsinxdx=sinx−xcosx,∫y1RWdx=∫sinxdx=−cosx.\int\frac{y_2R}{W}dx=\int x\sin x\,dx=\sin x-x\cos x,\qquad\int\frac{y_1R}{W}dx=\int\sin x\,dx=-\cos x . yp=−x(sinx−xcosx)+x2(−cosx)=−xsinx.y_p=-x(\sin x-x\cos x)+x^2(-\cos x)=-x\sin x . General solution: y=c1x+c2x2−xsinx.y=c_1x+c_2x^2-x\sin x .

✓ Checked by computer We checked by computer (SymPy): substituting the solution into the equation leaves exactly x3sinxx^3\sin x.

↑ Back to the question list

Solve : (1+x)2y″+(1+x)y′+y=4cos(log(1+x))

2018 · Paper I · Q7a · 13 marks

Solution

Put 1+x=ez1+x=e^z: [D(D−1)+D+1]y=(D2+1)y=4cosz\left[D(D-1)+D+1\right]y=(D^2+1)y=4\cos z.

CF: yc=c1cosz+c2sinzy_c=c_1\cos z+c_2\sin z.

PI. This is resonant: 1D2+1cosz=z2sinz\dfrac{1}{D^2+1}\cos z=\dfrac z2\sin z, so yp=2zsinzy_p=2z\sin z.

Complete solution: y=c1coslog(1+x)+c2sinlog(1+x)+2log(1+x)sinlog(1+x).y=c_1\cos\log(1+x)+c_2\sin\log(1+x)+2\log(1+x)\,\sin\log(1+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 : xd2ydx2−dydx−4x3y=8x3sin(x2).

2017 · Paper I · Q7b(i) · 9 marks

Solution

Change of independent variable z=x2z=x^2: y′=2xyz,y″=4x2yzz+2yz.y'=2x\,y_z,\qquad y''=4x^2y_{zz}+2y_z . Then xy″−y′=4x3yzz+2xyz−2xyz=4x3yzzxy''-y'=4x^3y_{zz}+2xy_z-2xy_z=4x^3y_{zz}, and the equation becomes 4x3yzz−4x3y=8x3sinz⇒yzz−y=2sinz.4x^3y_{zz}-4x^3y=8x^3\sin z\quad\Rightarrow\quad y_{zz}-y=2\sin z . CF: c1ez+c2e−zc_1e^z+c_2e^{-z}. PI: 2sinz−1−1=−sinz\dfrac{2\sin z}{-1-1}=-\sin z.

Solution: y=c1ex2+c2e−x2−sinx2.y=c_1e^{x^2}+c_2e^{-x^2}-\sin x^2 .

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

↑ Back to the question list

Solve the following differential equation using method of variation of parameters : d2ydx2−dydx−2y=44−76x−48x2.

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

Solution

CF: m2−m−2=(m−2)(m+1)m^2-m-2=(m-2)(m+1): y1=e2xy_1=e^{2x}, y2=e−xy_2=e^{-x}, and W=−ex−2ex=−3exW=-e^{x}-2e^{x}=-3e^x.

With R=44−76x−48x2R=44-76x-48x^2, yp=−y1∫y2RWdx+y2∫y1RWdx=e2x3∫e−2xRdx−e−x3∫exRdx.y_p=-y_1\int\frac{y_2R}{W}dx+y_2\int\frac{y_1R}{W}dx=\frac{e^{2x}}{3}\int e^{-2x}R\,dx-\frac{e^{-x}}{3}\int e^{x}R\,dx . Integrating by parts, ∫e−2xRdx=(24x2+62x+9)e−2x,∫exRdx=(−48x2+20x+24)ex.\int e^{-2x}R\,dx=(24x^2+62x+9)e^{-2x},\qquad\int e^xR\,dx=(-48x^2+20x+24)e^x . So yp=24x2+62x+9+48x2−20x−243=24x2+14x−5.y_p=\frac{24x^2+62x+9+48x^2-20x-24}{3}=24x^2+14x-5 . General solution: y=c1e2x+c2e−x+24x2+14x−5.y=c_1e^{2x}+c_2e^{-x}+24x^2+14x-5 .

✓ Checked by computer We checked by computer (SymPy): both integrals, and the PI 24x2+14x−524x^2+14x-5, which also satisfies the equation.

↑ Back to the question list

Using the method of variation of parameters, solve the differential equation (D2+2D+1)y=e−xlog(x),[D≡ddx]

2016 · Paper I · Q6b · 15 marks

Solution

CF: (D+1)2y=0(D+1)^2y=0: y1=e−xy_1=e^{-x}, y2=xe−xy_2=xe^{-x}, W=e−2xW=e^{-2x}.

With R=e−xlogxR=e^{-x}\log x: ∫y2RWdx=∫xlogxdx=x2logx2−x24,∫y1RWdx=∫logxdx=xlogx−x.\int\frac{y_2R}{W}dx=\int x\log x\,dx=\frac{x^2\log x}{2}-\frac{x^2}{4},\qquad\int\frac{y_1R}{W}dx=\int\log x\,dx=x\log x-x . yp=−e−x(x2logx2−x24)+xe−x(xlogx−x)=x2e−x4(2logx−3).y_p=-e^{-x}\left(\frac{x^2\log x}{2}-\frac{x^2}4\right)+xe^{-x}(x\log x-x)=\frac{x^2e^{-x}}{4}\left(2\log x-3\right). General solution: y=(c1+c2x)e−x+x2e−x4(2logx−3).y=(c_1+c_2x)e^{-x}+\frac{x^2e^{-x}}{4}\left(2\log x-3\right).

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

↑ Back to the question list

Find the general solution of the equation x2d3ydx3−4xd2ydx2+6dydx=4.

2016 · Paper I · Q6c · 15 marks

Solution

Multiply by xx to get a Cauchy–Euler equation: x3y‴−4x2y″+6xy′=4xx^3y'''-4x^2y''+6xy'=4x. With x=ezx=e^z: [D(D−1)(D−2)−4D(D−1)+6D]y=D(D2−7D+12)y=D(D−3)(D−4)y=4ez.\left[D(D-1)(D-2)-4D(D-1)+6D\right]y=D(D^2-7D+12)y=D(D-3)(D-4)y=4e^z . CF: c1+c2e3z+c3e4z=c1+c2x3+c3x4c_1+c_2e^{3z}+c_3e^{4z}=c_1+c_2x^3+c_3x^4.

PI: 4ez1⋅(−2)(−3)=23ez=2x3\dfrac{4e^z}{1\cdot(-2)(-3)}=\dfrac23e^z=\dfrac{2x}{3}.

General solution: y=c1+c2x3+c3x4+2x3.y=c_1+c_2x^3+c_3x^4+\frac{2x}{3}.

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

↑ Back to the question list

Solve : x4d4ydx4+6x3d3ydx3+4x2d2ydx2−2xdydx−4y=x2+2cos(logex).

2015 · Paper I · Q8d · 13 marks

Solution

Put x=ezx=e^z. The operator is D(D−1)(D−2)(D−3)+6D(D−1)(D−2)+4D(D−1)−2D−4=D4−3D2−4=(D2−4)(D2+1).D(D-1)(D-2)(D-3)+6D(D-1)(D-2)+4D(D-1)-2D-4=D^4-3D^2-4=(D^2-4)(D^2+1). The equation is (D2−4)(D2+1)y=e2z+2cosz(D^2-4)(D^2+1)y=e^{2z}+2\cos z.

CF: c1e2z+c2e−2z+c3cosz+c4sinzc_1e^{2z}+c_2e^{-2z}+c_3\cos z+c_4\sin z.

PI for e2ze^{2z} (m=2m=2 is a simple root): 1D−2⋅e2z(2+2)(4+1)=ze2z20.\frac{1}{D-2}\cdot\frac{e^{2z}}{(2+2)(4+1)}=\frac{ze^{2z}}{20}. PI for 2cosz2\cos z (resonant): 1D2+1⋅2cosz−1−4=−25⋅z2sinz=−zsinz5.\frac{1}{D^2+1}\cdot\frac{2\cos z}{-1-4}=-\frac25\cdot\frac z2\sin z=-\frac{z\sin z}{5}. Complete solution: y=c1x2+c2x2+c3cos(logx)+c4sin(logx)+x2logx20−logxsin(logx)5.y=c_1x^2+\frac{c_2}{x^2}+c_3\cos(\log x)+c_4\sin(\log x)+\frac{x^2\log x}{20}-\frac{\log x\,\sin(\log x)}{5}.

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

↑ Back to the question list

Solve by the method of variation of parameters : dydx−5y=sinx

2014 · Paper I · Q6a · 10 marks

Solution

Complementary function: yc=ce5xy_c=ce^{5x}.

Variation of parameter. Let y=v(x)e5xy=v(x)e^{5x}. Then y′−5y=v′e5x=sinxy'-5y=v'e^{5x}=\sin x, so v=∫e−5xsinxdx=e−5x26(−5sinx−cosx)+c.v=\int e^{-5x}\sin x\,dx=\frac{e^{-5x}}{26}\left(-5\sin x-\cos x\right)+c . Solution: y=ce5x−5sinx+cosx26.y=ce^{5x}-\frac{5\sin x+\cos x}{26}.

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

↑ Back to the question list

Solve the differential equation : x3d3ydx3+3x2d2ydx2+xdydx+8y=65cos(logex)

2014 · Paper I · Q6b · 20 marks

Solution

Put x=ezx=e^z: D(D−1)(D−2)+3D(D−1)+D=D3D(D-1)(D-2)+3D(D-1)+D=D^3, so (D3+8)y=65cosz.(D^3+8)\,y=65\cos z . CF. m3+8=(m+2)(m2−2m+4)m^3+8=(m+2)(m^2-2m+4): m=−2,1±3im=-2,\ 1\pm\sqrt3\,i: yc=c1x2+x[c2cos(3logx)+c3sin(3logx)].y_c=\frac{c_1}{x^2}+x\left[c_2\cos(\sqrt3\log x)+c_3\sin(\sqrt3\log x)\right]. PI. With D2=−1D^2=-1, D3=−DD^3=-D: 658−Dcosz=65(8+D)64−D2cosz=65(8cosz−sinz)65=8cosz−sinz.\frac{65}{8-D}\cos z=\frac{65(8+D)}{64-D^2}\cos z=\frac{65(8\cos z-\sin z)}{65}=8\cos z-\sin z . Complete solution: y=c1x2+x[c2cos(3logx)+c3sin(3logx)]+8cos(logx)−sin(logx).y=\frac{c_1}{x^2}+x\left[c_2\cos(\sqrt3\log x)+c_3\sin(\sqrt3\log x)\right]+8\cos(\log x)-\sin(\log x).

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

↑ Back to the question list

Solve the following differential equation : xd2ydx2−2(x+1)dydx+(x+2)y=(x−2)e2x, when ex is a solution to its corresponding homogeneous differential equation.

2014 · Paper I · Q7a · 15 marks

Solution

Put y=vexy=ve^x. Then y′=(v′+v)exy'=(v'+v)e^x, y″=(v″+2v′+v)exy''=(v''+2v'+v)e^x, and the equation becomes ex[xv″+(2x−2x−2)v′+(x−2x−2+x+2)v]=(x−2)e2x⇒xv″−2v′=(x−2)ex.e^x\left[xv''+(2x-2x-2)v'+(x-2x-2+x+2)v\right]=(x-2)e^{2x}\quad\Rightarrow\quad xv''-2v'=(x-2)e^x . With q=v′q=v': q′−2xq=(x−2)exxq'-\dfrac2xq=\dfrac{(x-2)e^x}{x}. The integrating factor is x−2x^{-2}: (qx2)′=(x−2)exx3=ddx(exx2)⇒q=ex+3c1x2.\left(\frac{q}{x^2}\right)'=\frac{(x-2)e^x}{x^3}=\frac{d}{dx}\left(\frac{e^x}{x^2}\right)\quad\Rightarrow\quad q=e^x+3c_1x^2 . Integrating, v=ex+c1x3+c2v=e^x+c_1x^3+c_2. So y=c1x3ex+c2ex+e2x.y=c_1x^3e^x+c_2e^x+e^{2x}.

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

↑ Back to the question list

Using the method of variation of parameters, solve the differential equation d2ydx2+a2y=secax.

2013 · Paper I · Q6b · 10 marks

Solution

CF: yc=c1cosax+c2sinaxy_c=c_1\cos ax+c_2\sin ax. Take y1=cosaxy_1=\cos ax, y2=sinaxy_2=\sin ax, with Wronskian W=y1y2′−y2y1′=acos2ax+asin2ax=a.W=y_1y_2'-y_2y_1'=a\cos^2ax+a\sin^2ax=a . PI =−y1∫y2secaxWdx+y2∫y1secaxWdx=-y_1\displaystyle\int\frac{y_2\sec ax}{W}dx+y_2\int\frac{y_1\sec ax}{W}dx: −cosax∫tanaxadx+sinax∫1adx=cosaxlog|cosax|a2+xsinaxa.-\cos ax\int\frac{\tan ax}{a}dx+\sin ax\int\frac1a\,dx=\frac{\cos ax\,\log|\cos ax|}{a^2}+\frac{x\sin ax}{a}. Complete solution: y=c1cosax+c2sinax+xsinaxa+cosaxlog|cosax|a2.y=c_1\cos ax+c_2\sin ax+\frac{x\sin ax}{a}+\frac{\cos ax\,\log|\cos ax|}{a^2}.

✓ Checked by computer We checked by computer (SymPy): substituting the particular integral into the equation leaves exactly secax\sec ax.

↑ Back to the question list

Find the general solution of the equation x2d2ydx2+xdydx+y=lnxsin(lnx).

2013 · Paper I · Q6c · 15 marks

Solution

Put x=ezx=e^z: (D2+1)y=zsinz(D^2+1)y=z\sin z.

CF: c1cosz+c2sinzc_1\cos z+c_2\sin z.

PI. zsinz=Imzeizz\sin z=\operatorname{Im}ze^{iz}: 1D2+1zeiz=eiz1D2+2iDz=eiz12iD(1−D2i)z=eiz12i(z22−z2i)=eiz(−iz24+z4).\frac{1}{D^2+1}ze^{iz}=e^{iz}\frac{1}{D^2+2iD}z=e^{iz}\frac{1}{2iD}\left(1-\frac{D}{2i}\right)z=e^{iz}\frac{1}{2i}\left(\frac{z^2}{2}-\frac{z}{2i}\right)=e^{iz}\left(-\frac{iz^2}{4}+\frac z4\right). The imaginary part is zsinz−z2cosz4\dfrac{z\sin z-z^2\cos z}{4}.

General solution (z=lnxz=\ln x): y=c1cos(lnx)+c2sin(lnx)+lnxsin(lnx)−(lnx)2cos(lnx)4.y=c_1\cos(\ln x)+c_2\sin(\ln x)+\frac{\ln x\,\sin(\ln x)-(\ln x)^2\cos(\ln x)}{4}.

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

↑ Back to the question list

Solve the ordinary differential equation x(x−1)y″−(2x−1)y′+2y=x2(2x−3)

2012 · Paper I · Q6c · 20 marks

Solution

CF. Try y=x2y=x^2: 2x(x−1)−2x(2x−1)+2x2=02x(x-1)-2x(2x-1)+2x^2=0 ✓. Try y=ax+by=ax+b: −(2x−1)a+2(ax+b)=a+2b=0-(2x-1)a+2(ax+b)=a+2b=0, so y=2x−1y=2x-1 ✓. So yc=c1x2+c2(2x−1).y_c=c_1x^2+c_2(2x-1). PI. Since the right side is a cubic, try y=x3y=x^3: x(x−1)⋅6x−(2x−1)⋅3x2+2x3=6x3−6x2−6x3+3x2+2x3=2x3−3x2=x2(2x−3)✓x(x-1)\cdot6x-(2x-1)\cdot3x^2+2x^3=6x^3-6x^2-6x^3+3x^2+2x^3=2x^3-3x^2=x^2(2x-3)\ \checkmark So yp=x3y_p=x^3 and y=c1x2+c2(2x−1)+x3.y=c_1x^2+c_2(2x-1)+x^3 .

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

↑ Back to the question list

Using the method of variation of parameters, solve the second order differential equation d2ydx2+4y=tan2x.

2011 · Paper I · Q6c · 15 marks

Solution

CF: y1=cos2xy_1=\cos2x, y2=sin2xy_2=\sin2x, W=2W=2.

With R=tan2xR=\tan2x: ∫y2RWdx=12∫sin22xcos2xdx=12∫(sec2x−cos2x)dx=14log|sec2x+tan2x|−14sin2x,\int\frac{y_2R}{W}dx=\frac12\int\frac{\sin^22x}{\cos2x}dx=\frac12\int(\sec2x-\cos2x)\,dx=\frac14\log|\sec2x+\tan2x|-\frac14\sin2x, ∫y1RWdx=12∫sin2xdx=−14cos2x.\int\frac{y_1R}{W}dx=\frac12\int\sin2x\,dx=-\frac14\cos2x . yp=−cos2x[14log|sec2x+tan2x|−14sin2x]−14sin2xcos2x=−14cos2xlog|sec2x+tan2x|.y_p=-\cos2x\left[\tfrac14\log|\sec2x+\tan2x|-\tfrac14\sin2x\right]-\tfrac14\sin2x\cos2x=-\tfrac14\cos2x\log|\sec2x+\tan2x| . Solution: y=c1cos2x+c2sin2x−14cos2xlog|sec2x+tan2x|.y=c_1\cos2x+c_2\sin2x-\frac14\cos2x\,\log|\sec2x+\tan2x| .

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

↑ Back to the question list

Find the Wronskian of the set of functions {3x3,|3x3|} on the interval [−1,1] and determine whether the set is linearly dependent on [−1,1].

2009 · Paper I · Q5b · 12 marks

Solution

Let f(x)=3x3f(x)=3x^3 and g(x)=|3x3|g(x)=|3x^3|, so g=3x3g=3x^3 for x≥0x\ge0 and g=−3x3g=-3x^3 for x<0x<0. Both are differentiable on [−1,1][-1,1], with g′(x)=9x|x|g'(x)=9x|x|.

Wronskian.

  • For x≥0x\ge0: g=fg=f, so W=fg′−gf′=0W=fg'-gf'=0.
  • For x<0x<0: g=−fg=-f, so W=f(−f′)−(−f)f′=0W=f(-f')-(-f)f'=0.

So W(x)=0W(x)=0 for every x∈[−1,1]x\in[-1,1].

Linear independence. Suppose c1f+c2g=0c_1f+c_2g=0 on [−1,1][-1,1].

  • x=1x=1: 3c1+3c2=03c_1+3c_2=0.
  • x=−1x=-1: −3c1+3c2=0-3c_1+3c_2=0.

So c1=c2=0c_1=c_2=0: the set is linearly independent on [−1,1][-1,1], even though its Wronskian vanishes everywhere. (This shows that W≡0W\equiv0 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 [−1,1][-1,1].)

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

↑ Back to the question list

Use the method of variation of parameters to find the general solution of x2y″−4xy′+6y=−x4sinx.

2008 · Paper I · Q5b · 12 marks

Solution

CF. Trying xmx^m: m(m−1)−4m+6=(m−2)(m−3)=0m(m-1)-4m+6=(m-2)(m-3)=0, so y1=x2y_1=x^2, y2=x3y_2=x^3, and W=x2⋅3x2−x3⋅2x=x4W=x^2\cdot3x^2-x^3\cdot2x=x^4.

In standard form R=−x2sinxR=-x^2\sin x: ∫y2RWdx=−∫xsinxdx=−(sinx−xcosx),∫y1RWdx=−∫sinxdx=cosx.\int\frac{y_2R}{W}dx=-\int x\sin x\,dx=-(\sin x-x\cos x),\qquad\int\frac{y_1R}{W}dx=-\int\sin x\,dx=\cos x . yp=x2(sinx−xcosx)+x3cosx=x2sinx.y_p=x^2(\sin x-x\cos x)+x^3\cos x=x^2\sin x . General solution: y=c1x2+c2x3+x2sinx.y=c_1x^2+c_2x^3+x^2\sin x .

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

↑ Back to the question list

Solve the differential equation x3y″−3x2y′+xy=sin(lnx)+1.

2008 · Paper I · Q6c · 15 marks

Solution

Divide by xx: x2y″−3xy′+y=sin(lnx)+1xx^2y''-3xy'+y=\dfrac{\sin(\ln x)+1}{x}. With x=ezx=e^z: (D2−4D+1)y=e−z(sinz+1).(D^2-4D+1)\,y=e^{-z}(\sin z+1). CF: m=2±3m=2\pm\sqrt3: yc=c1x2+3+c2x2−3y_c=c_1x^{2+\sqrt3}+c_2x^{2-\sqrt3}.

PI. Shift e−ze^{-z} through (D→D−1D\to D-1): (D−1)2−4(D−1)+1=D2−6D+6(D-1)^2-4(D-1)+1=D^2-6D+6. e−z1D2−6D+6(sinz+1)=e−z[15−6Dsinz+16]=e−z[(5+6D)sinz25+36+16].e^{-z}\frac{1}{D^2-6D+6}(\sin z+1)=e^{-z}\left[\frac{1}{5-6D}\sin z+\frac16\right]=e^{-z}\left[\frac{(5+6D)\sin z}{25+36}+\frac16\right]. =e−z[5sinz+6cosz61+16].=e^{-z}\left[\frac{5\sin z+6\cos z}{61}+\frac16\right]. Complete solution: y=c1x2+3+c2x2−3+1x[16+5sin(lnx)+6cos(lnx)61].y=c_1x^{2+\sqrt3}+c_2x^{2-\sqrt3}+\frac1x\left[\frac16+\frac{5\sin(\ln x)+6\cos(\ln x)}{61}\right].

✓ Checked by computer We checked by computer (SymPy): the solution satisfies 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