Toolvito

Processed online by Toolvito

Optimization Calculus Calculator

Type a function to find where it is largest and smallest: the critical points with the first and second derivative tests, the absolute maximum and minimum on an interval, saddle points of functions of several variables, extremes under constraints by Lagrange multipliers, or the best point of a linear programme.

Choose what to do

Task
Maximum and minimum

Use ^ for powers; several letters for several variables.

Up to 3 equations, one per line, for Lagrange multipliers.

For the absolute maximum and minimum of one variable on a closed interval.

More options

2 to 30.

When you run a task here, Toolvito receives the information you submit for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use it

  1. Choose Maximum and minimum for a function, or Linear programming for a linear objective with inequality constraints.
  2. Type the function, such as x^3 - 3x or x^2 + y^2 - 2x + 4y. For a closed interval give its ends; for a constraint type an equation such as x + y = 10 (one per line).
  3. For a linear programme type the objective, such as 3x + 5y, and one constraint per line, such as 3x + 2y <= 18. Choose maximise or minimise.
  4. Select Optimise. Read the extremes, the steps, the table of critical points and the checks, and look at the graph.

Methods

  • One variable: solve f′(x) = 0, classify each critical point by the second derivative test (or the first derivative test when f″ = 0), and on a closed interval compare the critical points with the end points (closed interval method).
  • Several variables: solve ∇f = 0 and classify with the Hessian matrix: positive definite is a minimum, negative definite a maximum, mixed signs a saddle point (the D = f_xx·f_yy − f_xy² test for two variables).
  • Lagrange multipliers: solve ∇f = λ∇g with the constraints (up to 3). On a closed and bounded constraint (such as a circle) the largest and smallest candidates are the maximum and minimum.
  • Linear programming: up to 20 letters and 40 constraints with the HiGHS solver: the optimal point and value as exact fractions, binding constraints, slack and shadow prices, the feasible region graph for two letters, whole-number answers (integer programming), and a statement when the problem is infeasible or unbounded.

Checks

  • One-variable answers are checked by a 200,001-point grid or a numerical minimiser near each point; several-variable points by the gradient; Lagrange candidates by SciPy’s SLSQP from 40 random starts; linear programmes by strong duality (the dual objective equals the primal) and by solving the binding constraints exactly.
  • Word problems (fences, boxes, cans) need the function written first: for a rectangle with perimeter 100, maximise x·(50 − x). Not covered: the simplex tableau steps, golden-section search and non-linear programmes with inequality constraints.

Related tools