Is the general solution for $\frac{\text {d}y}{\text {d}x} = e^y$
$$y = -\ln(-x+C)$$ or $$y = -\ln|-x+C|$$ or something else?
Here are the steps I'm taking: $$\begin{align} \frac{\text {d}y}{\text {d}x} & = e^y & \text{0. start}\\ e^{-y}\text {d}y & = \text {d}x & \text{1. separate dependent} y \text{and independent } x \\ \int e^{-y}\text {d}y & = \int \text {d}x & \text{2. integrate both sides} \\-\int e^u \text {d}u & = \int \text {d}x & \text{3. substitute } u = -y, \text{ constant multiple rule}\\-e^u + C_1 & = \int \text {d}x & \text{4. exponential rule} \\-e^{-y} + C_1 & = \int \text {d}x & \text{5. undo substitution} \\ -e^{-y} + C_1 & = x + C_2 & \text{6. constant rule} \\ e^{-y} - C_1 & = -x - C_2 & \text{7. multiply both sides by} -1 \\ e^{-y} & = -x - C & \text{8. combine constants of integration} \\ \ln(e^{-y}) & = \ln(-x - C) & \text{9. take natural log of both sides} \\ -y & = \ln(-x - C) & \text{10. definition of natural log} \\ y & = -\ln(-x - C) & \text{11. multiply both sides by} -1 \end{align}$$ So I end up with $$y = -\ln(-x+C)$$ but the given answer is $$y = -\ln|-x+C|$$ with the absolute value bars. Have I gone wrong somewhere? Why would it be $y = -\ln|-x+C|$ with the absolute value bars?