solving integral using u substitution