## matlab and polinomials [closed]

How can I find the maximum value point of a polynomial?

I am quite confused because the built-in function in MATLAB is just for finding the minimum point by using fminsearch... Can MATLAB do that?

This is my teacher's question:

write a MATLAB script to find the coordinate (x,y) of the maximum of the graph

y = x^3 - 9x^2 + 2x + 8

in the domain 0 <= x <= 2

-
Don't post your homework without showing what you've done so far. What do you know about how to detect maxima? – Qiaochu Yuan Nov 12 2009 at 18:09
Sorry, Math Overflow is not the right place for this question. As you've indicated in your answer, you understand the math involved in this problem, so your problem is with MATLAB. Consider asking your question on a MATLAB support forum, or at stackoverflow.com/questions/tagged/matlab – Anton Geraschenko Nov 12 2009 at 18:23
So you know how to find the minimum value taken by a polynomial on a domain using MATLAB. Maybe you could change your polynomial $P$ to something related, say $\tilde{P}$ so that the minimum of $\tilde{P}$ is the maximum of $P$? – Sonia Balagopalan Nov 12 2009 at 18:28