필터 지우기
필터 지우기

Extremum of polynomial?

조회 수: 5 (최근 30일)
Steve
Steve 2011년 10월 12일
Hello Experts,
Consider I have polynomial coefficients vector p = [a_n,...,a_0].
I do d/dx p and get the Derivative of p.
I need to find the extremum points - to find the roots of p'.
Is there a function in Matlab that gets polynomial p, and finds it's extremum points - min/max. Like fminsearch, that doesn't work with such vector.
Please tell me what function do it.
Thanks a lot!

답변 (1개)

Walter Roberson
Walter Roberson 2011년 10월 12일
If the polynomial coefficients are numeric, then take the derivative of p and use roots() to solve for zeros; take those roots and substitute them back in to the polynomial to get the values at those locations.
As usual, to determine whether a particular point is a min or max or inflection point, take the second derivative of p, substitute in the locations you got from roots() and check the signs of the values: a positive value indicates a minimum, a negative value indicates a maximum, and 0 indicates an inflection point.
People sometimes mean something a shade different by "extremum". Keep in mind that for any polynomial with real coefficients, that as the free variable goes to infinity or negative infinity, the polynomial must go to one of the infinities as well. Even-order polynomials must go to the same infinity on both ends, odd-order polynomials must go to different infinities on the two ends; the sign of the coefficient of the highest-order term tells you which is which.
"Extremum" are sometimes only considered over a limited range: in such a case examine the value of the polynomial at the ends of the range, and examine the value of the polynomial at only the roots that are within the range.
  댓글 수: 2
Steve
Steve 2011년 10월 12일
can I use fminsearch for this?
How should I give fminsearch vector of coeffs and make it output me the extremum (p'(x0) = 0).
All this because I use Newton method to find roots of polynomial P.
I need to eliminate the initial x0's that makes p'(x0) = 0.
When I will have vector of such x0 I will now what x0 not to choose.
Walter Roberson
Walter Roberson 2011년 10월 12일
I get frustrated when posters leave out major information from their question.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by