Finding global maxima and minima
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tanzil Tanzil
le 13 Oct 2021
Commenté : Walter Roberson
le 15 Oct 2021
Find the global maxima and minima for the function x3 −12x−5on x=(−4,4)
2 commentaires
Réponse acceptée
Walter Roberson
le 13 Oct 2021
Use calculas.
The minima and maxima of a function can only occur at:
- Critical points of the function; or
- The boundaries that the function is being evaluated at
Critical points of the function are the places where the derivative equal 0.
So... take the derivative of the function and solve for 0. The resulting x are the critical points. For each critical point that is within the boundaries, evaluate the function at those locations. Also evaluate the function at the boundaries. Now the minimum out of all those evaluations is the global minima over that range, and the maximum out of those evaluations is the global maximum over that range.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Search Path dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!