Find the critical point of the function in the interval