Clear Filters
Clear Filters

How do I find the extrema of the function x^3+6 x^2-13 x-42?

2 views (last 30 days)
In the optimizing section there is function that calculates minima but not all the extrema. And how to I do for the multiple variable functions, like, (-x-2)^2+(-y-3)^2?

Accepted Answer

Walter Roberson
Walter Roberson on 10 Sep 2012
For polynomials, the extrema are always one of the infinities.
Take the highest order term. If it is an even power, then both extrema have the same sign, which will be the same as the sign of that highest-order term. If the highest order term is an odd power, then the extrema have opposite signs, with the limit towards +infinity having the same sign as the highest-order term, and the limit towards -infinity having the opposite sign as the highest-order term.
If you want to find all the minima and all the maxima, and you have a routine to find minima, then use it once to find the minima, and then feed in the negative of the expression and find the minima of that and invert their signs to get the maxima.
  6 Comments
Pedro
Pedro on 10 Sep 2012
No, I'm actually new at Matlab, you mean symbolic math toolbox, right?

Sign in to comment.

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!