← 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 12× in 14 yrs · Read the full method →

Question

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

Technique

Variation of parameters with y1=e−x,y2=xe−xy_1=e^{-x},y_2=xe^{-x}, W=e−2xW=e^{-2x}; the exponentials cancel leaving ∫xlog⁡x dx\int x\log x\,dx and ∫log⁡x dx\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)e−x,y1=e−x,  y2=xe−x.y_c=(c_1+c_2x)e^{-x},\qquad y_1=e^{-x},\ \ y_2=xe^{-x}.

Step 2 — Wronskian

y1′=−e−x,y2′=(1−x)e−x.y_1'=-e^{-x},\qquad y_2'=(1-x)e^{-x}. W=∣e−xxe−x−e−x(1−x)e−x∣=e−2x[(1−x)+x]=e−2x.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)=e−xlog⁡xR(x)=e^{-x}\log x (RHS in standard form, leading coefficient 11),

yp=−y1 ⁣∫y2RW dx+y2 ⁣∫y1RW dx.y_p=-y_1\!\int\frac{y_2R}{W}\,dx+y_2\!\int\frac{y_1R}{W}\,dx.

Compute the integrands:

y2RW=xe−x⋅e−xlog⁡xe−2x=xlog⁡x,y1RW=e−x⋅e−xlog⁡xe−2x=log⁡x.\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

∫xlog⁡x dx=x22log⁡x−∫x2 dx=x22log⁡x−x24,\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}, ∫log⁡x dx=xlog⁡x−x.\int\log x\,dx=x\log x-x.

Step 5 — Assemble ypy_p

yp=−e−x ⁣(x22log⁡x−x24)+xe−x(xlog⁡x−x).y_p=-e^{-x}\!\left(\frac{x^2}{2}\log x-\frac{x^2}{4}\right)+xe^{-x}\big(x\log x-x\big). =e−x ⁣[−x22log⁡x+x24+x2log⁡x−x2]=e−x ⁣[x22log⁡x−3x24].=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)e−x+e−x ⁣(x22log⁡x−3x24).  \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 — 14 years, mapped. Get the take-away PDF free.