Example 1. Find the
rational approximation
for
over the interval [-1,1].
1 (a). Use equally
spaced interpolation nodes.
Solution 1 (a).
Set up the formula for
.
Calculate the equally spaced values for the
interpolation nodes.
Form the
ordinates.
Form the set of
equations to solve and find the solution.
Form the rational approximation.
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_26.gif]](../Images/RationalApproxMod_gr_26.gif)
Find the error over the interval [-1,1].
![[Graphics:../Images/RationalApproxMod_gr_29.gif]](../Images/RationalApproxMod_gr_29.gif)
Comparison with the Taylor approximation.
There were 5 coefficients to determine for the rational
approximation, and a Maclaurin polynomial of degree 4 requires 5
coefficients.
Compare with the error in a
degree Maclaurin polynomial over the interval
.
![[Graphics:../Images/RationalApproxMod_gr_33.gif]](../Images/RationalApproxMod_gr_33.gif)
![[Graphics:../Images/RationalApproxMod_gr_34.gif]](../Images/RationalApproxMod_gr_34.gif)
![[Graphics:../Images/RationalApproxMod_gr_37.gif]](../Images/RationalApproxMod_gr_37.gif)
We can determine how much smaller the error is for the rational approximation.
Comparison with the Padé approximation.
![[Graphics:../Images/RationalApproxMod_gr_42.gif]](../Images/RationalApproxMod_gr_42.gif)
![[Graphics:../Images/RationalApproxMod_gr_45.gif]](../Images/RationalApproxMod_gr_45.gif)
We can determine how much smaller the error is for the rational approximation.
(c) John H. Mathews 2004