Why was sin(2x) here substituted with -1 instead of 1? It's asking for maximum.