When finding an absolute maximum value over an interval, you must consider the points where the derivative equals zero (which you did) and ALSO the endpoints of the interval. In this case, you must consider x=0 and x=0.5 when trying to determine the maximum value because these are the smallest and largest allowable values for x.