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

Exercise 9.4 · Q12: Particular solution of x2 dy+(xy+y2) dx=0x^2\,dy + (xy + y^2)\,dx = 0⁠, y(1)=1y(1) = 1

Exercise 9.4Homogeneous differential equations, particular solution · Section 9.4.2
The question

For each of the differential equations in Exercises from 11 to 15, find the particular solution satisfying the given condition:

12. x2 dy+(xy+y2) dx=0x^2\,dy + (xy + y^2)\,dx = 0⁠; y=1y = 1 when x=1x = 1

Exam answer

The equation can be written as

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

Replacing xx by λx\lambda x and yy by λy\lambda y⁠,

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

Separating the variables,

dvv(v+2)=−dxx\frac{dv}{v(v + 2)} = -\frac{dx}{x}

Let

1v(v+2)=Av+Bv+2\frac{1}{v(v + 2)} = \frac{A}{v} + \frac{B}{v + 2}

Then 1=A(v+2)+Bv1 = A(v + 2) + Bv⁠. Putting v=0v = 0⁠: A=12A = \frac{1}{2}⁠. Putting v=−2v = -2⁠: B=−12B = -\frac{1}{2}⁠.

Integrating both sides,

12∫dvv−12∫dvv+2=−∫dxx\begin{aligned} &\frac{1}{2}\int\frac{dv}{v} - \frac{1}{2}\int\frac{dv}{v + 2} \\ &= -\int\frac{dx}{x} \end{aligned} 12log⁡∣v∣−12log⁡∣v+2∣=−log⁡∣x∣+C1\begin{aligned} &\frac{1}{2}\log|v| - \frac{1}{2}\log|v + 2| \\ &= -\log|x| + C_1 \end{aligned}

Multiplying by 2 and combining the logarithms,

log⁡∣x2vv+2∣=2C1x2vv+2=±e2C1=C\begin{aligned} \log\left|\frac{x^2v}{v + 2}\right| &= 2C_1 \\ \frac{x^2v}{v + 2} &= \pm e^{2C_1} = C \end{aligned}

Putting v=yxv = \frac{y}{x}⁠, since x2vv+2=x2yy+2x\frac{x^2v}{v + 2} = \frac{x^2y}{y + 2x}⁠,

x2y=C(y+2x)…(i)x^2y = C(y + 2x)\quad\ldots(\text{i})

Putting x=1x = 1⁠, y=1y = 1 in (i),

1=3C  ⇒  C=131 = 3C \;\Rightarrow\; C = \frac{1}{3}

∴\therefore The particular solution is y+2x=3x2yy + 2x = 3x^2y⁠.

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

The one idea this problem is built on

Every term x2x^2⁠, xyxy and y2y^2 has degree 2, so the slope −xy+y2x2-\frac{xy + y^2}{x^2} depends only on yx\frac{y}{x}⁠: the equation is homogeneous, and y=vxy = vx separates it. The vv-fraction 1v(v+2)\frac{1}{v(v + 2)} splits by partial fractions into two logs. The condition then fixes the constant, and the answer can even be solved for yy⁠.

Given, to find, and the plan
Given
x2 dy+(xy+y2) dx=0x^2\,dy + (xy + y^2)\,dx = 0⁠, and y=1y = 1 when x=1x = 1⁠.
To find
The particular solution: no arbitrary constant, passing through (1,1)(1, 1)⁠.
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) Partial fractions and integrate. (7) Put v=yxv = \frac{y}{x} back: the general solution. (8) Use the condition. (9) Check, and see the curve.

Basics you need

1Homogeneous functions and equations

dydx=F(x,y)\frac{dy}{dx} = F(x, y) is homogeneous when F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y) for every nonzero λ\lambda (Section 9.4.2). Basics: scale x and y together

2The substitution y=vxy = vx

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). Lesson: homogeneous equations, put y = vx

3Partial fractions and two logs

1v(v+2)=Av+Bv+2\frac{1}{v(v + 2)} = \frac{A}{v} + \frac{B}{v + 2} (Section 7.5); ∫dvv+a=log⁡∣v+a∣+C\int\frac{dv}{v + a} = \log|v + a| + C (Section 7.2, formula (xii), shifted). Basics: every method ends with an integral

4General and particular solutions

One arbitrary constant in the general solution of a first order equation (chapter Summary); the condition fixes it and gives the particular solution (Section 9.3). Lesson: general and particular solutions

Solution

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

    Move (xy+y2) dx(xy + y^2)\,dx across and divide by x2 dxx^2\,dx⁠:

    dydx=−xy+y2x2=F(x,y).…(1)\frac{dy}{dx} = -\frac{xy + y^2}{x^2} = F(x, y).\quad\ldots(1)
    This needs x≠0x \ne 0⁠, which the substitution v=yxv = \frac{y}{x} needs anyway. Dividing loses no solution with x≠0x \ne 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: F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)

    F(λx,λy)=−λx⋅λy+λ2y2λ2x2=−λ2(xy+y2)λ2x2=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= -\frac{\lambda x\cdot\lambda y + \lambda^2y^2}{\lambda^2x^2} \\ &= -\frac{\lambda^2(xy + y^2)}{\lambda^2x^2} \\ &= \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 λ2\lambda^2 cancels, for any λ≠0\lambda \ne 0⁠.
    Section 9.4.2: 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=−vx2+v2x2x2=−(v+v2).v + x\frac{dv}{dx} = -\frac{vx^2 + v^2x^2}{x^2} = -(v + v^2).
    Dividing by x2≠0x^2 \ne 0 leaves 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=−v−v2−v=−v2−2v=−v(v+2).\begin{aligned} x\frac{dv}{dx} &= -v - v^2 - v \\ &= -v^2 - 2v = -v(v + 2). \end{aligned}
    Subtract vv from both sides: −v−v2−v=−v2−2v-v - v^2 - v = -v^2 - 2v⁠, then take out the common factor −v-v⁠.
    Section 9.4.2, equation (4): xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v⁠. Lesson: homogeneous equations
  5. Separate vv and xx

    dvv(v+2)=−dxx.\frac{dv}{v(v + 2)} = -\frac{dx}{x}.
    This divides by v(v+2)v(v + 2)⁠, which is 0 for v=0v = 0 and v=−2v = -2⁠. Both constants make the two sides of Step 4 zero, so y=0y = 0 and y=−2xy = -2x are solutions (on y=−2xy = -2x the given equation reads −2x2 dx+2x2 dx=0-2x^2\,dx + 2x^2\,dx = 0⁠). They are set aside here, but neither passes through (1,1)(1, 1)⁠: at x=1x = 1 they give y=0y = 0 and y=−2y = -2⁠, not 1. So the particular solution loses nothing.
    Section 9.4.2, equation (5); separating as in Section 9.4.1. Basics: dy = y′ dx
  6. Partial fractions, then integrate

    Write 1v(v+2)=Av+Bv+2\frac{1}{v(v + 2)} = \frac{A}{v} + \frac{B}{v + 2}⁠. Then 1=A(v+2)+Bv1 = A(v + 2) + Bv⁠. Putting v=0v = 0 gives 1=2A1 = 2A⁠, so A=12A = \frac12⁠; putting v=−2v = -2 gives 1=−2B1 = -2B⁠, so B=−12B = -\frac12⁠. Integrating, with one constant C1C_1⁠:

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

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

    ddv(12log⁡∣v∣−12log⁡∣v+2∣)=12v−12(v+2)=1v(v+2).\begin{aligned} &\frac{d}{dv}\left(\tfrac12\log|v| - \tfrac12\log|v + 2|\right) \\ &= \frac{1}{2v} - \frac{1}{2(v + 2)} = \frac{1}{v(v + 2)}. \end{aligned}
    The two values of vv make one bracket vanish each, which gives AA and BB at once. The equation has order 1 (degree 1), so one arbitrary constant is enough.
    Section 7.5, partial fractions; Section 7.2, formula (xii). Basics: every method ends with an integral
  7. Put v=yxv = \frac{y}{x} back: the general solution

    Multiply (2) by 2 and combine: log⁡∣v∣−log⁡∣v+2∣+log⁡x2=2C1\log|v| - \log|v + 2| + \log x^2 = 2C_1⁠, so

    ∣x2vv+2∣=e2C1,x2vv+2=C,\left|\frac{x^2v}{v + 2}\right| = e^{2C_1},\quad \frac{x^2v}{v + 2} = C,

    with C=±e2C1C = \pm e^{2C_1}⁠. Since x2vv+2=x2⋅yxy+2xx=x2yy+2x\frac{x^2v}{v + 2} = \frac{x^2\cdot\frac{y}{x}}{\frac{y + 2x}{x}} = \frac{x^2y}{y + 2x}⁠,

    x2y=C(y+2x).…(3)x^2y = C(y + 2x).\quad\ldots(3)
    Removing the modulus puts a sign in front of e2C1e^{2C_1}⁠; CC takes that sign. The value C=0C = 0 gives x2y=0x^2y = 0⁠, the solution y=0y = 0 set aside in Step 5. The other line of Step 5, y=−2xy = -2x⁠, is not given by any CC⁠: there y+2x=0y + 2x = 0 but x2y=−2x3≠0x^2y = -2x^3 \ne 0⁠. It is an extra solution, set aside by the division. This is the general solution for x≠0x \ne 0⁠.
    Section 9.4.2: replace vv to get the general solution. Lesson: Examples 10 to 13
  8. Use the condition: y=1y = 1 when x=1x = 1

    Putting x=1x = 1⁠, y=1y = 1 in (3):

    1⋅1=C(1+2)  ⇒  C=13.1\cdot1 = C(1 + 2) \;\Rightarrow\; C = \frac13.

    So 3x2y=y+2x3x^2y = y + 2x⁠: the particular solution is

    y+2x=3x2y.y + 2x = 3x^2y.
    Multiplying x2y=13(y+2x)x^2y = \frac13(y + 2x) by 3 clears the fraction and gives the book's form. Solving for yy⁠: y(3x2−1)=2xy(3x^2 - 1) = 2x⁠, so y=2x3x2−1y = \frac{2x}{3x^2 - 1}⁠.
    Section 9.3: a particular solution from the general one. Lesson: general and particular solutions
  9. Check by substituting back, and see the curve

    Check: with y=2x3x2−1y = \frac{2x}{3x^2 - 1}⁠, the quotient rule gives y′=−6x2−2(3x2−1)2y' = \frac{-6x^2 - 2}{(3x^2 - 1)^2}⁠. Then, over the common denominator (3x2−1)2(3x^2 - 1)^2⁠,

    x2y′+xy+y2=−6x4−2x2(3x2−1)2+6x4−2x2+4x2(3x2−1)2=0,\begin{aligned} x^2y' + xy + y^2 &= \frac{-6x^4 - 2x^2}{(3x^2 - 1)^2} \\ &\quad + \frac{6x^4 - 2x^2 + 4x^2}{(3x^2 - 1)^2} \\ &= 0, \end{aligned}

    so x2 dy+(xy+y2) dx=0x^2\,dy + (xy + y^2)\,dx = 0⁠. And at x=1x = 1⁠, y=23−1=1y = \frac{2}{3 - 1} = 1⁠.

    Where it lives. The formula breaks down where 3x2−1=03x^2 - 1 = 0⁠, that is x=±13x = \pm\frac{1}{\sqrt3}⁠. The given point has x=1>13x = 1 > \frac{1}{\sqrt3}⁠, so the particular solution is y=2x3x2−1y = \frac{2x}{3x^2 - 1} on x>13≈0.577x > \frac{1}{\sqrt3} \approx 0.577⁠. There y>0y > 0 and y+2x=6x33x2−1>0y + 2x = \frac{6x^3}{3x^2 - 1} > 0⁠, so v≠0v \ne 0 and v≠−2v \ne -2 all along it, as Step 5 needed.

    X Y Y′ (1, 1) x = 1/√3 y = 2x/(3x² − 1) O
    Slope field of dydx=−xy+y2x2\frac{dy}{dx} = -\frac{xy + y^2}{x^2} for x>0x > 0⁠, with equal scales, and the particular solution y=2x3x2−1y = \frac{2x}{3x^2 - 1} through (1,1)(1, 1)⁠. It lives on x>13x > \frac{1}{\sqrt3}⁠: as xx falls towards 13\frac{1}{\sqrt3} (dashed line) it shoots up, and for large xx it sinks towards the xx-axis, which is the solution y=0y = 0⁠.
    Getting the equation back proves the answer. Here xy+y2xy + y^2 over the common denominator is 2x2(3x2−1)+4x2(3x2−1)2\frac{2x^2(3x^2 - 1) + 4x^2}{(3x^2 - 1)^2}⁠, which expands to the second fraction above.
    The quotient rule (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 x2y=C(y+2x)x^2y = C(y + 2x)⁠, and the particular solution with y=1y = 1 when x=1x = 1 is y+2x=3x2yy + 2x = 3x^2y⁠, that is y=2x3x2−1y = \frac{2x}{3x^2 - 1} for x>13x > \frac{1}{\sqrt3}⁠. (Textbook answer: y+2x=3x2yy + 2x = 3x^2y⁠.)

Check it with numbers

Take x=2x = 2⁠: y=411≈0.3636364y = \frac{4}{11} \approx 0.3636364⁠. Then 3x2y=4811≈4.36363643x^2y = \frac{48}{11} \approx 4.3636364 and y+2x≈0.3636364+4=4.3636364y + 2x \approx 0.3636364 + 4 = 4.3636364⁠.

The equation gives the slope −xy+y2x2=−26121≈−0.21488-\frac{xy + y^2}{x^2} = -\frac{26}{121} \approx -0.21488 there. The curve itself: y(2.001)≈0.3634216228y(2.001) \approx 0.3634216228 and y(1.999)≈0.3638513750y(1.999) \approx 0.3638513750⁠, a difference of −0.0004297522-0.0004297522⁠, so

−0.00042975220.002≈−0.21488.\frac{-0.0004297522}{0.002} \approx -0.21488.
Common mistakes
  1. Writing xdvdx=−v2x\frac{dv}{dx} = -v^2: subtracting vv from −(v+v2)-(v + v^2) gives −v2−2v-v^2 - 2v⁠, not −v2-v^2⁠.
  2. Wrong signs in the partial fractions. B=−12B = -\frac12⁠, so the second log has a minus sign.
  3. Dropping the factor 12\frac12 before combining the logs: multiply by 2 first.
  4. Simplifying x2vv+2\frac{x^2v}{v + 2} wrongly. With v=yxv = \frac{y}{x} it is x2yy+2x\frac{x^2y}{y + 2x}⁠.
What to take away
  1. Same degree everywhere means homogeneous: y=vxy = vx separates it.
  2. A vv-fraction with a factorable bottom splits by partial fractions into logs.
  3. When you divide by v(v+2)v(v + 2)⁠, note the solutions v=0v = 0⁠, v=−2v = -2 and check whether they matter for the given point.

Every fact used, and where it comes from

FactUsed inSource
Homogeneous function of degree zero; homogeneous equationSteps 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) - vSteps 3, 4Section 9.4.2, equations (2) to (4) (Lesson)
Separating the variables; solutions set aside by the division are checked separatelySteps 5, 7Section 9.4.1 (separating needs h(y)≠0h(y) \ne 0⁠) (Basics)
Partial fractions with distinct linear factorsStep 6Section 7.5
∫dvv+a=log⁡∣v+a∣+C\int\frac{dv}{v + a} = \log|v + a| + CStep 6Section 7.2, formula (xii) (Basics)
Particular solution from a given pointStep 8Section 9.3 (Lesson)
The quotient ruleStep 9Chapter 5, Section 5.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 →