Example 2.  Find the rational approximation [Graphics:Images/RationalApproxMod_gr_113.gif]for [Graphics:Images/RationalApproxMod_gr_114.gif] over the interval [-1,1].
2 (a).  Use equally spaced interpolation nodes.

Solution 2 (a).

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

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



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


Calculate the equally spaced values for the  [Graphics:../Images/RationalApproxMod_gr_118.gif] interpolation nodes.   

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

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

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

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

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

Form the set of  [Graphics:../Images/RationalApproxMod_gr_124.gif] equations to solve and find the solution.

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



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


Form the rational approximation.

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



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


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

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


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

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


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

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


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

[Graphics:../Images/RationalApproxMod_gr_134.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_135.gif] degree Maclaurin polynomial over the interval  [Graphics:../Images/RationalApproxMod_gr_136.gif].  

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


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

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



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


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

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


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

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



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


Comparison with the Padé approximation.  

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


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

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



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


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

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


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

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



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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004