← 2016 Paper 1

UPSC 2016 Maths Optional Paper 1 Q6b — Step-by-Step Solution

15 marks · Section B

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

Question

Using the method of variation of parameters, solve the differential equation (D2+2D+1)y=exlog(x)(D^2+2D+1)y=e^{-x}\log(x), [Dddx]\left[D\equiv\dfrac{d}{dx}\right].

Technique

Variation of parameters with y1=ex,y2=xexy_1=e^{-x},y_2=xe^{-x}, W=e2xW=e^{-2x}; the exponentials cancel leaving xlogxdx\int x\log x\,dx and logxdx\int\log x\,dx.

Solution

Step 1 — Complementary function

D2+2D+1=(D+1)2=0D^2+2D+1=(D+1)^2=0 gives the repeated root D=1D=-1. Hence

yc=(c1+c2x)ex,y1=ex,  y2=xex.y_c=(c_1+c_2x)e^{-x},\qquad y_1=e^{-x},\ \ y_2=xe^{-x}.

Step 2 — Wronskian

y1=ex,y2=(1x)ex.y_1'=-e^{-x},\qquad y_2'=(1-x)e^{-x}. W=exxexex(1x)ex=e2x[(1x)+x]=e2x.W=\begin{vmatrix}e^{-x}&xe^{-x}\\ -e^{-x}&(1-x)e^{-x}\end{vmatrix}=e^{-2x}\big[(1-x)+x\big]=e^{-2x}.

Step 3 — Variation-of-parameters formulae

With R(x)=exlogxR(x)=e^{-x}\log x (RHS in standard form, leading coefficient 11),

yp=y1 ⁣y2RWdx+y2 ⁣y1RWdx.y_p=-y_1\!\int\frac{y_2R}{W}\,dx+y_2\!\int\frac{y_1R}{W}\,dx.

Compute the integrands:

y2RW=xexexlogxe2x=xlogx,y1RW=exexlogxe2x=logx.\frac{y_2R}{W}=\frac{xe^{-x}\cdot e^{-x}\log x}{e^{-2x}}=x\log x,\qquad \frac{y_1R}{W}=\frac{e^{-x}\cdot e^{-x}\log x}{e^{-2x}}=\log x.

Step 4 — The two integrals

xlogxdx=x22logxx2dx=x22logxx24,\int x\log x\,dx=\frac{x^2}{2}\log x-\int\frac{x}{2}\,dx=\frac{x^2}{2}\log x-\frac{x^2}{4}, logxdx=xlogxx.\int\log x\,dx=x\log x-x.

Step 5 — Assemble ypy_p

yp=ex ⁣(x22logxx24)+xex(xlogxx).y_p=-e^{-x}\!\left(\frac{x^2}{2}\log x-\frac{x^2}{4}\right)+xe^{-x}\big(x\log x-x\big). =ex ⁣[x22logx+x24+x2logxx2]=ex ⁣[x22logx3x24].=e^{-x}\!\left[-\frac{x^2}{2}\log x+\frac{x^2}{4}+x^2\log x-x^2\right]=e^{-x}\!\left[\frac{x^2}{2}\log x-\frac{3x^2}{4}\right].

Step 6 — General solution

Answer

  y=(c1+c2x)ex+ex ⁣(x22logx3x24).  \boxed{\;y=(c_1+c_2x)e^{-x}+e^{-x}\!\left(\frac{x^2}{2}\log x-\frac{3x^2}{4}\right).\;}
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.