I can find the function that needs to be integrated and get the same function as in the answers but I can’t seem to find a way to integrate the function. I have tried many times and failed, so could someone help me through or show me how its done as I am out of ideas.

Thanks, Daddy_Long_Legs