Picards Method
Picards Method
Prerequisites
You should be familiar with the idea that a root of an equation is a value that makes that
equation zero. If y f x is a function, then a root of the equation f x 0 is a value x
such that f 0 . You should also be familiar with the method of trial and improvement to
find a root.
Example (1)
Find by trial and improvement the positive root of y x 2 x 7 giving your answer to 2 d.p.
y 0 7
y 1 1 1 7 7
y 2 4 2 7 5
y 3 9 3 7 1
y 4 16 4 7 5
first approximation for the root is 3.5 0.5 , which is only accurate to 1 s.f.
x
3 4
1
© blacksacademy.net
1
y 3.1 3.1 3.1 7 0.49
2
y 0 3.1 3.2
y 3.15 3.15 3.15 7 0.2275
2
y 0 3.15 3.20
y 3.18 3.18 3.18 7 0.0676
2
y 0 3.18 3.20
y 3.19 3.19 3.19 7 0.0139
2
y 0 3.19 3.20
y 3.195 3.195 3.195 7 0.013025 y 0
2
3.19 3.195
Trial and improvement is an example of an iterative method. The term “iterative” means that
the same process is repeated again and again. In this case we repeat the process of trying an x
value chosen from an interval which is known to contain the root. We repeat this until a
numerical value for the root is obtained to the required degree of accuracy. Trial and
improvement is a slow method of finding a root, meaning that many iterations (repeats) have
to be made in order to arrive at a value. In this chapter we introduce another iterative method
for finding a root. This is known as Picard’s method.
g x F x x 0
can be used to find the root The use of this rearrangement of an equation is called Picard’s
method. Picard’s method is also called fixed-point iteration. Sometimes this formula does not
work because the values get larger and larger (diverge), not smaller and smaller (converge).
the solution . We will illustrate the method and discuss the conditions for convergence at
the same time.
Example (2)
Solve g x 0 where g x x 3 3x 1
Solution
1
x 3 3x 1 0 x
3
1 x3
Hence, Picard’s method gives the iteration formula
© blacksacademy.net
2
x n 1
1
3
1 xn
3
We need a starting value for the iteration. Now
g 0 1
g 1 3
So by linear interpolation x 0 0.25 should be a good starting value for the iteration.
Then
x1
1
3
1
1 x 0 1 0.25 0.328125...
3
3
3
Likewise
x 2 0.321557...
x 3 0.322250...
y=x
F ()
y = F (x)
x
x0
The diagram shows the graph of y F x and y x and the initial approximation, x 0 . At the
solution of g x 0 . The value of the first approximation is shown in the following diagram.
y=x
F (x 0)
y = F (x)
x
x1 x0
© blacksacademy.net
3
At the point of intersection y F x 0 with y x we have the value of the second
approximation, x 1 . The following diagram shows how repetition of this process causes
y=x
F (x 0 )
y = F (x)
x
x1 x2 x0
However, when the gradient of y F x is greater than 1 around the root then the series of
successive terms generated by the method diverges away from , as the following diagram
illustrates
y
y = F (x)
y=x
x
x3 x1 x0 x2
So for the method to work we must have F x 1 . Furthermore, the rate of convergence is
Example (2)
Prove that the equation 2x ln x x 2 1 1 has a root in 0,1 . Find it correct to 6
decimal places.
© blacksacademy.net
4
Solution
The equation may be rearranged as
x
1
2
ln x x 2 1
1
2
which puts it in the form x f x required for Picard’s method. Let
f x
1
2
1
ln x x 2 1 ,
2
g x f x x
1
Since g 0 f 0 0 0 and g 1 f 1 1 0.94 1 0.06 0 , there is a root of
2
2x ln x x 2 1 1 .
To confirm that the iteration will converge, we calculate the derivative of f, i.e.
1 1
f x . Therefore
2 1 x2
1 1
f x 1 for all x 0,1 .
2 1 x 2 2
i.e. x n 1 f xn
x1 f x 0 0.5
x 2 f x1 0.7406059
x 3 f x 2 0.8428074
x 4 f x 3 0.8828737
x5 f x 4 0.8980413
x 6 f x 5 0.9037051
x 7 f x 6 0.9058092
x 8 f x 7 0.9065893
x 9 f x 8 0.9068783
x10 f x 9 0.90698542
x11 f x10 0.9070250
x12 f x11 0.9070397
x13 f x12 0.9070451
x14 f x13 0.9070472
x15 f x14 0.9070479
© blacksacademy.net