题目
Problem
- (i)
f(x)=x3+4x−6
(a) Show that the equation f(x)=0 has a root α in the interval [1,1.5]
(2)
(b) Taking 1.5 as a first approximation, apply the Newton Raphson process twice to
f(x) to obtain an approximate value of α. Give your answer to 3 decimal places.
Show your working clearly.
(4)
(ii)
=g(x)4x2+x−tanx
where x is measured in radians.
The equation g(x)=0 has a single root β in the interval [1.4,1.5]
Use linear interpolation on the values at the end points of this interval to obtain an
approximation to β. Give your answer to 3 decimal places.
(4)
题目中文翻译
- (i)
f(x)=x3+4x−6
(a) 证明方程 f(x)=0 在区间 [1,1.5] 内有一个根 α。
(2)
(b) 取 1.5 作为第一个近似值,对 f(x) 应用两次 Newton Raphson 法,求 α 的近似值。答案保留 3 位小数。清晰展示解题过程。
(4)
(ii)
=g(x)4x2+x−tanx
其中 x 以弧度为单位。
方程 g(x)=0 在区间 [1.4,1.5] 内有唯一根 β。
使用该区间端点处的值进行线性插值,求 β 的近似值。答案保留 3 位小数。
(4)
解答
(i)(a)
解法一
思路
展开
计算区间两端的函数值。由于多项式函数连续,且两个端点处的函数值异号,根据介值定理,区间内至少有一个根。
答题过程
展开
====f(1)13+4(1)−6−1,f(1.5)(1.5)3+4(1.5)−63.375.
The function f is continuous, and f(1)<0 while f(1.5)>0. Therefore, by the intermediate value theorem, f(x)=0 has a root α in
[1,1.5].
(i)(b)
解法一
思路
展开
先求 f′(x),再使用 Newton-Raphson 迭代式
xn+1=xn−f′(xn)f(xn).
以 x1=1.5 起步,连续计算两次,并只在最终答案处取三位小数。
答题过程
展开
Since
f(x)=x3+4x−6,
we have
f′(x)=3x2+4.
The Newton-Raphson formula is
xn+1=xn−f′(xn)f(xn).
Starting with x1=1.5, the first application gives
x2====1.5−f′(1.5)f(1.5)1.5−10.753.37543511.1860465…
Using the unrounded value x2=51/43,
==f(x2)(4351)3+4(4351)−60.412…,
and
f′(x2)==3(4351)2+48.220….
The second application gives
===x3x2−3x22+4x23+4x2−64351−8.220…0.412…1.1358…
Therefore, to three decimal places,
α≈1.136.
(ii)
解法一
思路
展开
先以弧度模式计算两个端点的函数值。把端点 (1.4,g(1.4)) 与 (1.5,g(1.5)) 用直线连接,再求这条弦与 x 轴的交点,即为线性插值得到的根近似值。
答题过程
展开
Using radians,
====g(1.4)4(1.4)2+1.4−tan(1.4)3.442116…,g(1.5)4(1.5)2+1.5−tan(1.5)−3.601419…
Linear interpolation gives
=1.5−1.4β−1.4g(1.5)−g(1.4)0−g(1.4).
The difference between the endpoint values is
==g(1.5)−g(1.4)−3.601419…−3.442116…−7.043536….
Hence
==β1.4+0.1−7.043536…−3.442116…1.448869…
Therefore, to three decimal places,
β≈1.449.