Optimization Calculator

Find min/max of f on an interval.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

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

1
Step 1
Type f(x).
2
Step 2
Enter the interval ends a and b.
3
Step 3
Press Calculate.

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]?
25, at x = 5.
What are the extremes of x³ − 3x on [−2, 2]?
Minimum −2 and maximum 2.
Why does the tool check the ends?
A maximum or minimum on a closed interval can occur at an endpoint without f′ being zero.

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 YouTube
  • Vectors | Essence of linear algebra

    3Blue1Brown

    Linear algebra intuition for matrix and vector tools.

    Watch on YouTube