To do a definite integral by substitution, the steps are all the same but you need to be careful. First, start out by finding a suitable .
Here is where you need to be careful. When , we have so the limits of integration must be changed accordingly. Also, when , we have . Thus
Main Page : Calculus