This is documentation for an obsolete product.

LocateRoot

LocateRoot[f, {x, }] searches for a numerical solution to the equation f 0, starting with x = .
LocateRoot[f, {x, , }] searches for a solution using and as the first two values of x. This form must be used if symbolic derivatives of the equation cannot be found.
LocateRoot[f, {x, xstart, xmin, xmax}] searches for a solution, stopping the search if x ever gets outside the range xmin to xmax.
LocateRoot[{, , ... }, {x, }, {y, }, ... ] searches for a numerical solution to the simultaneous equations .

Examples

Using InstantCalculators

Here are the InstantCalculators for the LocateRoot function. Enter the parameters for your calculation and click Calculate to see the result.

Entering Commands Directly

You can paste a template for this command via the Text Input button on the LocateRoot Function Controller.

These two curves intersect at one point.

This finds a numerical approximation to the x coordinate of the intersection point. The -0.5 is the initial guess.

Trigonometric equations typically have an infinite number of roots. If you start sufficiently close to a particular root of an equation, LocateRoot will find that root.

Starting closer to another root will give a different solution.

You can restrict LocateRoot so that it looks for solutions in one particular region only. Here the initial guess is and the solution is supposed to be between and . There is no such solution.

This is what happens when LocateRoot can find no solutions at all.

If you want LocateRoot to use complex values in its search, then you need to give a complex starting value.

You can use the secant method by giving two starting values.

This finds a solution to a set of simultaneous equations. It is a good idea to avoid taking the starting values for x and y to be equal or to take any other "special" combinations of values.