G Zill, Dennis, Differential Equations with Boundary-Value Problems, 7th edition, p. 46:
Example 1:
Solve $(1+x)\mathrm dy-y\mathrm dx=0.$
$$\frac{\mathrm dy}{\mathrm dx}=\frac{y}{1+x}\\\cdots\\\cdots$$
From $$\ln|y|=\ln|c(1+x)| \tag{1}$$ we immediately get
$$y=c(1+x)\tag{2}$$
Given that $x,y\in\mathbb{R}$ and $|x|=|y|,$ I don't think we can say that $x=y.$ Why did the author go from $(1)$ to $(2)$ ? Is that step mathematically rigorous?
EDIT
Follow-up question: How to solve for $y$ in $(1+x)dy-ydx=0$?
$$\int \frac{dy}{y}=\int \frac{dx}{1+x}$$
$$\ln|y|+c_1=\ln|1+x|+c_2$$
$$\ln|y|=\ln|1+x|+c \ [\text{let} c_2-c_1=c]$$
$$y=e^{\ln|1+x|+c}$$
$$y=|1+x|e^c$$
$$y=\begin{cases} (1+x)e^c,\ x\geq1 \ -(1+x)e^c,\ x<-1\end{cases}$$
Is it correct now?
– tryingtobeastoic May 05 '23 at 09:10