Evaluate
Locate the curve where the absolute value switches sign. The integrand changes sign exactly on , i.e. . Inside the unit square this branch is only visible when , that is when . For the whole vertical slice satisfies , so no split is needed there.
Handle the easy strip . Here , so
Split each slice for at . Below the integrand is , above it is . Using and , the two pieces are and , so each slice contributes
Integrate the slice contribution over .
The term is the sole source of the logarithm — it is the signature of integrating across a hyperbolic boundary.
Add the pieces and verify numerically.
Numerically this is . A midpoint grid over the unit square gives — agreement to seven decimal places, the expected accuracy for a grid method on a kinked integrand ✓.
Need to solve a different problem like this? Open the solver →