Boy, am I really confused about this!!! I have an assignment that is wanting me to create a python statement that will produce f(x) for:

f(x) = 2xcubed - 8xsquared + x +16.

Then, using the same function, write a python program that will find the extrema (both high and low) for the function across the closed interval (-1,3).

HELP!!!