← 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: (dxdy)2y+2dxdyx−y=0.
Technique
Equation linear in x → solve for x, differentiate w.r.t. y using dx/dy=1/p, separate to get yp=c, eliminate p.
Solution
Write p=dxdy, so the equation is yp2+2xp−y=0.
Step 1 — Solve for x (the equation is linear in x)
Although it is quadratic in p, it is linear in x, which is the cleaner route:
2xp=y−yp2⇒x=2py(1−p2).
Step 2 — Differentiate with respect to y
Use dydx=p1. Differentiate x=2py(1−p2)=2py−2yp:
dydx=2p1−2p2ydydp−2p−2ydydp.
Set this equal to p1:
p1=2p1−2p−2y(p21+1)dydp.
Move terms:
p1−2p1+2p=−2yp21+p2dydp⇒2p1+2p=2p1+p2=−2yp21+p2dydp.
Step 3 — Separate variables
Cancel 21+p2 from both sides (it is non-zero):
p1=−p2ydydp⇒ydy=−pdp.
Integrate: lny=−lnp+const, i.e. yp=c (a constant). Thus p=yc.
Step 4 — Eliminate p
Substitute p=c/y into x=2py(1−p2):
x=2c/yy(1−c2/y2)=2cy2−c2⇒2cx=y2−c2.
y2=2cx+c2(c an arbitrary constant).
Geometrically this is a one-parameter family of parabolas with axis along the x-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+c2 (so yy′=c, p=c/y) into yp2+2xp−y gives 0 identically. ✓