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

Exercise 9.5 · Q11: Linear in xx⁠: y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0

Exercise 9.5Linear differential equations, the form dx/dy + P₁x = Q₁ · Section 9.4.3
The question

For each of the differential equations given in Exercises 1 to 12, find the general solution:

11. y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0

Exam answer

The equation can be written as

dxdy=y2−xydxdy+xy=y\begin{aligned} \frac{dx}{dy} &= \frac{y^2 - x}{y} \\ \frac{dx}{dy} + \frac{x}{y} &= y \end{aligned}

This is of the form dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠, where P1=1yP_1 = \frac{1}{y} and Q1=yQ_1 = y (y≠0)(y \ne 0)⁠.

I.F.=e∫1ydy=elog⁡y=y\begin{aligned} \text{I.F.} &= e^{\int\frac{1}{y}dy} \\ &= e^{\log y} = y \end{aligned}

So the solution is given by

x⋅y=∫y⋅y dy+C=∫y2 dy+C=y33+C\begin{aligned} x\cdot y &= \int y\cdot y\,dy + C \\ &= \int y^2\,dy + C \\ &= \frac{y^3}{3} + C \end{aligned}

Dividing by yy⁠,

∴\therefore x=y23+Cyx = \dfrac{y^2}{3} + \dfrac{C}{y} is the general solution.

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

The one idea this problem is built on

Solved for dydx\frac{dy}{dx}⁠, the equation is dydx=yy2−x\frac{dy}{dx} = \frac{y}{y^2 - x}⁠, which is not linear in yy⁠: yy sits in the denominator, squared. Solved for dxdy\frac{dx}{dy}⁠, it is dxdy=y−xy\frac{dx}{dy} = y - \frac{x}{y}⁠, where xx appears only to the first power. So treat xx as the unknown function of yy and use the second linear form, dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠, with I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠. This is the same move as in Example 16.

Given, to find, and the plan
Given
y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0⁠.
To find
The general solution (one arbitrary constant).
Plan
(1) Write it as dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1 (y≠0y \ne 0⁠). (2) Read off P1P_1⁠, Q1Q_1⁠. (3) I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠. (4) Multiply and see the product rule. (5) Integrate with respect to yy⁠, with one constant. (6) Solve for xx⁠. (7) Check by substitution.

Basics you need

1Linear in xx

dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠, where P1P_1⁠, Q1Q_1 are constants or functions of yy only, is also a first order linear equation. I.F. =e∫P1 dy= e^{\int P_1\,dy} and x (I.F.)=∫(Q1×I.F.) dy+Cx\,(\text{I.F.}) = \int(Q_1\times\text{I.F.})\,dy + C (Section 9.4.3). Lesson: linear equations, the integrating factor

2Why the I.F. works

If g′=P1gg' = P_1g (derivatives in yy⁠), then g x′+P1g x=(xg)′g\,x' + P_1g\,x = (xg)'⁠. Basics: (y · g)′ = g(y′ + Py)

3Logs

∫dyy=log⁡∣y∣\int\frac{dy}{y} = \log|y| (Section 7.2, formula (xii)), and elog⁡∣y∣=∣y∣e^{\log|y|} = |y|⁠. Basics: exponentials

4One constant

A first order equation has one arbitrary constant in its general solution (chapter Summary). Basics: one constant for order 1

Solution

  1. Write it with dxdy\frac{dx}{dy}

    y dx=−(x−y2) dy=(y2−x) dydxdy=y2−xy=y−xydxdy+xy=y.\begin{aligned} y\,dx &= -(x - y^2)\,dy = (y^2 - x)\,dy \\ \frac{dx}{dy} &= \frac{y^2 - x}{y} = y - \frac{x}{y} \\ \frac{dx}{dy} + \frac{x}{y} &= y. \end{aligned}
    Divide by y dyy\,dy⁠, so we need y≠0y \ne 0⁠. The equation has order 1 and degree 1: it is a polynomial in the derivative, which appears to the first power. We use dxdy\frac{dx}{dy} because then xx and dxdy\frac{dx}{dy} appear only to the first power, while dydx=yy2−x\frac{dy}{dx} = \frac{y}{y^2 - x} is not linear in yy⁠. (The xx-axis y=0y = 0 also satisfies the given equation, since there y=0y = 0 and dy=0dy = 0⁠. Dividing by yy loses it, so it is checked here separately. The general solution below describes the solution curves with y≠0y \ne 0⁠; the line y=0y = 0 is not in x=y23+Cyx = \frac{y^2}{3} + \frac{C}{y}⁠, although xy=y33+Cxy = \frac{y^3}{3} + C with C=0C = 0 contains it.)
    Section 9.4.3: the form dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠; Section 9.2.2: degree. Lesson: linear equations
  2. Read off P1P_1 and Q1Q_1

    P1=1yP_1 = \frac{1}{y} and Q1=yQ_1 = y⁠.

    Compare dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1 with dxdy+1y x=y\frac{dx}{dy} + \frac{1}{y}\,x = y⁠. Both P1P_1 and Q1Q_1 depend on yy only, as this form requires.
    Section 9.4.3: P1P_1⁠, Q1Q_1 constants or functions of yy only. Lesson: linear equations
  3. The integrating factor: yy

    I.F.=e∫1y dy=elog⁡∣y∣=∣y∣.\text{I.F.} = e^{\int\frac{1}{y}\,dy} = e^{\log|y|} = |y|.

    We take I.F.=y\text{I.F.} = y⁠, as the book does.

    For y>0y > 0⁠, ∣y∣=y|y| = y⁠. For y<0y < 0⁠, ∣y∣=−y|y| = -y⁠, which is −1-1 times yy⁠; a nonzero constant multiple of an integrating factor is again one (the constant cancels from both sides). So yy works on both sides of y=0y = 0⁠.
    Section 9.4.3: I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠; Section 7.2, formula (xii). Basics: exponentials
  4. Multiply by yy⁠: the left side is one derivative

    ydxdy+x=y2ddy(xy)=y2.\begin{aligned} y\frac{dx}{dy} + x &= y^2 \\ \frac{d}{dy}(xy) &= y^2. \end{aligned}
    By the product rule in the variable yy⁠: ddy(x⋅y)=ydxdy+x⋅1\frac{d}{dy}(x\cdot y) = y\frac{dx}{dy} + x\cdot 1⁠, exactly the left side. (This is just the given equation divided by dydy and rearranged.)
    Product rule (Chapter 5, Section 5.3). Basics: (y · g)′ = g(y′ + Py)
  5. Integrate with respect to yy⁠, with one constant

    x⋅y=∫y⋅y dy+C=∫y2 dy+Cxy=y33+C.\begin{aligned} x\cdot y &= \int y\cdot y\,dy + C = \int y^2\,dy + C \\ xy &= \frac{y^3}{3} + C. \end{aligned}
    This is x (I.F.)=∫(Q1×I.F.) dy+Cx\,(\text{I.F.}) = \int(Q_1\times\text{I.F.})\,dy + C⁠, with Q1×I.F.=y⋅y=y2Q_1\times\text{I.F.} = y\cdot y = y^2⁠. The CC is the one arbitrary constant of the general solution.
    Section 9.4.3: the solution of dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠; Section 7.2, formula (i). Basics: one constant for order 1
  6. Solve for xx

    x=y23+Cy(y≠0).x = \frac{y^2}{3} + \frac{C}{y}\quad(y \ne 0).
    Divide both sides by y≠0y \ne 0⁠; every term is divided, including CC⁠. The answer gives xx as a function of yy⁠, which is natural for this form.
    Section 9.4.3: the general solution. Lesson: Exercise 9.5 player
  7. Check by substituting back

    From x=y23+Cyx = \frac{y^2}{3} + \frac{C}{y}⁠: dxdy=2y3−Cy2\frac{dx}{dy} = \frac{2y}{3} - \frac{C}{y^2}⁠. In the given equation, divided by dydy⁠:

    ydxdy+x−y2=2y23−Cy+y23+Cy−y2=0,\begin{aligned} y\frac{dx}{dy} + x - y^2 &= \frac{2y^2}{3} - \frac{C}{y} + \frac{y^2}{3} \\ &\quad + \frac{C}{y} - y^2 \\ &= 0, \end{aligned}

    for every CC⁠.

    The given equation y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0 means ydxdy+(x−y2)=0y\frac{dx}{dy} + (x - y^2) = 0 along a curve. The Cy\frac{C}{y} terms cancel and 23+13=1\frac{2}{3} + \frac{1}{3} = 1⁠, so it holds identically on y>0y > 0 and on y<0y < 0⁠.
    A solution makes L.H.S. = R.H.S. (Section 9.3). Lesson: general and particular solutions
Result

The general solution is x=y23+Cyx = \frac{y^2}{3} + \frac{C}{y}⁠, that is xy=y33+Cxy = \frac{y^3}{3} + C⁠, where CC is an arbitrary constant (y≠0y \ne 0⁠); the line y=0y = 0 also satisfies the given equation (Step 1). (Textbook answer: x=y23+Cyx = \frac{y^2}{3} + \frac{C}{y}⁠.)

Check it with numbers

Take C=3C = 3 and y=3y = 3⁠: x=3+1=4x = 3 + 1 = 4⁠. The equation gives dxdy=y2−xy=9−43=53≈1.66667\frac{dx}{dy} = \frac{y^2 - x}{y} = \frac{9 - 4}{3} = \frac{5}{3} \approx 1.66667⁠.

The curve itself: x(3.001)≈4.0016671111x(3.001) \approx 4.0016671111 and x(2.999)≈3.9983337778x(2.999) \approx 3.9983337778⁠. They differ by 0.00333333330.0033333333⁠, so

0.00333333330.002≈1.66667.\frac{0.0033333333}{0.002} \approx 1.66667.
Common mistakes
  1. Forcing the dydx\frac{dy}{dx} form. dydx=yy2−x\frac{dy}{dx} = \frac{y}{y^2 - x} is not linear in yy⁠; look at dxdy\frac{dx}{dy} instead.
  2. Getting the sign of P1P_1 wrong. From y dx=(y2−x) dyy\,dx = (y^2 - x)\,dy⁠, the xx term moves to the left as +xy+\frac{x}{y}⁠, so P1=1yP_1 = \frac{1}{y} and the I.F. is yy⁠, not 1y\frac{1}{y}⁠.
  3. Integrating with respect to xx⁠. In this form everything is a function of yy⁠: integrate dydy⁠.
  4. Dividing only y33\frac{y^3}{3} by yy and leaving +C+C⁠: the answer is +Cy+\frac{C}{y}⁠.
What to take away
  1. If an equation is not linear in yy⁠, try it as dxdy\frac{dx}{dy}⁠: it may be linear in xx⁠.
  2. For dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠: I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠, and x (I.F.)=∫(Q1×I.F.) dy+Cx\,(\text{I.F.}) = \int(Q_1\times\text{I.F.})\,dy + C⁠.
  3. P1=kyP_1 = \frac{k}{y} gives the I.F. yky^k (here k=1k = 1⁠); a constant factor ±1\pm1 does not matter.

Every fact used, and where it comes from

FactUsed inSource
The form dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠; I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠; x (I.F.)=∫(Q1×I.F.) dy+Cx\,(\text{I.F.}) = \int(Q_1\times\text{I.F.})\,dy + CSteps 1, 2, 3, 5Section 9.4.3 (Lesson)
Order and degreeStep 1Sections 9.2.1 and 9.2.2 (Lesson)
Solutions lost by a division are checked separately (here y=0y = 0⁠)Step 1Section 9.4.1 (separating needs h(y)≠0h(y) \ne 0⁠); Section 9.3, what a solution is (Lesson)
∫dyy=log⁡∣y∣\int\frac{dy}{y} = \log|y|⁠; elog⁡t=te^{\log t} = tStep 3Section 7.2, formula (xii); Chapter 5, Section 5.4 (Basics)
Product ruleStep 4Chapter 5, Section 5.3 (Basics)
∫yn dy=yn+1n+1+C\int y^n\,dy = \frac{y^{n+1}}{n+1} + CStep 5Section 7.2, formula (i) (Basics)
Substituting back into the equationStep 7Section 9.3 (Lesson)
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 →