# Numerical root finding (find_root)

Find a root numerically, from a starting value.

## How to write it

### find_root(equation, x = a)

**equation**

An equation, or an expression that is zero at the root. Takes an equation, or an expression.

**x = a**

The variable and where to start. Takes a variable set to a value.

## Examples

- $\displaystyle \cos(x) = x \Rightarrow x = 0.7390851332151607$

  `find_root(cos(x) = x, x = 1)`

  In the solver, `find_root(cos(x) = x, x = 1)` gives `[x -> 0.7390851332151607]`.

  [Open in the solver](https://hilberon.com/?q=find_root%28cos%28x%29%20%3D%20x%2C%20x%20%3D%201%29)

## Functions its examples use

- [cos](https://hilberon.com/library/cos)

  Cosine of an angle in radians.

## Related functions

- [find_instance](https://hilberon.com/library/find_instance)

  A point that meets a condition, or an empty list when there is none.
- [least_squares](https://hilberon.com/library/least_squares)

  The least-squares solution of A x = b.
- [linear_solve](https://hilberon.com/library/linear_solve)

  Solve a linear system A x = b given by its matrix and right-hand side.
- [eliminate](https://hilberon.com/library/eliminate)

  Eliminate variables from a system of equations, leaving equations in the others.
- [numeric_solve](https://hilberon.com/library/numeric_solve)

  Solve equations numerically.
- [solve_identity](https://hilberon.com/library/solve_identity)

  Find the values of the parameters that make an equation true for every value of the variable.

---
Source: https://hilberon.com/library/find_root
