Integrating factor $e^{\int \frac{1}{x} dx}$ in differential equation When integrating $\int \frac{1}{x} dx$, we typically write the integrated expression as $ln|x| + C$. The absolute value of the $x$-variable is introduced to account for the scenario where we have $ln(-x)$ and $x$ is a negative number.
In a calculus book I am currently working with, the following differential equation is used in an example:
$$xy'+y=3x^{2} +4x, x\neq 0$$
In this case the integrating factor becomes $e^{\int \frac{1}{x} dx}$. The textbook example then states that $e^{\int \frac{1}{x} dx}=e^{ln x} = x$.
Question: Why is it that we do not have to take the absolute value of the $x$-variable here? I could understand this if it was explicitly stated that $x>0$ in the given problem, but this is not stated. All we know is that $x\neq0$. So how does this account for the second scenario outlined above?
If anyone can explain this to me, then I would greatly appreciate it!

I would assume it's because "doesn't matter" in the end, in the sense that, if $|x|$ is an integrating factor, then so is $x$.
So, even though what is (carelessly) written in your textbook is only valid for $x>0$, the integrating factor works everywhere.
