Interactive visualization of Maclaurin series approximations. Choose a function, adjust polynomial degree, evaluate at any x, and see the series terms. Understand convergence and error analysis.
A Maclaurin series is a Taylor series expansion of a function about 0. Formally, for an infinitely differentiable function f(x), its Maclaurin series is:
It represents the function as an infinite sum of terms calculated from its derivatives at zero. This tool computes the N-th degree Maclaurin polynomial PN(x) and compares it with the exact function, providing deep insight into approximation theory, convergence, and error bounds (Lagrange remainder).
For common functions, closed-form Maclaurin expansions are known:
| Function | Maclaurin Series (convergence) | Radius |
|---|---|---|
| eˣ | Σn=0∞ xⁿ/n! | ∞ |
| sin(x) | Σn=0∞ (-1)ⁿ x2n+1/(2n+1)! | ∞ |
| cos(x) | Σn=0∞ (-1)ⁿ x2n/(2n)! | ∞ |
| ln(1+x) | Σn=1∞ (-1)n+1 xⁿ/n | |x| < 1 |
| arctan(x) | Σn=0∞ (-1)ⁿ x2n+1/(2n+1) | |x| ≤ 1 |
When implementing exponential functions on embedded systems, hardware often uses Maclaurin polynomials of degree 6–8 for double-precision accuracy in limited range. For instance, eˣ ≈ 1 + x + x²/2! + x³/3! + x⁴/4! yields error < 10⁻⁶ for |x|<0.5. Our calculator shows how adding terms reduces error drastically. Engineers rely on such approximations for real-time DSP.
The difference between f(x) and its N-th degree Maclaurin polynomial is given by the remainder: RN(x) = f(N+1)(ξ)·xN+1/(N+1)! for some ξ between 0 and x. This tool computes absolute error in real-time, helping you understand convergence rates. For analytic functions, as N increases, error decreases rapidly within the radius of convergence.
Named after Colin Maclaurin (1698–1746), though the series was known to Taylor and even earlier to Madhava of Sangamagrama. Maclaurin used these series extensively in his "Treatise of Fluxions". Today they form the backbone of asymptotic analysis and numerical methods.