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

Question

Solve (x2−1)y′′−2xy′+2y=(x2−1)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 u1′y1+u2′y2=0,  u1′y1′+u2′y2′=(x2−1)/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 (x2−1)(x^2-1):

y′′−2xx2−1y′+2x2−1y=x2−1.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′=v′x+vy_2'=v'x+v. y2′′=v′′x+2v′y_2''=v''x+2v'.

Substitute into homogeneous equation (x2−1)y′′−2xy′+2y=0(x^2-1)y''-2xy'+2y=0: (x2−1)(v′′x+2v′)−2x(v′x+v)+2vx=0(x^2-1)(v''x+2v')-2x(v'x+v)+2vx=0 x(x2−1)v′′+2(x2−1)v′−2x2v′−2xv+2xv=0x(x^2-1)v''+2(x^2-1)v'-2x^2 v'-2xv+2xv=0 x(x2−1)v′′+[2(x2−1)−2x2]v′=0x(x^2-1)v''+[2(x^2-1)-2x^2]v'=0 x(x2−1)v′′−2v′=0x(x^2-1)v''-2v'=0.

Let u=v′u=v': x(x2−1)u′=2ux(x^2-1)u'=2u, separable:

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

Partial fractions: 2x(x2−1)=2x(x−1)(x+1)=Ax+Bx−1+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(x−1)(x+1)+Bx(x+1)+Cx(x−1)2=A(x-1)(x+1)+Bx(x+1)+Cx(x-1).

So 2x(x2−1)=−2x+1x−1+1x+1\dfrac{2}{x(x^2-1)}=-\dfrac{2}{x}+\dfrac{1}{x-1}+\dfrac{1}{x+1}.

∫duu=∫ ⁣(−2x+1x−1+1x+1)dx\int\dfrac{du}{u}=\int\!\left(-\dfrac{2}{x}+\dfrac{1}{x-1}+\dfrac{1}{x+1}\right)dx ln⁡∣u∣=−2ln⁡∣x∣+ln⁡∣x−1∣+ln⁡∣x+1∣+C1=ln⁡ ⁣∣(x−1)(x+1)x2∣+C1=ln⁡ ⁣∣x2−1x2∣+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′=x2−1x2=1−1x2u=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. (x2−1)(2)−2x(2x)+2(x2+1)=2x2−2−4x2+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

u1′y1+u2′y2=0,u_1'y_1+u_2'y_2=0, u1′y1′+u2′y2′=RHSleading coefficient=x2−1.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:

u1′⋅x+u2′(x2+1)=0,u_1'\cdot x+u_2'(x^2+1)=0, u1′+u2′⋅2x=x2−1.u_1'+u_2'\cdot 2x=x^2-1.

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

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

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

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

u2′⋅x2−1x=x2−1u_2'\cdot\dfrac{x^2-1}{x}=x^2-1,

u2′=xu_2'=x.

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

Step 4 — Integrate

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

Step 5 — Particular solution

yp=u1y1+u2y2=(−x3/3−x)(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/3−x2+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) =x4⋅1/6+x2⋅(−1/2)=x^4\cdot 1/6+x^2\cdot(-1/2) =x46−x22=\dfrac{x^4}{6}-\dfrac{x^2}{2}.

Step 6 — General solution

y=C1x+C2(x2+1)+x46−x22y=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=(C2−1/2)x2+C2C_2(x^2+1)-x^2/2=(C_2-1/2)x^2+C_2. So with new C2′=C2−1/2C_2'=C_2-1/2, the −x2/2-x^2/2 disappears.

Or just keep as is:

Answer

  y=C1x+C2(x2+1)+x46−x22.  \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 — 14 years, mapped. Get the take-away PDF free.