Hello,

I'd really appreciate some help with finding the following indefinite integral:

What I tried is the following:

but it would be WRONG to proceed like this:

because could be either or !

So perhaps this problem needs some other approach.

Mathematica gives this:

as the answer.

Thanks a lot for your help!