题目
Problem
g(x)=x6+2x−1000
(a) Show that g(x)=0 has a root α in the interval [3,4]
(2)
Using the iteration formula
xn+1=61000−2xnwith x1=3
(b) (i) find, to 4 decimal places, the value of x2
(ii) find, by repeated iteration, the value of α.
Give your answer to 4 decimal places.
(3)
题目中文翻译
g(x)=x6+2x−1000
(a) 证明 g(x)=0 在区间 [3,4] 内有一个根 α。
使用迭代公式
xn+1=61000−2xn其中 x1=3
(b) (i) 求 x2 的值,精确到小数点后 4 位。
(ii) 用重复迭代求 α 的值,答案精确到小数点后 4 位。
解答
(a)
解法一
思路
展开
分别计算区间两个端点处的函数值。由于 g 是多项式,所以在实数范围内连续;若两个端点处的函数值异号,便可由介值定理说明区间内至少有一个根。
答题过程
展开
Since g is a polynomial, it is continuous on [3,4].
g(3)=g(4)=36+2(3)−1000=−265,46+2(4)−1000=3104.
Therefore g(3)<0 and g(4)>0. Since there is a change of sign and g is continuous, g(x)=0 has a root α in [3,4].
(b)(i)
解法一
思路
展开
把初始值 x1=3 直接代入给定的迭代公式,并按题意保留小数点后四位。
答题过程
展开
x2===61000−2x161000−2(3)3.159107…
Hence, to 4 decimal places,
x2=3.1591.
(b)(ii)
解法一
思路
展开
继续使用同一个迭代公式,直到连续两次迭代所得数值在所需精度下保持不变。
答题过程
展开
Repeated use of
xn+1=61000−2xn
gives
x2=x3=x4=x5=3.159107447…,3.158938868…,3.158939047…,3.158939046….
The values have converged to the required accuracy. Therefore,
α=3.1589
to 4 decimal places.