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

Exercise 9.4 · Q6: Homogeneous: x dy−y dx=x2+y2 dxx\,dy - y\,dx = \sqrt{x^2 + y^2}\,dx

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.

6. x dy−y dx=x2+y2 dxx\,dy - y\,dx = \sqrt{x^2 + y^2}\,dx

Exam answer

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

dydx=y+x2+y2x=F(x,y)\frac{dy}{dx} = \frac{y + \sqrt{x^2 + y^2}}{x} = F(x, y)

Then, for λ>0\lambda > 0⁠,

F(λx,λy)=λy+λ2x2+λ2y2λx=λ(y+x2+y2)λx=λ0⋅F(x,y)\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda y + \sqrt{\lambda^2x^2 + \lambda^2y^2}}{\lambda x} \\ &= \frac{\lambda\left(y + \sqrt{x^2 + y^2}\right)}{\lambda x} \\ &= \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}⁠, and, taking x>0x > 0⁠, x2+y2=x1+v2\sqrt{x^2 + y^2} = x\sqrt{1 + v^2}⁠.

v+xdvdx=v+1+v2xdvdx=1+v2\begin{aligned} v + x\frac{dv}{dx} &= v + \sqrt{1 + v^2} \\ x\frac{dv}{dx} &= \sqrt{1 + v^2} \end{aligned}

Separating the variables,

dv1+v2=dxx\frac{dv}{\sqrt{1 + v^2}} = \frac{dx}{x}

Integrating both sides, using ∫dvv2+1=log⁡∣v+v2+1∣\int\frac{dv}{\sqrt{v^2 + 1}} = \log\left|v + \sqrt{v^2 + 1}\right|⁠,

log⁡∣v+1+v2∣=log⁡∣x∣+log⁡∣C∣\begin{aligned} &\log\left|v + \sqrt{1 + v^2}\right| \\ &= \log|x| + \log|C| \end{aligned}

So v+1+v2=Cxv + \sqrt{1 + v^2} = Cx (the sign goes into CC⁠). Putting v=yxv = \frac{y}{x}⁠,

y+x2+y2x=Cx\frac{y + \sqrt{x^2 + y^2}}{x} = Cx

∴\therefore y+x2+y2=Cx2y + \sqrt{x^2 + y^2} = Cx^2 is the general solution.

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

The one idea this problem is built on

yy and x2+y2\sqrt{x^2 + y^2} both grow like a length: scale xx and yy by λ>0\lambda > 0 and each is multiplied by λ\lambda⁠. So the slope y+x2+y2x\frac{y + \sqrt{x^2 + y^2}}{x} depends only on yx\frac{y}{x} (on each side of the yy-axis), and y=vxy = vx separates the equation. The square root needs one careful detail: x2=∣x∣\sqrt{x^2} = |x|⁠, not xx⁠.

Given, to find, and the plan
Given
x dy−y dx=x2+y2 dxx\,dy - y\,dx = \sqrt{x^2 + y^2}\,dx⁠.
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)⁠, minding λ2=∣λ∣\sqrt{\lambda^2} = |\lambda|⁠. (3) Put y=vxy = vx⁠, first for x>0x > 0⁠. (4) Simplify. (5) Separate. (6) Integrate with Section 7.4, formula (6). (7) Put v=yxv = \frac{y}{x} back. (8) Do x<0x < 0⁠, check, and draw the parabolas.

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 nonzero λ\lambda⁠; the equation dydx=F(x,y)\frac{dy}{dx} = F(x, y) is homogeneous when FF has degree zero, that is, when FF is a function of yx\frac{y}{x} (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

3Square roots

a2=∣a∣\sqrt{a^2} = |a|⁠. So x2+v2x2=∣x∣1+v2\sqrt{x^2 + v^2x^2} = |x|\sqrt{1 + v^2}⁠, which is x1+v2x\sqrt{1 + v^2} only when x>0x > 0⁠.

4A standard integral

∫dvv2+a2=log⁡∣v+v2+a2∣+C\int\frac{dv}{\sqrt{v^2 + a^2}} = \log\left|v + \sqrt{v^2 + a^2}\right| + C (Section 7.4, formula (6)); here a=1a = 1⁠. Basics: every method ends with an integral

Solution

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

    Move y dxy\,dx to the right and divide by x dxx\,dx⁠, for x≠0x \ne 0⁠:

    dydx=y+x2+y2x=F(x,y).…(1)\begin{aligned} \frac{dy}{dx} &= \frac{y + \sqrt{x^2 + y^2}}{x} \\ &= F(x, y).\quad\ldots(1) \end{aligned}
    We need x≠0x \ne 0 for v=yxv = \frac{y}{x}⁠, so we solve on x>0x > 0 and on x<0x < 0⁠. Dividing by xx does not lose solutions: Step 8 shows that the answer even joins up across x=0x = 0⁠.
    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

    Replace xx by λx\lambda x and yy by λy\lambda y⁠. Since λ2(x2+y2)=∣λ∣x2+y2\sqrt{\lambda^2(x^2 + y^2)} = |\lambda|\sqrt{x^2 + y^2}⁠, for λ>0\lambda > 0⁠:

    F(λx,λy)=λy+λx2+y2λx=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda y + \lambda\sqrt{x^2 + y^2}}{\lambda x} \\ &= \lambda^0\cdot F(x, y). \end{aligned}

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

    A careful remark: for λ<0\lambda < 0 the root gives −λx2+y2-\lambda\sqrt{x^2 + y^2}⁠, and F(λx,λy)=y−x2+y2xF(\lambda x, \lambda y) = \frac{y - \sqrt{x^2 + y^2}}{x}⁠, which is not F(x,y)F(x, y)⁠. What really matters is the form F=g(yx)F = g\left(\frac{y}{x}\right)⁠, and that holds on each side of the yy-axis: for x>0x > 0⁠, F=yx+1+y2x2F = \frac{y}{x} + \sqrt{1 + \frac{y^2}{x^2}}⁠; for x<0x < 0⁠, F=yx−1+y2x2F = \frac{y}{x} - \sqrt{1 + \frac{y^2}{x^2}}⁠. So on each half-plane the equation is homogeneous in the sense of Section 9.4.2, and its method applies there.
    Section 9.4.2: definition of a homogeneous function, and F(x,y)=g(yx)F(x, y) = g\left(\frac{y}{x}\right)⁠. Basics: scale x and y together
  3. Substitute y=vxy = vx (first for x>0x > 0⁠)

    Put y=vxy = vx⁠, so dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠. For x>0x > 0⁠, x2+v2x2=x1+v2\sqrt{x^2 + v^2x^2} = x\sqrt{1 + v^2}⁠, and (1) becomes

    v+xdvdx=vx+x1+v2x=v+1+v2.\begin{aligned} v + x\frac{dv}{dx} &= \frac{vx + x\sqrt{1 + v^2}}{x} \\ &= v + \sqrt{1 + v^2}. \end{aligned}
    Taking xx out of the root as xx itself is right only because x>0x > 0 here. The case x<0x < 0 follows in Step 8.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=1+v2x\frac{dv}{dx} = \sqrt{1 + v^2}

    xdvdx=1+v2.x\frac{dv}{dx} = \sqrt{1 + v^2}.
    Subtract vv from both sides; the vv terms cancel.
    Section 9.4.2, equation (4). Lesson: homogeneous equations
  5. Separate vv and xx

    dv1+v2=dxx.\frac{dv}{\sqrt{1 + v^2}} = \frac{dx}{x}.
    Divide by 1+v2\sqrt{1 + v^2} and by xx⁠. Since 1+v2≥1\sqrt{1 + v^2} \ge 1 is never zero, this division sets no solution aside.
    Section 9.4.2, equation (5). Basics: dy = y′ dx
  6. Integrate, with the constant as log⁡∣C∣\log|C|

    By Section 7.4, formula (6) with a=1a = 1⁠:

    log⁡∣v+1+v2∣=log⁡∣x∣+log⁡∣C∣.…(2)\begin{aligned} &\log\left|v + \sqrt{1 + v^2}\right| \\ &= \log|x| + \log|C|.\quad\ldots(2) \end{aligned}

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

    1+v1+v2v+1+v2=1+v2+v1+v2(v+1+v2)=11+v2.\begin{aligned} &\frac{1 + \frac{v}{\sqrt{1 + v^2}}}{v + \sqrt{1 + v^2}} \\ &= \frac{\sqrt{1 + v^2} + v}{\sqrt{1 + v^2}\left(v + \sqrt{1 + v^2}\right)} \\ &= \frac{1}{\sqrt{1 + v^2}}. \end{aligned}
    The constant is written as log⁡∣C∣\log|C| (C≠0C \ne 0⁠) so that the logs combine. Note v+1+v2>0v + \sqrt{1 + v^2} > 0 for every vv⁠, because 1+v2>∣v∣\sqrt{1 + v^2} > |v|⁠.
    Section 7.4, formula (6); Section 7.2, formula (xii). Basics: every method ends with an integral
  7. Put v=yxv = \frac{y}{x} back

    From (2), v+1+v2=∣Cx∣v + \sqrt{1 + v^2} = |Cx|⁠; for x>0x > 0 this is CxCx with C>0C > 0⁠. With v=yxv = \frac{y}{x} and x1+v2=x2+y2x\sqrt{1 + v^2} = \sqrt{x^2 + y^2} (as x>0x > 0⁠):

    y+x2+y2x=Cx, soy+x2+y2=Cx2.\begin{aligned} \frac{y + \sqrt{x^2 + y^2}}{x} &= Cx,\ \text{so} \\ y + \sqrt{x^2 + y^2} &= Cx^2. \end{aligned}
    Multiply by xx⁠. Since y+x2+y2>0y + \sqrt{x^2 + y^2} > 0 for x≠0x \ne 0⁠, the constant CC is positive.
    Section 9.4.2: replace vv by yx\frac{y}{x}⁠. Basics: one constant for order 1
  8. The half-plane x<0x < 0⁠, a check, and the curves

    For x<0x < 0, x2+y2=−x1+v2\sqrt{x^2 + y^2} = -x\sqrt{1 + v^2}⁠, so Step 4 becomes xdvdx=−1+v2x\frac{dv}{dx} = -\sqrt{1 + v^2}⁠, and integrating, v+1+v2=K∣x∣=−Kxv + \sqrt{1 + v^2} = \frac{K}{|x|} = -\frac{K}{x} with K>0K > 0⁠. Putting v=yxv = \frac{y}{x} gives x2+y2−y=K\sqrt{x^2 + y^2} - y = K⁠. Since (x2+y2+y)(x2+y2−y)=x2\left(\sqrt{x^2 + y^2} + y\right)\left(\sqrt{x^2 + y^2} - y\right) = x^2⁠, this is y+x2+y2=x2Ky + \sqrt{x^2 + y^2} = \frac{x^2}{K}⁠: the same answer with C=1KC = \frac1K⁠.

    Explicit form. By the same product, y+x2+y2=Cx2y + \sqrt{x^2 + y^2} = Cx^2 means x2+y2−y=1C\sqrt{x^2 + y^2} - y = \frac1C⁠. Subtracting the two,

    y=12(Cx2−1C),y = \frac12\left(Cx^2 - \frac1C\right),

    an upward parabola for each C>0C > 0⁠. Then y′=Cxy' = Cx⁠, and x2+y2=Cx2−y=12(Cx2+1C)\sqrt{x^2 + y^2} = Cx^2 - y = \frac12\left(Cx^2 + \frac1C\right)⁠, so

    y+x2+y2=Cx2=x⋅Cx=xy′,y + \sqrt{x^2 + y^2} = Cx^2 = x\cdot Cx = xy',

    which is the given equation x dy−y dx=x2+y2 dxx\,dy - y\,dx = \sqrt{x^2 + y^2}\,dx⁠. It holds for every real xx⁠, even x=0x = 0⁠, where it reads 0=y+∣y∣0 = y + |y| with y=−12C<0y = -\frac{1}{2C} < 0⁠.

    X Y X′ Y′ (1, 0) (2, 1.5) (−2, 1.5) C = 2 C = 1 C = 1/2 O
    Slope field of dydx=y+x2+y2x\frac{dy}{dx} = \frac{y + \sqrt{x^2 + y^2}}{x} with equal scales, and the solutions y+x2+y2=Cx2y + \sqrt{x^2 + y^2} = Cx^2⁠, that is y=12(Cx2−1C)y = \frac12\left(Cx^2 - \frac1C\right)⁠, for C=12,1,2C = \frac12, 1, 2⁠. Each is a parabola with its focus at the origin OO⁠.
    Both half-planes give one family, so y+x2+y2=Cx2y + \sqrt{x^2 + y^2} = Cx^2 is the general solution, and the check confirms it. (A parabola y=12(Cx2−1C)y = \frac12\left(Cx^2 - \frac1C\right) is the set of points whose distance x2+y2\sqrt{x^2 + y^2} from OO equals their distance y+1Cy + \frac1C from the line y=−1Cy = -\frac1C⁠: its focus is OO⁠.)
    (a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2⁠; differentiation (Chapter 5). Basics: a rule for slopes
Result

The equation is homogeneous (F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y) for λ>0\lambda > 0⁠, and FF is a function of yx\frac{y}{x} on each side of the yy-axis). Its general solution is y+x2+y2=Cx2y + \sqrt{x^2 + y^2} = Cx^2⁠, where CC is an arbitrary constant (C>0C > 0⁠, x≠0x \ne 0⁠); equivalently y=12(Cx2−1C)y = \frac12\left(Cx^2 - \frac1C\right)⁠. (Textbook answer: y+x2+y2=Cx2y + \sqrt{x^2 + y^2} = Cx^2⁠.)

Check it with numbers

Take the curve through (1,0)(1, 0)⁠: 0+1=C⋅10 + \sqrt{1} = C\cdot1⁠, so C=1C = 1 and y=x2−12y = \frac{x^2 - 1}{2}⁠. At x=2x = 2⁠: y=1.5y = 1.5⁠, 4+2.25=2.5\sqrt{4 + 2.25} = 2.5⁠, and y+x2+y2=4=Cx2y + \sqrt{x^2 + y^2} = 4 = Cx^2⁠.

Slope from the equation: 1.5+2.52=2\frac{1.5 + 2.5}{2} = 2⁠. Slope of the parabola: y′=x=2y' = x = 2⁠. On the other side, at x=−2x = -2⁠: again y=1.5y = 1.5⁠, the equation gives 1.5+2.5−2=−2\frac{1.5 + 2.5}{-2} = -2⁠, and y′=x=−2y' = x = -2⁠. Both sides of the yy-axis agree.

Common mistakes
  1. Writing x2+y2=x1+v2\sqrt{x^2 + y^2} = x\sqrt{1 + v^2} for every xx⁠. It is ∣x∣1+v2|x|\sqrt{1 + v^2}⁠; for x<0x < 0 a minus sign appears (Step 8).
  2. Integrating 11+v2\frac{1}{\sqrt{1 + v^2}} as sin⁡−1v\sin^{-1}v⁠. That is 11−v2\frac{1}{\sqrt{1 - v^2}}⁠. Here it is log⁡∣v+1+v2∣\log\left|v + \sqrt{1 + v^2}\right|⁠.
  3. Stopping at y+x2+y2x=Cx\frac{y + \sqrt{x^2 + y^2}}{x} = Cx⁠. Multiply by xx to reach the tidy form Cx2Cx^2⁠.
What to take away
  1. A square root of a degree 2 expression has degree 1, so it fits a homogeneous equation; but x2=∣x∣\sqrt{x^2} = |x|⁠.
  2. ∫dvv2+1=log⁡∣v+v2+1∣\int\frac{dv}{\sqrt{v^2 + 1}} = \log\left|v + \sqrt{v^2 + 1}\right|⁠.
  3. Multiplying by the conjugate x2+y2−y\sqrt{x^2 + y^2} - y turns this answer into the parabolas y=12(Cx2−1C)y = \frac12\left(Cx^2 - \frac1C\right)⁠.

Every fact used, and where it comes from

FactUsed inSource
Homogeneous function of degree nn⁠; homogeneous equation; F=g(yx)F = g\left(\frac{y}{x}\right)Steps 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)
∫dxx2+a2=log⁡∣x+x2+a2∣+C\int\frac{dx}{\sqrt{x^2 + a^2}} = \log\left|x + \sqrt{x^2 + a^2}\right| + CSteps 6, 8Section 7.4, formula (6) (Basics)
∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formula (xii)
a2=∣a∣\sqrt{a^2} = |a|⁠; (a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2Steps 2, 3, 8Algebra
Parabola as a focus and directrix locusStep 8Class 11, Conic Sections
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 →