If you want to calculate:

, the primitive is indeed

What do you mean with x'=dx and so dx=1?

Do you know what is? if you don't I think it can be useful to look at the meaning of the limit definition of the definite integral. Are you familiar with that? ...