Table of Contents

Solving Separable Differential Equations Examples 2
Recall from the Solving Separable Differential Equations page that if we have a separable differential equation $M(x) + N(y) \frac{dy}{dx} = 0$, then we can rewrite it as:
(1)Provided that these integrals can be evaluated and that they're not too difficult to do so, then we can obtain solutions for the separable differential equation.
We will now look at some examples of solving separable differential equations. At this present time, we will not be concerned as to whether these solutions are always valid for all of $\mathbb{R}$. In fact, many of the solutions we present are only defined on a specific interval. We will look more into this later.
Example 1
Find all solutions to the differential equation $\frac{dy}{dx} = \frac{x  e^{x}}{y + e^y}$.
We will first rewrite the differential equation above as $(y + e^y) \frac{dy}{dx} = (x  e^{x})$. Therefore, provided $y + e^y \neq 0$ we have that:
(2)Example 2
Find all solutions to the differential equation $\frac{dy}{dx} = (\cos ^2 x )(\cos ^2 2y)$.
We will first rewrite the differential equation above as $\frac{1}{\cos ^2 2y} \frac{dy}{dx} = (\cos ^2 x)$. Therefore we have that:
(3)Note that $\int \sec^2 (2y) \: dy = \frac{\tan 2y}{2}$ and $\int \cos ^2 x \: dx = \frac{\cos x \sin x + x}{2}$ (which can be obtained by integration by parts). Therefore we have that:
(4)Note that if $k \in \mathbb{Z}$ then $y = \pm \frac{(2k + 1)\pi}{4}$ is also a solution to the differential equation.
Example 3
Find all solutions to the differential equation $\frac{dy}{dx} = \frac{x^2}{y(1+x^3)}$.
We will first rewrite this differential equation as $y \frac{dy}{dx} = \frac{x^2}{(1 + x^3)}$ and thus:
(5)To evaluate the integral on the righthand side we will have to use substitution. Let $u = 1 + x^3$. Then $du = 3x^2 \: dx$ and hence $\frac{du}{3} = x^2 \: dx$ and so $\int \frac{x^2}{1 + x^3} \: dx = \frac{1}{3} \int \frac{1}{u} \: du = \frac{1}{3} \ln \mid u \mid = \frac{1}{3} \ln \mid 1 + x^3 \mid$, and so for some constant $C$, $x \neq 1$ and $y \neq 0$ we have that:
(6)