Skip to content
Exercise 9.4 · Q3

Q.Solve the following differential equation: (x−y)dy−(x+y)dx=0(x - y) dy - (x + y) dx = 0

Yanam BieapTextbookSubjective· 3mImportance★★★★★
Appeared in past exams:COMEDK 2025· Set 2025-M· 1mexact
31% · 68/222 Questions
✓ Free question

This is a homogeneous differential equation — the substitution y=vxy = vx (or x=vyx = vy) reduces it to a separable form. The general solution is tan⁡−1(yx)=12log⁡(x2+y2)+C\boxed{\tan^{-1}\left(\frac{y}{x}\right) = \frac{1}{2}\log(x^2 + y^2) + C}.

Why the homogeneous approach works

A differential equation of the form M(x,y) dx+N(x,y) dy=0M(x,y)\,dx + N(x,y)\,dy = 0 is homogeneous if MM and NN are homogeneous functions of the same degree — meaning each term has the same total power of xx and yy. Here, every term in (x−y)dy−(x+y)dx=0(x-y)dy - (x+y)dx = 0 is of degree 1: xx, yy each appear linearly.

The key insight: when both MM and NN are homogeneous of degree nn, the ratio dydx\frac{dy}{dx} depends only on yx\frac{y}{x}. That lets us substitute y=vxy = vx, turning the equation into one where variables separate cleanly. No guesswork — it’s a standard, reliable method.


Step-by-step solution

1. Rewrite in standard form

Start with

(x−y) dy−(x+y) dx=0(x - y)\,dy - (x + y)\,dx = 0

Bring the dxdx term to the other side:

(x−y) dy=(x+y) dx(x - y)\,dy = (x + y)\,dx

Divide through by dxdx (assuming x≠0x \neq 0):

(x−y) dydx=x+y(x - y)\,\frac{dy}{dx} = x + y

So

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

This is our working form.

2. Confirm homogeneity

The right-hand side is a ratio of two degree‑1 expressions. Divide numerator and denominator by xx:

dydx=1+yx1−yx\frac{dy}{dx} = \frac{1 + \frac{y}{x}}{1 - \frac{y}{x}}

It depends only on v=yxv = \frac{y}{x} — homogeneous, confirmed.

3. Substitute y=vxy = vx

Let y=vxy = vx, where vv is a function of xx. Then

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

Plug into the equation:

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

4. Separate variables

Subtract vv from both sides:

xdvdx=1+v1−v−vx\frac{dv}{dx} = \frac{1 + v}{1 - v} - v

Combine the right-hand side over a common denominator:

1+v1−v−v=1+v−v(1−v)1−v=1+v−v+v21−v=1+v21−v\frac{1 + v}{1 - v} - v = \frac{1 + v - v(1 - v)}{1 - v} = \frac{1 + v - v + v^2}{1 - v} = \frac{1 + v^2}{1 - v}

Thus

xdvdx=1+v21−vx\frac{dv}{dx} = \frac{1 + v^2}{1 - v}

Separate:

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

5. Integrate both sides

Left side:

∫1−v1+v2 dv=∫11+v2 dv−∫v1+v2 dv\int \frac{1 - v}{1 + v^2}\,dv = \int \frac{1}{1 + v^2}\,dv - \int \frac{v}{1 + v^2}\,dv

The first integral is tan⁡−1v\tan^{-1} v. For the second, let u=1+v2u = 1 + v^2, so du=2v dvdu = 2v\,dv and v dv=du2v\,dv = \frac{du}{2}:

∫v1+v2 dv=12∫duu=12log⁡∣u∣=12log⁡(1+v2)\int \frac{v}{1 + v^2}\,dv = \frac{1}{2}\int \frac{du}{u} = \frac{1}{2}\log|u| = \frac{1}{2}\log(1 + v^2)

(Since 1+v2>01+v^2 > 0, absolute value is unnecessary.)

Right side:

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

Putting it together:

tan⁡−1v−12log⁡(1+v2)=log⁡∣x∣+C\tan^{-1} v - \frac{1}{2}\log(1 + v^2) = \log|x| + C

6. Back-substitute v=yxv = \frac{y}{x}

tan⁡−1(yx)−12log⁡(1+y2x2)=log⁡∣x∣+C\tan^{-1}\left(\frac{y}{x}\right) - \frac{1}{2}\log\left(1 + \frac{y^2}{x^2}\right) = \log|x| + C

Simplify the log term:

1+y2x2=x2+y2x21 + \frac{y^2}{x^2} = \frac{x^2 + y^2}{x^2}

So

12log⁡(x2+y2x2)=12log⁡(x2+y2)−12log⁡(x2)=12log⁡(x2+y2)−log⁡∣x∣\frac{1}{2}\log\left(\frac{x^2 + y^2}{x^2}\right) = \frac{1}{2}\log(x^2 + y^2) - \frac{1}{2}\log(x^2) = \frac{1}{2}\log(x^2 + y^2) - \log|x|

Substitute back:

tan⁡−1(yx)−[12log⁡(x2+y2)−log⁡∣x∣]=log⁡∣x∣+C\tan^{-1}\left(\frac{y}{x}\right) - \left[\frac{1}{2}\log(x^2 + y^2) - \log|x|\right] = \log|x| + C

The −log⁡∣x∣-\log|x| on the left and +log⁡∣x∣+\log|x| on the right cancel:

tan⁡−1(yx)−12log⁡(x2+y2)=C\tan^{-1}\left(\frac{y}{x}\right) - \frac{1}{2}\log(x^2 + y^2) = C

7. Rearrange for the final form

tan⁡−1(yx)=12log⁡(x2+y2)+C\tan^{-1}\left(\frac{y}{x}\right) = \frac{1}{2}\log(x^2 + y^2) + C

(Note: the constant CC is arbitrary; its sign is absorbed.)

Watch out

A common mistake is forgetting to handle the vv term when substituting dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}. Skipping that step leads to an incorrect separable equation. Also, when integrating v1+v2\frac{v}{1+v^2}, don’t forget the factor 12\frac{1}{2}.

Tip

If you prefer, you can substitute x=vyx = vy instead — the algebra is symmetric and leads to the same result. Try it as an exercise.

✓Final answer

The general solution is tan⁡−1(yx)=12log⁡(x2+y2)+C\displaystyle \tan^{-1}\left(\frac{y}{x}\right) = \frac{1}{2}\log(x^2 + y^2) + C.

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.