The Dirac-delta function has the property, $$ x \delta'(x) = -\delta(x) $$
If I consider an ODE of the following form, $$ \frac{df}{dx} = \frac{-1}{x} f(x) $$ here we can show that $f(x)$ satisfies the above property and therefore $f(x) = \delta(x)$. However, if I solve the above ODE using separability, $$ \int \frac{df}{f} = -\int \frac{dx}{x} $$ I get a result of the kind $f(x) \sim 1/x$. How do I reconcile between these two seemingly contradictory solutions.