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

Exercise 9.4 · Q1: Homogeneous: (x2+xy) dy=(x2+y2) dx(x^2 + xy)\,dy = (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.

1. (x2+xy) dy=(x2+y2) dx(x^2 + xy)\,dy = (x^2 + y^2)\,dx

Exam answer

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

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

Then

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

Separating the variables,

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

Writing 1+v1−v=−1+21−v\frac{1 + v}{1 - v} = -1 + \frac{2}{1 - v} and integrating both sides,

∫(−1+21−v)dv=∫dxx\int\left(-1 + \frac{2}{1 - v}\right)dv = \int\frac{dx}{x} −v−2log⁡∣1−v∣=log⁡∣x∣+C1-v - 2\log|1 - v| = \log|x| + C_1

Since 2log⁡∣1−v∣=log⁡(1−v)22\log|1 - v| = \log(1 - v)^2⁠,

log⁡∣x(1−v)2∣=−v−C1∣x(1−v)2∣=e−C1e−v\begin{aligned} \log\left|x(1 - v)^2\right| &= -v - C_1 \\ \left|x(1 - v)^2\right| &= e^{-C_1}e^{-v} \end{aligned}

Putting v=yxv = \frac{y}{x}⁠, so that x(1−v)2=(x−y)2xx(1 - v)^2 = \frac{(x - y)^2}{x}⁠, and writing C=±e−C1C = \pm e^{-C_1}⁠,

∴\therefore (x−y)2=Cxe−yx(x - y)^2 = Cxe^{-\dfrac{y}{x}} is the general solution.

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

The one idea this problem is built on

Every term of x2+y2x^2 + y^2 and of x2+xyx^2 + xy has degree 2, so the slope x2+y2x2+xy\frac{x^2 + y^2}{x^2 + xy} depends only on the ratio yx\frac{y}{x}⁠. That makes the equation homogeneous, and y=vxy = vx turns it into a separable equation in vv and xx⁠. The vv-integral is a fraction whose top and bottom have the same degree, so we first divide it out.

Given, to find, and the plan
Given
(x2+xy) dy=(x2+y2) dx(x^2 + xy)\,dy = (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)⁠. (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 and tidy. (8) Check by differentiating back.

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

3Two standard integrals

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

4Logs and exponentials

klog⁡∣a∣=log⁡∣a∣kk\log|a| = \log|a|^k⁠, log⁡a+log⁡b=log⁡ab\log a + \log b = \log ab⁠, and log⁡∣A∣=B\log|A| = B means ∣A∣=eB|A| = e^B⁠. Basics: e and log

Solution

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

    For x2+xy=x(x+y)≠0x^2 + xy = x(x + y) \ne 0⁠, divide by x2+xyx^2 + xy and by dxdx⁠:

    dydx=x2+y2x2+xy=F(x,y).…(1)\frac{dy}{dx} = \frac{x^2 + y^2}{x^2 + xy} = F(x, y).\quad\ldots(1)
    The homogeneity test is stated for dydx=F(x,y)\frac{dy}{dx} = F(x, y)⁠. We need x≠0x \ne 0 anyway, because v=yxv = \frac{y}{x} will be used. 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=2x2 dx0\cdot dy = 2x^2\,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.
    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)

    Replace xx by λx\lambda x and yy by λy\lambda y⁠, for any λ≠0\lambda \ne 0⁠:

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

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

    Top and bottom both have degree 2, so the factor λ2\lambda^2 cancels. Equivalently, dividing top and bottom by x2x^2 gives F=1+(y/x)21+y/xF = \frac{1 + (y/x)^2}{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⁠, where vv is a function of xx⁠. By the product rule dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠, and (1) becomes

    v+xdvdx=x2+v2x2x2+vx2=1+v21+v.v + x\frac{dv}{dx} = \frac{x^2 + v^2x^2}{x^2 + vx^2} = \frac{1 + v^2}{1 + v}.
    Dividing top and bottom by x2≠0x^2 \ne 0 leaves a function of vv only. That is what homogeneity guarantees.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=…x\frac{dv}{dx} = \ldots

    xdvdx=1+v21+v−v=1+v2−v−v21+v=1−v1+v.\begin{aligned} x\frac{dv}{dx} &= \frac{1 + v^2}{1 + v} - v \\ &= \frac{1 + v^2 - v - v^2}{1 + v} = \frac{1 - v}{1 + v}. \end{aligned}
    Write vv over the common denominator 1+v1 + v⁠; the v2v^2 terms cancel. The right side is now a function of vv only.
    Section 9.4.2, equation (4): xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v⁠. Lesson: homogeneous equations
  5. Separate vv and xx

    1+v1−v dv=dxx.\frac{1 + v}{1 - v}\,dv = \frac{dx}{x}.
    Multiply by 1+v1−v\frac{1 + v}{1 - v} and by dxx\frac{dx}{x}⁠. This needs x≠0x \ne 0 and v≠1v \ne 1 (v≠−1v \ne -1 is already assumed, since x+y≠0x + y \ne 0⁠). Dividing by 1−v1 - v does set one solution aside: the constant v=1v = 1⁠, that is y=xy = x⁠, makes both sides of xdvdx=1−v1+vx\frac{dv}{dx} = \frac{1 - v}{1 + v} zero, so y=xy = x is a solution (indeed on y=xy = x the given equation reads 2x2 dy=2x2 dx2x^2\,dy = 2x^2\,dx⁠). We will see in Step 7 that the final answer still contains it, with C=0C = 0⁠.
    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 both sides

    The vv-fraction has top and bottom of the same degree, so divide first:

    1+v1−v=−(1−v)+21−v=−1+21−v.\frac{1 + v}{1 - v} = \frac{-(1 - v) + 2}{1 - v} = -1 + \frac{2}{1 - v}.

    Then, with ∫dv1−v=−log⁡∣1−v∣\int\frac{dv}{1 - v} = -\log|1 - v| (put t=1−vt = 1 - v⁠, dt=−dvdt = -dv⁠) and one constant C1C_1⁠,

    −v−2log⁡∣1−v∣=log⁡∣x∣+C1.…(2)\begin{aligned} &-v - 2\log|1 - v| \\ &= \log|x| + C_1.\quad\ldots(2) \end{aligned}

    Check by differentiating the left side of (2) with respect to vv⁠:

    ddv(−v−2log⁡∣1−v∣)=−1+21−v=1+v1−v.\begin{aligned} &\frac{d}{dv}\big(-v - 2\log|1 - v|\big) \\ &= -1 + \frac{2}{1 - v} = \frac{1 + v}{1 - v}. \end{aligned}
    Since ddvlog⁡∣1−v∣=−11−v\frac{d}{dv}\log|1 - v| = \frac{-1}{1 - v}⁠, the derivative of −2log⁡∣1−v∣-2\log|1 - v| is +21−v+\frac{2}{1 - v}⁠, and the check returns the integrand. A first order equation needs one arbitrary constant, written once on the right.
    Section 7.2, ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C⁠; integration by 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 logs together, using 2log⁡∣1−v∣=log⁡(1−v)22\log|1 - v| = \log(1 - v)^2⁠:

    log⁡∣x(1−v)2∣=−v−C1,∣x(1−v)2∣=e−C1e−v.\begin{aligned} \log\left|x(1 - v)^2\right| &= -v - C_1, \\ \left|x(1 - v)^2\right| &= e^{-C_1}e^{-v}. \end{aligned}

    Now x(1−v)2=x⋅(x−y)2x2=(x−y)2xx(1 - v)^2 = x\cdot\frac{(x - y)^2}{x^2} = \frac{(x - y)^2}{x}⁠. Removing the modulus puts a sign ±\pm in front of e−C1e^{-C_1}⁠; call C=±e−C1C = \pm e^{-C_1}⁠. Then (x−y)2x=Ce−yx\frac{(x - y)^2}{x} = Ce^{-\frac{y}{x}}⁠, that is

    (x−y)2=Cxe−yx.(x - y)^2 = Cxe^{-\frac{y}{x}}.
    e−C1e^{-C_1} takes every positive value, and with the sign every nonzero value. The value C=0C = 0 gives (x−y)2=0(x - y)^2 = 0⁠, the line y=xy = x⁠: exactly the solution set aside in Step 5. So with CC any real number, the one relation contains every solution, and nothing was lost. It holds for x≠0x \ne 0 and y≠−xy \ne -x⁠.
    log⁡∣A∣=B\log|A| = B means ∣A∣=eB|A| = e^B⁠. Basics: one constant for order 1
  8. Check: differentiate the answer back

    For C≠0C \ne 0 and y≠xy \ne x⁠, write the answer as Ce−yx=(x−y)2xCe^{-\frac{y}{x}} = \frac{(x - y)^2}{x}⁠. Differentiate (x−y)2=Cxe−yx(x - y)^2 = Cxe^{-\frac{y}{x}} with respect to xx⁠; since ddxyx=xy′−yx2\frac{d}{dx}\frac{y}{x} = \frac{xy' - y}{x^2}⁠,

    2(x−y)(1−y′)=Ce−yx(1−xy′−yx)=(x−y)2x⋅x+y−xy′x.\begin{aligned} &2(x - y)(1 - y') \\ &= Ce^{-\frac{y}{x}}\left(1 - \frac{xy' - y}{x}\right) \\ &= \frac{(x - y)^2}{x}\cdot\frac{x + y - xy'}{x}. \end{aligned}

    Divide by x−yx - y and multiply by x2x^2⁠:

    2x2(1−y′)=(x−y)(x+y−xy′)2x2−2x2y′=x2−y2−(x2−xy)y′(x2+xy) y′=x2+y2.\begin{aligned} 2x^2(1 - y') &= (x - y)(x + y - xy') \\ 2x^2 - 2x^2y' &= x^2 - y^2 - (x^2 - xy)y' \\ (x^2 + xy)\,y' &= x^2 + y^2. \end{aligned}
    This is the given equation, for every C≠0C \ne 0⁠; and C=0C = 0 gives y=xy = x⁠, which we checked in Step 5. So the relation is the general solution.
    Implicit differentiation with the product and chain rules (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 (x−y)2=Cxe−yx(x - y)^2 = Cxe^{-\frac{y}{x}}⁠, where CC is an arbitrary constant (x≠0x \ne 0⁠, x+y≠0x + y \ne 0⁠); C=0C = 0 gives the solution y=xy = x⁠. (Textbook answer: (x−y)2=Cxe−yx(x - y)^2 = Cxe^{-\frac{y}{x}}⁠.)

Check it with numbers

Take the curve through (1,0)(1, 0)⁠: there (1−0)2=C⋅1⋅e0(1 - 0)^2 = C\cdot1\cdot e^0⁠, so C=1C = 1⁠. Solving (2−y)2=2e−y2(2 - y)^2 = 2e^{-\frac{y}{2}} numerically, this curve passes through (2, 0.8591301)(2,\ 0.8591301)⁠. There both sides equal 1.3015841.301584⁠.

The equation gives the slope x2+y2x2+xy≈0.8286\frac{x^2 + y^2}{x^2 + xy} \approx 0.8286 there. The curve itself: y(2.001)≈0.8599586563y(2.001) \approx 0.8599586563 and y(1.999)≈0.8583014723y(1.999) \approx 0.8583014723⁠, so

0.8599586563−0.85830147230.002≈0.8286.\begin{aligned} &\frac{0.8599586563 - 0.8583014723}{0.002} \\ &\approx 0.8286. \end{aligned}
Common mistakes
  1. Writing dydx=xdvdx\frac{dy}{dx} = x\frac{dv}{dx} after putting y=vxy = vx⁠. The product rule gives v+xdvdxv + x\frac{dv}{dx}⁠.
  2. Integrating 1+v1−v\frac{1 + v}{1 - v} as a log straight away. Top and bottom have the same degree: divide first, −1+21−v-1 + \frac{2}{1 - v}⁠.
  3. Losing the minus sign in ∫dv1−v=−log⁡∣1−v∣\int\frac{dv}{1 - v} = -\log|1 - v|⁠. The inner derivative of 1−v1 - v is −1-1⁠.
  4. Saying C≠0C \ne 0 and so losing y=xy = x⁠. With C=0C = 0 the answer gives y=xy = x⁠, which is a solution.
What to take away
  1. Same degree in every term means homogeneous: F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y)⁠.
  2. y=vxy = vx and dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx} turn it into a separable equation.
  3. When you divide by something like 1−v1 - v⁠, check whether its zero is a solution, and whether the final constant brings it back.

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)
A solution set aside by a division is checked separatelySteps 5, 7Section 9.4.1 (separating needs h(y)≠0h(y) \ne 0⁠); Section 9.3, what a solution is (Lesson)
∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formula (xii)
Integration by substitution, t=1−vt = 1 - vStep 6Section 7.3.1 (Basics)
klog⁡∣a∣=log⁡∣a∣kk\log|a| = \log|a|^k⁠; log⁡∣A∣=B⇔∣A∣=eB\log|A| = B \Leftrightarrow |A| = e^BStep 7Chapter 5, Section 5.4 (Basics)
Implicit differentiation; product and chain rulesStep 8Chapter 5, Sections 5.3.1 and 5.3.2 (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 →