Question: search value plot maximize

In this fuction the maximize is about at t=46 and x=46 but in the plot I look other max at other value, why?because is discontinus fuction?I need not the local max (it is potential energy but I think don't matter)optimization2enerpot.mws

Please Wait...