How do you compute
$$\int\frac 1x \, dx$$
without knowing its anti-derivative to start with?
Is there a way to do it by parts or substitution?
How do you compute
$$\int\frac 1x \, dx$$
without knowing its anti-derivative to start with?
Is there a way to do it by parts or substitution?
Substitution could work: Set $x=e^t$ so that $dx=e^tdt$ then the integral becomes $\int1dt$ which is $t+C$ Backsub from $x=e^t$ gives $t=\ln x$. Ofcourse you would need to implement the absolute value since $x=e^t$ does not produce negative values for $x$, but the given function $y=1/x$ is of course well defined for $x<0$. My last statement may not be some standard of "rigor" but I don't know how much closer one can get wrt the OP's suggested integration techniques...