The function has two critical values. The smaller one equals
and the larger one equals
You can earn partial credit on this problem.