Hi there

I have a problem to find the maximum and minimum functions of the following,

but i am not sure what to do with the terms in brackets in order to find and then the second derivative;

in order to determine which values are local; ? or ?

would be correct, however I do belive this is wrong could someone explain why?