Following differential equation is given: $$x \frac{\mathrm dy}{\mathrm dx}=y+1.$$
Separating variables and integrating: $$\int \frac{1}{y+1} \mathrm dy=\int \frac 1x \mathrm dx$$ $$\ln|y+1|=\ln|x|+c$$
In my textbook the following step is: $$y+1=Ax \,\,\,\,\, \text{(where} \ A=e^c).$$
My question is why the modulus function can be omitted after exponentiating.
It can't! Except that it almost can. Here's the steps, slowed down.
$$\ln|y + 1| = \ln|x| + c$$ $$e^{\ln|y + 1|} = e^{\ln|x| + c}$$ $$|y + 1| = e^c|x|$$ $$y + 1 = \pm e^c|x|$$
But $\pm|x|$ is really just $\pm x$, so we have $y + 1 = \pm e^cx$.
If you say $A$ is $e^c$, then $A$ has to be positive, because powers of $e$ are always positive. Instead, we can say $A = \pm e^c$, which can be any nonzero constant.
So now we have $y + 1 = Ax$, for $A \neq 0$. But the case where $A = 0$ was accidentally ruled out when you divided by $y + 1$; $y = -1$ is a solution to the original differential equation. So the general solution is $y + 1 = Ax$, where $A$ is any constant.