extremos relativos de una funcion