Relative Maximum And Minimum Of A Function