Separable Equations | Differential EquationsSeparable Equations
Sharan Sajiv Menon - October 5th, 2021
A separable equation is a differential equation which can be written in the form y’=f(x)g(y) or dxdy=f(x)g(y)
Examples include:
- y′=(x2−4)(3y+2)
- y′=6x2+4x
- y′=sec(y)+cot(y)
Separable equations are solved by separation of variables.
Separation of Variables
- Check for any values of y that make g(y)=0. Those are the constant solutions
- Rewrite the equation so that the y-variables are on the dy side and the x variables are on the dx side
- Integrate: ∫g(y)1dy=∫f(x)dx
- Solve the resulting equation for y
Example 1: Solve the following differential equation: dxdy=xy
To rewrite this equation, we can start by multiplying both sides by dx, to remove it from the left side.
Now, we need to move the y-variable to a different side, to ensure complete separation of variables. We can do this by dividing both sides by y.
ydy=xdx
Now, we can integrate.
∫ydy=∫xdx⟶ln(y)=2x2+C
The general solution to a differential equation is in a form of y=, so we need to solve for y.
y=e2x2+C=eCe2x2=Ce2x2
Note here that we can simply rewrite ec as C, since ec is a constant. So, our general solution then becomes
y=Ce2x2
Example 2: Solve the Differential Equation y’=(x2−4)(3y−2)
Solution: Use separation of variables to solve the ODE.
dxdy=(x2−4)(3y−2)→dx(3y−2)dy=x2−4→3y−21dy=(x2−4)dx
Integrate the separated DE and solve for y:
∫3y−21dy=∫(x2−4)dx⟶31ln∣3y−2∣=3x3−4x+C1⟶ln∣3y−2∣=x3−12x+C1⟶3y−2=ex3−12x+C1→y=3C1ex3−12x+2
Our final answer is y=3C1ex3−12x+2.
Note that we jumped directly from ex3−12x+C1 to C1ex3−12x. This is because ex3−12x+C1=