Skip to content
NCERT Exemplar · Q9

Q.Solve the differential equation dydx=1+x+y2+xy2\frac{dy}{dx}=1+x+y^2+xy^2, when y=0y=0, x=0x=0.

Yanam CbseShort· 3mImportance★★★★★
58% · 129/222 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The given equation is separable after factoring the right-hand side as (1+x)(1+y2)(1+x)(1+y^2). Integrating both sides and applying the initial condition gives y=tan⁡(x+x22)y = \tan\left(x + \frac{x^2}{2}\right).

The key insight here is separation of variables. Many first-order differential equations that look messy at first glance can be rewritten so that all terms involving yy (and dydy) are on one side and all terms involving xx (and dxdx) are on the other. Once separated, we integrate each side independently.

Let’s see how this works for

dydx=1+x+y2+xy2.\frac{dy}{dx} = 1 + x + y^2 + xy^2.

  1. Factor the right-hand side Group the terms cleverly:

1+x+y2+xy2=(1+x)+y2(1+x)=(1+x)(1+y2).1 + x + y^2 + xy^2 = (1 + x) + y^2(1 + x) = (1 + x)(1 + y^2).

So the equation becomes

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

  1. Separate the variables Multiply both sides by dxdx and divide by (1+y2)(1 + y^2) (which is never zero for real yy, so no division issues):

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

Now the variables are isolated — yy on the left, xx on the right.

  1. Integrate both sides The left integral is a standard form:

∫dy1+y2=tan⁡−1y+C1.\int \frac{dy}{1 + y^2} = \tan^{-1} y + C_1.

The right side is straightforward:

∫(1+x) dx=x+x22+C2.\int (1 + x)\,dx = x + \frac{x^2}{2} + C_2.

Combining constants into a single constant CC, we get

tan⁡−1y=x+x22+C.\tan^{-1} y = x + \frac{x^2}{2} + C.

  1. Apply the initial condition We are given y=0y = 0 when x=0x = 0. Substitute:

tan⁡−1(0)=0+0+C⇒0=C.\tan^{-1}(0) = 0 + 0 + C \quad\Rightarrow\quad 0 = C.

So C=0C = 0.

  1. Solve for yy With C=0C = 0, we have tan⁡−1y=x+x22.\tan^{-1} y = x + \frac{x^2}{2}. …

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.