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

Exercise 9.5 · Q12: Linear in xx⁠: (x+3y2)dydx=y(x + 3y^2)\frac{dy}{dx} = y⁠, y>0y > 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:

12. (x+3y2)dydx=y (y>0)(x + 3y^2)\dfrac{dy}{dx} = y\ (y > 0)⁠.

Exam answer

The equation can be written as

dxdy=x+3y2ydxdy−xy=3y\begin{aligned} \frac{dx}{dy} &= \frac{x + 3y^2}{y} \\ \frac{dx}{dy} - \frac{x}{y} &= 3y \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=3yQ_1 = 3y⁠.

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=∫3y⋅1y dy+Cxy=∫3 dy+Cxy=3y+C\begin{aligned} x\cdot\frac{1}{y} &= \int 3y\cdot\frac{1}{y}\,dy + C \\ \frac{x}{y} &= \int 3\,dy + C \\ \frac{x}{y} &= 3y + C \end{aligned}

Multiplying by yy⁠,

∴\therefore x=3y2+Cyx = 3y^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

As written, dydx=yx+3y2\frac{dy}{dx} = \frac{y}{x + 3y^2} is not linear in yy⁠. Turn it upside down: dxdy=x+3y2y=xy+3y\frac{dx}{dy} = \frac{x + 3y^2}{y} = \frac{x}{y} + 3y⁠, and now xx appears only to the first power. So the equation is linear in xx⁠, of the form dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠, exactly like Example 16. The condition y>0y > 0 lets us write log⁡y\log y without the modulus.

Given, to find, and the plan
Given
(x+3y2)dydx=y(x + 3y^2)\frac{dy}{dx} = y⁠, with y>0y > 0⁠.
To find
The general solution (one arbitrary constant).
Plan
(1) Write it as dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠. (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

2Turning a derivative upside down

Where dydx≠0\frac{dy}{dx} \ne 0⁠, dxdy=1÷dydx\frac{dx}{dy} = 1 \div \frac{dy}{dx}⁠. Basics: y′ is the slope of y

3Logs

∫dyy=log⁡y\int\frac{dy}{y} = \log y for y>0y > 0 (Section 7.2, formula (xii)), and e−log⁡y=elog⁡y−1=1ye^{-\log y} = e^{\log y^{-1}} = \frac{1}{y}⁠. Basics: exponentials

4Why 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)

Solution

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

    dxdy=x+3y2y=xy+3ydxdy−xy=3y.\begin{aligned} \frac{dx}{dy} &= \frac{x + 3y^2}{y} = \frac{x}{y} + 3y \\ \frac{dx}{dy} - \frac{x}{y} &= 3y. \end{aligned}
    Since y>0y > 0⁠, the right side yy of the given equation is not 0, so neither dydx\frac{dy}{dx} nor x+3y2x + 3y^2 can be 0 on a solution curve. So we may take reciprocals: dxdy=x+3y2y\frac{dx}{dy} = \frac{x + 3y^2}{y}⁠. The equation has order 1 and degree 1 (a polynomial in the derivative, to the first power). In this form xx and dxdy\frac{dx}{dy} appear only to the first power.
    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=3yQ_1 = 3y⁠.

    Compare dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1 with dxdy+(−1y)x=3y\frac{dx}{dy} + \left(-\frac{1}{y}\right)x = 3y⁠. Both depend on yy only. 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=elog⁡y−1=1y.\text{I.F.} = e^{\int -\frac{1}{y}\,dy} = e^{-\log y} = e^{\log y^{-1}} = \frac{1}{y}.
    Because y>0y > 0⁠, ∫dyy=log⁡∣y∣=log⁡y\int\frac{dy}{y} = \log|y| = \log y⁠: no modulus is needed. Then −log⁡y=log⁡y−1-\log y = \log y^{-1} and elog⁡t=te^{\log t} = t⁠.
    Section 9.4.3: I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠; Section 7.2, formula (xii). Basics: exponentials
  4. Multiply by 1y\frac{1}{y}⁠: the left side is one derivative

    1ydxdy−xy2=3ddy(xy)=3.\begin{aligned} \frac{1}{y}\frac{dx}{dy} - \frac{x}{y^2} &= 3 \\ \frac{d}{dy}\left(\frac{x}{y}\right) &= 3. \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=∫3y⋅1y dy+Cxy=∫3 dy+C=3y+C.\begin{aligned} x\cdot\frac{1}{y} &= \int 3y\cdot\frac{1}{y}\,dy + C \\ \frac{x}{y} &= \int 3\,dy + C = 3y + 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.=3y⋅1y=3Q_1\times\text{I.F.} = 3y\cdot\frac{1}{y} = 3⁠. The CC is the one arbitrary constant.
    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=3y2+Cy.x = 3y^2 + Cy.
    Multiply both sides by yy⁠. Each solution curve is a parabola opening along the xx-axis; only its part with y>0y > 0 belongs to the answer.
    Section 9.4.3: the general solution. Lesson: Exercise 9.5 player
  7. Check by substituting back

    From x=3y2+Cyx = 3y^2 + Cy⁠: dxdy=6y+C\frac{dx}{dy} = 6y + C⁠, and

    x+3y2=6y2+Cy=y(6y+C)=ydxdy.\begin{aligned} x + 3y^2 &= 6y^2 + Cy = y(6y + C) \\ &= y\frac{dx}{dy}. \end{aligned}

    So (x+3y2)dydx=ydxdy⋅dydx=y(x + 3y^2)\frac{dy}{dx} = y\frac{dx}{dy}\cdot\frac{dy}{dx} = y⁠, for every CC⁠.

    dxdy⋅dydx=1\frac{dx}{dy}\cdot\frac{dy}{dx} = 1 wherever dxdy≠0\frac{dx}{dy} \ne 0⁠. At a point with 6y+C=06y + C = 0 the tangent is vertical and x+3y2=0x + 3y^2 = 0⁠; such points are excluded by the equation itself, as Step 1 showed.
    A solution makes L.H.S. = R.H.S. (Section 9.3). Lesson: general and particular solutions
Result

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

Check it with numbers

Take C=1C = 1 and y=1y = 1⁠: x=3+1=4x = 3 + 1 = 4⁠. The equation gives dydx=yx+3y2=17\frac{dy}{dx} = \frac{y}{x + 3y^2} = \frac{1}{7}⁠, so dxdy=7\frac{dx}{dy} = 7⁠.

The curve itself, x=3y2+yx = 3y^2 + y⁠: x(1.001)=4.007003x(1.001) = 4.007003 and x(0.999)=3.993003x(0.999) = 3.993003⁠, so

4.007003−3.9930030.002=7.\frac{4.007003 - 3.993003}{0.002} = 7.
Common mistakes
  1. Trying to make it linear in yy⁠. dydx=yx+3y2\frac{dy}{dx} = \frac{y}{x + 3y^2} is not linear in yy⁠; use dxdy\frac{dx}{dy}⁠.
  2. Taking P1=1yP_1 = \frac{1}{y}⁠. The xx term comes over with a minus sign: P1=−1yP_1 = -\frac{1}{y}⁠, so the I.F. is 1y\frac{1}{y}⁠, not yy⁠.
  3. Writing ∫3y⋅1y dy=3y22\int 3y\cdot\frac{1}{y}\,dy = \frac{3y^2}{2}⁠. The yy cancels first: ∫3 dy=3y\int 3\,dy = 3y⁠.
  4. Forgetting to multiply CC by yy at the end: the answer is 3y2+Cy3y^2 + Cy⁠, not 3y2+C3y^2 + C⁠.
What to take away
  1. When dydx=somethinglinear in x\frac{dy}{dx} = \frac{\text{something}}{\text{linear in } x}⁠, turn it upside down and look for dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠.
  2. P1=−1yP_1 = -\frac{1}{y} gives I.F. 1y\frac{1}{y}⁠; with y>0y > 0 no modulus is needed.
  3. Check by substituting back, using dxdy⋅dydx=1\frac{dx}{dy}\cdot\frac{dy}{dx} = 1⁠.

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)
∫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)
dxdy⋅dydx=1\frac{dx}{dy}\cdot\frac{dy}{dx} = 1Steps 1, 7Chapter 5, Section 5.6 (chain rule, with yy as the parameter) (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 →