Evaluate the integral by reversing the order of integration.