← 2024 Paper 1

UPSC 2024 Maths Optional Paper 1 Q6c-ii — Step-by-Step Solution

10 marks · Section B

Method of variation of parameters · ODEs · asked 11× in 13 yrs · Read the full method →

Question

Find the general solution of x2y2xy+2y=x3sinxx^2 y''-2xy'+2y=x^3\sin x by the method of variation of parameters.

Technique

Solve the Euler–Cauchy homogeneous equation; convert to standard form (divide by x2x^2); apply the variation-of-parameters formula.

Solution

Step 1 — Homogeneous solution.

Try y=xmy=x^m: m(m1)2m+2=m23m+2=0m=1,2m(m-1)-2m+2=m^2-3m+2=0\Rightarrow m=1,2.

Complementary function: y1=xy_1=x, y2=x2y_2=x^2.

Step 2 — Standard form.

Divide the ODE by x2x^2: y2xy+2x2y=xsinxy''-\dfrac{2}{x}y'+\dfrac{2}{x^2}y=x\sin x.

The right-hand side in standard form is g(x)=xsinxg(x)=x\sin x.

Step 3 — Wronskian.

W=xx212x=2x2x2=x2.W=\begin{vmatrix}x & x^2\\1 & 2x\end{vmatrix}=2x^2-x^2=x^2.

Step 4 — Particular solution.

yp=y1y2gWdx+y2y1gWdx.y_p=-y_1\int\frac{y_2 g}{W}\,dx+y_2\int\frac{y_1 g}{W}\,dx. y2gW=x2xsinxx2=xsinx,y1gW=xxsinxx2=sinx.\frac{y_2 g}{W}=\frac{x^2\cdot x\sin x}{x^2}=x\sin x,\qquad \frac{y_1 g}{W}=\frac{x\cdot x\sin x}{x^2}=\sin x. xsinxdx=xcosx+sinx,sinxdx=cosx.\int x\sin x\,dx=-x\cos x+\sin x,\qquad\int\sin x\,dx=-\cos x. yp=x(xcosx+sinx)+x2(cosx)=x2cosxxsinxx2cosx=xsinx.y_p=-x(-x\cos x+\sin x)+x^2(-\cos x)=x^2\cos x-x\sin x-x^2\cos x=-x\sin x.

Answer

  y(x)=c1x+c2x2xsinx.  \boxed{\;y(x)=c_1 x+c_2 x^2-x\sin x.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.