The Padé approximant is a rational function that matches a given Taylor series to as high an order as possible. While a Taylor polynomial uses only a finite number of derivatives to form a polynomial, a Padé approximant uses those derivatives to construct a ratio of two polynomials. This often produces a more accurate approximation on a wider interval, especially near singularities where a pure polynomial might diverge. Mathematically, for nonnegative integers and , the Padé approximant of order is the rational function where has degree at most and has degree at most , with for normalization. The coefficients are chosen so that the Maclaurin series of agrees with the series of the original function through order .
Polynomials provide good local approximations, but they can behave poorly farther from the expansion point. Rational functions can capture asymptotic behavior more faithfully. For example, the Padé approximant of reproduces the function exactly with only a first-order denominator. In many contexts—including control theory, quantum mechanics, and numerical integration—Padé approximants serve as a bridge between a power series and a more globally accurate representation.
To build the approximant, we first compute the Taylor series coefficients of the function up to order . Then we solve a linear system for the denominator coefficients (with ) so that the power series of times the original series agrees with a polynomial of degree . Finally, we compute the numerator coefficients by convolving the with the . Although these steps may sound complex, they rely on straightforward linear algebra that can be coded concisely.
One of the key advantages is improved accuracy away from the expansion point. Consider approximating . The Taylor series truncated at order four provides modest accuracy near zero, but diverges quickly for large . A Padé approximant of order can capture the function well across a broader interval because the denominator models the exponential growth. In numerical computations where both accuracy and efficiency matter, Padé approximants offer a valuable compromise.
Enter a function recognized by math.js
, such as sin(x)
or exp(x)
. Choose non-negative integer orders and for the numerator and denominator. When you press Compute, the calculator differentiates the function repeatedly at to obtain series coefficients. It then solves for the denominator coefficients with a small system of linear equations and displays the resulting rational function. Because symbolic differentiation happens directly in your browser, complex expressions or very high orders may take a moment to process.
Suppose we want a Padé approximant of . The first two derivatives at zero are all . Solving the equations yields and . The ratio matches the Taylor series of through and offers better accuracy for larger than the quadratic Taylor polynomial alone.
Padé approximants are powerful, but they require care. The underlying linear system might be singular for certain order choices or functions, which means a Padé approximant does not exist in those cases. Additionally, while the approximant often extends the range of accuracy, it can introduce spurious poles—points where the denominator vanishes though the original function remains finite. Checking that these poles do not fall within the interval of interest is a prudent step when using the approximant in practical computations.
Henri Padé introduced his approximation scheme in the late nineteenth century as an improvement over Taylor polynomials. Since then, the method has appeared in diverse areas, from quantum field theory to digital signal processing. Its power lies in capturing more global information with only local derivatives. Modern symbolic algebra systems automate the construction of Padé approximants, but understanding the underlying theory grants insight into why they work so well.
Advanced applications extend Padé approximants to series around points other than zero, or to multivariate functions. They also form the basis for analytic continuation, where a series that converges only near the origin is turned into a rational function valid over a larger domain. In numerical analysis, Padé approximants underpin some exponential integrators and continued fraction expansions. Experimenting with the calculator exposes you to these possibilities and encourages further exploration.
Stick to modest orders when first learning. High orders require many derivatives and can suffer from numerical instability. If you encounter an error, try reducing or . Remember that the input function must be analytic at the expansion point; discontinuities or absolute values lead to divergent series and unusable approximants. When the approximant exists, compare it to the original function by plotting or evaluating at sample points to verify accuracy.
Determine the minimal polynomial of a 2x2 matrix using eigenvalues and algebraic tests.
Solve 2-variable linear programs using the simplex method.
Compute the singular value decomposition of a 2x2 matrix to understand matrix structure.