A1313 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 Tn(x)=cos⁡(ncos−1⁡x) on [−1,1]. Step n.
  • It stays between −1 and 1, touching each extreme n + 1 times, while its leading coefficient is 2n−1, as large as possible for that. No other polynomial with the same leading coefficient stays this small.
  • The readout gives 21−n: the smallest possible maximum of a monic degree-n polynomial on the interval, reached by Tn/2n−1.

Predict

On [−1, 1], how do the worst errors of the cubic Taylor polynomial of ex and of its cubic Chebyshev truncation compare?

Name it

Chebyshev polynomials

T0=1, T1=x and Tn+1=2xTn−Tn−1, so T2=2x2−1, T3=4x3−3x and T4=8x4−8x2+1. On [−1,1], Tn(cos⁡θ)=cos⁡nθ: it oscillates between ±1, with n + 1 extremes and n zeros (the Chebyshev nodes of lesson 11).

Chebyshev series

A smooth f on [−1,1] has an expansion f=c02+∑k≥1ckTk(x) with ck=2π∫0πf(cos⁡θ)cos⁡kθdθ: a Fourier cosine series in disguise. For analytic f the coefficients fall geometrically. Truncating after Tn leaves an error close to cn+1Tn+1(x), 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 [−1,1], subtract a multiple of a Chebyshev polynomial: xn can be replaced by xn−Tn2n−1, a degree n − 2 polynomial, at a cost of at most 21−n.

Chebyshev filters

A Chebyshev low-pass filter has |H|2=11+ε2Tn2(ω/ωc). In the passband Tn wiggles between ±1, so the gain ripples by 10log10⁡(1+ε2) dB; outside it, Tn grows as fast as any degree-n polynomial can, giving the steepest roll-off for that ripple.

Worked example

Find the Chebyshev coefficients of ex and the error of truncating after T3.

Show the solution
  1. The coefficients. For ex they are ck=2Ik(1), with Ik the modified Bessel functions: c02=1.266066c1=1.130318c2=0.271495c3=0.044337c4=0.005474c5=0.000543 Each is about a tenth of the one before.
  2. Truncate after T3. The error left is mostly c4T4, so its worst size should be a bit over 0.0055; measuring gives 0.0061.
  3. 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 c02=1.266066, c1=1.130318, c2=0.271495, c3=0.044337, c4=0.005474 and c5=0.000543; truncating after T3 leaves a worst error of 0.0061.

Worked example

What is the best quadratic approximation to x3 on [−1, 1], in the worst-case sense?

Show the solution
  1. Subtract the Chebyshev term. x3−T34=x3−4x3−3x4=34x
  2. The error equioscillates. The error, x3−34x=T34, equioscillates four times between ±¼, at x = −1, −½, ½ and 1, so by the equioscillation theorem nothing does better.
  3. Compare with Taylor. The best quadratic happens to be a straight line, 34x, with worst error 0.25. Taylor's suggestion (drop x3 entirely) would have a worst error of 1.
  4. Economization. Economization does this degree by degree to shorten long series.

Answer the straight line 34x, 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
  1. Passband ripple. 10log10⁡(1+0.25)=0.97dB
  2. T4 at twice the cutoff. T4(2)=8×16−8×4+1=97
  3. Attenuation there. |H|2=11+0.25×972=12353 an attenuation of 33.7 dB.
  4. Compare with Butterworth. A fourth-order Butterworth filter gives 10log10⁡(1+28)=24.1dB at the same point.
  5. What the ripple buys. Allowing ripple in the passband buys almost 10 dB of extra stopband attenuation, because T4 grows faster than ω4 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 T3(x)?

(b)

What is T4(x)?

Check

What is the smallest possible worst error on [−1, 1] when x5 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 10−10?

Check

Chebyshev points on [0, 4] are x=a+b2+b−a2cos⁡θ. 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 Tn+1=2xTn−Tn−1, with T0=1 and T1=x.

Step 1

What is T2?

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°.

Explain why

Why does a Taylor polynomial waste accuracy when used over a whole interval?

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.