For the record, I didn't use the chain rule, I used integration by substitution. It's really just picking nits about terminology. The chain rule is a method of solving derivatives. Integration by substitution is the same process, but in the integral form.