Imagine in front of the 3 for the first integral and use the substitution for your right.
Use: . Don't forget to change your limits on your integrand accordingly.
Use for your sub. This gives you:
To generate these images, you use latex. There's a tutorial right here.