Class 12 Maths, Worked in Full Past papersGet updates
Chapter 9 · Differential Equations

Exercise 9.4 · Q3: Homogeneous: (x−y) dy−(x+y) dx=0(x - y)\,dy - (x + y)\,dx = 0

Exercise 9.4Homogeneous differential equations · Section 9.4.2
The question

In each of the Exercises 1 to 10, show that the given differential equation is homogeneous and solve each of them.

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

Exam answer

For x≠yx \ne y⁠, the equation can be written as

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

Then

F(λx,λy)=λ(x+y)λ(x−y)=λ0⋅F(x,y)\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda(x + y)}{\lambda(x - y)} \\ &= \lambda^0\cdot F(x, y) \end{aligned}

So FF is homogeneous of degree zero, and the equation is homogeneous.

Put y=vxy = vx⁠. Then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠.

v+xdvdx=1+v1−vxdvdx=1+v1−v−v=1+v21−v\begin{aligned} v + x\frac{dv}{dx} &= \frac{1 + v}{1 - v} \\ x\frac{dv}{dx} &= \frac{1 + v}{1 - v} - v \\ &= \frac{1 + v^2}{1 - v} \end{aligned}

Separating the variables,

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

Integrating both sides,

∫dv1+v2−12∫2v dv1+v2=∫dxx\begin{aligned} &\int\frac{dv}{1 + v^2} - \frac12\int\frac{2v\,dv}{1 + v^2} \\ &= \int\frac{dx}{x} \end{aligned} tan⁡−1v−12log⁡(1+v2)=log⁡∣x∣+C\begin{aligned} &\tan^{-1}v - \frac12\log(1 + v^2) \\ &= \log|x| + C \end{aligned}

Putting v=yxv = \frac{y}{x} and using log⁡∣x∣=12log⁡x2\log|x| = \frac12\log x^2⁠,

tan⁡−1yx=12log⁡(1+y2x2)+12log⁡x2+C=12log⁡[x2+y2x2⋅x2]+C\begin{aligned} &\tan^{-1}\frac{y}{x} \\ &= \frac12\log\left(1 + \frac{y^2}{x^2}\right) \\ &\quad + \frac12\log x^2 + C \\ &= \frac12\log\left[\frac{x^2 + y^2}{x^2}\cdot x^2\right] + C \end{aligned}

∴\therefore tan⁡−1(yx)\tan^{-1}\left(\dfrac{y}{x}\right) =12log⁡(x2+y2)+C= \dfrac12\log(x^2 + y^2) + C is the general solution.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Both x+yx + y and x−yx - y have degree 1, so the slope x+yx−y\frac{x + y}{x - y} depends only on yx\frac{y}{x}⁠: the equation is homogeneous and y=vxy = vx separates it. The vv-integral 1−v1+v2\frac{1 - v}{1 + v^2} splits into a tan⁡−1\tan^{-1} part and a log part. In polar coordinates the answer is θ=log⁡r+C\theta = \log r + C⁠: the solution curves are spirals.

Given, to find, and the plan
Given
(x−y) dy−(x+y) dx=0(x - y)\,dy - (x + y)\,dx = 0⁠.
To show and find
That the equation is homogeneous; then its general solution.
Plan
(1) Write it as dydx=F(x,y)\frac{dy}{dx} = F(x, y)⁠. (2) Show F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)⁠. (3) Put y=vxy = vx⁠. (4) Simplify to xdvdx=…x\frac{dv}{dx} = \ldots⁠. (5) Separate. (6) Integrate. (7) Put v=yxv = \frac{y}{x} back. (8) Check by implicit differentiation, and look at the curves.

Basics you need

1Homogeneous functions and equations

F(x,y)F(x, y) is homogeneous of degree nn if F(λx,λy)=λnF(x,y)F(\lambda x, \lambda y) = \lambda^nF(x, y) for every nonzero λ\lambda⁠. The equation dydx=F(x,y)\frac{dy}{dx} = F(x, y) is homogeneous when FF has degree zero (Section 9.4.2). Basics: scale x and y together

2The substitution y=vxy = vx

By the product rule dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠; the equation becomes xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v⁠, which separates (Section 9.4.2, equations (2) to (6)). Lesson: homogeneous equations, put y = vx

3Three integrals

∫dv1+v2=tan⁡−1v+C\int\frac{dv}{1 + v^2} = \tan^{-1}v + C (Section 7.2, formula (x)), ∫2v1+v2 dv=log⁡(1+v2)+C\int\frac{2v}{1 + v^2}\,dv = \log(1 + v^2) + C (substitution t=1+v2t = 1 + v^2⁠), and ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C⁠. Basics: every method ends with an integral

4Log rules

log⁡∣x∣=12log⁡x2\log|x| = \frac12\log x^2 (since x2=∣x∣2x^2 = |x|^2⁠), and log⁡a+log⁡b=log⁡ab\log a + \log b = \log ab for a,b>0a, b > 0⁠. Basics: e and log

Solution

  1. Write the equation as dydx=F(x,y)\frac{dy}{dx} = F(x, y)

    Move (x+y) dx(x + y)\,dx across and divide by (x−y) dx(x - y)\,dx⁠, for x≠yx \ne y⁠:

    dydx=x+yx−y=F(x,y).…(1)\frac{dy}{dx} = \frac{x + y}{x - y} = F(x, y).\quad\ldots(1)
    Dividing by x−yx - y loses no solution: at a point of the line y=xy = x (with x≠0x \ne 0⁠) the given equation reads 0⋅dy=2x dx0\cdot dy = 2x\,dx⁠, which forces dx=0dx = 0⁠, a vertical tangent. So no solution y(x)y(x) with a finite slope passes through such a point. We also need x≠0x \ne 0 for v=yxv = \frac{y}{x}⁠.
    Section 9.4.2: a homogeneous equation has the form dydx=F(x,y)\frac{dy}{dx} = F(x, y)⁠. Lesson: homogeneous equations
  2. Show that it is homogeneous: F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)

    For any λ≠0\lambda \ne 0⁠:

    F(λx,λy)=λx+λyλx−λy=λ(x+y)λ(x−y)=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda x + \lambda y}{\lambda x - \lambda y} = \frac{\lambda(x + y)}{\lambda(x - y)} \\ &= \lambda^0\cdot F(x, y). \end{aligned}

    So FF is homogeneous of degree zero, and (1) is a homogeneous differential equation.

    Top and bottom have degree 1, so λ\lambda cancels. Dividing top and bottom by xx gives F=1+y/x1−y/xF = \frac{1 + y/x}{1 - y/x}⁠, a function of yx\frac{y}{x} alone.
    Section 9.4.2: definition of a homogeneous function of degree nn⁠. Basics: scale x and y together
  3. Substitute y=vxy = vx

    Put y=vxy = vx⁠. Then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠, and (1) becomes

    v+xdvdx=x+vxx−vx=1+v1−v.v + x\frac{dv}{dx} = \frac{x + vx}{x - vx} = \frac{1 + v}{1 - v}.
    Divide top and bottom by x≠0x \ne 0⁠: the right side becomes a function of vv only.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=…x\frac{dv}{dx} = \ldots

    xdvdx=1+v1−v−v=1+v−v+v21−v=1+v21−v.\begin{aligned} x\frac{dv}{dx} &= \frac{1 + v}{1 - v} - v = \frac{1 + v - v + v^2}{1 - v} \\ &= \frac{1 + v^2}{1 - v}. \end{aligned}
    Write vv over the common denominator 1−v1 - v⁠: v(1−v)=v−v2v(1 - v) = v - v^2⁠, and 1+v−(v−v2)=1+v21 + v - (v - v^2) = 1 + v^2⁠.
    Section 9.4.2, equation (4). Lesson: homogeneous equations
  5. Separate vv and xx

    1−v1+v2 dv=dxx.\frac{1 - v}{1 + v^2}\,dv = \frac{dx}{x}.
    Multiply by 1−v1+v2\frac{1 - v}{1 + v^2} and divide by xx⁠. Since 1+v2≥11 + v^2 \ge 1 is never zero, this division sets no solution aside; v≠1v \ne 1 and x≠0x \ne 0 were assumed already.
    Section 9.4.2, equation (5). Basics: dy = y′ dx
  6. Integrate: a tan⁡−1\tan^{-1} part and a log part

    Split the fraction and integrate each piece:

    ∫1−v1+v2 dv=∫dv1+v2−12∫2v dv1+v2=tan⁡−1v−12log⁡(1+v2).\begin{aligned} &\int\frac{1 - v}{1 + v^2}\,dv \\ &= \int\frac{dv}{1 + v^2} - \frac12\int\frac{2v\,dv}{1 + v^2} \\ &= \tan^{-1}v - \frac12\log(1 + v^2). \end{aligned}

    With ∫dxx=log⁡∣x∣\int\frac{dx}{x} = \log|x| and one constant CC⁠:

    tan⁡−1v−12log⁡(1+v2)=log⁡∣x∣+C.…(2)\begin{aligned} &\tan^{-1}v - \frac12\log(1 + v^2) \\ &= \log|x| + C.\quad\ldots(2) \end{aligned}

    Check by differentiating the left side with respect to vv⁠:

    11+v2−12⋅2v1+v2=1−v1+v2.\frac{1}{1 + v^2} - \frac12\cdot\frac{2v}{1 + v^2} = \frac{1 - v}{1 + v^2}.
    The top 2v2v is the derivative of 1+v21 + v^2⁠, so that piece is a log (substitution t=1+v2t = 1 + v^2⁠); 1+v2>01 + v^2 > 0⁠, so no bars are needed there. The check returns the integrand.
    Section 7.2, formulas (x) and (xii); substitution, Section 7.3.1. Basics: every method ends with an integral
  7. Put v=yxv = \frac{y}{x} back and tidy up

    Move the log to the right and use log⁡∣x∣=12log⁡x2\log|x| = \frac12\log x^2⁠:

    tan⁡−1yx=12log⁡(1+y2x2)+12log⁡x2+C=12log⁡(x2+y2x2⋅x2)+C=12log⁡(x2+y2)+C.\begin{aligned} \tan^{-1}\frac{y}{x} &= \frac12\log\left(1 + \frac{y^2}{x^2}\right) \\ &\quad + \frac12\log x^2 + C \\ &= \frac12\log\left(\frac{x^2 + y^2}{x^2}\cdot x^2\right) + C \\ &= \frac12\log(x^2 + y^2) + C. \end{aligned}
    Both log arguments are positive, so they combine into one log. The answer holds for x≠0x \ne 0⁠, y≠xy \ne x⁠; CC is the one arbitrary constant.
    log⁡a+log⁡b=log⁡ab\log a + \log b = \log ab for a,b>0a, b > 0⁠. Basics: one constant for order 1
  8. Check, and see the curves

    Differentiate the answer with respect to xx (implicitly):

    ddxtan⁡−1yx=11+y2x2⋅xy′−yx2=xy′−yx2+y2,\begin{aligned} &\frac{d}{dx}\tan^{-1}\frac{y}{x} \\ &= \frac{1}{1 + \frac{y^2}{x^2}}\cdot\frac{xy' - y}{x^2} = \frac{xy' - y}{x^2 + y^2}, \end{aligned} ddx 12log⁡(x2+y2)=x+yy′x2+y2.\frac{d}{dx}\,\frac12\log(x^2 + y^2) = \frac{x + yy'}{x^2 + y^2}.

    Setting them equal: xy′−y=x+yy′xy' - y = x + yy'⁠, so (x−y) y′=x+y(x - y)\,y' = x + y⁠, the given equation.

    In polar coordinates x=rcos⁡θx = r\cos\theta⁠, y=rsin⁡θy = r\sin\theta with x>0x > 0⁠, we have tan⁡−1yx=θ\tan^{-1}\frac{y}{x} = \theta and 12log⁡(x2+y2)=log⁡r\frac12\log(x^2 + y^2) = \log r⁠, so the answer reads θ=log⁡r+C\theta = \log r + C⁠, that is r=eθ−Cr = e^{\theta - C}⁠: a spiral that winds out as θ\theta grows.

    X Y X′ Y′ (1, 0) (−1, 0) y = x O
    Slope field of dydx=x+yx−y\frac{dy}{dx} = \frac{x + y}{x - y} with equal scales. The solution through (1,0)(1, 0) is the spiral r=eθr = e^{\theta}⁠; turning it through 180∘180^\circ gives the solution r=eθ−πr = e^{\theta - \pi} through (−1,0)(-1, 0)⁠. Each turns vertical where it meets the dashed line y=xy = x⁠.
    The relation gives back the equation, so it is the general solution. On the left half-plane x<0x < 0⁠, tan⁡−1yx=θ−π\tan^{-1}\frac{y}{x} = \theta - \pi⁠, so a whole spiral is described by values of CC that differ by π\pi on the two sides of the yy-axis; each piece is a solution on its own half-plane.
    Implicit differentiation; ddutan⁡−1u=11+u2\frac{d}{du}\tan^{-1}u = \frac{1}{1 + u^2} (Chapter 5). Basics: a rule for slopes
Result

The equation is homogeneous, since F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y)⁠. Its general solution is tan⁡−1(yx)=12log⁡(x2+y2)+C\tan^{-1}\left(\frac{y}{x}\right) = \frac12\log(x^2 + y^2) + C⁠, where CC is an arbitrary constant (x≠0x \ne 0⁠, x≠yx \ne y⁠). (Textbook answer: tan⁡−1(yx)=12log⁡(x2+y2)+C\tan^{-1}\left(\frac{y}{x}\right) = \frac12\log(x^2 + y^2) + C⁠.)

Check it with numbers

Take the curve through (1,0)(1, 0)⁠: tan⁡−10=12log⁡1+C\tan^{-1}0 = \frac12\log 1 + C⁠, so C=0C = 0 and the curve is r=eθr = e^{\theta}⁠. At θ=0.5\theta = 0.5 it passes through x=e0.5cos⁡0.5≈1.446889x = e^{0.5}\cos 0.5 \approx 1.446889⁠, y=e0.5sin⁡0.5≈0.790439y = e^{0.5}\sin 0.5 \approx 0.790439⁠. There tan⁡−1yx=0.5\tan^{-1}\frac{y}{x} = 0.5 and 12log⁡(x2+y2)=12log⁡e=0.5\frac12\log(x^2 + y^2) = \frac12\log e = 0.5⁠: both sides agree.

The equation gives the slope x+yx−y≈2.2373280.656450≈3.408223\frac{x + y}{x - y} \approx \frac{2.237328}{0.656450} \approx 3.408223⁠. Along the spiral, r′=rr' = r⁠, so its slope is sin⁡0.5+cos⁡0.5cos⁡0.5−sin⁡0.5≈1.3570080.398157≈3.408223\frac{\sin 0.5 + \cos 0.5}{\cos 0.5 - \sin 0.5} \approx \frac{1.357008}{0.398157} \approx 3.408223⁠. They agree.

Common mistakes
  1. Getting the sign of dydx\frac{dy}{dx} wrong: (x−y) dy=(x+y) dx(x - y)\,dy = (x + y)\,dx gives x+yx−y\frac{x + y}{x - y}⁠, not x−yx+y\frac{x - y}{x + y}⁠.
  2. Integrating 1−v1+v2\frac{1 - v}{1 + v^2} in one go. Split it: 11+v2\frac{1}{1 + v^2} gives tan⁡−1v\tan^{-1}v⁠, and v1+v2\frac{v}{1 + v^2} gives 12log⁡(1+v2)\frac12\log(1 + v^2)⁠.
  3. Forgetting the log⁡∣x∣\log|x| when tidying: it is what turns 12log⁡(1+y2x2)\frac12\log\left(1 + \frac{y^2}{x^2}\right) into 12log⁡(x2+y2)\frac12\log(x^2 + y^2)⁠.
What to take away
  1. Homogeneous: F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y)⁠; then y=vxy = vx and separate.
  2. linear1+v2\frac{\text{linear}}{1 + v^2} splits into tan⁡−1v\tan^{-1}v and 12log⁡(1+v2)\frac12\log(1 + v^2)⁠.
  3. log⁡∣x∣=12log⁡x2\log|x| = \frac12\log x^2 is the tool for combining with log⁡(x2+y2)\log(x^2 + y^2)⁠.

Every fact used, and where it comes from

FactUsed inSource
Homogeneous function of degree nn⁠; homogeneous equation when FF has degree zeroSteps 1, 2Section 9.4.2 (Basics)
y=vxy = vx⁠, dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠; xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v⁠; separate and integrateSteps 3, 4, 5, 6Section 9.4.2, equations (1) to (6) (Lesson)
∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1 + x^2} = \tan^{-1}x + C⁠; ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formulas (x) and (xii) (Basics)
Integration by substitution, t=1+v2t = 1 + v^2Step 6Section 7.3.1
log⁡∣x∣=12log⁡x2\log|x| = \frac12\log x^2⁠; log⁡a+log⁡b=log⁡ab\log a + \log b = \log abStep 7Chapter 5, Section 5.4 (Basics)
Implicit differentiation; ddutan⁡−1u=11+u2\frac{d}{du}\tan^{-1}u = \frac{1}{1 + u^2}Step 8Chapter 5, Sections 5.3.2 and 5.3.3 (Basics)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →