The general solution of the differential equation dy/dx = xy2 is given by y=-2/(x2+2K) where K is an arbitrary constant. Here we will learn how to find the general solution of the differential equation.
Set C=2K.
Answer: the solution of $\dfrac{dy}{dx}=xy^2$ is given by y = $-\dfrac{2}{x^2+C}$.
Solve dy/dx=xy2
Given $\dfrac{dy}{dx}=xy^2$
To solve it, we will use the separation of variable method, that is, will separate the variables x and y. By doing so, we get that
$\dfrac{dy}{y^2}=x ~dx$
Integrating, $\int \dfrac{dy}{y^2}= \int x ~dx + K$, where K is a constant.
$\int y^{-2}dy= \int x ~dx + K$
⇒ $\dfrac{y^{-2+1}}{-2+1}=\dfrac{x^2}{2}+K$
⇒ $-\dfrac{1}{y}=\dfrac{x^2}{2}+K$
⇒ $y=-\dfrac{2}{x^2+2K}$
⇒ $y=-\dfrac{2}{x^2+C}$ where C=2K.
So the general solution of dy/dx = xy2 is given by y=-2/(x2+C) where C denotes an arbitrary constant of integrals.
Also Read: Solve dy/dx =y/x
How to Solve dy/dx=x2y
$\dfrac{dy}{dx}=x^2y$
Separating the variables, we get that
$\dfrac{dy}{y}=x^2~dx$
Integrating, $\int \dfrac{dy}{y}=\int x^2~dx+C$
⇒ $\ln |y|=\dfrac{x^3}{3}+C$.
So the solution of dy/dx=x2y is given by ln|y| = x3/3 +C where C is a constant.
Also Read: Solve dy/dx = cos(x+y)
FAQs
Q1: What is the solution of dy/dx=xy2?
Answer: The general solution of the differential equation dy/dx =xy2 is given by y= -2/(x2+C).
Q2: What is the solution of dy/dx=x2y?
Answer: The general solution of the differential equation dy/dx=x2y is given by ln|y| = x3/3 +C where C is an arbitrary constant.