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

Exercise 9.5 · Q14: (1+x2)dydx+2xy=11+x2(1 + x^2)\frac{dy}{dx} + 2xy = \frac{1}{1 + x^2}⁠, y(1)=0y(1) = 0

Exercise 9.5Linear differential equations, particular solution · Section 9.4.3
The question

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

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

Exam answer

Dividing both sides by 1+x21 + x^2⁠,

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

This is of the form dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, where P=2x1+x2P = \frac{2x}{1 + x^2} and Q=1(1+x2)2Q = \frac{1}{(1 + x^2)^2}⁠.

I.F.=e∫2x1+x2dx=elog⁡(1+x2)=1+x2\begin{aligned} \text{I.F.} &= e^{\int\frac{2x}{1 + x^2}dx} \\ &= e^{\log(1 + x^2)} = 1 + x^2 \end{aligned}

So the solution is given by

y(1+x2)=∫1+x2(1+x2)2 dx+C=∫dx1+x2+C=tan⁡−1x+C…(i)\begin{aligned} y(1 + x^2) &= \int\frac{1 + x^2}{(1 + x^2)^2}\,dx + C \\ &= \int\frac{dx}{1 + x^2} + C \\ &= \tan^{-1}x + C\quad\ldots(\text{i}) \end{aligned}

Putting y=0y = 0⁠, x=1x = 1 in (i),

0=tan⁡−11+CC=−π4\begin{aligned} 0 &= \tan^{-1}1 + C \\ C &= -\frac{\pi}{4} \end{aligned}

Putting C=−π4C = -\frac{\pi}{4} in (i),

∴\therefore The particular solution is y(1+x2)=tan⁡−1x−π4y(1 + x^2) = \tan^{-1}x - \dfrac{\pi}{4}⁠.

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

The one idea this problem is built on

Divide by 1+x21 + x^2 to reach the standard linear form; then P=2x1+x2P = \frac{2x}{1 + x^2} has the derivative of its denominator on top, so ∫P dx=log⁡(1+x2)\int P\,dx = \log(1 + x^2) and the integrating factor is 1+x21 + x^2⁠. In fact the left side of the given equation is already ddx[(1+x2)y]\frac{d}{dx}\left[(1 + x^2)y\right]⁠, so (1+x2)y(1 + x^2)y is an antiderivative of 11+x2\frac{1}{1 + x^2}⁠, that is tan⁡−1x+C\tan^{-1}x + C⁠. The point (1,0)(1, 0) fixes CC⁠.

Given, to find, and the plan
Given
(1+x2)dydx+2xy=11+x2(1 + x^2)\frac{dy}{dx} + 2xy = \frac{1}{1 + x^2}⁠, and y=0y = 0 when x=1x = 1⁠.
To find
The particular solution through (1,0)(1, 0)⁠.
Plan
(1) Divide by 1+x21 + x^2 and read off PP⁠, QQ⁠. (2) I.F. =e∫P dx= e^{\int P\,dx}⁠. (3) Multiply and see the product rule. (4) Integrate, with one constant. (5) Write the general solution. (6) Use the condition. (7) Write the particular solution. (8) Check, and see the curve.

Basics you need

1First order linear equations

dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, with the coefficient of dydx\frac{dy}{dx} equal to 1; I.F. =e∫P dx= e^{\int P\,dx}⁠; y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + C (Section 9.4.3). Lesson: linear equations, the integrating factor

2∫f′(x)f(x) dx=log⁡∣f(x)∣\int\frac{f'(x)}{f(x)}\,dx = \log|f(x)|

With t=1+x2t = 1 + x^2⁠, dt=2x dxdt = 2x\,dx⁠: ∫2x1+x2 dx=log⁡(1+x2)\int\frac{2x}{1 + x^2}\,dx = \log(1 + x^2) (Section 7.3.1). Basics: every method ends with an integral

3∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1 + x^2} = \tan^{-1}x + C

Section 7.2, formula (x); tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4}⁠, the principal value (Chapter 2). Basics: every method ends with an integral

4Particular solutions

Put the given point into the general solution to find the constant (Section 9.3). Lesson: general and particular solutions

Solution

  1. Divide by 1+x21 + x^2⁠: the standard form

    dydx+2x1+x2 y=1(1+x2)2.\frac{dy}{dx} + \frac{2x}{1 + x^2}\,y = \frac{1}{(1 + x^2)^2}.

    So P=2x1+x2P = \frac{2x}{1 + x^2} and Q=1(1+x2)2Q = \frac{1}{(1 + x^2)^2}⁠.

    The standard form needs dydx\frac{dy}{dx} with coefficient 1. Dividing is always allowed, since 1+x2≥11 + x^2 \ge 1⁠. The equation has order 1 and degree 1, and PP⁠, QQ depend on xx only and are defined for every real xx⁠, so the solution can live on the whole real line.
    Section 9.4.3, step (i). Lesson: linear equations
  2. The integrating factor: 1+x21 + x^2

    I.F.=e∫2x1+x2 dx=elog⁡(1+x2)=1+x2.\text{I.F.} = e^{\int\frac{2x}{1 + x^2}\,dx} = e^{\log(1 + x^2)} = 1 + x^2.
    Put t=1+x2t = 1 + x^2⁠, so dt=2x dxdt = 2x\,dx and ∫2x1+x2 dx=∫dtt=log⁡∣t∣\int\frac{2x}{1 + x^2}\,dx = \int\frac{dt}{t} = \log|t|⁠. Since 1+x2>01 + x^2 > 0⁠, log⁡∣1+x2∣=log⁡(1+x2)\log|1 + x^2| = \log(1 + x^2)⁠, and elog⁡t=te^{\log t} = t⁠.
    Section 9.4.3, step (ii); Section 7.3.1, substitution. Basics: exponentials
  3. Multiply by 1+x21 + x^2⁠: the left side is one derivative

    (1+x2)dydx+2xy=11+x2ddx[(1+x2)y]=11+x2.\begin{aligned} (1 + x^2)\frac{dy}{dx} + 2xy &= \frac{1}{1 + x^2} \\ \frac{d}{dx}\left[(1 + x^2)y\right] &= \frac{1}{1 + x^2}. \end{aligned}
    By the product rule, ddx[(1+x2)y]=(1+x2)dydx+2x y\frac{d}{dx}\left[(1 + x^2)y\right] = (1 + x^2)\frac{dy}{dx} + 2x\,y⁠. Multiplying back by 1+x21 + x^2 simply returns the given equation: its left side was already a derivative.
    Product rule (Chapter 5, Section 5.3). Basics: (y · g)′ = g(y′ + Py)
  4. Integrate, with one constant

    y(1+x2)=∫1+x2(1+x2)2 dx+C=∫dx1+x2+C=tan⁡−1x+C.\begin{aligned} y(1 + x^2) &= \int\frac{1 + x^2}{(1 + x^2)^2}\,dx + C \\ &= \int\frac{dx}{1 + x^2} + C \\ &= \tan^{-1}x + C. \end{aligned}
    This is y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + C⁠; one factor 1+x21 + x^2 cancels. The CC is the one arbitrary constant.
    Section 9.4.3, step (iii); Section 7.2, formula (x). Basics: one constant for order 1
  5. The general solution

    y(1+x2)=tan⁡−1x+C.…(1)y(1 + x^2) = \tan^{-1}x + C.\quad\ldots(1)
    This is the family of all solutions, one curve for each CC⁠. Solved for yy⁠: y=tan⁡−1x+C1+x2y = \frac{\tan^{-1}x + C}{1 + x^2}⁠.
    Section 9.4.3: the general solution. Lesson: Exercise 9.5 player
  6. Use the condition: y=0y = 0 when x=1x = 1

    Putting x=1x = 1⁠, y=0y = 0 in (1):

    0⋅(1+1)=tan⁡−11+C=π4+CC=−π4.\begin{aligned} 0\cdot(1 + 1) &= \tan^{-1}1 + C = \frac{\pi}{4} + C \\ C &= -\frac{\pi}{4}. \end{aligned}
    tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4}⁠, because tan⁡π4=1\tan\frac{\pi}{4} = 1 and π4\frac{\pi}{4} lies in the principal range (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠.
    Section 9.3: a particular solution. Lesson: general and particular solutions
  7. The particular solution

    y(1+x2)=tan⁡−1x−π4.y(1 + x^2) = \tan^{-1}x - \frac{\pi}{4}.
    Put C=−π4C = -\frac{\pi}{4} in (1). Solved for yy⁠: y=tan⁡−1x−π41+x2y = \frac{\tan^{-1}x - \frac{\pi}{4}}{1 + x^2}⁠, valid for every real xx⁠.
    Section 9.3: a particular solution. Lesson: Examples 14 to 18
  8. Check by substituting back, and see the curve

    Differentiate (1+x2)y=tan⁡−1x−π4(1 + x^2)y = \tan^{-1}x - \frac{\pi}{4} with respect to xx⁠, using the product rule on the left:

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

    the given equation. At x=1x = 1⁠: 2y=π4−π4=02y = \frac{\pi}{4} - \frac{\pi}{4} = 0⁠, so y=0y = 0⁠.

    X Y X′ Y′ (1, 0) O
    Slope field of the equation, with equal scales, and the particular solution y=tan⁡−1x−π/41+x2y = \frac{\tan^{-1}x - \pi/4}{1 + x^2} through (1,0)(1, 0)⁠. It is negative for x<1x < 1⁠, crosses the xx-axis only at x=1x = 1⁠, and tends to 0 on both sides.
    Differentiating the answer gives back the equation, and the point satisfies it. The curve is defined for every xx⁠, as Step 1 predicted.
    A solution makes L.H.S. = R.H.S. (Section 9.3). Basics: a rule for slopes
Result

The general solution is y(1+x2)=tan⁡−1x+Cy(1 + x^2) = \tan^{-1}x + C⁠, and the particular solution with y=0y = 0 when x=1x = 1 is y(1+x2)=tan⁡−1x−π4y(1 + x^2) = \tan^{-1}x - \frac{\pi}{4}⁠, for every real xx⁠. (Textbook answer: y(1+x2)=tan⁡−1x−π4y(1 + x^2) = \tan^{-1}x - \frac{\pi}{4}⁠.)

Check it with numbers

Take x=2x = 2⁠: tan⁡−12≈1.1071487\tan^{-1}2 \approx 1.1071487 and π4≈0.7853982\frac{\pi}{4} \approx 0.7853982⁠, so y≈0.32175065≈0.0643501y \approx \frac{0.3217506}{5} \approx 0.0643501⁠. The equation gives dydx=1(1+x2)2−2xy1+x2\frac{dy}{dx} = \frac{1}{(1 + x^2)^2} - \frac{2xy}{1 + x^2}⁠, which at x=2x = 2 is 0.2−4y5≈−0.0114801\frac{0.2 - 4y}{5} \approx -0.0114801⁠.

The curve itself: y(2.001)≈0.0643386111y(2.001) \approx 0.0643386111 and y(1.999)≈0.0643615713y(1.999) \approx 0.0643615713⁠. They differ by −0.0000229602-0.0000229602⁠, so

−0.00002296020.002≈−0.0114801.\frac{-0.0000229602}{0.002} \approx -0.0114801.
Common mistakes
  1. Reading P=2xP = 2x straight from the given equation. Divide by 1+x21 + x^2 first: P=2x1+x2P = \frac{2x}{1 + x^2}⁠.
  2. Forgetting to divide QQ as well: Q=1(1+x2)2Q = \frac{1}{(1 + x^2)^2}⁠, not 11+x2\frac{1}{1 + x^2}⁠.
  3. Writing tan⁡−11=45\tan^{-1}1 = 45 or 11⁠: in radians it is π4\frac{\pi}{4}⁠.
  4. Getting the sign of CC wrong: 0=π4+C0 = \frac{\pi}{4} + C gives C=−π4C = -\frac{\pi}{4}⁠.
What to take away
  1. If the left side is f(x)dydx+f′(x) yf(x)\frac{dy}{dx} + f'(x)\,y⁠, it is already ddx(f y)\frac{d}{dx}(f\,y)⁠: the I.F. of the divided form is ff itself.
  2. P=f′fP = \frac{f'}{f} gives I.F. =∣f∣= |f|⁠; here f=1+x2>0f = 1 + x^2 > 0⁠.
  3. Inverse trigonometric values at the condition point are principal values.

Every fact used, and where it comes from

FactUsed inSource
Linear equation; I.F. =e∫P dx= e^{\int P\,dx}⁠; y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + CSteps 1, 2, 4Section 9.4.3, steps (i) to (iii) (Lesson)
Order and degreeStep 1Sections 9.2.1 and 9.2.2 (Lesson)
Substitution t=1+x2t = 1 + x^2⁠; ∫dtt=log⁡∣t∣\int\frac{dt}{t} = \log|t|Step 2Section 7.3.1; Section 7.2, formula (xii) (Basics)
Product ruleSteps 3, 8Chapter 5, Section 5.3 (Basics)
∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1 + x^2} = \tan^{-1}x + CStep 4Section 7.2, formula (x) (Basics)
tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4} (principal value)Step 6Chapter 2, Section 2.2
Substituting back; ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}Step 8Section 9.3; Chapter 5, Section 5.3.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 →