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

Exercise 9.3 · Q11: Particular solution of (x3+x2+x+1)dydx=2x2+x(x^3 + x^2 + x + 1)\frac{dy}{dx} = 2x^2 + x⁠, y(0)=1y(0) = 1

Exercise 9.3Variables separable, particular solution · Sections 9.3 and 9.4.1
The question

For each of the differential equations in Exercises 11 to 14, find a particular solution satisfying the given condition:

11. (x3+x2+x+1)dydx=2x2+x(x^3 + x^2 + x + 1)\dfrac{dy}{dx} = 2x^2 + x⁠; y=1y = 1 when x=0x = 0

Exam answer

Here x3+x2+x+1=(x+1)(x2+1)x^3 + x^2 + x + 1 = (x + 1)(x^2 + 1)⁠, and x≠−1x \ne -1⁠. Separating the variables,

dy=2x2+x(x+1)(x2+1) dxdy = \frac{2x^2 + x}{(x + 1)(x^2 + 1)}\,dx

Let

2x2+x(x+1)(x2+1)=Ax+1+Bx+Cx2+1\begin{aligned} \frac{2x^2 + x}{(x + 1)(x^2 + 1)} &= \frac{A}{x + 1} \\ &\quad + \frac{Bx + C}{x^2 + 1} \end{aligned} ⇒ 2x2+x=A(x2+1)+(Bx+C)(x+1)\begin{aligned} \Rightarrow\ 2x^2 + x &= A(x^2 + 1) \\ &\quad + (Bx + C)(x + 1) \end{aligned}

Putting x=−1x = -1⁠: 1=2A1 = 2A⁠, so A=12A = \frac{1}{2}⁠.

Comparing coefficients of x2x^2⁠: 2=A+B2 = A + B⁠, so B=32B = \frac{3}{2}⁠. Comparing constant terms: 0=A+C0 = A + C⁠, so C=−12C = -\frac{1}{2}⁠.

Integrating both sides,

y=12∫dxx+1+32∫x dxx2+1−12∫dxx2+1\begin{aligned} y &= \frac{1}{2}\int\frac{dx}{x + 1} \\ &\quad + \frac{3}{2}\int\frac{x\,dx}{x^2 + 1} \\ &\quad - \frac{1}{2}\int\frac{dx}{x^2 + 1} \end{aligned}

In the middle integral put x2+1=tx^2 + 1 = t⁠, so 2x dx=dt2x\,dx = dt⁠.

y=12log⁡∣x+1∣+34log⁡(x2+1)−12tan⁡−1x+c…(i)\begin{aligned} y &= \frac{1}{2}\log|x + 1| \\ &\quad + \frac{3}{4}\log(x^2 + 1) \\ &\quad - \frac{1}{2}\tan^{-1}x + c\quad\ldots(\text{i}) \end{aligned}

Putting x=0x = 0⁠, y=1y = 1 in (i): 1=0+0−0+c1 = 0 + 0 - 0 + c⁠, so c=1c = 1⁠.

Putting c=1c = 1 in (i) and combining the logarithms (x>−1x > -1⁠),

∴\therefore y=14log⁡[(x+1)2(x2+1)3]y = \dfrac{1}{4}\log\left[(x + 1)^2(x^2 + 1)^3\right] − 12tan⁡−1x+1-\ \dfrac{1}{2}\tan^{-1}x + 1 is the particular solution.

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

The one idea this problem is built on

The coefficient of dydx\frac{dy}{dx} depends on xx only, so dividing by it separates the variables, and yy is the integral of a rational function. Factoring the cubic as (x+1)(x2+1)(x + 1)(x^2 + 1) and splitting by partial fractions gives pieces that integrate to logarithms and tan⁡−1\tan^{-1}⁠. The condition y=1y = 1 at x=0x = 0 then fixes the one constant.

Given, to find, and the plan
Given
(x3+x2+x+1)dydx=2x2+x(x^3 + x^2 + x + 1)\frac{dy}{dx} = 2x^2 + x⁠, and y=1y = 1 when x=0x = 0⁠.
To find
The particular solution: no arbitrary constant, passing through (0,1)(0, 1)⁠.
Plan
(1) Factor the cubic and separate. (2) Split by partial fractions. (3) Integrate each piece, one constant cc⁠. (4) Use the condition to find cc⁠. (5) Write it in the textbook's form and say where it holds. (6) Check by substituting back.

Basics you need

1Variables separable

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

2Partial fractions with a quadratic factor

For (x+a)(x2+bx+c)(x + a)(x^2 + bx + c) with x2+bx+cx^2 + bx + c not factorable, the form is Ax+a+Bx+Cx2+bx+c\frac{A}{x + a} + \frac{Bx + C}{x^2 + bx + c} (Section 7.5). Basics: every method ends with an integral

3Three standard integrals

∫dxx+1=log⁡∣x+1∣\int\frac{dx}{x + 1} = \log|x + 1|⁠; ∫2x dxx2+1=log⁡(x2+1)\int\frac{2x\,dx}{x^2 + 1} = \log(x^2 + 1) (put t=x2+1t = x^2 + 1⁠); ∫dx1+x2=tan⁡−1x\int\frac{dx}{1 + x^2} = \tan^{-1}x (Section 7.2, formulas (xii), (x)).

4Particular solution

Put the given xx and yy into the general solution and solve for the constant (Section 9.3). Basics: one constant, one condition

Solution

  1. Factor the cubic and separate

    Group the terms:

    x3+x2+x+1=x2(x+1)+(x+1)=(x+1)(x2+1).\begin{aligned} x^3 + x^2 + x + 1 &= x^2(x + 1) + (x + 1) \\ &= (x + 1)(x^2 + 1). \end{aligned}

    For x≠−1x \ne -1 this is nonzero (x2+1≥1x^2 + 1 \ge 1⁠), so divide by it and multiply by dxdx⁠:

    dy=2x2+x(x+1)(x2+1) dx.dy = \frac{2x^2 + x}{(x + 1)(x^2 + 1)}\,dx.
    The equation is dydx=g(x)⋅1\frac{dy}{dx} = g(x)\cdot 1⁠, separable with h(y)=1h(y) = 1⁠, so nothing in yy is divided by. The division by the cubic needs x≠−1x \ne -1⁠; the condition is given at x=0x = 0⁠, so the solution lives on the interval x>−1x > -1⁠.
    Section 9.4.1: separate, then integrate. Lesson: separate, then integrate
  2. Partial fractions

    x2+1x^2 + 1 has no real factors, so take

    2x2+x(x+1)(x2+1)=Ax+1+Bx+Cx2+1.\frac{2x^2 + x}{(x + 1)(x^2 + 1)} = \frac{A}{x + 1} + \frac{Bx + C}{x^2 + 1}.

    Multiplying by (x+1)(x2+1)(x + 1)(x^2 + 1)⁠:

    2x2+x=A(x2+1)+(Bx+C)(x+1).\begin{aligned} 2x^2 + x &= A(x^2 + 1) \\ &\quad + (Bx + C)(x + 1). \end{aligned}

    Put x=−1x = -1⁠: 2−1=2A2 - 1 = 2A⁠, so A=12A = \frac{1}{2}⁠. Compare coefficients of x2x^2⁠: 2=A+B2 = A + B⁠, so B=32B = \frac{3}{2}⁠. Compare constants: 0=A+C0 = A + C⁠, so C=−12C = -\frac{1}{2}⁠. Coefficients of xx check it: B+C=32−12=1B + C = \frac{3}{2} - \frac{1}{2} = 1⁠.

    The numerator has degree 2, less than the degree 3 of the denominator, so no division is needed first. Putting x=−1x = -1 kills the BB⁠, CC bracket; two coefficient comparisons give the rest, and the third (the xx terms) confirms them. The letter CC is used here for a coefficient, so the constant of integration is called cc⁠.
    Section 7.5, partial fractions. Basics: every method ends with an integral
  3. Integrate each piece, with one constant

    y=12∫dxx+1+32∫x dxx2+1−12∫dxx2+1=12log⁡∣x+1∣+34log⁡(x2+1)−12tan⁡−1x+c.\begin{aligned} y &= \frac{1}{2}\int\frac{dx}{x + 1} + \frac{3}{2}\int\frac{x\,dx}{x^2 + 1} \\ &\quad - \frac{1}{2}\int\frac{dx}{x^2 + 1} \\ &= \frac{1}{2}\log|x + 1| + \frac{3}{4}\log(x^2 + 1) \\ &\quad - \frac{1}{2}\tan^{-1}x + c. \end{aligned}

    In the middle integral t=x2+1t = x^2 + 1⁠, dt=2x dxdt = 2x\,dx⁠, so ∫x dxx2+1=12log⁡(x2+1)\int\frac{x\,dx}{x^2 + 1} = \frac{1}{2}\log(x^2 + 1)⁠, and 32⋅12=34\frac{3}{2}\cdot\frac{1}{2} = \frac{3}{4}⁠.

    Check by differentiating:

    12(x+1)+3x2(x2+1)−12(x2+1)=2x2+x(x+1)(x2+1).\begin{aligned} &\frac{1}{2(x + 1)} + \frac{3x}{2(x^2 + 1)} - \frac{1}{2(x^2 + 1)} \\ &= \frac{2x^2 + x}{(x + 1)(x^2 + 1)}. \end{aligned}
    Each piece is a standard form: a log for the linear factor, "derivative over function" for xx2+1\frac{x}{x^2 + 1}⁠, and tan⁡−1\tan^{-1} for 1x2+1\frac{1}{x^2 + 1}⁠. Since x2+1>0x^2 + 1 > 0⁠, its log needs no modulus. All constants combine into one cc⁠: this is the general solution.
    Section 7.2, formulas (x), (xii); Section 7.3.1. Basics: every method ends with an integral
  4. Use the condition to find cc

    Put x=0x = 0⁠, y=1y = 1⁠:

    1=12log⁡1+34log⁡1−12tan⁡−10+c=c.\begin{aligned} 1 &= \frac{1}{2}\log 1 + \frac{3}{4}\log 1 \\ &\quad - \frac{1}{2}\tan^{-1}0 + c = c. \end{aligned}

    So c=1c = 1⁠.

    log⁡1=0\log 1 = 0 and tan⁡−10=0\tan^{-1}0 = 0⁠, so every term except cc vanishes. One condition fixes the one constant; nothing arbitrary is left.
    Section 9.3: a particular solution gives the constant a value. Basics: one constant, one condition
  5. The textbook's form, and where it holds

    Combine the logs: 12log⁡∣x+1∣=14log⁡(x+1)2\frac{1}{2}\log|x + 1| = \frac{1}{4}\log(x + 1)^2 and 34log⁡(x2+1)=14log⁡(x2+1)3\frac{3}{4}\log(x^2 + 1) = \frac{1}{4}\log(x^2 + 1)^3⁠. So

    y=14log⁡[(x+1)2(x2+1)3]−12tan⁡−1x+1,\begin{aligned} y &= \frac{1}{4}\log\left[(x + 1)^2(x^2 + 1)^3\right] \\ &\quad - \frac{1}{2}\tan^{-1}x + 1, \end{aligned}

    for x>−1x > -1⁠.

    klog⁡a=log⁡akk\log a = \log a^k and log⁡a+log⁡b=log⁡ab\log a + \log b = \log ab⁠. Writing (x+1)2=∣x+1∣2(x + 1)^2 = |x + 1|^2 makes the modulus unnecessary. The interval is x>−1x > -1⁠: the solution must be defined on an interval containing x=0x = 0⁠, and it cannot cross x=−1x = -1⁠, where the equation breaks down and y→−∞y \to -\infty⁠.
  6. Check: substitute back

    Differentiating the answer gives, by Step 3, dydx=2x2+x(x+1)(x2+1)\frac{dy}{dx} = \frac{2x^2 + x}{(x + 1)(x^2 + 1)}⁠, and multiplying by (x+1)(x2+1)=x3+x2+x+1(x + 1)(x^2 + 1) = x^3 + x^2 + x + 1 gives the equation. At x=0x = 0⁠: y=14log⁡1−0+1=1y = \frac{1}{4}\log 1 - 0 + 1 = 1⁠.

    Both the equation and the condition hold, so this is the particular solution asked for (Section 9.3).
    A solution makes L.H.S. = R.H.S. Basics: y′ is the slope
Result

The particular solution is y=14log⁡[(x+1)2(x2+1)3]y = \frac{1}{4}\log\left[(x + 1)^2(x^2 + 1)^3\right] − 12tan⁡−1x+1-\ \frac{1}{2}\tan^{-1}x + 1⁠, for x>−1x > -1⁠. (Textbook answer: y=14log⁡[(x+1)2(x2+1)3]y = \frac{1}{4}\log\left[(x + 1)^2(x^2 + 1)^3\right] − 12tan⁡−1x+1-\ \frac{1}{2}\tan^{-1}x + 1⁠.)

Check it with numbers

At x=1x = 1⁠: y=14log⁡32−π8+1≈1.4737348940y = \frac{1}{4}\log 32 - \frac{\pi}{8} + 1 \approx 1.4737348940⁠, and the equation gives the slope 2+11+1+1+1=0.75\frac{2 + 1}{1 + 1 + 1 + 1} = 0.75⁠.

The curve itself: y(1.001)≈1.4744849564y(1.001) \approx 1.4744849564 and y(0.999)≈1.4729849566y(0.999) \approx 1.4729849566⁠, so

1.4744849564−1.47298495660.002≈0.75000.\begin{aligned} &\frac{1.4744849564 - 1.4729849566}{0.002} \\ &\approx 0.75000. \end{aligned}
Common mistakes
  1. Taking Bx2+1\frac{B}{x^2 + 1} instead of Bx+Cx2+1\frac{Bx + C}{x^2 + 1}⁠. A quadratic factor needs a linear numerator.
  2. ∫x dxx2+1=log⁡(x2+1)\int\frac{x\,dx}{x^2 + 1} = \log(x^2 + 1)⁠. The derivative of x2+1x^2 + 1 is 2x2x⁠, so a factor 12\frac{1}{2} appears.
  3. Using the condition before integrating, or leaving cc in the answer. Integrate with cc⁠, then fix it.
What to take away
  1. Factor first: x3+x2+x+1=(x+1)(x2+1)x^3 + x^2 + x + 1 = (x + 1)(x^2 + 1) by grouping.
  2. When the coefficient letters include CC⁠, name the integration constant something else, such as cc⁠.
  3. A particular solution lives on the interval through the given point, here x>−1x > -1⁠.

Every fact used, and where it comes from

FactUsed inSource
Variables separable: separate, then integrateStep 1Section 9.4.1 (Lesson)
Partial fractions with an irreducible quadratic factorStep 2Section 7.5 (Basics)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C⁠; ∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1 + x^2} = \tan^{-1}x + CStep 3Section 7.2, formulas (xii), (x)
Integration by substitutionStep 3Section 7.3.1
General solution has an arbitrary constant; a particular solution gives it a valueSteps 3, 4Section 9.3 (Basics)
klog⁡a=log⁡akk\log a = \log a^k⁠; log⁡a+log⁡b=log⁡ab\log a + \log b = \log abStep 5Laws of logarithms
A solution makes L.H.S. = R.H.S.Step 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 →