2

We know that the integral of,

$$ \int \frac{1}{x} dx = \ln x$$

ignoring any integration constants.

Consider the integral of some more `general' function,

$$ \int \frac{1}{\sqrt{x^2 + y^z +z^2}} dx $$

i.e. in the $y=z=0$ case we recover the original integral ($1/x$)

Now, if I put the second integral into WolframAlpha, it spits out,

$$ \int \frac{1}{\sqrt{x^2 + y^z +z^2}} dx = \ln \left(\sqrt{x^2+y^2+z^2} + x\right)$$.

I naively expected that in the $y=z=0$ case, this answer would revert to $\ln x$, but instead we get $\ln 2x$

What gives?

  • 4
    Technically it's $\int\frac{1}{x}dx=\ln|x|+C$, where the locally constant function $C$ can have different values for the cases $x<0,,x>0$. – J.G. Dec 04 '18 at 18:30

1 Answers1

7

Note that

$$\ln 2x=\ln x +\ln 2=\ln x +C$$

user
  • 154,566