Log in Sign up
Back to Discover
🔢

Root-finding algorithm

math Maturity 11-13

We can hunt for a special number. This number makes a math rule work. It is like finding a hidden spot. We make a guess first. Then we get closer and closer. It is like a game. Can you find it?

41 words

Sometimes we need to find a special number. This number makes a math rule equal to zero. We call this number a root.

We cannot always find the exact root. Instead, we make a good guess. We use a set of steps to get closer. This is called an algorithm.

One way is to use a bracket. A bracket is a small space. We look inside that space for the root. We make the space smaller each time.

Other ways use math to guess better. Some ways are very fast. They help us find the answer quickly. We keep trying until we are close enough. This helps us solve hard math puzzles.

115 words

Sometimes we need to find a special number. This number makes a math rule equal to zero. We call this number a root. Most of the time, we cannot find the exact root. Instead, we use a set of steps to get closer. This set of steps is called an algorithm. These are called root-finding algorithms.

Many algorithms use a process called iteration. This means we repeat the same steps many times. Each time we do the steps, we get a better guess. We stop when our guess is close enough.

One simple way is the bisection method. We start with a small space called a bracket. We check the middle of that space. Then we make the space smaller. We keep doing this to find the root. The false position method is similar. It uses a line to guess where the root is. This can be faster than the bisection method.

Other ways use math to guess even better. Newton's method is very fast. It uses a special tool called a derivative. Some methods, like Brent's method, mix different ways together. They pick the best step to find the root quickly.

192 words

Sometimes math problems are like hidden treasures. We want to find a special number called a root. A root is a number that makes a function equal to zero. Finding this number can be very hard. Most of the time, we cannot find the exact answer easily. Instead, we use a set of steps called an algorithm. These algorithms help us find an approximation. An approximation is a guess that is very close to the truth.

Most of these algorithms work by using iteration. Iteration means we repeat a process over and over. We start with an initial guess. Each new step makes our guess better. We keep going until our number is close enough to the root. Some methods use an auxiliary function to help. This is a second math rule that helps us find the first one. We look for a fixed point where the new guess stays the same.

One way to find a root is called bracketing. This method finds a small space that holds the root. We look for a bracket where the function has opposite signs. This means one end is positive and the other is negative. The bisection method is a simple way to do this. We find the middle of the bracket and check it. Then we make the bracket smaller and repeat. The false position method is also a bracketing method. It uses a line to guess where the root is.

Other methods are much faster than bisection. Newton's method is a famous and speedy way to find roots. It uses a tool called a derivative to make better guesses. While it is fast, it can fail if the starting guess is too far away. The secant method is another option. It does not need a derivative, but it is a bit slower. Some people use Brent's method to get the best of both worlds. Brent's method mixes bisection, the secant method, and inverse quadratic interpolation. It picks the best way for each step.

Math experts study these tools in a field called numerical analysis. When we look at polynomials, we use computer algebra instead. Polynomials have special rules that make finding roots easier. For example, we can use Descartes' rule of signs or Sturm's theorem. These rules help us know how many roots are in a space. We can even find roots in higher dimensions. This is a much bigger job with more complex rules. These algorithms help us solve equations that would otherwise be impossible.

421 words

In the field of numerical analysis, scientists use root-finding algorithms to locate the zeros of continuous functions. A zero, often called a root, is a specific number that makes a function equal to zero. Solving a mathematical equation is essentially the same task as finding these roots. However, most functions are too complex to solve exactly or express in a closed form. Because of this, mathematicians rely on algorithms to provide approximations. These approximations are often expressed as floating-point numbers. In some cases, they include error bounds to show how close the guess is to the true value. For real roots, these bounds act as small isolating intervals. For complex roots, they act as small disks in a complex plane.

Most root-finding methods are iterative methods. This means they produce a sequence of numbers that ideally converges toward a root as a limit. The process begins with one or more initial guesses. Each iteration of the algorithm produces a successively more accurate approximation. Because the process must eventually stop, these methods provide an approximation rather than an exact solution. Many methods work by evaluating an auxiliary function on the previous values. The goal is to reach a fixed point of this auxiliary function. This function is chosen because it converges rapidly to the roots of the original equation. The study of how these algorithms behave is a major part of numerical analysis.

One major category of these tools is bracketing methods. These methods determine successively smaller intervals, or brackets, that contain a root. They often rely on the intermediate value theorem. This theorem states that if a continuous function has opposite signs at two endpoints, a root must exist between them. The bisection method is the simplest version of this. It finds the midpoint of an interval to divide the search area in half. While robust, the bisection method is slow. It only gains one bit of accuracy per iteration. To find an epsilon-approximate root, it requires approximately log2(1/epsilon) function evaluations. Another bracketing method is the false position method, or regula falsi. It uses the intercept of a line connecting two points rather than the midpoint. This can be faster than bisection, but it may fail due to roundoff errors if the derivative is large.

Interpolation offers a different approach to finding roots. This process uses previous approximate values to create a low-degree polynomial that fits the function. The algorithm then finds the root of this new polynomial to use as the next guess. For example, using two points creates a line, which is the basis for the secant method. Using three points creates a parabolic curve, which is used in Muller's method. The secant method is useful because it does not require a derivative, though its convergence is slower. Its order of convergence is approximately 1.62, which is the golden ratio. Other interpolation methods, like inverse quadratic interpolation, can be faster but may behave poorly if the guesses are not near the actual root.

Some of the most powerful algorithms are derivative-based. Newton's method is a famous example that assumes the function has a continuous derivative. When it converges, it is much faster than the bisection method. Its order of convergence is typically quadratic. This means the number of correct digits roughly doubles with each step. Newton's method is also important because it can be generalized to higher-dimensional problems. Other advanced versions include Householder's methods and Halley's method, which has a cubic order of convergence. If a derivative is unavailable, Steffensen's method can achieve quadratic convergence by using a polynomial fit to approximate the derivative.

Because different methods have different strengths, mathematicians often combine them. Brent's method is a highly popular hybrid approach. It combines the bisection method, the secant method, and inverse quadratic interpolation. At every step, Brent's method decides which of these three is likely to perform best. This makes the algorithm both robust and fast. Another hybrid is Ridders' method. It uses an exponential interpolation to the root based on the midpoint of an interval. This method guarantees a convergence rate that is at most twice as slow as the bisection method.

When working specifically with polynomials, the field shifts toward computer algebra. Polynomials have unique algebraic properties that allow for more efficient algorithms. Instead of just searching, experts can use tools like Descartes' rule of signs, Budan's theorem, or Sturm's theorem. These allow for the isolation of all real roots within specific intervals with guaranteed accuracy. Finding roots in higher dimensions is also possible through generalized bisection methods. These methods partition a domain into parts to locate a root. Challenges in higher dimensions include finding easy criteria for root existence, such as the Poincaré–Miranda theorem or the topological degree of a function. While complex, these advanced algorithms allow us to solve equations that would otherwise be impossible.

802 words
Up Next
🔢
Newton's method
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.