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

Example 16: Linear in xx⁠: y dx−(x+2y2) dy=0y\,dx - (x + 2y^2)\,dy = 0

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

Find the general solution of the differential equation y dx−(x+2y2) dy=0y\,dx - (x + 2y^2)\,dy = 0⁠.

Exam answer

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

dxdy−xy=2y\frac{dx}{dy} - \frac{x}{y} = 2y

This is of the form dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠, where P1=−1yP_1 = -\frac{1}{y} and Q1=2yQ_1 = 2y⁠.

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

So the solution is given by

x⋅1y=∫2y⋅1y dy+Cxy=∫2 dy+Cxy=2y+C\begin{aligned} x\cdot\frac{1}{y} &= \int 2y\cdot\frac{1}{y}\,dy + C \\ \frac{x}{y} &= \int 2\,dy + C \\ \frac{x}{y} &= 2y + C \end{aligned}

∴\therefore x=2y2+Cyx = 2y^2 + Cy 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=yx+2y2\frac{dy}{dx} = \frac{y}{x + 2y^2}⁠, which is not linear in yy (yy sits in the denominator, squared). But solved for dxdy\frac{dx}{dy} it is dxdy=xy+2y\frac{dx}{dy} = \frac{x}{y} + 2y⁠: here xx appears only to the first power. So treat xx as the unknown function of yy and use the second form of a linear equation, dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠, with I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠.

Given, to find, and the plan
Given
y dx−(x+2y2) dy=0y\,dx - (x + 2y^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 one constant. (6) Solve for xx⁠. (7) Check.

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|⁠, and e−log⁡∣y∣=1∣y∣e^{-\log|y|} = \frac{1}{|y|}⁠. Basics: exponentials

4One constant

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

Solution

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

    y dx=(x+2y2) dydxdy=x+2y2y=xy+2ydxdy−xy=2y.\begin{aligned} y\,dx &= (x + 2y^2)\,dy \\ \frac{dx}{dy} &= \frac{x + 2y^2}{y} = \frac{x}{y} + 2y \\ \frac{dx}{dy} - \frac{x}{y} &= 2y. \end{aligned}
    Divide by y dyy\,dy⁠, so we need y≠0y \ne 0⁠. We use dxdy\frac{dx}{dy} because then xx and dxdy\frac{dx}{dy} appear only to the first power. (The xx-axis y=0y = 0 also satisfies the given equation, since there y=0y = 0 and dy=0dy = 0⁠; the general solution below describes the solution curves with y≠0y \ne 0⁠.)
    Section 9.4.3: the form dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠. Lesson: linear equations
  2. Read off P1P_1 and Q1Q_1

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

    Compare dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1 with dxdy+(−1y)x=2y\frac{dx}{dy} + \left(-\frac{1}{y}\right)x = 2y⁠. Both depend on yy only, as this form requires. Keep the minus sign with P1P_1⁠.
    Section 9.4.3: P1P_1⁠, Q1Q_1 constants or functions of yy only. Lesson: linear equations
  3. The integrating factor: 1y\frac{1}{y}

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

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

    For y>0y > 0⁠, 1∣y∣=1y\frac{1}{|y|} = \frac{1}{y}⁠. For y<0y < 0⁠, 1∣y∣=−1y\frac{1}{|y|} = -\frac{1}{y}⁠, a constant multiple of 1y\frac{1}{y}⁠; multiplying an integrating factor by a nonzero constant gives another integrating factor (the constant cancels from both sides). So 1y\frac{1}{y} works on both sides of y=0y = 0⁠. The book writes e−log⁡y=elog⁡(y)−1=1ye^{-\log y} = e^{\log(y)^{-1}} = \frac{1}{y}⁠.
    Section 9.4.3: I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠. Basics: exponentials
  4. Multiply by 1y\frac{1}{y}⁠: the left side is one derivative

    1ydxdy−xy2=2ddy(xy)=2.\begin{aligned} \frac{1}{y}\frac{dx}{dy} - \frac{x}{y^2} &= 2 \\ \frac{d}{dy}\left(\frac{x}{y}\right) &= 2. \end{aligned}
    By the product rule in the variable yy⁠: ddy(x⋅1y)=1ydxdy+x⋅(−1y2)\frac{d}{dy}\left(x\cdot\frac{1}{y}\right) = \frac{1}{y}\frac{dx}{dy} + x\cdot\left(-\frac{1}{y^2}\right)⁠, exactly the left side.
    Product rule (Chapter 5, Section 5.3). Basics: (y · g)′ = g(y′ + Py)
  5. Integrate with respect to yy⁠, with one constant

    x⋅1y=∫(2y)(1y)dy+Cxy=∫2 dy+C=2y+C.\begin{aligned} x\cdot\frac{1}{y} &= \int(2y)\left(\frac{1}{y}\right)dy + C \\ \frac{x}{y} &= \int 2\,dy + C = 2y + 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⁠. 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⁠. Basics: one constant for order 1
  6. Solve for xx

    x=2y2+Cy.x = 2y^2 + Cy.
    Multiply both sides by yy⁠. The answer gives xx as a function of yy⁠, which is natural here: each solution curve is a parabola opening along the xx-axis.
    Section 9.4.3: the general solution. Lesson: Examples 14 to 18
  7. Check by substituting back

    From x=2y2+Cyx = 2y^2 + Cy⁠: dxdy=4y+C\frac{dx}{dy} = 4y + C⁠. In the given equation, divided by dydy⁠:

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

    for every CC⁠.

    The given equation y dx−(x+2y2) dy=0y\,dx - (x + 2y^2)\,dy = 0 means ydxdy−(x+2y2)=0y\frac{dx}{dy} - (x + 2y^2) = 0 along a curve. It holds identically, so x=2y2+Cyx = 2y^2 + Cy is a solution for every CC⁠.
    A solution makes L.H.S. = R.H.S. (Section 9.3). Lesson: general and particular solutions
Result

The general solution is x=2y2+Cyx = 2y^2 + Cy⁠, where CC is an arbitrary constant (y≠0y \ne 0⁠). (Textbook answer: x=2y2+Cyx = 2y^2 + Cy⁠.)

Check it with numbers

Take C=1C = 1 and y=2y = 2⁠: x=8+2=10x = 8 + 2 = 10⁠. The equation gives dxdy=x+2y2y=10+82=9\frac{dx}{dy} = \frac{x + 2y^2}{y} = \frac{10 + 8}{2} = 9⁠.

The curve itself, x=2y2+yx = 2y^2 + y⁠: x(2.001)=10.009002x(2.001) = 10.009002 and x(1.999)=9.991002x(1.999) = 9.991002⁠, so

10.009002−9.9910020.002=9.\frac{10.009002 - 9.991002}{0.002} = 9.
Common mistakes
  1. Forcing the dydx\frac{dy}{dx} form. dydx=yx+2y2\frac{dy}{dx} = \frac{y}{x + 2y^2} is not linear in yy⁠; look at dxdy\frac{dx}{dy} instead.
  2. Taking P1=1yP_1 = \frac{1}{y}⁠. The equation is dxdy−xy=2y\frac{dx}{dy} - \frac{x}{y} = 2y⁠, so P1=−1yP_1 = -\frac{1}{y} and the I.F. is 1y\frac{1}{y}⁠, not yy⁠.
  3. Integrating with respect to xx⁠. In this form everything is a function of yy⁠: integrate dydy⁠.
  4. Writing the answer as y=…y = \ldots when the method naturally gives xx in terms of yy⁠; x=2y2+Cyx = 2y^2 + Cy is the general solution.
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. A nonzero constant factor in an integrating factor does not matter; that is why 1y\frac{1}{y} can replace 1∣y∣\frac{1}{|y|}⁠.

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)
∫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)
One arbitrary constantStep 5Chapter Summary (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 →