Skip to content
Worked Examples · Example 10

Q.Show that the differential equation (x−y)dydx=x+2y(x - y)\frac{dy}{dx} = x + 2y is homogeneous and solve it.

Uttar Pradesh UpmspTextbookSubjective· 3mImportance★★★★★
26% · 57/222 Questions
✓ Free question

The equation is homogeneous; y=vxy=vx separates it, and the general solution is log⁡∣x2+xy+y2∣−23 tan⁡−1 ⁣x+2y3 x=C\log|x^2+xy+y^2|-2\sqrt3\,\tan^{-1}\!\frac{x+2y}{\sqrt3\,x}=C.

Show it is homogeneous

dydx=x+2yx−y.\frac{dy}{dx}=\frac{x+2y}{x-y}.

Numerator and denominator are both degree 1, so dividing by xx leaves only the ratio y/xy/x:

dydx=1+2(y/x)1−(y/x)=F ⁣(yx).\frac{dy}{dx}=\frac{1+2(y/x)}{1-(y/x)}=F\!\left(\frac{y}{x}\right).

That is the homogeneous form.

Substitute y=vxy=vx

With dydx=v+xdvdx\frac{dy}{dx}=v+x\frac{dv}{dx},

v+xdvdx=1+2v1−v.v+x\frac{dv}{dx}=\frac{1+2v}{1-v}.

Subtract vv:

xdvdx=1+2v−v(1−v)1−v=v2+v+11−v.x\frac{dv}{dx}=\frac{1+2v-v(1-v)}{1-v}=\frac{v^2+v+1}{1-v}.

Separate

1−vv2+v+1 dv=dxx.\frac{1-v}{v^2+v+1}\,dv=\frac{dx}{x}.

Integrate the left side

Split the numerator using the derivative of the denominator, 2v+12v+1:

1−v=−12(2v+1)+32.1-v=-\tfrac12(2v+1)+\tfrac32.

Then

∫1−vv2+v+1 dv=−12log⁡(v2+v+1)+32∫dvv2+v+1.\int\frac{1-v}{v^2+v+1}\,dv=-\tfrac12\log(v^2+v+1)+\tfrac32\int\frac{dv}{v^2+v+1}.

Completing the square, v2+v+1=(v+12)2+34v^2+v+1=\left(v+\tfrac12\right)^2+\tfrac34, so

∫dvv2+v+1=23tan⁡−1 ⁣2v+13,\int\frac{dv}{v^2+v+1}=\frac{2}{\sqrt3}\tan^{-1}\!\frac{2v+1}{\sqrt3},

and the left integral is

−12log⁡(v2+v+1)+3 tan⁡−1 ⁣2v+13.-\tfrac12\log(v^2+v+1)+\sqrt3\,\tan^{-1}\!\frac{2v+1}{\sqrt3}.

Equating to ∫dxx=log⁡∣x∣+C\int\frac{dx}{x}=\log|x|+C:

−12log⁡(v2+v+1)+3 tan⁡−1 ⁣2v+13=log⁡∣x∣+C.-\tfrac12\log(v^2+v+1)+\sqrt3\,\tan^{-1}\!\frac{2v+1}{\sqrt3}=\log|x|+C.

Return to x,yx,y

With v=yxv=\frac{y}{x}, v2+v+1=x2+xy+y2x2v^2+v+1=\dfrac{x^2+xy+y^2}{x^2}, so

−12log⁡(x2+xy+y2)+log⁡∣x∣+3 tan⁡−1 ⁣2y+x3 x=log⁡∣x∣+C.-\tfrac12\log(x^2+xy+y^2)+\log|x|+\sqrt3\,\tan^{-1}\!\frac{2y+x}{\sqrt3\,x}=\log|x|+C.

The log⁡∣x∣\log|x| terms cancel; multiplying by −2-2,

log⁡∣x2+xy+y2∣−23 tan⁡−1 ⁣x+2y3 x=C.\log|x^2+xy+y^2|-2\sqrt3\,\tan^{-1}\!\frac{x+2y}{\sqrt3\,x}=C.

✓Final answer

log⁡∣x2+xy+y2∣−23 tan⁡−1 ⁣(x+2y3 x)=C\log\left|x^2+xy+y^2\right|-2\sqrt3\,\tan^{-1}\!\left(\dfrac{x+2y}{\sqrt3\,x}\right)=C, CC an arbitrary constant.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.