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

Exercise 9.3 · Q6: General solution of dydx=(1+x2)(1+y2)\frac{dy}{dx} = (1 + x^2)(1 + y^2)

Exercise 9.3Variables separable · Section 9.4.1
The question

For each of the differential equations in Exercises 1 to 10, find the general solution:

6. dydx=(1+x2)(1+y2)\dfrac{dy}{dx} = (1 + x^2)(1 + y^2)

Exam answer

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

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

Integrating both sides,

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

∴\therefore tan⁡−1y=x+x33+C\tan^{-1}y = x + \dfrac{x^3}{3} + C 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 already a product of a function of xx and a function of yy⁠. Dividing by 1+y21 + y^2⁠, which is never 0, separates the variables. The yy side is the standard tan⁡−1\tan^{-1} integral and the xx side is a polynomial, so one constant gives the whole family.

Given, to find, and the plan
Given
dydx=(1+x2)(1+y2)\frac{dy}{dx} = (1 + x^2)(1 + y^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, one constant. (4) Check by differentiating back. (5) Write yy explicitly and say where it holds.

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

2Two standard integrals

∫dt1+t2=tan⁡−1t+C\int\frac{dt}{1 + t^2} = \tan^{-1}t + C (Section 7.2, formula (x)) and ∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n + 1}}{n + 1} + C (formula (i)). Basics: every method ends with an integral

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

The principal value tan⁡−1t\tan^{-1}t lies strictly between −π2-\frac{\pi}{2} and π2\frac{\pi}{2}⁠, and tan⁡(tan⁡−1t)=t\tan(\tan^{-1}t) = t (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=(1+x2)(1+y2)=g(x) h(y),\frac{dy}{dx} = (1 + x^2)(1 + y^2) = g(x)\,h(y),

    with g(x)=1+x2g(x) = 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, allowed only where h(y)≠0h(y) \ne 0⁠. Here that is every real yy⁠, so no solution is lost.
    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=(1+x2) dx.\frac{dy}{1 + y^2} = (1 + x^2)\,dx.
    Now yy appears only with dydy and xx only with dxdx⁠, so each side can be integrated on its own.
    Separating: yy with dydy⁠, xx with dxdx⁠. Basics: dy = y′ dx
  3. Integrate both sides, with one constant

    ∫dy1+y2=∫(1+x2) dx\int\frac{dy}{1 + y^2} = \int(1 + x^2)\,dx tan⁡−1y=x+x33+C.\tan^{-1}y = x + \frac{x^3}{3} + C.

    Check each integral by differentiating: ddytan⁡−1y=11+y2\frac{d}{dy}\tan^{-1}y = \frac{1}{1 + y^2} and ddx(x+x33)=1+x2\frac{d}{dx}\left(x + \frac{x^3}{3}\right) = 1 + x^2⁠.

    The left side is the standard tan⁡−1\tan^{-1} integral; on the right, the power rule gives ∫1 dx=x\int 1\,dx = x and ∫x2 dx=x33\int x^2\,dx = \frac{x^3}{3}⁠. The constants of integration combine into one CC⁠.
    Section 7.2, formulas (i) and (x). Basics: every method ends with an integral
  4. Check: differentiate the answer back

    Differentiate tan⁡−1y=x+x33+C\tan^{-1}y = x + \frac{x^3}{3} + C with respect to xx⁠, with yy a function of xx⁠:

    11+y2⋅dydx=1+x2⇒ dydx=(1+x2)(1+y2).\begin{aligned} \frac{1}{1 + y^2}\cdot\frac{dy}{dx} &= 1 + x^2 \\ \Rightarrow\ \frac{dy}{dx} &= (1 + x^2)(1 + y^2). \end{aligned}
    We get back the given equation for every value of CC⁠, so every member of the family is a solution (Section 9.3).
    Chain rule; ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2} (Chapter 5). Basics: y′ is the slope
  5. yy explicitly, and where it holds

    Take tan of both sides:

    y=tan⁡(x+x33+C),y = \tan\left(x + \frac{x^3}{3} + C\right),

    for the xx with −π2<x+x33+C<π2-\frac{\pi}{2} < x + \frac{x^3}{3} + C < \frac{\pi}{2}⁠.

    tan⁡−1y\tan^{-1}y is always strictly between −π2-\frac{\pi}{2} and π2\frac{\pi}{2}⁠, so the relation can only hold where the right side is too. Since x+x33x + \frac{x^3}{3} increases with xx⁠, that is one interval of xx for each CC⁠, and yy runs off to ±∞\pm\infty at its ends. The book leaves the answer in the tan⁡−1\tan^{-1} form, which is the general solution.
    Principal value branch of tan⁡−1\tan^{-1} (Chapter 2). Lesson: general and particular solutions
Result

The general solution is tan⁡−1y=x+x33+C\tan^{-1}y = x + \frac{x^3}{3} + C⁠, where CC is an arbitrary constant; equivalently y=tan⁡(x+x33+C)y = \tan\left(x + \frac{x^3}{3} + C\right) where the angle lies between −π2-\frac{\pi}{2} and π2\frac{\pi}{2}⁠. (Textbook answer: tan⁡−1y=x+x33+C\tan^{-1}y = x + \frac{x^3}{3} + C⁠.)

Check it with numbers

Take C=0C = 0⁠, the curve y=tan⁡(x+x33)y = \tan\left(x + \frac{x^3}{3}\right)⁠. At x=0.5x = 0.5⁠, y≈0.6016974174y \approx 0.6016974174⁠, and the equation gives the slope (1+0.25)(1+y2)≈1.70254973(1 + 0.25)(1 + y^2) \approx 1.70254973⁠.

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

0.6034019320−0.59999682580.002≈1.70255.\begin{aligned} &\frac{0.6034019320 - 0.5999968258}{0.002} \\ &\approx 1.70255. \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. ∫(1+x2) dx=x+x3\int(1 + x^2)\,dx = x + x^3⁠. The power rule divides by the new power: x33\frac{x^3}{3}⁠.
  3. Two constants, one per side. Keep one CC⁠.
What to take away
  1. 1+y21 + y^2 is never 0, so dividing by it loses no solutions.
  2. ∫dy1+y2=tan⁡−1y\int\frac{dy}{1 + y^2} = \tan^{-1}y⁠: the inverse tangent appears naturally.
  3. An implicit answer is checked by differentiating it with the chain rule.

Every fact used, and where it comes from

FactUsed inSource
Variables separable; divide by h(y)≠0h(y) \ne 0 and integrateSteps 1, 2Section 9.4.1 (Lesson)
∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1 + x^2} = \tan^{-1}x + C⁠; ∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n + 1}}{n + 1} + CStep 3Section 7.2, formulas (x), (i) (Basics)
One arbitrary constant for a first order equationStep 3Section 9.3 (Basics)
Chain rule; ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}Step 4Chapter 5 (Basics)
−π2<tan⁡−1t<π2-\frac{\pi}{2} < \tan^{-1}t < \frac{\pi}{2}⁠; tan⁡(tan⁡−1t)=t\tan(\tan^{-1}t) = tStep 5Chapter 2, principal value branch
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 →