Sometimes things are hard to draw. We can use easy shapes to help. These shapes look almost like the real thing. This helps computers do math fast. It is like making a good guess. Can you find shapes in your room? 
Sometimes math is hard to do. We can use easy math to help. This is called making a guess. We use simple shapes to match hard ones. 
Sometimes math is too hard for a computer to do quickly. Computers are great at adding and multiplying. They struggle with more complex math rules. Scientists use a way called approximation theory to help. 
One way to make a good guess is using Chebyshev polynomials. These are special math tools that stay level. They swing between positive and negative values. Another way is the Remez algorithm. This is a set of steps to find the best guess. It looks for the smallest possible error. It moves test points around to find the best fit. This helps computers give very accurate answers very fast.
Sometimes math is too hard for a computer to do quickly. Computers are great at adding and multiplying. They struggle with more complex math rules. Scientists use a way called approximation theory to help. 
Approximation theory helps us find simpler functions to act like hard ones. We want to know how much error our simple guess adds. A computer library might use polynomials or ratios of polynomials to do this. The goal is to stay as close to the real answer as possible. We can do this by using a high-degree polynomial. Another way is to make the area we are looking at smaller. Modern libraries often break a big area into many tiny segments. They use a low-degree polynomial for every single segment. This helps the computer stay very accurate.
To find the best guess, mathematicians look for an optimal polynomial. This polynomial tries to make the worst error as small as it can be. We want to minimize the maximum value of the error. For many functions, the error will swing back and forth. It will oscillate between a positive and negative value. The equioscillation theorem says this is the best way to do it. For a polynomial of degree N, the error swings N+2 times. This means the error stays level at its highest and lowest points. . Vertical divisions are 10−4. Maximum error for the optimal polynomial is 5.47 × 10−4.]
One way to get a near-perfect guess is using Chebyshev polynomials. These are special tools that oscillate between +1 and -1. Using them is a bit like using Fourier analysis. We can expand a function and then cut off the series. If we cut it after a certain term, the error is small. The error will look like a level function with many swings. This method is the basis for Clenshaw–Curtis quadrature. This is a way to do numerical integration. It is very helpful for functions that change quickly.
There is also a special way to find the best polynomial called the Remez algorithm. This is an iterative process, which means it repeats steps to get better. It works by choosing test points to find level error values. The algorithm uses Newton's method to move these points around. It moves them to where the error is at its highest or lowest. This process happens very fast for well-behaved functions. It is called quadratic convergence because it gets much better each time. Scientists often start with Chebyshev points to help the algorithm work. . Vertical divisions are 10−4.]
Approximation theory is a branch of mathematics focused on representing complex functions using simpler ones. In many real-world applications, calculating a precise mathematical function is too difficult or slow. Approximation theory seeks to find the best possible substitute and characterize the errors introduced by this substitution. A "best" approximation depends entirely on the specific needs of the application. For instance, a computer mathematical library needs to perform calculations quickly using only basic operations like addition and multiplication. 
To achieve high accuracy, mathematicians often use polynomials or rational functions, which are ratios of two polynomials. The goal is to keep the approximation as close to the actual function as possible. This level of accuracy often matches the limits of a computer's floating point arithmetic. One way to improve accuracy is to use a polynomial of a higher degree. Another method is to narrow the domain, which is the specific interval of numbers being studied. Modern mathematical libraries often divide a large domain into many tiny segments. They then apply a low-degree polynomial to each small segment to maintain precision.
Finding the most accurate substitute involves searching for an optimal polynomial. Once a mathematician chooses a specific interval and a polynomial degree, they seek to minimize the worst-case error. This means they want to minimize the maximum value of the difference between the actual function, $f(x)$, and the approximating polynomial, $P(x)$. For well-behaved functions, an $N$th-degree polynomial can create an error curve that oscillates between a positive and negative value. This error curve will oscillate a total of $N+2$ times. According to the equioscillation theorem, such a polynomial is always optimal for interpolating $N+1$ points. . Vertical divisions are 10\u22125. Maximum error for the optimal polynomial is 6.07 \u00d7 10\u22125.]
One effective method for finding a near-optimal approximation is the Chebyshev approximation. This technique involves expanding a function in terms of Chebyshev polynomials and then cutting off the expansion at a desired degree. This process is similar to Fourier analysis, which uses trigonometric functions to represent data. Chebyshev polynomials are unique because they are "level," meaning they oscillate between $+1$ and $-1$ over the interval $[-1, 1]$. If a Chebyshev expansion is cut off after the $N$th term, the resulting error is close to a level function with $N+2$ extrema. This makes the result very close to the true optimal polynomial. . Vertical divisions are 10\u22124. Maximum error for the optimal polynomial is 5.47 \u00d7 10\u22124.]
While Chebyshev approximations are very useful, they are not always perfectly optimal. In some cases, the error might be slightly better or worse than the optimal version. For example, the discrepancy is less significant for the exponential function, $\exp(x)$, because it has a very rapidly converging power series. This makes the error for $\exp(x)$ smaller than the error for the logarithm function, $\log(x)$. Chebyshev approximation serves as the mathematical foundation for Clenshaw\u2013Curtis quadrature, which is a technique used for numerical integration.
To find a truly optimal polynomial, mathematicians use the Remez algorithm. This is an iterative algorithm, meaning it repeats a sequence of steps to reach a solution. The algorithm works by solving a system of $N+2$ linear equations to find a polynomial that produces alternating error values at specific test points. After the first step, the test points might not be at the actual locations of the maximum or minimum errors. To fix this, the algorithm uses Newton's method to move the test points to the correct locations where the error function's derivative is zero. . Vertical divisions are 10\u22124.]
The Remez algorithm is highly efficient because it exhibits quadratic convergence for well-behaved functions. This means that if the test points are within a certain distance of the correct result, they will be much closer after the next round of calculations. To ensure success, the entire process must be carried out using much higher precision than the desired final result. Scientists often start the algorithm using the extrema of a Chebyshev polynomial as the initial test points. This provides a strong starting position that allows the algorithm to converge rapidly to the optimal polynomial.
🖼️ Images & Media (1)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
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.