Optimization Calculator
Find min/max of f on an interval.
About this tool
Enter a function and an interval to find its highest and lowest values there. x(10 − x) on [0, 10] peaks at 25 when x = 5.
How to use
How it works
The extremes of a continuous function on a closed interval occur at a critical point (f′ = 0) or at an end. The tool finds where f′ changes sign and compares f there and at a and b. This is the classic fence and box problem set-up.
check f at: a, b and every x where f′(x) = 0
Worked example
Quadratic on a closed interval
- Input
- x^2 - 6*x + 5 on [0, 6]
- Output
- min −4 at x = 3; max 5 at x = 6
- Walkthrough
- f′ = 2x − 6 = 0 at x = 3, where f = −4. The ends give f(0) = 5 and f(6) = 5, so the maximum is 5.
Limitations
- The tool reports one location when a maximum is reached in more than one place (f(0) and f(6) are both 5).
- Functions must be continuous on the interval.
Questions
What is the maximum of x(10 − x) on [0, 10]?
What are the extremes of x³ − 3x on [−2, 2]?
Why does the tool check the ends?
Features
- Critical points plus endpoints
- Closed-interval method
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Derivative as a concept
Khan Academy
Core derivative intuition for differentiation tools.
Watch on YouTubeVectors | Essence of linear algebra
3Blue1Brown
Linear algebra intuition for matrix and vector tools.
Watch on YouTube
- Introduction to Integration
Math is Fun
Accumulation view that pairs with integral tools.
- OpenStax Math
OpenStax
Free textbooks for algebra through calculus.