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

Example 6: Particular solution of dydx=−4xy2\frac{dy}{dx} = -4xy^2⁠, y(0)=1y(0) = 1

ExamplesVariables separable, particular solution · Sections 9.3 and 9.4.1
The question

Find the particular solution of the differential equation dydx=−4xy2\dfrac{dy}{dx} = -4xy^2 given that y=1y = 1⁠, when x=0x = 0⁠.

Exam answer

If y≠0y \ne 0⁠, separating the variables,

dyy2=−4x dx\frac{dy}{y^2} = -4x\,dx

Integrating both sides,

∫dyy2=−4∫x dx−1y=−2x2+C⇒ y=12x2−C…(i)\begin{aligned} \int\frac{dy}{y^2} &= -4\int x\,dx \\ -\frac{1}{y} &= -2x^2 + C \\ \Rightarrow\ y &= \frac{1}{2x^2 - C}\quad\ldots(\text{i}) \end{aligned}

Putting x=0x = 0⁠, y=1y = 1 in (i): 1=1−C1 = \frac{1}{-C}⁠, so C=−1C = -1⁠.

∴\therefore The particular solution is y=12x2+1y = \dfrac{1}{2x^2 + 1}⁠.

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

The one idea this problem is built on

First find the general solution, a whole family of curves with one constant CC⁠. Then the condition "y=1y = 1 when x=0x = 0" picks out the one curve of the family that passes through (0,1)(0, 1)⁠: putting those values in fixes CC⁠. The equation itself is separable: −4x-4x times y2y^2⁠.

Given, to find, and the plan
Given
dydx=−4xy2\frac{dy}{dx} = -4xy^2⁠, and y=1y = 1 when x=0x = 0⁠.
To find
The particular solution: the solution with no arbitrary constant that satisfies the condition.
Plan
(1) Recognise the separable form; deal with y=0y = 0⁠. (2) Separate. (3) Integrate, with one constant. (4) Solve for yy⁠. (5) Use the condition to find CC⁠. (6) Check by substitution and look at the curve.

Basics you need

1Variables separable

dydx=g(x) h(y)\frac{dy}{dx} = g(x)\,h(y) with h(y)≠0h(y) \ne 0 gives ∫dyh(y)=∫g(x) dx\int\frac{dy}{h(y)} = \int g(x)\,dx (Section 9.4.1). Lesson: separate, then integrate

2General and particular solutions

The general solution has an arbitrary constant; a particular solution is obtained by giving the constant a value, here the value forced by the given condition (Section 9.3). Lesson: general and particular solutions

3Power rule with a negative power

∫y−2 dy=y−1−1=−1y\int y^{-2}\,dy = \frac{y^{-1}}{-1} = -\frac{1}{y} (Section 7.2, formula (i), with n=−2n = -2⁠). Basics: every method ends with an integral

4Finding the constant

Put the given xx and yy into the general solution and solve for CC⁠. Basics: order n gives n constants

Solution

  1. Recognise the form, and set y=0y = 0 aside

    dydx=(−4x)⋅y2=g(x) h(y),\frac{dy}{dx} = (-4x)\cdot y^2 = g(x)\,h(y),

    with g(x)=−4xg(x) = -4x and h(y)=y2h(y) = y^2⁠. Here h(y)=0h(y) = 0 when y=0y = 0⁠. The constant function y=0y = 0 does satisfy the equation (both sides are 0), but it does not satisfy y=1y = 1 when x=0x = 0⁠. So we look for a solution with y≠0y \ne 0⁠, and may divide by y2y^2⁠.

    Dividing by h(y)h(y) is only allowed where h(y)≠0h(y) \ne 0⁠. Checking the zero of hh separately makes sure no solution is lost; here the lost one, y=0y = 0⁠, is not the one we want.
    Section 9.4.1: separation needs h(y)≠0h(y) \ne 0⁠. Lesson: separate, then integrate
  2. Separate the variables

    dyy2=−4x dx.\frac{dy}{y^2} = -4x\,dx.
    Divide both sides by y2y^2 (allowed, y≠0y \ne 0⁠) and multiply by dxdx⁠. The left side now has only yy⁠, the right side only xx⁠.
    Separating: yy with dydy⁠, xx with dxdx⁠. Basics: dy = y′ dx
  3. Integrate both sides, with one constant

    ∫y−2 dy=−4∫x dx−1y=−2x2+C.\begin{aligned} \int y^{-2}\,dy &= -4\int x\,dx \\ -\frac{1}{y} &= -2x^2 + C. \end{aligned}

    Check each integral by differentiating: ddy(−1y)=1y2\frac{d}{dy}\left(-\frac{1}{y}\right) = \frac{1}{y^2} and ddx(−2x2)=−4x\frac{d}{dx}(-2x^2) = -4x⁠.

    The power rule with n=−2n = -2 gives y−1−1=−1y\frac{y^{-1}}{-1} = -\frac1y⁠; with n=1n = 1 it gives x22\frac{x^2}{2}⁠, and −4⋅x22=−2x2-4 \cdot \frac{x^2}{2} = -2x^2⁠. The two constants of integration combine into one CC⁠.
  4. Solve for yy⁠: the general solution

    Multiply by −1-1⁠: 1y=2x2−C\frac{1}{y} = 2x^2 - C⁠. Taking reciprocals,

    y=12x2−C…(1)y = \frac{1}{2x^2 - C}\quad\ldots(1)

    for the xx with 2x2≠C2x^2 \ne C⁠.

    This is the general solution (for y≠0y \ne 0⁠): one curve for each value of CC⁠. Taking the reciprocal is allowed because 1y\frac1y is never 0.
    Section 9.3: the solution with an arbitrary constant is the general solution. Lesson: general and particular solutions
  5. Use the condition to find CC

    Put x=0x = 0 and y=1y = 1 in (1):

    1=12⋅0−C=1−C⇒ −C=1  ⇒  C=−1.\begin{aligned} 1 &= \frac{1}{2\cdot 0 - C} = \frac{1}{-C} \\ \Rightarrow\ -C &= 1 \;\Rightarrow\; C = -1. \end{aligned}

    Substituting C=−1C = -1 in (1):

    y=12x2+1.y = \frac{1}{2x^2 + 1}.
    The condition says the curve passes through (0,1)(0, 1)⁠. Exactly one value of CC makes (1) pass through that point. With it, no arbitrary constant is left: this is the particular solution.
    Section 9.3: a particular solution comes from giving the constant a value. Basics: one constant, one condition
  6. Check: substitute back, and see the curve

    For y=12x2+1=(2x2+1)−1y = \frac{1}{2x^2 + 1} = (2x^2 + 1)^{-1}⁠, the chain rule gives

    dydx=−4x(2x2+1)2=−4x⋅(12x2+1)2=−4xy2.\begin{aligned} \frac{dy}{dx} &= -\frac{4x}{(2x^2 + 1)^2} \\ &= -4x\cdot\left(\frac{1}{2x^2 + 1}\right)^2 = -4xy^2. \end{aligned}

    And at x=0x = 0⁠, y=10+1=1y = \frac{1}{0 + 1} = 1⁠. Both the equation and the condition hold. Since 2x2+1≥12x^2 + 1 \ge 1⁠, the solution is defined for every real xx⁠, satisfies 0<y≤10 < y \le 1⁠, and so is never 0, so the division by y2y^2 in Step 2 was valid all along the curve.

    X Y X′ Y′ (0, 1) y = 1/(2x² + 1) C = −0.6 C = −2 O
    Slope field of dydx=−4xy2\frac{dy}{dx} = -4xy^2 with equal scales. The particular solution y=12x2+1y = \frac{1}{2x^2 + 1} (bold) passes through (0,1)(0, 1)⁠; two other members of the family y=12x2−Cy = \frac{1}{2x^2 - C}⁠, with C=−2C = -2 and C=−0.6C = -0.6⁠, are drawn thin. The xx-axis is the solution y=0y = 0⁠.
    Substituting back is the definition of a solution (Section 9.3), so this check is complete proof. The picture shows the one curve picked out by the point (0,1)(0, 1) among its neighbours; every curve follows the slope marks.
Result

The general solution (for y≠0y \ne 0⁠) is y=12x2−Cy = \frac{1}{2x^2 - C}⁠; the condition y=1y = 1 at x=0x = 0 gives C=−1C = -1⁠, so the particular solution is y=12x2+1y = \frac{1}{2x^2 + 1}⁠, valid for every real xx⁠. (Textbook answer: y=12x2+1y = \frac{1}{2x^2 + 1}⁠.)

Check it with numbers

At x=0.5x = 0.5⁠: y=11.5≈0.6666667y = \frac{1}{1.5} \approx 0.6666667⁠, and the equation gives the slope −4(0.5)(0.6666667)2≈−0.88889-4(0.5)(0.6666667)^2 \approx -0.88889⁠.

The curve itself: y(0.501)≈0.6657780749y(0.501) \approx 0.6657780749 and y(0.499)≈0.6675558511y(0.499) \approx 0.6675558511⁠, so

0.6657780749−0.66755585110.002≈−0.88889.\begin{aligned} &\frac{0.6657780749 - 0.6675558511}{0.002} \\ &\approx -0.88889. \end{aligned}
Common mistakes
  1. ∫dyy2=log⁡y2\int\frac{dy}{y^2} = \log y^2⁠. The log rule is only for 1y\frac1y⁠; here the power rule gives −1y-\frac1y⁠.
  2. Putting in the point before integrating, or forgetting CC⁠. Add the constant when you integrate, then use the point.
  3. Sign slips: from −1y=−2x2+C-\frac1y = -2x^2 + C the reciprocal is y=12x2−Cy = \frac{1}{2x^2 - C}⁠, so C=−1C = -1 turns −C-C into +1+1⁠.
  4. Leaving CC in the answer. A particular solution has no arbitrary constant.
What to take away
  1. Particular solution = general solution + the given point to fix CC⁠.
  2. Before dividing by h(y)h(y)⁠, look at its zeros: here y=0y = 0 is a solution, but not the one asked for.
  3. Check by substituting: both the equation and the condition must hold.

Every fact used, and where it comes from

FactUsed inSource
Variables separable; divide by h(y)≠0h(y) \ne 0Steps 1, 2Section 9.4.1 (Lesson)
∫tn dt=tn+1n+1+C\int t^n\,dt = \frac{t^{n+1}}{n + 1} + C (n=−2n = -2 and n=1n = 1⁠)Step 3Section 7.2, formula (i) (Basics)
General solution has an arbitrary constant; a particular solution gives it a valueSteps 4, 5Section 9.3 (Lesson)
Chain ruleStep 6Chapter 5, Section 5.3.1 (Basics)
A solution makes L.H.S. = R.H.S.; solution curvesStep 6Section 9.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 →