Finding global maxima and minima

13 ビュー (過去 30 日間)
Tanzil Tanzil
Tanzil Tanzil 2021 年 10 月 13 日
コメント済み: Walter Roberson 2021 年 10 月 15 日
Find the global maxima and minima for the function x3 12x5on x=(4,4)
  2 件のコメント
KSSV
KSSV 2021 年 10 月 13 日
What have you attempted for your Home Work?
Tanzil Tanzil
Tanzil Tanzil 2021 年 10 月 15 日
no idea on how to do it....was just told to search on google for the code by the prof.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2021 年 10 月 13 日
Use calculas.
The minima and maxima of a function can only occur at:
  1. Critical points of the function; or
  2. 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 件のコメント
Tanzil Tanzil
Tanzil Tanzil 2021 年 10 月 15 日
but then how to plot the graph...?
Walter Roberson
Walter Roberson 2021 年 10 月 15 日

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by