WLJS LogoWLJS Notebook

FindMinimum

FindMinimum[f, {x, x0}] searches for a local minimum in f, starting from the point x=x0.

Examples

Find local minimum:

FindMinimum[x^2 - 4x + 5, {x, 0}]
(* {1., {x -> 2.}} *)

Multivariable:

FindMinimum[x^2 + y^2 + x*y, {{x, 1}, {y, 1}}]
(* {0., {x -> 0., y -> 0.}} *)

Please visit the official Wolfram Language Reference for more details.

On this page