Find The Local Minimum And Maximum Value Of F