Question:medium

Solve the differential equation \( (x + 3y^2)\dfrac{dy}{dx} = y \).

Show Hint

Invert to get dx/dy - x/y = 3y, a linear equation in x with integrating factor 1/y.
Updated On: Nov 23, 2026
Show Solution

Solution and Explanation

Step 1: Spot the type of equation:
Write the equation as $\dfrac{dx}{dy}=\dfrac{x}{y}+3y$ by inverting $\dfrac{dy}{dx}$. The term $\dfrac{x}{y}$ suggests the substitution $x=vy$, where v is a function of y.

Step 2: Substitute x = vy:
Differentiate with respect to y using the product rule: $\dfrac{dx}{dy}=v+y\dfrac{dv}{dy}$. Put this in:
\[ v+y\frac{dv}{dy}=v+3y \]
The v on both sides cancels, leaving
\[ y\frac{dv}{dy}=3y \Rightarrow \frac{dv}{dy}=3 \quad (y\neq 0) \]

Step 3: Integrate and go back to x:
Integrate both sides with respect to y:
\[ v=3y+C \]
Now replace v by $\dfrac{x}{y}$:
\[ \frac{x}{y}=3y+C \Rightarrow x=3y^2+Cy \]
Here C is an arbitrary constant.
To confirm, differentiate $x=3y^2+Cy$ with respect to y to get $\dfrac{dx}{dy}=6y+C$. From the original equation, $\dfrac{dx}{dy}=\dfrac{x}{y}+3y=3y+C+3y=6y+C$. Both sides match.

Final Answer:
Using the substitution x = vy gives the same general solution as the linear method. \[ \boxed{x=3y^{2}+Cy} \]
Was this answer helpful?
0