The math optional, made finite.

← 2025 Paper 1

UPSC Maths 2025 Paper 1 Q8a — Solution

15 marks · Section B

Question

Solve the differential equation (x+2)d2ydx2(2x+5)dydx+2y=(1+x)ex(x + 2)\dfrac{d^2 y}{dx^2} - (2x + 5)\dfrac{dy}{dx} + 2y = (1 + x)e^x by the method of variation of parameters.

Technique

For this variable-coefficient linear ODE, first find two independent complementary solutions (by inspecting exponential and polynomial trial forms), then apply the variation-of-parameters formula yp=y1 ⁣ ⁣y2RWdx+y2 ⁣ ⁣y1RWdx,y_p = -y_1\!\int\!\frac{y_2 R}{W}\,dx + y_2\!\int\!\frac{y_1 R}{W}\,dx, where RR is the RHS after writing the ODE in standard form y+Py+Qy=Ry'' + Py' + Qy = R.

Solution

Complementary functions

Trial y=emxy = e^{mx} in the homogeneous equation (x+2)y(2x+5)y+2y=0(x+2)y'' - (2x+5)y' + 2y = 0: (x+2)m2(2x+5)m+2=0 for all x.(x+2)m^2 - (2x+5)m + 2 = 0 \text{ for all } x. Coefficient of xx: m22m=0m=0m^2 - 2m = 0 \Rightarrow m = 0 or m=2m = 2. Constant term: 2m25m+2=0m=22m^2 - 5m + 2 = 0 \Rightarrow m = 2 or m=12m=\tfrac12. The common value is m=2m=2, giving y1=e2x.y_1 = e^{2x}.

For a second solution try a polynomial y=αx+βy = \alpha x + \beta: y=0y''=0, y=αy'=\alpha, so (2x+5)α+2(αx+β)=2αx5α+2αx+2β=2β5α=0-(2x+5)\alpha + 2(\alpha x+\beta) = -2\alpha x - 5\alpha + 2\alpha x + 2\beta = 2\beta - 5\alpha = 0, giving β=52α\beta=\tfrac52\alpha. Take α=2\alpha=2: y2=2x+5.y_2 = 2x + 5. (Direct substitution confirms both annihilate the homogeneous operator.)

Standard form and Wronskian

Divide by (x+2)(x+2): y+Py+Qy=Ry'' + P y' + Q y = R with R=(1+x)exx+2R = \dfrac{(1+x)e^x}{x+2}.

Wronskian: W=y1y2y2y1=e2x2(2x+5)2e2x=2e2x[1(2x+5)]=4(x+2)e2x.W = y_1 y_2' - y_2 y_1' = e^{2x}\cdot 2 - (2x+5)\cdot 2e^{2x} = 2e^{2x}\bigl[1 - (2x+5)\bigr] = -4(x+2)e^{2x}.

Variation of parameters

yp=y1y2RWdx+y2y1RWdx.y_p = -y_1\int\frac{y_2 R}{W}\,dx + y_2\int\frac{y_1 R}{W}\,dx.

Compute the integrands (R/W=(1+x)ex(x+2)(4)(x+2)e2x=(1+x)ex4(x+2)2R/W = \dfrac{(1+x)e^x}{(x+2)\cdot(-4)(x+2)e^{2x}} = -\dfrac{(1+x)e^{-x}}{4(x+2)^2}):

u2=y1RW=e2x(1+x)ex4(x+2)e2x(x+2)=(x+1)ex4(x+2)2,u2=u2dx=ex4(x+2).u_2' = \frac{y_1 R}{W} = \frac{e^{2x}(1+x)e^x}{-4(x+2)e^{2x}(x+2)} = -\frac{(x+1)e^{x}}{4(x+2)^2},\qquad u_2 = \int u_2'\,dx = -\frac{e^x}{4(x+2)}.

(Using (x+1)ex(x+2)2dx=exx+2\int\dfrac{(x+1)e^x}{(x+2)^2}dx = \dfrac{e^x}{x+2}, since ddxexx+2=ex(x+2)ex(x+2)2=(x+1)ex(x+2)2\dfrac{d}{dx}\dfrac{e^x}{x+2} = \dfrac{e^x(x+2)-e^x}{(x+2)^2} = \dfrac{(x+1)e^x}{(x+2)^2}.)

u1=y2RW=(x+1)(2x+5)ex4(x+2)2,u1=u1dx=(2x+3)ex4(x+2).u_1' = -\frac{y_2 R}{W} = \frac{(x+1)(2x+5)e^{-x}}{4(x+2)^2},\qquad u_1 = \int u_1'\,dx = -\frac{(2x+3)e^{-x}}{4(x+2)}.

Then yp=y1u1+y2u2=e2x ⁣((2x+3)ex4(x+2))+(2x+5) ⁣(ex4(x+2)).y_p = y_1 u_1 + y_2 u_2 = e^{2x}\!\left(-\frac{(2x+3)e^{-x}}{4(x+2)}\right) + (2x+5)\!\left(-\frac{e^x}{4(x+2)}\right). =ex4(x+2)[(2x+3)+(2x+5)]=ex4(x+2)(4x+8)=ex4(x+2)4(x+2)=ex.= -\frac{e^x}{4(x+2)}\Bigl[(2x+3) + (2x+5)\Bigr] = -\frac{e^x}{4(x+2)}\cdot(4x+8) = -\frac{e^x\cdot 4(x+2)}{4(x+2)} = -e^x.

Complete solution

y=C1e2x+C2(2x+5)ex.y = C_1 e^{2x} + C_2(2x+5) - e^x.

Answer

  y=C1e2x+C2(2x+5)ex.  \boxed{\;y = C_1 e^{2x} + C_2\,(2x + 5) - e^x.\;}

We've mapped all 13 years of this exam. Get new solutions, tools, and guides as we release them — free.