It is okay to have some x\displaystyle {x}'s remaining in your integral after the substitution step.