There are two ways to do this.
Write the integral as for
Use integration by parts.
Use the pythagorean Identity from here and you are done
The 2nd is to use complex variables. If you want to see it this way I can show you that as well.