Find the critical number of the function