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

Exercise 9.4 · Q15: Particular solution of 2xy+y2−2x2dydx=02xy + y^2 - 2x^2\frac{dy}{dx} = 0⁠, y(1)=2y(1) = 2

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:

15. 2xy+y2−2x2dydx=02xy + y^2 - 2x^2\dfrac{dy}{dx} = 0⁠; y=2y = 2 when x=1x = 1

Exam answer

The equation can be written as

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

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

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

Separating the variables,

2 dvv2=dxx\frac{2\,dv}{v^2} = \frac{dx}{x}

Integrating both sides,

−2v=log⁡∣x∣+C-\frac{2}{v} = \log|x| + C

Putting v=yxv = \frac{y}{x}⁠,

−2xy=log⁡∣x∣+C…(i)-\frac{2x}{y} = \log|x| + C\quad\ldots(\text{i})

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

−1=log⁡1+C  ⇒  C=−1-1 = \log 1 + C \;\Rightarrow\; C = -1 −2xy=log⁡∣x∣−1y(1−log⁡∣x∣)=2x\begin{aligned} -\frac{2x}{y} &= \log|x| - 1 \\ y(1 - \log|x|) &= 2x \end{aligned}

∴\therefore The particular solution is y=2x1−log⁡∣x∣y = \dfrac{2x}{1 - \log|x|} (0<x<e0 < x < e⁠).

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

The one idea this problem is built on

The terms 2xy2xy⁠, y2y^2 and 2x22x^2 all have degree 2, so the slope 2xy+y22x2\frac{2xy + y^2}{2x^2} depends only on yx\frac{y}{x}⁠: homogeneous, put y=vxy = vx⁠. After the vv terms cancel, what is left is xdvdx=v22x\frac{dv}{dx} = \frac{v^2}{2}⁠, whose vv-integral is a power, not a log. The condition then fixes the constant, and the answer can be solved for yy⁠.

Given, to find, and the plan
Given
2xy+y2−2x2dydx=02xy + y^2 - 2x^2\frac{dy}{dx} = 0⁠, and y=2y = 2 when x=1x = 1⁠.
To find
The particular solution: no arbitrary constant, passing through (1,2)(1, 2)⁠.
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=v22x\frac{dv}{dx} = \frac{v^2}{2}⁠. (5) Separate. (6) Integrate. (7) Put v=yxv = \frac{y}{x} back. (8) Use the condition and solve for yy⁠. (9) Check, and see where it lives.

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

3Two standard integrals

∫v−2 dv=v−1−1=−1v+C\int v^{-2}\,dv = \frac{v^{-1}}{-1} = -\frac{1}{v} + C and ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C (Section 7.2, formulas (i) and (xii)). 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 2x2dydx2x^2\frac{dy}{dx} across and divide by 2x22x^2⁠:

    dydx=2xy+y22x2=F(x,y).…(1)\frac{dy}{dx} = \frac{2xy + y^2}{2x^2} = F(x, y).\quad\ldots(1)
    This needs x≠0x \ne 0⁠, which the substitution v=yxv = \frac{y}{x} needs anyway, so dividing by 2x22x^2 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)=2λx⋅λy+λ2y22λ2x2=λ2(2xy+y2)λ2(2x2)=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{2\lambda x\cdot\lambda y + \lambda^2y^2}{2\lambda^2x^2} \\ &= \frac{\lambda^2(2xy + y^2)}{\lambda^2(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=2vx2+v2x22x2=2v+v22.v + x\frac{dv}{dx} = \frac{2vx^2 + v^2x^2}{2x^2} = \frac{2v + v^2}{2}.
    Dividing top and bottom 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=v22x\frac{dv}{dx} = \frac{v^2}{2}

    xdvdx=v+v22−v=v22.x\frac{dv}{dx} = v + \frac{v^2}{2} - v = \frac{v^2}{2}.
    2v+v22=v+v22\frac{2v + v^2}{2} = v + \frac{v^2}{2}⁠, so subtracting vv leaves v22\frac{v^2}{2}⁠.
    Section 9.4.2, equation (4). Lesson: homogeneous equations
  5. Separate vv and xx

    2 dvv2=dxx.\frac{2\,dv}{v^2} = \frac{dx}{x}.
    Multiply by 2v2\frac{2}{v^2} and by dxx\frac{dx}{x}⁠. This divides by v2v^2⁠, which is 0 for v=0v = 0⁠. The constant v=0v = 0 makes both sides of Step 4 zero, so y=0y = 0 is a solution (the given equation reads 0+0−0=00 + 0 - 0 = 0⁠). It is set aside here, but at x=1x = 1 it gives y=0y = 0⁠, not 2, so the particular solution loses nothing.
    Section 9.4.2, equation (5); separating as in Section 9.4.1. Basics: dy = y′ dx
  6. Integrate both sides

    ∫2v−2 dv=∫dxx−2v=log⁡∣x∣+C.\begin{aligned} \int 2v^{-2}\,dv &= \int\frac{dx}{x} \\ -\frac{2}{v} &= \log|x| + C. \end{aligned}
    By the power rule, ∫v−2 dv=v−1−1=−1v\int v^{-2}\,dv = \frac{v^{-1}}{-1} = -\frac{1}{v}⁠; it is not a log, because the power is −2-2⁠, not −1-1⁠. The equation has order 1 (degree 1), so one arbitrary constant. Check: ddv(−2v)=2v2\frac{d}{dv}\left(-\frac{2}{v}\right) = \frac{2}{v^2}⁠.
    Section 7.2, formulas (i) and (xii). Basics: every method ends with an integral
  7. Put v=yxv = \frac{y}{x} back: the general solution

    Since 2v=2xy\frac{2}{v} = \frac{2x}{y}⁠,

    −2xy=log⁡∣x∣+C.…(2)-\frac{2x}{y} = \log|x| + C.\quad\ldots(2)
    The answer in the original variables, valid for x≠0x \ne 0 and y≠0y \ne 0⁠. So the solution y=0y = 0 of Step 5 is not given by any CC⁠: it is an extra solution, set aside by the division by v2v^2⁠.
    Section 9.4.2: replace vv to get the general solution. Lesson: Examples 10 to 13
  8. Use the condition: y=2y = 2 when x=1x = 1

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

    −22=log⁡1+C−1=0+C  ⇒  C=−1.\begin{aligned} -\frac{2}{2} &= \log 1 + C \\ -1 &= 0 + C \;\Rightarrow\; C = -1. \end{aligned}

    So −2xy=log⁡∣x∣−1-\frac{2x}{y} = \log|x| - 1⁠. Multiply by −y-y⁠: 2x=y(1−log⁡∣x∣)2x = y(1 - \log|x|)⁠, and the particular solution is

    y=2x1−log⁡∣x∣.y = \frac{2x}{1 - \log|x|}.
    Solving for yy needs 1−log⁡∣x∣≠01 - \log|x| \ne 0⁠, that is ∣x∣≠e|x| \ne e⁠. This is the book's form.
    Section 9.3: a particular solution from the general one. Lesson: general and particular solutions
  9. Check by substituting back, and see where it lives

    Check (for x>0x > 0⁠, where log⁡∣x∣=log⁡x\log|x| = \log x⁠): by the quotient rule,

    y′=2(1−log⁡x)−2x⋅(−1x)(1−log⁡x)2=4−2log⁡x(1−log⁡x)2.\begin{aligned} y' &= \frac{2(1 - \log x) - 2x\cdot\left(-\frac{1}{x}\right)}{(1 - \log x)^2} \\ &= \frac{4 - 2\log x}{(1 - \log x)^2}. \end{aligned}

    Then 2x2y′=2x2(4−2log⁡x)(1−log⁡x)22x^2y' = \frac{2x^2(4 - 2\log x)}{(1 - \log x)^2}⁠, and

    2xy+y2=4x2(1−log⁡x)+4x2(1−log⁡x)2=2x2(4−2log⁡x)(1−log⁡x)2.\begin{aligned} 2xy + y^2 &= \frac{4x^2(1 - \log x) + 4x^2}{(1 - \log x)^2} \\ &= \frac{2x^2(4 - 2\log x)}{(1 - \log x)^2}. \end{aligned}

    So 2xy+y2−2x2y′=02xy + y^2 - 2x^2y' = 0⁠. And at x=1x = 1⁠, y=21−0=2y = \frac{2}{1 - 0} = 2⁠.

    Where it lives. The formula breaks down at x=0x = 0 and where log⁡∣x∣=1\log|x| = 1⁠. The solution through (1,2)(1, 2) is the piece containing x=1x = 1⁠: 0<x<e0 < x < e⁠. On it y>0y > 0⁠, so v≠0v \ne 0⁠, as Step 5 needed. As x→ex \to e from the left, yy grows without bound; as x→0+x \to 0^+⁠, y→0y \to 0⁠.

    X Y (1, 2) x = e y = 2x/(1 − log x) O
    Slope field of dydx=2xy+y22x2\frac{dy}{dx} = \frac{2xy + y^2}{2x^2} for x>0x > 0⁠, with equal scales, and the particular solution y=2x1−log⁡xy = \frac{2x}{1 - \log x} through (1,2)(1, 2)⁠, for 0<x<e0 < x < e⁠. It rises without bound as xx approaches e≈2.718e \approx 2.718 (dashed line), and runs into the origin (hollow dot: x=0x = 0 is excluded) as x→0+x \to 0^+⁠.
    Getting the equation back proves the answer. The textbook adds the conditions x≠0x \ne 0⁠, x≠ex \ne e⁠: these say where the formula is defined on the side of the given point. (For x<0x < 0 the formula would also need x≠−ex \ne -e⁠, but that side is not part of the solution through (1,2)(1, 2)⁠.)
    The quotient rule; (log⁡x)′=1x(\log x)' = \frac{1}{x} (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 −2xy=log⁡∣x∣+C-\frac{2x}{y} = \log|x| + C⁠, and the particular solution with y=2y = 2 when x=1x = 1 is y=2x1−log⁡∣x∣y = \frac{2x}{1 - \log|x|}⁠, on 0<x<e0 < x < e⁠. (Textbook answer: y=2x1−log⁡∣x∣y = \frac{2x}{1 - \log|x|} (x≠0x \ne 0⁠, x≠ex \ne e⁠).)

Check it with numbers

Take x=1.5x = 1.5⁠: log⁡1.5≈0.4054651\log 1.5 \approx 0.4054651⁠, so y=31−0.4054651≈5.0459612y = \frac{3}{1 - 0.4054651} \approx 5.0459612⁠. Then −2xy≈−0.5945349-\frac{2x}{y} \approx -0.5945349⁠, and log⁡1.5−1≈−0.5945349\log 1.5 - 1 \approx -0.5945349⁠.

The equation gives the slope 2xy+y22x2≈9.02214\frac{2xy + y^2}{2x^2} \approx 9.02214 there. The curve itself: y(1.501)≈5.0549915784y(1.501) \approx 5.0549915784 and y(1.499)≈5.0369472947y(1.499) \approx 5.0369472947⁠, a difference of 0.01804428370.0180442837⁠, so

0.01804428370.002≈9.02214.\frac{0.0180442837}{0.002} \approx 9.02214.
Common mistakes
  1. Integrating 1v2\frac{1}{v^2} as a log. ∫v−2 dv=−1v\int v^{-2}\,dv = -\frac{1}{v}⁠.
  2. Sign slips when solving for yy⁠. From −2xy=log⁡∣x∣−1-\frac{2x}{y} = \log|x| - 1⁠, multiply by −y-y⁠: 2x=y(1−log⁡∣x∣)2x = y(1 - \log|x|)⁠.
  3. Forgetting where the answer holds. The curve through (1,2)(1, 2) stops at x=ex = e⁠, where 1−log⁡x=01 - \log x = 0⁠.
What to take away
  1. Same degree everywhere means homogeneous: y=vxy = vx⁠.
  2. Not every vv-integral is a log: 1v2\frac{1}{v^2} gives −1v-\frac{1}{v}⁠.
  3. Put the given values in on their own line, find CC⁠, and then say on which interval the particular solution lives.

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; a solution set aside by the division is checked separatelySteps 5, 7Section 9.4.1 (separating needs h(y)≠0h(y) \ne 0⁠) (Basics)
∫vn dv=vn+1n+1+C\int v^n\,dv = \frac{v^{n + 1}}{n + 1} + C (n≠−1n \ne -1⁠); ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formulas (i) and (xii) (Basics)
Particular solution from a given point; log⁡1=0\log 1 = 0Step 8Section 9.3 (Lesson)
The quotient rule; (log⁡x)′=1x(\log x)' = \frac{1}{x}Step 9Chapter 5, Sections 5.3 and 5.4 (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 →