I don't know how much calculus you have taken, but if you are okay with exchanging integrals and derivatives you can do some "nifty" tricks.

Here is the first one

We can rewrite the integrand as a derivative with respect to n to get

Now if you exchange the integral and the derivative you get (This step should be verified)

Now we can take the integral with respect to x to get