← 2018 Paper 1
UPSC 2018 Maths Optional Paper 1 Q7d — Step-by-Step Solution
12 marks · Section B
Exact equations · ODEs · asked 9× in 13 yrs · Read the full method →
Question
Find α and β such that xαyβ is an integrating factor of (4y2+3xy)dx−(3xy+2x2)dy=0 and solve the equation.
Technique
Multiply by xαyβ, impose My∗=Nx∗, match monomial coefficients to get a 2×2 linear system for α,β; then integrate the now-exact equation.
Solution
Write Mdx+Ndy=0 with M=4y2+3xy and N=−(3xy+2x2).
Step 1 — Multiply by the trial factor and impose exactness
Let μ=xαyβ. Set M∗=xαyβ(4y2+3xy) and N∗=−xαyβ(3xy+2x2). Expand:
M∗=4xαyβ+2+3xα+1yβ+1,N∗=−3xα+1yβ+1−2xα+2yβ.
Exactness requires My∗=Nx∗:
My∗=4(β+2)xαyβ+1+3(β+1)xα+1yβ,
Nx∗=−3(α+1)xαyβ+1−2(α+2)xα+1yβ.
Step 2 — Match coefficients
Equate the coefficients of like monomials.
Coefficient of xαyβ+1: 4(β+2)=−3(α+1)⇒3α+4β+11=0.
Coefficient of xα+1yβ: 3(β+1)=−2(α+2)⇒2α+3β+7=0.
Solve the linear system:
{3α+4β=−112α+3β=−7⇒α=−5, β=1.
α=−5,β=1.μ=x−5y.
Step 3 — Make exact and integrate
With μ=x−5y:
M∗=4x−5y3+3x−4y2,N∗=−3x−4y2−2x−3y.
Find F with Fx=M∗. Integrate M∗ in x:
F=∫(4x−5y3+3x−4y2)dx=−x−4y3−x−3y2+g(y).
Then Fy=−3x−4y2−2x−3y+g′(y), which must equal N∗=−3x−4y2−2x−3y, forcing g′(y)=0.
Step 4 — General solution
F=−x4y3−x3y2=const,
so
x3y2+x4y3=Cequivalentlyxy2+y3=Cx4.
Verification
$ python3 -c "import sympy as sp; x,y=sp.symbols('x y'); M=x**-5*y*(4*y**2+3*x*y); N=x**-5*y*(-(3*x*y+2*x**2)); print(sp.simplify(sp.diff(M,y)-sp.diff(N,x))); F=sp.integrate(M,x); print(sp.simplify(F), sp.simplify(sp.diff(F,y)-N))"
# 0
# y**2*(-x - y)/x**4 0
With α=−5,β=1 the equation is exact (My∗−Nx∗=0) and the potential is F=−x4y2(x+y), giving x3y2+x4y3=C. ✓