← 2015 Paper 1

UPSC 2015 Maths Optional Paper 1 Q5b — Step-by-Step Solution

10 marks · Section B

Exact equations · ODEs · asked 9× in 13 yrs · Read the full method →

Question

Solve the differential equation:

(2xy4ey+2xy3+y)dx+(x2y4eyx2y23x)dy=0.(2xy^4 e^y+2xy^3+y)\,dx+(x^2 y^4 e^y-x^2 y^2-3x)\,dy=0.

Technique

Exactness test; integrating factor depending on yy found via (NxMy)/M(N_x-M_y)/M being a function of yy alone (the planted structure M=y()M=y\cdot(\cdots) and NxMy=4()N_x-M_y=-4\cdot(\cdots) makes the ratio 4/y-4/y clean); reconstruct potential FF by partial integration.

Solution

Strategy. Check exactness; if not exact, look for an integrating factor depending only on yy (or only on xx).

Let M=2xy4ey+2xy3+yM=2xy^4 e^y+2xy^3+y, N=x2y4eyx2y23xN=x^2 y^4 e^y-x^2 y^2-3x.

Step 1 — Test exactness

My=y(2xy4ey+2xy3+y)=2x(4y3ey+y4ey)+6xy2+1=2xy3ey(4+y)+6xy2+1.M_y=\dfrac{\partial}{\partial y}(2xy^4 e^y+2xy^3+y)=2x(4y^3 e^y+y^4 e^y)+6xy^2+1=2xy^3 e^y(4+y)+6xy^2+1. Nx=x(x2y4eyx2y23x)=2xy4ey2xy23.N_x=\dfrac{\partial}{\partial x}(x^2 y^4 e^y-x^2 y^2-3x)=2xy^4 e^y-2xy^2-3.

MyNxM_y\ne N_x, not exact.

Step 2 — Integrating factor depending on yy alone

For μ=μ(y)\mu=\mu(y):

dlnμdy=NxMyM.\dfrac{d\ln\mu}{dy}=\dfrac{N_x-M_y}{M}.

Compute NxMyN_x-M_y:

NxMy=2xy4ey2xy232xy3ey(4+y)6xy21.N_x-M_y=2xy^4 e^y-2xy^2-3-2xy^3 e^y(4+y)-6xy^2-1.

Simplify 2xy4ey2xy3ey(4+y)=2xy3ey(y(4+y))=2xy3ey(4)=8xy3ey2xy^4 e^y-2xy^3 e^y(4+y)=2xy^3 e^y(y-(4+y))=2xy^3 e^y(-4)=-8xy^3 e^y.

And 2xy26xy2=8xy2-2xy^2-6xy^2=-8xy^2.

And 31=4-3-1=-4.

So NxMy=8xy3ey8xy24=4(2xy3ey+2xy2+1)N_x-M_y=-8xy^3 e^y-8xy^2-4=-4(2xy^3 e^y+2xy^2+1).

Compare with M=2xy4ey+2xy3+y=y(2xy3ey+2xy2+1)M=2xy^4 e^y+2xy^3+y=y(2xy^3 e^y+2xy^2+1).

So NxMyM=4(2xy3ey+2xy2+1)y(2xy3ey+2xy2+1)=4y\dfrac{N_x-M_y}{M}=\dfrac{-4(2xy^3 e^y+2xy^2+1)}{y(2xy^3 e^y+2xy^2+1)}=\dfrac{-4}{y}.

Yes — function of yy alone. So IF is

μ(y)=exp ⁣4ydy=exp(4lny)=y4=1y4.\mu(y)=\exp\!\int\dfrac{-4}{y}\,dy=\exp(-4\ln|y|)=y^{-4}=\dfrac{1}{y^4}.

Step 3 — Multiply by μ\mu

New M~=My4=2xy4ey+2xy3+yy4=2xey+2xy+1y3\tilde M=\dfrac{M}{y^4}=\dfrac{2xy^4 e^y+2xy^3+y}{y^4}=2xe^y+\dfrac{2x}{y}+\dfrac{1}{y^3}.

New N~=Ny4=x2y4eyx2y23xy4=x2eyx2y23xy4\tilde N=\dfrac{N}{y^4}=\dfrac{x^2 y^4 e^y-x^2 y^2-3x}{y^4}=x^2 e^y-\dfrac{x^2}{y^2}-\dfrac{3x}{y^4}.

Step 4 — Verify exactness of (M~,N~)(\tilde M,\tilde N)

M~y=y(2xey+2x/y+1/y3)=2xey2xy23y4.\tilde M_y=\dfrac{\partial}{\partial y}\bigl(2xe^y+2x/y+1/y^3\bigr)=2xe^y-\dfrac{2x}{y^2}-\dfrac{3}{y^4}. N~x=x(x2eyx2/y23x/y4)=2xey2xy23y4.\tilde N_x=\dfrac{\partial}{\partial x}\bigl(x^2 e^y-x^2/y^2-3x/y^4\bigr)=2xe^y-\dfrac{2x}{y^2}-\dfrac{3}{y^4}.

Equal ✓. Exact.

Step 5 — Find potential FF

Fx=M~=2xey+2xy+1y3F_x=\tilde M=2xe^y+\dfrac{2x}{y}+\dfrac{1}{y^3}.

Integrate w.r.t. xx:

F=x2ey+x2y+xy3+g(y).F=x^2 e^y+\dfrac{x^2}{y}+\dfrac{x}{y^3}+g(y).

Differentiate w.r.t. yy and compare with N~\tilde N:

Fy=x2eyx2y23xy4+g(y).F_y=x^2 e^y-\dfrac{x^2}{y^2}-\dfrac{3x}{y^4}+g'(y).

Compare with N~=x2eyx2y23xy4\tilde N=x^2 e^y-\dfrac{x^2}{y^2}-\dfrac{3x}{y^4}: g(y)=0g'(y)=0, so g(y)=g(y)= const.

Step 6 — General solution

Answer

  x2ey+x2y+xy3=C.  \boxed{\;x^2 e^y+\dfrac{x^2}{y}+\dfrac{x}{y^3}=C.\;}
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.