Skip to content
Worked Examples · Example 5

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

Gujarat GsebTextbookSubjective· 3mImportance★★★★★
Appeared in past exams:MHT-CET 2023· Set pcm-2023-05-11-M· 2mexact
23% · 52/222 Questions
✓ Free question

This is a separable first-order ODE. By separating variables and integrating both sides, we get arctan⁡y=arctan⁡x+C\arctan y = \arctan x + C, which simplifies to y=x+tan⁡C1−xtan⁡Cy = \frac{x + \tan C}{1 - x \tan C} or, more neatly, y=x+k1−kxy = \frac{x + k}{1 - kx} where kk is an arbitrary constant.

The key insight: the right-hand side is a product of a function of xx and a function of yy — actually, it's a quotient, but we can rewrite it as (1+y2)⋅11+x2(1+y^2) \cdot \frac{1}{1+x^2}. That's the hallmark of a separable equation. When you see dydx=f(x)g(y)\frac{dy}{dx} = f(x) g(y), you know you can collect all yy terms on one side and all xx terms on the other, then integrate.

Let's walk through it.

  1. Separate the variables. Multiply both sides by dxdx and divide by 1+y21+y^2 (assuming 1+y2≠01+y^2 \neq 0, which is always true since it's at least 1):

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

  1. Integrate both sides. The integrals are standard:

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

Both give the arctangent function:

arctan⁡y=arctan⁡x+C\arctan y = \arctan x + C

where CC is an arbitrary constant of integration. (We only need one constant because both indefinite integrals produce one; combining them gives a single CC.)

  1. Solve for yy explicitly. Take the tangent of both sides:

y=tan⁡(arctan⁡x+C)y = \tan(\arctan x + C)

Use the tangent addition formula:

tan⁡(A+B)=tan⁡A+tan⁡B1−tan⁡Atan⁡B\tan(A+B) = \frac{\tan A + \tan B}{1 - \tan A \tan B}

Here A=arctan⁡xA = \arctan x and B=CB = C, so tan⁡A=x\tan A = x and tan⁡B=tan⁡C\tan B = \tan C (a constant). Thus:

y=x+tan⁡C1−xtan⁡Cy = \frac{x + \tan C}{1 - x \tan C}

  1. Simplify the constant. Since tan⁡C\tan C is just some constant (call it kk), the general solution becomes:

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

where kk is an arbitrary real constant.

Watch out

A common mistake: forgetting the constant of integration. If you write arctan⁡y=arctan⁡x\arctan y = \arctan x and stop, you've lost the entire family of solutions — you only get the trivial y=xy = x. Always include +C+C.

Tip

The form y=x+k1−kxy = \frac{x + k}{1 - kx} is a bilinear transformation (a Möbius map). It's symmetric: if you swap xx and yy and change the sign of kk, you get the same relation. This hints at deeper structure — the ODE is invariant under swapping variables.

Note

What about the case 1+y2=01+y^2 = 0? That would require y=±iy = \pm i, which is not real. Since we're working with real-valued functions, we don't lose any real solutions by dividing.

✓Final answer

The general solution is y=x+k1−kxy = \dfrac{x + k}{1 - kx}, where kk is an arbitrary constant.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.