Skip to content
Worked Examples · Example 16

Q.Find the general solution of the differential equation y dx−(x+2y2) dy=0y\,dx - (x + 2y^2)\,dy = 0.

Sikkim CbseNCERTSubjective· 3mImportance★★★★★
28% · 63/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 →

This is a first-order differential equation that is linear in xx as a function of yy. Rewriting it as dxdy−xy=2y\frac{dx}{dy} - \frac{x}{y} = 2y and using the integrating factor method gives the general solution x=2y2+Cyx = 2y^2 + Cy.

Why this approach works

When you see a differential equation like y dx−(x+2y2) dy=0y\,dx - (x + 2y^2)\,dy = 0, your first instinct might be to rearrange it into the standard form dydx=…\frac{dy}{dx} = \dots But look carefully: the term 2y22y^2 depends only on yy, and the xx appears linearly. This is a strong hint that treating xx as the dependent variable (a function of yy) will be much cleaner.

The equation is linear in xx but not in yy. By writing it as dxdy=…\frac{dx}{dy} = \dots, we get a first-order linear ODE — and those have a standard, reliable solution method using an integrating factor.

Tip

Whenever you see terms like y dxy\,dx and x dyx\,dy together, check if the equation is linear in xx as a function of yy. It often simplifies the work dramatically.

Step-by-step solution

1. Rewrite the equation in standard linear form

Start with:

y dx−(x+2y2) dy=0y\,dx - (x + 2y^2)\,dy = 0

Bring the dydy term to the other side:

y dx=(x+2y2) dyy\,dx = (x + 2y^2)\,dy

Divide through by y dyy\,dy (assuming y≠0y \neq 0):

dxdy=x+2y2y\frac{dx}{dy} = \frac{x + 2y^2}{y}

Separate the fraction:

dxdy=xy+2y\frac{dx}{dy} = \frac{x}{y} + 2y

Now bring the x/yx/y term to the left:

dxdy−1y x=2y\frac{dx}{dy} - \frac{1}{y}\,x = 2y

This is now in the standard form for a linear first-order ODE in x(y)x(y):

dxdy+P(y) x=Q(y)\frac{dx}{dy} + P(y)\,x = Q(y)

where P(y)=−1yP(y) = -\frac{1}{y} and Q(y)=2yQ(y) = 2y.

Watch out

A common mistake is to forget the sign when rearranging. Double-check that the xx term has the correct coefficient before proceeding.

2. Find the integrating factor

For a linear ODE dxdy+P(y) x=Q(y)\frac{dx}{dy} + P(y)\,x = Q(y), the integrating factor is:

μ(y)=e∫P(y) dy\mu(y) = e^{\int P(y)\,dy}

Here P(y)=−1yP(y) = -\frac{1}{y}, so:

∫P(y) dy=∫−1y dy=−log⁡∣y∣=log⁡∣y−1∣\int P(y)\,dy = \int -\frac{1}{y}\,dy = -\log|y| = \log|y^{-1}|

Therefore:

μ(y)=elog⁡∣y−1∣=1∣y∣\mu(y) = e^{\log|y^{-1}|} = \frac{1}{|y|}

Since we typically work with a particular solution, we can take the integrating factor as μ(y)=1y\mu(y) = \frac{1}{y} (the sign will be absorbed by the constant later).

For dxdy+P(y)x=Q(y)\frac{dx}{dy} + P(y)x = Q(y), the integrating factor is μ(y)=e∫P(y) dy\mu(y) = e^{\int P(y)\,dy} and the solution is x=1μ(y)∫μ(y)Q(y) dyx = \frac{1}{\mu(y)}\int \mu(y) Q(y)\,dy. …

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.