Need help with difficult integral