Consider the differential equation y′=f(t,y), or dtdy=f(t,y).
If the function f(t,y) can be written as the product of the function g(t) (function that depends only on t) and the function u(y) (function that depends only on y), such a differential equation is called separable.
Let's see how it is solved.
dtdy=g(t)u(y), or u(y)dy=g(t)dt.
Integrating both sides yields ∫u(y)dy=∫g(t)dt+C, where C is an arbitrary constant.
Example 1. Solve (t+1)dt−y43dy=0, y(1)=3.
This equation is separable and can be rewrritten as y43dy=(t+1)dt.
Integrating both sides yields ∫y43dy=∫(t+1)dt, or −y31=2t2+t+C, where C is an arbitrary constant.
Rewriting it a bit, we obtain that y=−321t2+t+C1. This is the general solution. To find the particular solution, plug in the initial values and find the constant C.
y(1)=3=−32112+1+C1→23+C=−271. So, C=−5483. Thus, the particular solution is y=−321t2+t−54831.
Now, let's take a look at another example.
Example 2. Solve y′=y2t2.
This equation is separable. We can rewrite it as dtdy=y2t2, or y2dy=t2dt.
Integrating both sides gives ∫y2dy=∫t2dt, or −y1=31t3+C, where C is an arbitrary constant.
Thus, the general solution is y=−31t3+C1.
There are also 2 particular cases: when g(t)=1 (the differential equation doesn't contain t) or f(y)=1 (the differential equation doesn't contain y).
Let's do some more practice.
Example 3. Solve y′=e−y.
We can rewrite it as dtdy=e−y, or eydy=dt.
Integrating both sides gives ey=t+C, where C is an arbitrary constant.
So, the general solution is y=ln(t+C).
And one more final example.
Example 4. Solve y′=sin(t), y(0)=5.
We can rewrite it as dtdy=sin(t), or dy=sin(t)dt.
Integrating both sides gives y=−cos(t)+C, where C is an arbitrary constant.
To find the particular solution, use the initial condition y(0)=5: