Truncation errors are the difference between the actual value of the function and the truncated value of the given function. The truncated value of the functions is the approximated value up to a given number of digits. For example, the speed of light in vacuum is 2.99792458 × 108 ms-1. The truncated value up to two decimal places is 2.99 × 108. Hence the truncation error is the difference between 2.99792458 × 108 and 2.99 × 108, which is 0.00792458 × 108, or in scientific notation, it is 7.92458 × 105.
Learn about Types of Errors.
Truncation errors mainly arise when we approximate functions represented by an infinite series instead of using the actual value. We shall use Taylor’s and Maclaurin’s series to calculate the truncation error.
Taylor’s Series to Approximate Truncation Errors
Taylor’s Theorem: If f is a continuously differentiable function on an interval containing the points a and x, then the value of function f at x is given by
where Rn is the remainder, defined as
c is any quantity between a and x. It is Lagrange’s form of remainder.
Taylor’s series is very useful for representing any continuously differentiable function as a polynomial function of infinite order.
To understand the approximation of truncation error by Taylor’s series, let us take an example. Let f(x) = ex, clearly which is continuously differentiable function. Taking a = 0, we have f(0) = 1 and f’(0) = 1 = f(k) (0) such that
Finally, we have
If we approximate the function up to (n + 1) terms, then truncation error is the remaining terms from (n + 1) onwards.
The remainder of Taylor’s series calculates the value of the truncation error. It is to be noted that more the number of terms in the approximation smaller the truncation error.
Estimation of Truncation Error for Geometric Series
Let S be an infinite geometric series if its terms are such that |tj + 1| ≤ k|tj| where 0 ≤ k ≤ 1 for every j ≥ n, then while approximating the series up to n terms, the truncation error Rn is given by
|Rn | = t n +1 + t n + 2 + t n + 3 + …
≤ t n +1 + k |t n + 1 | + k2 |t n + 1 | + k3 |t n + 1 | + …
= |t n + 1 | ( 1 + k2 + k3 + …)
= |t n + 1 |/ (1 – k)
⇒ |Rn | ≤ [k |t n | ]/ (1 – k)
For example, we have to calculate the truncation error |R6| of the infinite geometric series
Clearly,
Now, we to find k such that |tj + 1| ≤ k|tj| where 0 ≤ k ≤ 1 for every j ≥ n (n = 6)
|tj + 1| ≤ k|tj| = |tj + 1|/ |tj| ≤ k = √(1 + 1/j) 𝜋 –2
⇒ |tj + 1|/ |tj| ≤ √(1 + 1/6) 𝜋 –2 < 0.11 as j ≥ 6
Therefore, by |Rn | ≤ [k |t n | ]/ (1 – k) and t6 < 3 × 10– 6
|R6 | ≤ [k |t n | ]/ (1 – k) < [0.11 × 3 × 10– 6]/ (1 – 0.11)
Related Articles
Solved Examples on Truncation Errors
Example 1:
Calculate the truncation error for approximation of the up to 5 terms of the infinite series
1 + x2 + x4 + x6 + x8 + …
Solution:
Given infinite geometric series,
1 + x2 + x4 + x6 + x8 + …
Now, |R5| = t5 + t6 + t7 + … = x8 + x10 + x12 + …
Which is again a infinite geometric series with first term x8 and common ratio x2, then,
|R5| = x8/(1 – x2).
Example 2:
Calculate the truncation error if the function e is calculated as 1 + 1/1! + 1/2! + 1/3! + …+1/7! .
Solution:
The given function is the Maclaurin’s Series for ex at x = 1. The truncation error |Rn| for n = 7
|Rn| ≤ |(ex. x7 + 1)/ (7 + 1)!| = |(e1 . 18)/8!| = |e/8!| ≈ 0.2786 × 10– 4.
The truncation error is about = 0.2786 × 10– 4.
Frequently Asked Questions on Truncation Errors
What is meant by the truncation error?
The difference between the true value of the function and approximated value evaluated for the function is known as truncation error.
What is the difference between truncation error and round-off error?
A round-off error arises when a given numeral is rounded to the given number of digits, whereas a truncation error arises as a result of converting infinite series into finite ones.
How the truncation error be minimized?
Truncation errors can be minimized by taking more numbers of higher-order terms.
How the truncation error is calculated?
The remainder Rn of the Taylor’s series is regarded as the truncation error.
Comments