Example 4.  Find the rational approximation [Graphics:Images/RationalApproxMod_gr_295.gif]for [Graphics:Images/RationalApproxMod_gr_296.gif]  over the interval [-1,1].  
4 (b).  Use Chebyshev interpolation nodes.

Solution 4 (b).

Set up the formula for  [Graphics:../Images/RationalApproxMod_gr_336.gif].

[Graphics:../Images/RationalApproxMod_gr_337.gif]



[Graphics:../Images/RationalApproxMod_gr_338.gif]


Calculate the values for the  [Graphics:../Images/RationalApproxMod_gr_339.gif] Chebyshev interpolation nodes.   

[Graphics:../Images/RationalApproxMod_gr_340.gif]

[Graphics:../Images/RationalApproxMod_gr_341.gif]

Form the  [Graphics:../Images/RationalApproxMod_gr_342.gif] ordinates.  

[Graphics:../Images/RationalApproxMod_gr_343.gif]

[Graphics:../Images/RationalApproxMod_gr_344.gif]

Form the set of  [Graphics:../Images/RationalApproxMod_gr_345.gif] equations to solve and find the solution.
Remark.   Since  Tan[x]  is an odd function we will add the equation  [Graphics:../Images/RationalApproxMod_gr_346.gif] to the list.

[Graphics:../Images/RationalApproxMod_gr_347.gif]



[Graphics:../Images/RationalApproxMod_gr_348.gif]


Form the Chebyshev rational approximation.

[Graphics:../Images/RationalApproxMod_gr_349.gif]



[Graphics:../Images/RationalApproxMod_gr_350.gif]


Plot graphs of the function and its Chebyshev rational approximation over the interval  [-1,1].  But we will draw the graphs over [-2,2].

[Graphics:../Images/RationalApproxMod_gr_351.gif]


[Graphics:../Images/RationalApproxMod_gr_352.gif]

[Graphics:../Images/RationalApproxMod_gr_353.gif]


Find the error  over the interval  [-1,1].  

[Graphics:../Images/RationalApproxMod_gr_354.gif]


[Graphics:../Images/RationalApproxMod_gr_355.gif]

[Graphics:../Images/RationalApproxMod_gr_356.gif]


Comparison with the Taylor approximation.  

There were 9 coefficients to determine for the rational approximation, and a Maclaurin polynomial of degree 8 requires 9 coefficients.
Compare with the error in a [Graphics:../Images/RationalApproxMod_gr_357.gif] degree Maclaurin polynomial over the interval  [Graphics:../Images/RationalApproxMod_gr_358.gif].  

[Graphics:../Images/RationalApproxMod_gr_359.gif]


[Graphics:../Images/RationalApproxMod_gr_360.gif]

[Graphics:../Images/RationalApproxMod_gr_361.gif]



[Graphics:../Images/RationalApproxMod_gr_362.gif]


[Graphics:../Images/RationalApproxMod_gr_363.gif]

[Graphics:../Images/RationalApproxMod_gr_364.gif]


We can determine how much smaller the error is for the Chebyshev rational approximation.

[Graphics:../Images/RationalApproxMod_gr_365.gif]



[Graphics:../Images/RationalApproxMod_gr_366.gif]


Comparison with the Padé approximation.  

[Graphics:../Images/RationalApproxMod_gr_367.gif]


[Graphics:../Images/RationalApproxMod_gr_368.gif]

[Graphics:../Images/RationalApproxMod_gr_369.gif]


[Graphics:../Images/RationalApproxMod_gr_370.gif]


[Graphics:../Images/RationalApproxMod_gr_371.gif]

[Graphics:../Images/RationalApproxMod_gr_372.gif]


We can determine how much smaller the error is for the Chebyshev rational approximation.

[Graphics:../Images/RationalApproxMod_gr_373.gif]



[Graphics:../Images/RationalApproxMod_gr_374.gif]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004