I need to integrate the following function (see attached bild) and the result need to be 1.

I think what I have done wrong might be finding the primitive function (I did what it's on the right side of the equation). I would appreciate if anyone could tell me how to solve it.

Oh.. btw, I would also like to know hoe to use the math code here. Is there any guide or software for writing equations?