Need help with maximization of an Intergal?

Now sure how they got the answers in the image. Any help will be appreciated.
1 answer 1