Solve the following initial value problem,
$$\begin{align}
\frac{dy}{dx} &= \frac{\exp(-y)}{2x + 4}\\
y(0) &= 2
\end{align}$$This is a separable equation. First we find the general solution following the paradigm.
Separate the variables
$$
\exp(y) dy = \frac{dx}{2x + 4}
$$
Integrate both sides
$$
\exp(y) = (1/2)\log|2x + 4| + C
$$
Solve for y (if possible)
We simplify the expression to obtain the general solution
$$
y = \log((1/2)\log|2x + 4| + C)
$$
Check for singular solutions
Since we never divided by anything that could be 0, there are no singular solutions.