10.6 KB · commit a9602da
The truncated error committed in a series approximation can be evaluated by using Taylor's series stated in Theorem 1.6. If xi and xi+1 are two successive values of x, then we have f(xi+1)=f(xi)+(xi+1−xi)f′(xi)+⋯+n!(xi+1−xi)nf(n)(xi)+Rn+1(xi+1),(1.13) where Rn+1(xi+1)=(n+1)!(xi+1−xi)n+1f(n+1)(ξ),xi<ξ<xi+1(1.14)
In Eq. (1.13), the last term, Rn+1(xi+1), is called the remainder term which, for a convergent series, tends to zero as n→∞. Thus, if f(xi+1) is approximated by the first-n terms of the series given in Eq. (1.13), then the maximum error committed by using this approximation (called the nth order approximation) is given by the remainder term Rn+1(xi+1). Conversely, if the accuracy required is specified in advance, then it would be possible to find n, the number of terms, such that the finite series yields the required accuracy.
Defining the interval length, xi+1−xi=h,(1.15) Equation (1.13) may be written as f(xi+1)=f(xi)+hf′(xi)+2!h2f′′(xi)+⋯+n!hnf(n)(xi)+O(hn+1),(1.16) where O(hn+1) means that the truncation error is of the order of hn+1, i.e., it is proportional to hn+1. The meaning of this statement will be made clearer now.
Let the series be truncated after the first term. This gives the zero-order approximation: f(xi+1)=f(xi)+O(h),(1.17) which means that halving the interval length h will also halve the error in the approximate solution. Similarly, the first-order Taylor series approximation is given by f(xi+1)=f(xi)+hf′(xi)+O(h2),(1.18) which means that halving the interval length, h will quarter the error in the approximation. In such a case we say that approximation has a
second-order of convergence. We illustrate these facts through numerical examples.
Finally, the third-order Taylor series approximation is given by f(xi+1)=f(xi)+hf′(xi)+2h2f′′(xi)+6h3f′′′(xi),(v) and, therefore,
f(1)=f(0)+hf′(x0)+2h2f′′(x0)+6h3f′′′(x0)≈−10+5+21(−6)+61(6)=−7,which is the exact value of f(1).
This example demonstrates that if the given function is a polynomial of third degree, then its third-order Taylor series approximation gives exact results.
◀
The different orders of approximation can now be evaluated successively. Thus, the zero-order approximation is 0.5; the first-order approximation is 0.5+π3/12, i.e., 0.953449841; and the second-order approximation is 0.5+12π3−144π2, which simplifies to 0.884910921. Similarly, the successive approximations are evaluated and the respective absolute errors can be calculated since the exact value of sin(π/3) is 0.866025403. Table 1.1 gives the approximate values of sin(π/3) for the orders 0 to 7 as also the absolute errors in these approximations. The results show that the error decreases with an increase in the order of approximation.
| Order of approximation | Computed value of sinπ/3 | Absolute error |
|---|---|---|
| 0 | 0.5 | 0.366025403 |
| 1 | 0.953449841 | 0.087424438 |
| 2 | 0.884910921 | 0.018885518 |
| 3 | 0.864191613 | 0.00183379 |
| 4 | 0.865757474 | 0.000267929 |
| 5 | 0.86604149 | 0.000016087 |
| 6 | 0.86602718 | 0.000001777 |
| 7 | 0.866025326 | 0.000000077 |
We next demonstrate the effect of halving the interval length on any approximate value. For this, we consider the first-order approximation in the form: f(x+h)=f(x)+hf′(x)+E(h),(ii) where E(h) is the absolute error of the first-order approximation with interval h. Taking f(x)=sinx and x=π/6, we obtain sin(6π+h)=sin6π+hcos6π+E(h).(iii) Putting h=π/6 in (iii), we get sin3π=0.5+12π3+E(h)=0.953449841+E(h). Since sin(π/3)=0.866025403, the above equation gives E(h)=−0.087424438.
Now, let the interval be halved so that we now take h=π/12. Then, (iii) gives: sin(6π+12π)=0.5+12π23+E(2h),(iv) where E(h/2) is the absolute error with interval length h/2. Since sin(6π+12π)=sin4π=21 Equation (iv) gives E(2h)=21−0.5−24π3=−0.019618139, and then E(h/2)E(h)=4.45630633. In a similar way, we obtain the values E(h/4)E(h/2)=4.263856931 and E(h/8)E(h/4)=4.141353027. The h2-order of convergence is quite revealing in the above results.
◀
We have loge(1+x)=x−2x2+3x3−4x4+5x5−…(i) and loge(1−x)=−x−2x2−3x3−4x4−5x5−…(ii) Therefore, loge1−x1+x=2(x+3x3+5x5+…)(iii) Putting x=111 in Eq. (iii), we obtain
loge1.2=2[111+3(11)31+5(11)51+…]=2[111+3(11)31+5(11)51],since 7(11)71=7.33×10−9.Hence we obtain
loge1.2=2[0.09090909+0.00025044+0.00000124]=0.1823216On the other hand, if we use series (i), we have nxn<2×10−7 ⇒n(1.2)n<2×10−7 ⇒n>9. Thus, 9 terms of the series (i) have to be taken in order to obtain a seven decimal accuracy.
◀