← 2018 Paper 1

UPSC 2018 Maths Optional Paper 1 Q6a — Step-by-Step Solution

13 marks · Section B

First-order higher-degree ODEs · ODEs · asked 5× in 13 yrs · Read the full method →

Question

Solve: (dydx)2y+2dydxxy=0\left(\dfrac{dy}{dx}\right)^2 y+2\dfrac{dy}{dx}\,x-y=0.

Technique

Equation linear in xx → solve for xx, differentiate w.r.t. yy using dx/dy=1/pdx/dy=1/p, separate to get yp=cyp=c, eliminate pp.

Solution

Write p=dydxp=\dfrac{dy}{dx}, so the equation is yp2+2xpy=0y\,p^2+2x\,p-y=0.

Step 1 — Solve for xx (the equation is linear in xx)

Although it is quadratic in pp, it is linear in xx, which is the cleaner route:

2xp=yyp2    x=y(1p2)2p.2x\,p=y-y\,p^2\;\Rightarrow\; x=\frac{y(1-p^2)}{2p}.

Step 2 — Differentiate with respect to yy

Use dxdy=1p\dfrac{dx}{dy}=\dfrac1p. Differentiate x=y(1p2)2p=y2pyp2x=\dfrac{y(1-p^2)}{2p}=\dfrac{y}{2p}-\dfrac{yp}{2}:

dxdy=12py2p2dpdyp2y2dpdy.\frac{dx}{dy}=\frac{1}{2p}-\frac{y}{2p^2}\frac{dp}{dy}-\frac{p}{2}-\frac{y}{2}\frac{dp}{dy}.

Set this equal to 1p\dfrac1p:

1p=12pp2y2(1p2+1)dpdy.\frac1p=\frac{1}{2p}-\frac{p}{2}-\frac{y}{2}\left(\frac{1}{p^2}+1\right)\frac{dp}{dy}.

Move terms:

1p12p+p2=y21+p2p2dpdy    12p+p2=1+p22p=y21+p2p2dpdy.\frac1p-\frac{1}{2p}+\frac{p}{2}=-\frac{y}{2}\,\frac{1+p^2}{p^2}\,\frac{dp}{dy} \;\Rightarrow\;\frac{1}{2p}+\frac{p}{2}=\frac{1+p^2}{2p}=-\frac{y}{2}\,\frac{1+p^2}{p^2}\,\frac{dp}{dy}.

Step 3 — Separate variables

Cancel 1+p22\dfrac{1+p^2}{2} from both sides (it is non-zero):

1p=yp2dpdy    dyy=dpp.\frac1p=-\frac{y}{p^2}\,\frac{dp}{dy}\;\Rightarrow\;\frac{dy}{y}=-\frac{dp}{p}.

Integrate: lny=lnp+const\ln y=-\ln p+\text{const}, i.e. yp=cyp=c (a constant). Thus p=cyp=\dfrac{c}{y}.

Step 4 — Eliminate pp

Substitute p=c/yp=c/y into x=y(1p2)2px=\dfrac{y(1-p^2)}{2p}:

x=y(1c2/y2)2c/y=y2c22c    2cx=y2c2.x=\frac{y\big(1-c^2/y^2\big)}{2c/y}=\frac{y^2-c^2}{2c}\;\Rightarrow\;2cx=y^2-c^2.   y2=2cx+c2  (c an arbitrary constant).\boxed{\;y^2=2cx+c^2\;}\qquad(c\ \text{an arbitrary constant}).

Geometrically this is a one-parameter family of parabolas with axis along the xx-axis.

Verification

$ python3 -c "import sympy as sp; x,c=sp.symbols('x c'); y=sp.sqrt(c*(2*x+c)); p=sp.diff(y,x); print(sp.simplify(p**2*y**2+2*p*x*y-y**2))"
# 0

Substituting y2=2cx+c2y^2=2cx+c^2 (so yy=cy\,y'=c, p=c/yp=c/y) into yp2+2xpyyp^2+2xp-y gives 00 identically. ✓

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.