A13 · Lesson 13 · Chebyshev approximation
Chebyshev polynomials, near-best polynomial fits and equal ripple
A calculator's sine routine and a microcontroller's temperature conversion both replace a function with a polynomial. A Taylor polynomial is the obvious choice, but it's accurate only near its center point and wastes accuracy there. What you want is the polynomial whose worst error over the whole interval is as small as possible, the minimax polynomial. Chebyshev polynomials get you almost all the way there with no search at all, and their equal-ripple shape is the same one behind Chebyshev filters.
- The curve is the Chebyshev polynomial on . Step n.
- It stays between −1 and 1, touching each extreme n + 1 times, while its leading coefficient is , as large as possible for that. No other polynomial with the same leading coefficient stays this small.
- The readout gives : the smallest possible maximum of a monic degree-n polynomial on the interval, reached by .
Predict
On [−1, 1], how do the worst errors of the cubic Taylor polynomial of and of its cubic Chebyshev truncation compare?
About 8 times smaller: 0.0061 against 0.052. The Taylor cubic is perfect at 0 and poor at the ends, where its error reaches . The Chebyshev cubic spreads its error evenly across the interval, wiggling up and down almost like .
Name it
Chebyshev polynomials
, and , so , and . On , : it oscillates between ±1, with n + 1 extremes and n zeros (the Chebyshev nodes of lesson 11).
Chebyshev series
A smooth f on has an expansion with : a Fourier cosine series in disguise. For analytic f the coefficients fall geometrically. Truncating after leaves an error close to , which nearly equioscillates, so the truncated series is near-minimax: its worst error is within a small factor of the best possible.
Minimax and equioscillation
The best degree-n polynomial in the worst-case sense is characterized by its error reaching its maximum size n + 2 times with alternating signs (the equioscillation theorem). The Remez algorithm finds it by moving those extreme points until they balance; in practice, Chebyshev truncation is often good enough and far simpler.
Economization
To lower a polynomial's degree with the least damage on , subtract a multiple of a Chebyshev polynomial: can be replaced by , a degree n − 2 polynomial, at a cost of at most .
Chebyshev filters
A Chebyshev low-pass filter has . In the passband wiggles between ±1, so the gain ripples by dB; outside it, grows as fast as any degree-n polynomial can, giving the steepest roll-off for that ripple.
Worked example
Find the Chebyshev coefficients of and the error of truncating after .
Show the solution
- The coefficients. For they are , with the modified Bessel functions: Each is about a tenth of the one before.
- Truncate after . The error left is mostly , so its worst size should be a bit over 0.0055; measuring gives 0.0061.
- Compare with Taylor. The cubic Taylor polynomial's worst error is 0.052. At the same degree and the same cost to evaluate, the Chebyshev cubic is about 8 times more accurate.
Answer , , , , and ; truncating after leaves a worst error of 0.0061.
Worked example
What is the best quadratic approximation to on [−1, 1], in the worst-case sense?
Show the solution
- Subtract the Chebyshev term.
- The error equioscillates. The error, , equioscillates four times between ±¼, at x = −1, −½, ½ and 1, so by the equioscillation theorem nothing does better.
- Compare with Taylor. The best quadratic happens to be a straight line, , with worst error 0.25. Taylor's suggestion (drop entirely) would have a worst error of 1.
- Economization. Economization does this degree by degree to shorten long series.
Answer the straight line , with worst error 0.25.
Worked example
A fourth-order Chebyshev low-pass filter has ε = 0.5. What is its passband ripple, and how much does it attenuate at twice the cutoff?
Show the solution
- Passband ripple.
- at twice the cutoff.
- Attenuation there. an attenuation of 33.7 dB.
- Compare with Butterworth. A fourth-order Butterworth filter gives at the same point.
- What the ripple buys. Allowing ripple in the passband buys almost 10 dB of extra stopband attenuation, because grows faster than outside the band.
Answer 0.97 dB of passband ripple and 33.7 dB of attenuation at twice the cutoff.
Check
Chebyshev polynomials at x = 0.8.
(a)
What is ?
(b)
What is ?
Check
What is the smallest possible worst error on [−1, 1] when is replaced by a polynomial of lower degree?
Check
A Chebyshev filter has ripple factor ε = 0.5. What is its passband ripple?
Check
A fourth-order Chebyshev low-pass with ε = 0.5: how much does it attenuate at 1.5 times its cutoff?
Check
A function's Chebyshev coefficients fall by a factor 10 from each term to the next, starting near 1. How many terms come before one falls below ?
Check
Chebyshev points on [0, 4] are . Where is the one with θ = 60°?
Check
Why is a truncated Chebyshev series nearly the best polynomial in the worst-case sense?
Check
Build Chebyshev polynomials from , with and .
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is ?
Step 3
What is ?
Explain why
Why does a Taylor polynomial waste accuracy when used over a whole interval?
A Taylor polynomial matches the function and its derivatives at one point, so its error grows like : tiny near the center and largest at the ends. When the polynomial must work everywhere on the interval, only the worst point matters, and the accuracy near the center is wasted. A Chebyshev approximation trades some of that unneeded accuracy in the middle for a smaller error at the ends, spreading the error evenly in a ripple of equal height. For the same degree and the same cost to evaluate, the worst error drops, often by an order of magnitude.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.