I have a feeling that I made my mistake in this question near the end, but I'll write it all out anyway:
equated co-efficients to get :
I can do the second and fourth integrals fine, so I'll just show work for the first and third.
now I sub them in:
from the substitution I derived:
I'll stop here, because I think that by here I've made a mistake (this part of my answer does not match the correct answer). If anyone can spot it, it would be great.
Forgive typos, this one was quite tedious for me to write out.