Is there any general formula for calculating integrals of the type other than (guess the function is not even included in LaTeX)? I was trying to figure it out and got something like but I'm not sure if it's (always) correct and where absolute values should be put.
Guess I got it: . Can someone confirm if it's correct? Thanks.