When doing a substitution you also have to change the values of the integral (0 and 1).
I'll make the steps...
So if ,
This explains the changes 0 and 1 to 2 and 5.
Plus, you have to "change" dx, and express it in respect to u.
The integral becomes :