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

Exercise 9.4 · Q5: Homogeneous: x2dydx=x2−2y2+xyx^2\frac{dy}{dx} = x^2 - 2y^2 + xy

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.

5. x2dydx=x2−2y2+xyx^2\dfrac{dy}{dx} = x^2 - 2y^2 + xy

Exam answer

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

dydx=x2−2y2+xyx2=F(x,y)\frac{dy}{dx} = \frac{x^2 - 2y^2 + xy}{x^2} = F(x, y)

Then

F(λx,λy)=λ2(x2−2y2+xy)λ2x2=λ0⋅F(x,y)\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda^2(x^2 - 2y^2 + xy)}{\lambda^2x^2} \\ &= \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−2v2+vxdvdx=1−2v2\begin{aligned} v + x\frac{dv}{dx} &= 1 - 2v^2 + v \\ x\frac{dv}{dx} &= 1 - 2v^2 \end{aligned}

Separating the variables,

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

Integrating both sides,

12∫dv(12)2−v2=∫dxx\frac12\int\frac{dv}{\left(\frac{1}{\sqrt2}\right)^2 - v^2} = \int\frac{dx}{x}

Using ∫dva2−v2=12alog⁡∣a+va−v∣\int\frac{dv}{a^2 - v^2} = \frac{1}{2a}\log\left|\frac{a + v}{a - v}\right| with a=12a = \frac{1}{\sqrt2}⁠,

12⋅22log⁡∣12+v12−v∣=log⁡∣x∣+C\begin{aligned} &\frac12\cdot\frac{\sqrt2}{2}\log\left|\frac{\frac{1}{\sqrt2} + v}{\frac{1}{\sqrt2} - v}\right| \\ &= \log|x| + C \end{aligned}

Putting v=yxv = \frac{y}{x}⁠, multiplying the top and bottom of the fraction by 2x\sqrt2x⁠, and using 24=122\frac{\sqrt2}{4} = \frac{1}{2\sqrt2}⁠,

∴\therefore 122log⁡∣x+2yx−2y∣\dfrac{1}{2\sqrt2}\log\left|\dfrac{x + \sqrt2y}{x - \sqrt2y}\right| =log⁡∣x∣+C= \log|x| + C is the general solution.

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

The one idea this problem is built on

Divide by x2x^2⁠: the slope 1−2(yx)2+yx1 - 2\left(\frac{y}{x}\right)^2 + \frac{y}{x} depends only on yx\frac{y}{x}⁠, so the equation is homogeneous. After y=vxy = vx the vv cancels and xdvdx=1−2v2x\frac{dv}{dx} = 1 - 2v^2 separates. The vv-integral is the standard ∫dva2−v2\int\frac{dv}{a^2 - v^2}⁠, a log of a ratio. Dividing by 1−2v21 - 2v^2 sets two straight-line solutions aside, and they do not come back.

Given, to find, and the plan
Given
x2dydx=x2−2y2+xyx^2\frac{dy}{dx} = x^2 - 2y^2 + xy⁠.
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=1−2v2x\frac{dv}{dx} = 1 - 2v^2⁠. (5) Separate, noting what the division sets aside. (6) Integrate with Section 7.4, formula (2). (7) Put v=yxv = \frac{y}{x} back. (8) Check.

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

3A standard integral

∫dva2−v2=12alog⁡∣a+va−v∣+C\int\frac{dv}{a^2 - v^2} = \frac{1}{2a}\log\left|\frac{a + v}{a - v}\right| + C (Section 7.4, formula (2)). Basics: every method ends with an integral

Solution

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

    Divide by x2x^2⁠, for x≠0x \ne 0⁠:

    dydx=x2−2y2+xyx2=F(x,y).…(1)\begin{aligned} \frac{dy}{dx} &= \frac{x^2 - 2y^2 + xy}{x^2} \\ &= F(x, y).\quad\ldots(1) \end{aligned}
    Dividing by x2x^2 needs x≠0x \ne 0⁠, which we need anyway for v=yxv = \frac{y}{x}⁠. It loses no solution y(x)y(x)⁠: at a point with x=0x = 0 and y≠0y \ne 0 the given equation reads 0=−2y2≠00 = -2y^2 \ne 0⁠, so no solution passes there.
    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)=λ2x2−2λ2y2+λx⋅λyλ2x2=λ2(x2−2y2+xy)λ2x2=λ0⋅F(x,y).\begin{aligned} &F(\lambda x, \lambda y) \\ &= \frac{\lambda^2x^2 - 2\lambda^2y^2 + \lambda x\cdot\lambda y}{\lambda^2x^2} \\ &= \frac{\lambda^2(x^2 - 2y^2 + xy)}{\lambda^2x^2} \\ &= \lambda^0\cdot F(x, y). \end{aligned}

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

    Every term on top and the bottom have degree 2, so λ2\lambda^2 cancels. Dividing through by x2x^2⁠, F=1−2(yx)2+yxF = 1 - 2\left(\frac{y}{x}\right)^2 + \frac{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=x2−2v2x2+vx2x2=1−2v2+v.\begin{aligned} v + x\frac{dv}{dx} &= \frac{x^2 - 2v^2x^2 + vx^2}{x^2} \\ &= 1 - 2v^2 + v. \end{aligned}
    Cancel x2≠0x^2 \ne 0⁠: the right side is a function of vv only.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=1−2v2x\frac{dv}{dx} = 1 - 2v^2

    xdvdx=1−2v2+v−v=1−2v2.x\frac{dv}{dx} = 1 - 2v^2 + v - v = 1 - 2v^2.
    Subtract vv from both sides: the vv terms cancel.
    Section 9.4.2, equation (4). Lesson: homogeneous equations
  5. Separate vv and xx⁠, and see what is set aside

    dv1−2v2=dxx,1−2v2≠0.\frac{dv}{1 - 2v^2} = \frac{dx}{x},\quad 1 - 2v^2 \ne 0.
    Divide by 1−2v21 - 2v^2 and by xx⁠. The division by 1−2v21 - 2v^2 does set solutions aside: 1−2v2=01 - 2v^2 = 0 when v=±12v = \pm\frac{1}{\sqrt2}⁠, and each constant vv makes both sides of xdvdx=1−2v2x\frac{dv}{dx} = 1 - 2v^2 zero. So the lines y=x2y = \frac{x}{\sqrt2} and y=−x2y = -\frac{x}{\sqrt2} are solutions. (Check y=x2y = \frac{x}{\sqrt2}⁠: y′=12y' = \frac{1}{\sqrt2}⁠, and the right side of (1) is 1−2⋅12+12=121 - 2\cdot\frac12 + \frac{1}{\sqrt2} = \frac{1}{\sqrt2}⁠. The other line is checked the same way.) We return to them in Step 7.
    Section 9.4.2, equation (5); separating as in Section 9.4.1, which needs the divisor to be nonzero, so its zeros are checked separately. Basics: dy = y′ dx
  6. Integrate with ∫dva2−v2\int\frac{dv}{a^2 - v^2}

    Take out the 2: 1−2v2=2(12−v2)=2[(12)2−v2]1 - 2v^2 = 2\left(\frac12 - v^2\right) = 2\left[\left(\frac{1}{\sqrt2}\right)^2 - v^2\right]⁠. With a=12a = \frac{1}{\sqrt2}⁠, so 12a=22\frac{1}{2a} = \frac{\sqrt2}{2}⁠,

    ∫dv1−2v2=12∫dva2−v2=12⋅22log⁡∣a+va−v∣=122log⁡∣1+2v1−2v∣.\begin{aligned} \int\frac{dv}{1 - 2v^2} &= \frac12\int\frac{dv}{a^2 - v^2} \\ &= \frac12\cdot\frac{\sqrt2}{2}\log\left|\frac{a + v}{a - v}\right| \\ &= \frac{1}{2\sqrt2}\log\left|\frac{1 + \sqrt2v}{1 - \sqrt2v}\right|. \end{aligned}

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

    122log⁡∣1+2v1−2v∣=log⁡∣x∣+C.…(2)\begin{aligned} &\frac{1}{2\sqrt2}\log\left|\frac{1 + \sqrt2v}{1 - \sqrt2v}\right| \\ &= \log|x| + C.\quad\ldots(2) \end{aligned}

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

    122(21+2v+21−2v)=12⋅(1−2v)+(1+2v)1−2v2=11−2v2.\begin{aligned} &\frac{1}{2\sqrt2}\left(\frac{\sqrt2}{1 + \sqrt2v} + \frac{\sqrt2}{1 - \sqrt2v}\right) \\ &= \frac12\cdot\frac{(1 - \sqrt2v) + (1 + \sqrt2v)}{1 - 2v^2} \\ &= \frac{1}{1 - 2v^2}. \end{aligned}
    24=122\frac{\sqrt2}{4} = \frac{1}{2\sqrt2}⁠, and a+va−v=1+2v1−2v\frac{a + v}{a - v} = \frac{1 + \sqrt2v}{1 - \sqrt2v} after multiplying top and bottom by 2\sqrt2⁠. The check returns the integrand.
    Section 7.4, formula (2); Section 7.2, formula (xii). Basics: every method ends with an integral
  7. Put v=yxv = \frac{y}{x} back

    Multiply the top and bottom of 1+2yx1−2yx\frac{1 + \sqrt2\frac{y}{x}}{1 - \sqrt2\frac{y}{x}} by xx⁠:

    122log⁡∣x+2yx−2y∣=log⁡∣x∣+C.\frac{1}{2\sqrt2}\log\left|\frac{x + \sqrt2y}{x - \sqrt2y}\right| = \log|x| + C.
    This holds for x≠0x \ne 0 and x≠±2yx \ne \pm\sqrt2y⁠, with CC the one arbitrary constant. The two line solutions of Step 5 are not in it: on y=x2y = \frac{x}{\sqrt2} the bottom x−2yx - \sqrt2y is 0, and on y=−x2y = -\frac{x}{\sqrt2} the top is 0, so the log is undefined there for every finite CC⁠. They are extra solutions, set aside by the division by 1−2v21 - 2v^2⁠; the book's general solution does not list them either.
    Section 9.4.2: replace vv by yx\frac{y}{x} in (6). Basics: one constant for order 1
  8. Check: differentiate the answer back

    Write u=x+2yu = x + \sqrt2y⁠, w=x−2yw = x - \sqrt2y⁠, so uw=x2−2y2uw = x^2 - 2y^2⁠. Differentiating with respect to xx⁠:

    122(1+2y′u−1−2y′w)=1x.\frac{1}{2\sqrt2}\left(\frac{1 + \sqrt2y'}{u} - \frac{1 - \sqrt2y'}{w}\right) = \frac1x.

    Over the common denominator uwuw⁠, the top of the bracket is (1+2y′)w−(1−2y′)u(1 + \sqrt2y')w - (1 - \sqrt2y')u =w−u+2y′(u+w)= w - u + \sqrt2y'(u + w) =−22y+22xy′= -2\sqrt2y + 2\sqrt2xy'⁠. So

    xy′−yx2−2y2=1x,x2y′−xy=x2−2y2,\begin{aligned} \frac{xy' - y}{x^2 - 2y^2} &= \frac1x, \\ x^2y' - xy &= x^2 - 2y^2, \end{aligned}

    that is x2dydx=x2−2y2+xyx^2\frac{dy}{dx} = x^2 - 2y^2 + xy⁠.

    We recover the given equation for every CC⁠, so the relation is the general solution (on its domain). The lines y=±x2y = \pm\frac{x}{\sqrt2} were checked separately in Step 5.
    Implicit differentiation (Chapter 5); ddxlog⁡∣u∣=u′u\frac{d}{dx}\log|u| = \frac{u'}{u} (Section 7.2, formula (xii), with the chain rule). 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 122log⁡∣x+2yx−2y∣=log⁡∣x∣+C\frac{1}{2\sqrt2}\log\left|\frac{x + \sqrt2y}{x - \sqrt2y}\right| = \log|x| + C⁠, where CC is an arbitrary constant (x≠0x \ne 0⁠, x≠±2yx \ne \pm\sqrt2y⁠). The lines y=±x2y = \pm\frac{x}{\sqrt2} are also solutions, not contained in this family. (Textbook answer: 122log⁡∣x+2yx−2y∣=log⁡∣x∣+C\frac{1}{2\sqrt2}\log\left|\frac{x + \sqrt2y}{x - \sqrt2y}\right| = \log|x| + C⁠.)

Check it with numbers

Take the curve through (1,0)(1, 0)⁠: 122log⁡1=log⁡1+C\frac{1}{2\sqrt2}\log 1 = \log 1 + C⁠, so C=0C = 0⁠. For x>0x > 0 this curve is x+2yx−2y=x22\frac{x + \sqrt2y}{x - \sqrt2y} = x^{2\sqrt2}⁠, that is y=x(x22−1)2(x22+1)y = \frac{x(x^{2\sqrt2} - 1)}{\sqrt2(x^{2\sqrt2} + 1)}⁠. At x=2x = 2⁠: 222≈7.1029932^{2\sqrt2} \approx 7.102993 and y≈1.065154y \approx 1.065154⁠. Then 122log⁡∣x+2yx−2y∣≈0.693147=log⁡2\frac{1}{2\sqrt2}\log\left|\frac{x + \sqrt2y}{x - \sqrt2y}\right| \approx 0.693147 = \log 2⁠: both sides agree.

The equation gives the slope 1−2v2+v≈0.96531 - 2v^2 + v \approx 0.9653 there (v=yx≈0.532577v = \frac{y}{x} \approx 0.532577⁠). The curve itself: y(2.001)≈1.0661191993y(2.001) \approx 1.0661191993 and y(1.999)≈1.0641885983y(1.999) \approx 1.0641885983⁠, so

1.0661191993−1.06418859830.002≈0.9653.\begin{aligned} &\frac{1.0661191993 - 1.0641885983}{0.002} \\ &\approx 0.9653. \end{aligned}
Common mistakes
  1. Forgetting the 12\frac12 when writing 1−2v2=2(12−v2)1 - 2v^2 = 2\left(\frac12 - v^2\right)⁠.
  2. Using a=12a = \frac12 instead of a=12a = \frac{1}{\sqrt2}⁠: a2=12a^2 = \frac12⁠.
  3. Thinking the general solution contains every solution. Here the lines y=±x2y = \pm\frac{x}{\sqrt2} solve the equation but are not given by any CC⁠.
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. ∫dvp−qv2\int\frac{dv}{p - qv^2}⁠: take qq out and use ∫dva2−v2=12alog⁡∣a+va−v∣\int\frac{dv}{a^2 - v^2} = \frac{1}{2a}\log\left|\frac{a + v}{a - v}\right|⁠.
  3. Every zero of g(v)−vg(v) - v gives a straight-line solution y=vxy = vx⁠; check whether the final formula still contains it.

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)
Solutions set aside by a division are checked separatelySteps 5, 7Section 9.4.1 (separating needs h(y)≠0h(y) \ne 0⁠); Section 9.3, what a solution is (Lesson)
∫dxa2−x2=12alog⁡∣a+xa−x∣+C\int\frac{dx}{a^2 - x^2} = \frac{1}{2a}\log\left|\frac{a + x}{a - x}\right| + CStep 6Section 7.4, formula (2) (Basics)
∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formula (xii)
Implicit differentiation; ddxlog⁡∣u∣=u′u\frac{d}{dx}\log|u| = \frac{u'}{u}Step 8Chapter 5, Sections 5.3.1 and 5.3.2; Section 7.2, formula (xii) (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 →