← 2022 Paper 1

UPSC 2022 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

Solve (x21)y2xy+2y=(x21)2(x^2-1)y''-2xy'+2y=(x^2-1)^2 by variation of parameters, given y1=xy_1=x is one solution of the reduced (homogeneous) equation.

Technique

Reduction of order to find second homogeneous solution (y2=x2+1y_2=x^2+1); variation of parameters with u1y1+u2y2=0,  u1y1+u2y2=(x21)/1u_1'y_1+u_2'y_2=0,\;u_1'y_1'+u_2'y_2'=(x^2-1)/1 (RHS already divided through); integrate to get u1,u2u_1,u_2.

Solution

Standard form. Divide by (x21)(x^2-1):

y2xx21y+2x21y=x21.y''-\dfrac{2x}{x^2-1}y'+\dfrac{2}{x^2-1}y=x^2-1.

Step 1 — Find second homogeneous solution via reduction of order

Given y1=xy_1=x. Try y2=v(x)xy_2=v(x)\cdot x.

y2=vx+vy_2'=v'x+v. y2=vx+2vy_2''=v''x+2v'.

Substitute into homogeneous equation (x21)y2xy+2y=0(x^2-1)y''-2xy'+2y=0: (x21)(vx+2v)2x(vx+v)+2vx=0(x^2-1)(v''x+2v')-2x(v'x+v)+2vx=0 x(x21)v+2(x21)v2x2v2xv+2xv=0x(x^2-1)v''+2(x^2-1)v'-2x^2 v'-2xv+2xv=0 x(x21)v+[2(x21)2x2]v=0x(x^2-1)v''+[2(x^2-1)-2x^2]v'=0 x(x21)v2v=0x(x^2-1)v''-2v'=0.

Let u=vu=v': x(x21)u=2ux(x^2-1)u'=2u, separable:

duu=2dxx(x21).\dfrac{du}{u}=\dfrac{2\,dx}{x(x^2-1)}.

Partial fractions: 2x(x21)=2x(x1)(x+1)=Ax+Bx1+Cx+1\dfrac{2}{x(x^2-1)}=\dfrac{2}{x(x-1)(x+1)}=\dfrac{A}{x}+\dfrac{B}{x-1}+\dfrac{C}{x+1}.

2=A(x1)(x+1)+Bx(x+1)+Cx(x1)2=A(x-1)(x+1)+Bx(x+1)+Cx(x-1).

So 2x(x21)=2x+1x1+1x+1\dfrac{2}{x(x^2-1)}=-\dfrac{2}{x}+\dfrac{1}{x-1}+\dfrac{1}{x+1}.

duu= ⁣(2x+1x1+1x+1)dx\int\dfrac{du}{u}=\int\!\left(-\dfrac{2}{x}+\dfrac{1}{x-1}+\dfrac{1}{x+1}\right)dx lnu=2lnx+lnx1+lnx+1+C1=ln ⁣(x1)(x+1)x2+C1=ln ⁣x21x2+C1\ln|u|=-2\ln|x|+\ln|x-1|+\ln|x+1|+C_1=\ln\!\left|\dfrac{(x-1)(x+1)}{x^2}\right|+C_1=\ln\!\left|\dfrac{x^2-1}{x^2}\right|+C_1.

So u=v=x21x2=11x2u=v'=\dfrac{x^2-1}{x^2}=1-\dfrac{1}{x^2} (taking constant = 1).

Integrate: v=x+1x+C2v=x+\dfrac{1}{x}+C_2. Take C2=0C_2=0: v=x+1/xv=x+1/x.

So y2=vx=x(x+1/x)=x2+1y_2=vx=x(x+1/x)=x^2+1.

Step 2 — Verify y2y_2

Test y2=x2+1y_2=x^2+1 in homogeneous eq: y2=2xy_2'=2x, y2=2y_2''=2. (x21)(2)2x(2x)+2(x2+1)=2x224x2+2x2+2=0(x^2-1)(2)-2x(2x)+2(x^2+1)=2x^2-2-4x^2+2x^2+2=0 ✓.

Step 3 — Variation of parameters

General solution: yp=u1(x)y1+u2(x)y2y_p=u_1(x)y_1+u_2(x)y_2 where

u1y1+u2y2=0,u_1'y_1+u_2'y_2=0, u1y1+u2y2=RHSleading coefficient=x21.u_1'y_1'+u_2'y_2'=\dfrac{RHS}{\text{leading coefficient}}=x^2-1.

With y1=x,y1=1,y2=x2+1,y2=2xy_1=x,y_1'=1,y_2=x^2+1,y_2'=2x:

System:

u1x+u2(x2+1)=0,u_1'\cdot x+u_2'(x^2+1)=0, u1+u22x=x21.u_1'+u_2'\cdot 2x=x^2-1.

Solve. From first: u1=(x2+1)xu2u_1'=-\dfrac{(x^2+1)}{x}u_2'.

Substitute into second: (x2+1)xu2+2xu2=x21-\dfrac{(x^2+1)}{x}u_2'+2x u_2'=x^2-1,

u2 ⁣[x2+1x+2x]=x21u_2'\!\left[-\dfrac{x^2+1}{x}+2x\right]=x^2-1,

u2 ⁣[x21+2x2x]=x21u_2'\!\left[\dfrac{-x^2-1+2x^2}{x}\right]=x^2-1,

u2x21x=x21u_2'\cdot\dfrac{x^2-1}{x}=x^2-1,

u2=xu_2'=x.

Then u1=(x2+1)/xx=(x2+1)u_1'=-(x^2+1)/x\cdot x=-(x^2+1).

Step 4 — Integrate

u1=(x2+1)dx=x3/3xu_1=-\int(x^2+1)\,dx=-x^3/3-x. u2=xdx=x2/2u_2=\int x\,dx=x^2/2.

Step 5 — Particular solution

yp=u1y1+u2y2=(x3/3x)(x)+(x2/2)(x2+1)y_p=u_1 y_1+u_2 y_2=(-x^3/3-x)(x)+(x^2/2)(x^2+1) =x4/3x2+x4/2+x2/2=-x^4/3-x^2+x^4/2+x^2/2 =x4(1/3+1/2)+x2(1+1/2)=x^4(-1/3+1/2)+x^2(-1+1/2) =x41/6+x2(1/2)=x^4\cdot 1/6+x^2\cdot(-1/2) =x46x22=\dfrac{x^4}{6}-\dfrac{x^2}{2}.

Step 6 — General solution

y=C1x+C2(x2+1)+x46x22y=C_1 x+C_2(x^2+1)+\dfrac{x^4}{6}-\dfrac{x^2}{2}.

The x2x^2 part can be absorbed by adjusting C2C_2: C2(x2+1)x2/2=(C21/2)x2+C2C_2(x^2+1)-x^2/2=(C_2-1/2)x^2+C_2. So with new C2=C21/2C_2'=C_2-1/2, the x2/2-x^2/2 disappears.

Or just keep as is:

Answer

  y=C1x+C2(x2+1)+x46x22.  \boxed{\;y=C_1 x+C_2(x^2+1)+\dfrac{x^4}{6}-\dfrac{x^2}{2}.\;}
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.