I can't find a working solution to get to the integral of

Because the answer is given in the solutions as

I can work backwards easily enough to see that it is correct.

But without the solution I can't figure it out for myself.

Can anybody explain to me how I would do this on my own?

Many thanks.