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

Example 5: General solution of dydx=1+y21+x2\frac{dy}{dx} = \frac{1+y^2}{1+x^2}

ExamplesVariables separable · Section 9.4.1
The question

Find the general solution of the differential equation dydx=1+y21+x2\dfrac{dy}{dx} = \dfrac{1 + y^2}{1 + x^2}⁠.

Exam answer

Since 1+y2≠01 + y^2 \ne 0⁠, separating the variables,

dy1+y2=dx1+x2\frac{dy}{1 + y^2} = \frac{dx}{1 + x^2}

Integrating both sides,

∫dy1+y2=∫dx1+x2\int\frac{dy}{1 + y^2} = \int\frac{dx}{1 + x^2}

∴\therefore tan⁡−1y=tan⁡−1x+C\tan^{-1}y = \tan^{-1}x + C⁠, which is the general solution.

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

The one idea this problem is built on

The right side is 11+x2\frac{1}{1 + x^2} times (1+y2)(1 + y^2)⁠: a function of xx times a function of yy⁠. Dividing by 1+y21 + y^2⁠, which is never 0, separates the variables, and both sides become the standard integral ∫dt1+t2=tan⁡−1t\int\frac{dt}{1 + t^2} = \tan^{-1}t⁠. One arbitrary constant gives the whole family of solutions.

Given, to find, and the plan
Given
dydx=1+y21+x2\frac{dy}{dx} = \frac{1 + y^2}{1 + x^2}⁠, defined for all real xx and yy⁠.
To find
The general solution, with one arbitrary constant.
Plan
(1) Recognise the separable form and check that we may divide by 1+y21 + y^2⁠. (2) Separate. (3) Integrate both sides with the tan⁡−1\tan^{-1} formula. (4) Check by differentiating back. (5) See which constants give curves, and write them without inverse functions.

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). Lesson: separate, then integrate

2The tan⁡−1\tan^{-1} integral

∫dt1+t2=tan⁡−1t+C\int\frac{dt}{1 + t^2} = \tan^{-1}t + C⁠, because ddttan⁡−1t=11+t2\frac{d}{dt}\tan^{-1}t = \frac{1}{1 + t^2} (Section 7.2, formula (x)). Basics: every method ends with an integral

3Range of tan⁡−1\tan^{-1}

The principal value tan⁡−1t\tan^{-1}t always lies strictly between −π2-\frac{\pi}{2} and π2\frac{\pi}{2} (Chapter 2).

4One arbitrary constant

A first order equation has one arbitrary constant in its general solution. Basics: order n gives n constants

Solution

  1. Recognise the form: variables separable

    dydx=11+x2⋅(1+y2)=g(x) h(y),\frac{dy}{dx} = \frac{1}{1 + x^2}\cdot(1 + y^2) = g(x)\,h(y),

    with g(x)=11+x2g(x) = \frac{1}{1 + x^2} and h(y)=1+y2h(y) = 1 + y^2⁠. For every real yy⁠, 1+y2≥11 + y^2 \ge 1⁠, so h(y)≠0h(y) \ne 0⁠.

    Dividing by h(y)h(y) is the separating step, and it is only allowed where h(y)≠0h(y) \ne 0⁠. Here that is every real yy⁠, so no solution is lost by dividing. (When hh can be 0, as in Example 6, the zeros need a separate look.)
    Section 9.4.1: dydx=h(y) g(x)\frac{dy}{dx} = h(y)\,g(x)⁠, with h(y)≠0h(y) \ne 0⁠. Lesson: separate, then integrate
  2. Separate the variables

    Divide both sides by 1+y21 + y^2 and multiply by dxdx⁠:

    dy1+y2=dx1+x2.\frac{dy}{1 + y^2} = \frac{dx}{1 + x^2}.
    Now each side holds one variable only: yy with dydy on the left, xx with dxdx on the right. Both denominators are at least 1, so nothing here is undefined.
    Separating: yy with dydy⁠, xx with dxdx⁠. Basics: dy = y′ dx
  3. Integrate both sides, with one constant

    ∫dy1+y2=∫dx1+x2\int\frac{dy}{1 + y^2} = \int\frac{dx}{1 + x^2} tan⁡−1y=tan⁡−1x+C.\tan^{-1}y = \tan^{-1}x + C.
    Both integrals are the standard one, ∫dt1+t2=tan⁡−1t\int\frac{dt}{1 + t^2} = \tan^{-1}t⁠, once with t=yt = y and once with t=xt = x⁠. The two constants of integration combine into one CC⁠, which may be any real number. This is the general solution.
    Section 7.2, formula (x): ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}⁠. Basics: every method ends with an integral
  4. Check: differentiate the answer back

    Differentiate tan⁡−1y=tan⁡−1x+C\tan^{-1}y = \tan^{-1}x + C with respect to xx⁠, with yy a function of xx (chain rule on the left):

    11+y2⋅dydx=11+x2⇒ dydx=1+y21+x2.\begin{aligned} \frac{1}{1 + y^2}\cdot\frac{dy}{dx} &= \frac{1}{1 + x^2} \\ \Rightarrow\ \frac{dy}{dx} &= \frac{1 + y^2}{1 + x^2}. \end{aligned}
    We get back exactly the given equation, whatever the value of CC⁠. So every member of the family is a solution.
    Chain rule and the derivative of tan⁡−1\tan^{-1} (Chapter 5). Basics: y′ is the slope
  5. Which constants give curves, and the curves without tan⁡−1\tan^{-1}

    Both tan⁡−1y\tan^{-1}y and tan⁡−1x\tan^{-1}x lie in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, so C=tan⁡−1y−tan⁡−1xC = \tan^{-1}y - \tan^{-1}x always lies in (−π,π)(-\pi, \pi)⁠. Only these values of CC give curves.

    For C≠±π2C \ne \pm\frac{\pi}{2}⁠, put k=tan⁡Ck = \tan C and take tan of both sides of tan⁡−1y=tan⁡−1x+C\tan^{-1}y = \tan^{-1}x + C⁠. The formula tan⁡(A+B)=tan⁡A+tan⁡B1−tan⁡Atan⁡B\tan(A + B) = \frac{\tan A + \tan B}{1 - \tan A\tan B} gives

    y=x+k1−kx,y = \frac{x + k}{1 - kx},

    for the xx with tan⁡−1x+C\tan^{-1}x + C inside (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠. For example C=0C = 0 gives the line y=xy = x⁠, and C=π4C = \frac{\pi}{4} (k=1k = 1⁠) gives y=1+x1−xy = \frac{1 + x}{1 - x} for x<1x < 1⁠.

    The tan⁡−1\tan^{-1} form is the general solution the book asks for; this step only shows what its curves are. The restriction on xx is needed because tan⁡−1y\tan^{-1}y can never reach ±π2\pm\frac{\pi}{2}⁠: for C=π4C = \frac{\pi}{4}⁠, the solution through (0,1)(0, 1) blows up as x→1x \to 1⁠.
    tan⁡(A+B)\tan(A + B) formula (Class XI); range of tan⁡−1\tan^{-1} (Chapter 2). Lesson: general and particular solutions
Result

The general solution is tan⁡−1y=tan⁡−1x+C\tan^{-1}y = \tan^{-1}x + C⁠, where CC is an arbitrary constant (only −π<C<π-\pi < C < \pi gives curves). (Textbook answer: tan⁡−1y=tan⁡−1x+C\tan^{-1}y = \tan^{-1}x + C⁠.)

Check it with numbers

Take C=π4C = \frac{\pi}{4}⁠, the curve y=1+x1−xy = \frac{1 + x}{1 - x}⁠. At x=0.5x = 0.5⁠, y=3y = 3⁠. With tan⁡−13≈1.2490457724\tan^{-1}3 \approx 1.2490457724 and tan⁡−10.5≈0.4636476090\tan^{-1}0.5 \approx 0.4636476090⁠, the difference is 0.78539816340.7853981634⁠, which is π4\frac{\pi}{4}⁠. The equation gives the slope 1+321+0.52=101.25=8\frac{1 + 3^2}{1 + 0.5^2} = \frac{10}{1.25} = 8⁠.

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

3.0080160321−2.99201596810.002≈8.0000.\begin{aligned} &\frac{3.0080160321 - 2.9920159681}{0.002} \\ &\approx 8.0000. \end{aligned}
Common mistakes
  1. Writing log⁡(1+y2)\log(1 + y^2) for ∫dy1+y2\int\frac{dy}{1 + y^2}⁠. That would need 2y2y on top; the integral is tan⁡−1y\tan^{-1}y⁠.
  2. Adding tan⁡−1\tan^{-1} values as if they were tangents: tan⁡−1y=tan⁡−1x+C\tan^{-1}y = \tan^{-1}x + C does not mean y=x+Cy = x + C⁠.
  3. Two constants, one per integral. Keep one CC⁠.
What to take away
  1. 1+y21 + y^2 is never 0, so dividing by it to separate loses no solutions.
  2. ∫dt1+t2=tan⁡−1t+C\int\frac{dt}{1 + t^2} = \tan^{-1}t + C appears on both sides here.
  3. A general solution may be left in implicit or inverse-function form; it is checked by differentiating back.

Every fact used, and where it comes from

FactUsed inSource
Variables separable form; divide by h(y)≠0h(y) \ne 0 and integrateSteps 1, 2, 3Section 9.4.1 (Lesson)
∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1 + x^2} = \tan^{-1}x + CStep 3Section 7.2, formula (x) (Basics)
One arbitrary constant for a first order equationStep 3Chapter Summary (Basics)
Chain rule; ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}Step 4Chapter 5, Sections 5.3.1 and 5.3.3 (Basics)
−π2<tan⁡−1t<π2-\frac{\pi}{2} < \tan^{-1}t < \frac{\pi}{2}Step 5Chapter 2, principal value branch
tan⁡(A+B)=tan⁡A+tan⁡B1−tan⁡Atan⁡B\tan(A + B) = \frac{\tan A + \tan B}{1 - \tan A\tan B}Step 5Class XI trigonometry
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 →