You correctly applied the definition of the improper integral by splitting up the integral into two parts:

But you need to evaluate the two limits independently:

and

You combined the two limits after integrating but before taking the limit, and the terms canceled out.

Post again in this thread if you're still having trouble.