Find
See why the power rule fails here. The rule breaks down at , because the denominator becomes zero. So is the one exception in the whole family and needs its own answer.
Start from the derivative of the logarithm. For , , so is an antiderivative — on the positive axis only, since is undefined for .
Handle negative , where the integrand is still fine. is perfectly well defined for , so it must have an antiderivative there too. For write and differentiate with the chain rule:
The same derivative comes out, which is exactly why the absolute value is the right patch.
Combine both cases into one formula.
Writing instead would silently restrict the answer to and give an undefined expression for every negative input.
Note a subtlety about the constant. Because the domain is split into two disconnected pieces, the constant may in fact differ on each side: the fully general antiderivative is for and for . For definite integrals this matters — an integral crossing , such as , is improper and divergent, not .
Need to solve a different problem like this? Open the solver →