Professional Documents
Culture Documents
1
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
16 x 7 (J88) [9]
0.
35(1 x 2 ) 3. The iteration xn+1 = F(xn) may or may not converge to a root a of
(N90 - Combined with Errors) the equation F(x) - x = 0. Sketch “staircase” or “cobweb”
diagrams illustrating this iteration in the cases
(i) 0 < F’(x) < 1,
c. Location of Roots (ii) F’(x) > 1,
where x is in the neighbourhood of a. State in each case whether
1(i) The equation x = F(x) has a root a. Repeated use of the iteration or not the iteration converges to a. [3]
xn+1=F(xn), starting with an approximation x0 to the value of a, The equation f(x)=0 has a root a which is to be found by an
yields a sequence x1, x2, .... that converges to a. The errors ei are iteration xn+1 = F(xn), where F(x) = x - lf(x), l being a positive
defined by ei = xi - a, (i = 0,1,2,...). Prove that, if the constant. In the interval [x1, x2], where x1 < a < x2, the least value
convergence is first order, then en+1 » ei F’(a). of f’(x) is m, and the greatest value of f’(x) is M, (0 < m < M ).
Prove a corresponding result for second order convergence. [5] Show that, in [x1, x2],
(ii) Prove that the Newton-Raphson method gives second order 1 - lM £ F’(x) £ 1-lm.
convergence to a root of the equation f(x) = 0. [2] 2
(iii) Obtain, from the equation x2 - N = 0 (where N > 0), an iteration Show further that if l is taken to be then [6]
xn+1=F(xn) giving second order convergence to ÖN, and give the M m
relation between en+1 and en. [3] M m M m
1 F' ( x ) 1, for xÎ[x1, x2].
Obtain a different second order iteration xn+1 = G(xn) by M m M m
N
considering the equation 1 0 , and give the relation The equation tan x = ex is known to have a root a in the interval
x2
[1.25, 1.35]. Taking f(x) to be tan x-ex, and assuming that f’(x)
between en+1 and en.
has its greatest and least values at the ends of the interval, show
Deduce, or show otherwise, that the iteration
2
3 1 that 0.085 , to three decimal places.
x n 1 F( x n ) G ( x n ) M m
4 4
[3]
converges to ÖN and that its order of convergence is greater than
Find a to four decimal places. [4]
2
(N89)
(J87) [6]
4. The iterative procedure xn+1 = F(xn) is constructed to converge to
2. The cubic equation x3 + px2 + qx + r = 0, where p, q, r are real
constants, has a root of the form u+iv, where u and v are real and the root a of the equation x = F(x). Show that
r¹ 0. Show that u satisfies the equation [7]
8u3 + 8pu2 + 2(p2+q)u + pq - r = 0. F" ( ) 2 F" ' (
e n 1 F' ( ) e n en
The equation x3 - 3x2 - 9x - 9 = 0 is known to have a complex 2! 3!
root of the form u + iv, where u and v are real and v ¹ 0. Solve
the equation completely, giving all numerical answers to 4 places where xn = a + en. [3]
of decimals.
2
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
Give conditions for the procedure to have second order (iv) Use the values obtained in the procedure in (iii) to illustrate
convergence. [1] the result of (i).
Find the values of A and B (which may involve the given positive [3]
B (N91)
number a) for the procedure x n 1 Ax n to have second
x n3 6. The iterative procedure xn+1 = F(xn) and xn+1 = G(xn) are given by
order convergence to a1/4. [4]
1 a 1 x4
F( x ) 2 x 2 and G( x) 4 x .
Obtain, in terms of a, the approximate relation between en+1 and en 3 x 3 a
when A and B have these values. [1] Show that xn+1 = F(xn) has second order convergence to a1/3 and
1
Illustrate the procedure, in this case, on a sketch graph for that n 1 2n , where en = xn - a1/3. [5]
positive values of xn, and hence show that it converges for any x0 a 1/ 3
> 0. [3] Given that xn+1 = G(xn) also has second order convergence to a1/3,
find the corresponding error relation. [2]
Obtain another procedure using the Newton-Raphson formula A third procedure for iterating a1/3 is given by
1
with f ( x)
1 1
4 . Which of these two procedures should x n 1
3
2F( x n ) G ( x n ) .
a x
yield a value of a1/4 to a desired degree of accuracy with fewer 4
Show that for this procedure, n 1 2/3
3n . [4]
iterations from the same value of x0 when e0 is small enough? 3a
[4] (J91) Taking x0=2, apply the third procedure once to obtain a rational
approximation to 3Ö9. Hence estimate e0 and, using the relation
5. An iterative procedure xn+1 = F(xn) is constructed to converge to between e0 and e1, estimate the error in the approximation,
the root a of the equation f(x)=0. correct to 1 significant figure.
(i) It has been suggested that a suitable test for the absolute error [5]
in xn to be less than the small positive quantity e is that | (J92)
f(xn)| < e. With the help of sketch graphs, show that this
should be satisfactory if |f’(xn)| > 1 but not if |f’(xn)| < 1. 7. The function f is continuous and the equation f(x)=0 has a real
[4] root a. The real numbers b, which is close to a, is such that
(ii) If xm+1 = xm correct to k decimal places, state a condition on b=mx10-N, where m and N are integers, N > 0. Show that, with
F’(a) sufficient to ensure that xm = a to the same degree the help of a diagram, that if f(b-5x10-N-1)f(b+5x10-N-1)< 0 then
of accuracy. a=b correct to N decimal places.
[2] [3] Show that the equation x4 - 4x2 + 4 = 0 has a
(iii) Show that the equation x3 - sin x - 2 = 0 has just one real root x = Ö2 and that, although Ö2 = 1.414 correct to 3 decimal
root, and use an iterative procedure to find its value places, the above inequality does not hold with b=1.414. Explain
correct to 3 decimal places. why. [4]
[7] By noting that x4 - 4x2+4= (x2-2)2, prove that the Newton-
Raphson formula with f(x) = x4 - 4x2 + 4 yields a first order
3
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
4
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
(iii) A numerical solution is required for the differential equation 3(i) Given that y(x) is a quadratic function of x, show that
2 h
d y
dx 2
=y2, where y = 1.0000 when x=1 and y=0.8547 when y( x )dx may be expressed in the form
0
x=1.2. Using an equation obtained from (i) as predictor, and one
2 1
obtained from (ii) as corrector, obtain a value for y when x=1.4, h y 0 y1 h 2 y 0 ' , where yn denotes y(nh), and a is a
giving your result to four significant figures. 3 3
[7] constant whose value is to be found. [4]
(J86) (ii) Show that Taylor’s theorem may be written in the form E = e hD,
where h is the interval of differencing.
2. A numerical method of solving the differential equation 1 2 1 3
dy Deduce that hyo’ = ( ... ) y 0 .
ax by c , given that y = y0 when x = x0, is as follows. 2 3
dx Hence, using the result of (i) above, show that, when third and
To find the value of y corresponding to x, where x = x0+h, higher differences may be ignored, then [6]
calculate in succession k1, k2 and k3, where h
1
k1 h(ax 0 by 0 c), y( x )dx 12 h(5 y 0 8 y1 y 2 ).
0
1 1
k2 h[a ( x 0 h) b( y 0 k 1 ) c], dy sin x
3 3 (iii) The differential equation , with y=1 when x=0, is
2 2 dx x 1
k3 h[a ( x 0 h) b( y 0 k 2 ) c], to be solved numerically. Use a method based upon the final
3 3 result of (ii) to obtain a value for y(0.1).
1 3 [5]
Then y= y0 + k1 k 3 . State whether you would expect this value to be a better or worse
4 4
approximation to the true value of y(0.1) than would be given by
dy
Show that k1 = hy0’ , where y0’ denotes the value of when one application of the Euler formula, giving a brief reason for
dx your answer.
x=x0, and express k2, k3 in terms of a, b, h and y0’. [7] [1]
Hence or otherwise verify that the value of y given by this method (N88 - Combined with Finite Difference Calculus)
is identical to that obtained by using the Taylor series with terms
up to and including h3. [5] dy
dy 4(i) It is given that f ( x , y ) . Denoting x0+nh by xn, where h
Given that x y 1 and that y=1 when x=0, use the dx
dx is a positive constant, and denoting the value of y when x=xn by
above method with h=0.3 to obtain the value of y when x=0.3, yn, use Simpson’s rule to show that
tabulating the values of k1, k2, k3 and y obtained. [3]
[4] 1
(J87) y 2 y1 hf ( x 0 , y 0 ) 4 f ( x1 , y1 ) f ( x 2 , y 2 ) .
3
5
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
6
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
h4 d6y Apply the above scheme until you have estimated y4 when x4 =
where |T| £ L , the greatest value of 6 in the 0.5. [5]
360 dx
Give the value of y when x=0.5 as accurately as your working
interval [xn-1, xn+1] being denoted by L. allows.
[7] (N97) [1]
2
d y
The differential equation x 3 y is to be solved e. Numerical Integration
dx 2
numerically at intervals of h using the first two terms on the
1. Show that for any polynomial y(x) of degree three,
right-hand side of the above equation (A). Show that x1
[3] 1 1
3 1 y ( x ) dx h( y 0 y1 ) h 3 ( y 0 " y1 " ),
2 4 2 4
y n 1 ( 2 3h h ) y n y n 1 (h h ) x n , n 1,2, ... x0 2 24
4 4
where h = x1 - x0 and yr = y (x0 + rh). [9]
Taking h=0.2, find the approximate values of y when x=1.2,
1.4 and 1.6, given that y=2 when x=1 and y=1 when x=1.8. Assuming that for 1.1 £x £ 1.9, Ö(sin x) may be treated as though
Give 5 decimal places in your answers. it were a polynomial of degree three, evaluate
1.9
[6]
(N93) sin xdx ,
1.1
8. The following scheme provides an approximate solution of the giving your results to three significant figures. [7]
dy
differential equation f ( x , y ) at the point (xn. yn), where
dx 2. The mathematician Gauss used the approximate integration
xn = x0+nh, for the given (x0, y0). formula
1 1
y iP1 yi h[3 f ( x i , y i ) f ( x i 1 , y i 1 )]
2 f ( x )dx pf ( k ) qf (0) pf ( k ) ,
1 1
y iC1 y i h[ f ( x i 1, y iP1 ) f ( x i , y i )]. where p, q and k are appropriately chosen numbers. Given that f
2 is a polynomial of degree four, and that Gauss’ formula gives the
exact value of this integral, show that
Explain why the terms yi+1 appears in two forms with labels P and 3 5 8
C respectively. [2] k ,p and q . Show that the formula is exact
Given that f(x, y) = y2 - 3x, with (x0, y0) = (0,1), derive the 5 9 9
Maclaurin expansion of y up to the term in x5. [4] also when f is a polynomial of degree five.
Use your expansion to obtain an estimate of y1 when x1 = 0.25, [6]
and taking h = 0.25, apply the above scheme, using each formula By means of a linear substitution express the integral I, where
1
once, to approximate y2 when x2 = 0.5.
[4] 2 cos x
Repeat the procedure with h = 0.125, finding an approximate I 1 x dx ,
0
value for y1 when x1 = 0.125 from your Maclaurin expansion.
7
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
8
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
1 1
6. Show that 3
f ( a h) f ( a h ) 1 8. A student needs a close approximation to I f ( x )dx ,
f ' (a ) h 2 f "'
( a ) .... , 0
2h 6 where f(x)=(x3+9)1/2. She finds p(x), the Lagrange interpolating
and obtain the next term of the series on the right. [3] cubic polynomial that agrees with f(x) when x = 0,1,2 and 3, and
Hence obtain the approximate formula [4] integrates it.
a h
3 1 (i) Show that she can write the interpolating polynomial in the
g ( x ) dx 2hg (a ) 3 h g" ( a ). form
a h
1 10
1
x p( x ) ( x 3 7 x 6) ( x 3 5x 2 6 x )
Use the above formula to calculate e dx , working to 6 2 2
[3]
0 17 3 2
decimal places, and use the third term of the series to estimate the ( x 4 x 3x ).
2
error. Compare this with the exact error. 3
[5] (ii) Evaluate L
1 p( x )dx correct to 3 decimal places. [3]
x 0
Obtain another estimate for the integral e dx by splitting She knows that the lower bound for the error in taking L as an
0
3
the range of integration into two equal parts and applying the approximation to I is M , where M is the greatest value
formula to each. 80
(J92) [4] of |f(4)(x)| in 0 £x £3. She suspects that this will be too large an
9
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
10
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
11
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
where f0 = f(x0), show that Use the formula given above to obtain the value of f(0.342).
x0 h Your answer should be given to a realistic number of significant
1 1 1
f ( x )dx hf f 0 2 f 0 12 2 f 0 24 3 f 0 ... , figures. [5]
x0 It is required to find the value of x for which f(x) = 0.3250.
(i) Obtain a value for x, by linear interpolation, giving 4 decimal
and find the next term in the series for the integral. [5]
places in your answer.
The following table gives the values of f(x) each correct to 4
[2]
decimal places.
(ii) Denoting the required value for x by 0.3+0.1p, show that
x 0 0.1 0.2 0.3 0.4 0.5
[2]
f(x) 1.0000 1.1055 1.2247 1.3625 1.5262 1.7269
1 p( p 1) p( p 1)( p 2)
p 0.0049 0.0025 0.0002.
(i) Use the first four terms of the series for the integral to 0.0321 2! 3!
0.1
(iii) Use one application of an iterative procedure based on (ii),
evaluate f ( x ) dx. with an initial approximation based on (i), to find an
0 improved value for x.
[3] [2]
(ii) Estimate the error caused by using only four terms of the (N94)
series and also the maximum error due to rounding of the
tabular values. Hence give your value for the integral to 8. Show, with the usual notation, that E = 1 + D. [2]
as many significant figures as you believe to be correct. Hence show that
[6] 1 1 1 1
(iii) Explain how the first four terms of the series for the integral (i) 1+ E + E 2 E 3 ... r E r ... 2(1 2 ...), [4]
0.3 2 4 8 2
could be used to evaluate f ( x )dx from the same (ii)
0 1 1 1 ( 1) r r 2 1 1 1 3
tabular values, and why it would not be possible to extend the 1 E E 2 E 3 .. E ... 1 2 ...
2 4 8 2 r 3 3 9 27
range of integration further.
[2] [2]
(N92) By taking fr to be a suitable function of r, show that
n3
7. With the usual notation, show that E -1 = 1 - DE-1. [2] n
26
n 1 2
Hence, denoting f(xn+ph) by fn+p, establish the formula
and find the value of
[3]
p 1 2 p 2 3
n3
f n p f n pf n 1 f n2 f n 3 . ( 1) n .
2 3 n 1 2n
Values of f(x) for a particular function f are given in the table (N94) [8]
below, each being correct to 4 decimal places.
x 0 0.1 0.2 0.3 0.4 g. Systems of Linear Equations
f(x) 0.2315 0.2584 0.2880 0.3201 0.3544
12
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
1(i). It is given that, if R is a 3 x 3 matrix such that all the elements of The elements of A are each increased by 0.0005. Obtain an
R2, and of higher powers of R, are negligible, then approximate value for the change in the first component of the
(I + R)-1 » I - R. solution x of the equation [3]
Given that A and E are 3 x 3 matrices, where A and A + E are k
non-singular, show that
Ax = k .
(A + E)-1 = (I + A-1E)-1A-1,
k
and deduce that, if the elements of (A-1E)2 and higher powers of
A-1E are negligible, then (N90)
(A + E)-1 » (I - A-1E) A-1.
[4] 2(a). Three simultaneous linear equations in three unknowns are
5 2 8 represented by the matrix equation Ay = b. If b is changed by db
show that the resulting change in y is A-1db. [2]
(ii) The matrix A, where A = 1 1 2 , has inverse A-1 of
(b) Show that, with the usual relation, the error in the approximation
4 2 7 y n "
y n 1 2 y
h
3 2 4 1 2 (4)
is h yn approximately.
the form * * * . Obtain A-1 and solve the equation 12
* * * [3]
[4] (c) The differential equation y” = 2xy with boundary conditions y=1
when x=0 and y=2 when x=0.8, is to be solved at x=0.2r, r=1,2,3,
k
using the approximation in (b) with h=0.2.
Ax = k . (i) Obtain the equations
k 2.016 y1 y2 c
1 1 1 y1 2.032 y 2 y3 d
Given that E = 1 1 1 d, where d is sufficiently small, y2 2.048 y 3 e
1 1 1 where yr is the value of y at x=0.2r, and give the
show that the solution of the equation numerical values of c, d and e.
k [4]
(ii) Given that the inverse of the coefficient matrix of the
(A + E)y = k
equations in (i) is
k
0.7309 0.4735 0.2312
is approximately
0.4735 0.9545 0.4661
q
0.2312 0.4661 0.7158
y = k (1-pd) r ,
each value being correct to 4 decimal places, solve the
s equations. [3]
where the numerical values of p, q, r and s are to be found. [5] (iii) Given that the approximate values of
(4) (4) (4)
y1 , y 2 and y 3 are 4.2, 5.6 and 8.3 respectively, find
13
CHALLENGING PROBLEMS ON NUMERICAL ANALYSIS TTL/1998
estimates for the errors in the calculated values of y1, y2 and y3.
[4]
(J93 - Combined with Ordinary Differential Equations)
14