Uniqueadh: How do I find the local maximum and minimum?
Rom is right (of course)
Just putting it a slightly different way
you find the y values at the 2 end points
you find any maximum or minimum points within the boundaries (y'=0)
you find the y values at the max or min points.
The smallest y is the min and the largest is the max.