You are given a function of the variable , with two parameters and . You are asked to verify that the supremum of the function has a certain specific form in terms of the two parameters.
The correct procedure to find the supremum (or maximum) is to differentiate the function with respect to the variable . This give you the first derivative. The next step is to set the first derivative equal to zero, and solve the equation in terms of . From your post I see that you have done so, and found that . This answer is correct !
Now all you have to do is substitute this particular value fot into the expression for . This step will yield the supremum. If you perform this calculation (try it!), you will indeed find the result that was specified in the exercise.