Numerical Methods Notes - by Trockers
Numerical Methods Notes - by Trockers
+263772978155/+263717267175
03 MAY 2020
o Most of the equations we have looked at so far since grade one have had exact solutions
(or roots) that could be found using a series of algebraic manipulations.
o However, this is not true of all equations. For example: – , –
and cannot be solved exactly by any obvious algebraic method.
o Thus these roots can be estimated either by graphical considerations, sign change or
iterations
SIGN CHANGE
The change-of-sign rule states that: If two values of can be found such
interval
Notes
o A change of sign method searches systematically for a change of sign in the value of a
in order to find a root such that .
o Having established that a change of sign occurs between and , then a
root lies in the interval , provided that the function is continuous (it
has no breaks in it) over the same interval.
o If change of sign occurs between and then the root lies in the interval
Positive Value
Root
Negative Value
Worked Examples
Question 1
Suggested Solution
(Positive)
(Negative)
Question 2
Suggested Solution
Now let .
– (Negative)
– (Positive)
Graphical Illustration
The number of times the graph cuts the axis indicates the number of roots of the equation.
The number of times the graph cuts the axis indicates the number of roots of the equation.
The number of times the graphs intersect indicates the number of roots of the equation.
Worked Examples
Question 1
Since the graphs intersect once, thus there is only one real root.
Question 2
Show that equation has only on real root, by sketching the graphs of
and on the same axes.
Suggested Solution
Since the graphs intersect once, thus there is only one real root.
radians. Hence show that equation has three roots in the interval
Suggested Solution
Since the graphs intersect thrice, thus there is three real roots.
Question 4
By sketching the graphs of and , on the same axes, show that equation
Suggested Solution
Since the graphs intersect twice, thus there are two real roots.
Notes
o If the resulting sequence converges then this limiting value will be a root of x = f(x).
Note that several different formulae are usually possible. Some may produce convergent
sequences and some may not. For example, suppose we want to solve the equation
o Now we can substitute an initial value for into this formula in the hope of generating
a sequence that converges towards the root of the original equation.
o Repeating this process, we obtain a sequence of numbers, iterates, , ,
hopefully approaching the root .
Input the initial value in your Calculator and press an equal sign .
To obtain the next root simply press an equal sign only and write down
the displayed value as it is and then round off to the required degree of
Worked Examples
Question 1
Write down the value of for which the iteration formula does not
produce a valid value for . Justify your answer.
Suggested Solution
b) Show that this equation can be arranged to give the iterative formula
c) Use the iterative formula found in part b) with to find the value of , , ,
and to decimal places.
Suggested Solution
(Positive)
Since there is a change of sign therefore there is a root between .
b)
– [as required]
c) –
Suggested Solution
(a)
(c)
(i)
(ii)
Question 4
equation.
Using , calculate , and correct to decimal places and give the absolute errors
in each case. [6]
Now
Question 1
i) Given that
Answer:
Question 2
Given that the iteration converges, find and simplify an equation in whose real root is being
approximated by this iteration.
Question 3
twice the area of the segment bounded by the chord . Show that .
together with a suitable starting value, to find correct to significant figures. You should
show the value of each approximation that you calculate.
o Several methods are used to derive the Newton Raphson Formula. In this case we are
going to use the Taylor series method.
o As the function approaches a root, higher-order terms of the Taylor polynomial will
approach zero. Therefore, we can consider the higher-order terms trivial. We truncate
these terms to get a linear approximate to , given as:
o From this we can derive the Newton Raphson method, given as:
Input the initial value in your Calculator and press an equal sign .
To obtain the next root simply press an equal sign only and write down
the displayed value as it is and then round off to the required degree of
accuracy. Continue to do that up to the required root.
Worked Examples
Question 1
Suggested Solution
a)
Since the graphs intersect once, thus there is only one real root.
.b) Let
(Positive)
(Negative)
c)
Question 2
The function
a) Show that the Newton Raphson formula for finding the solution of can be reduced to
b) Hence use the structure in (a) to estimate the root correct to decimal places. Start with
Suggested Solution
a)
The root is
Question 1
On a single diagram sketch the graphs of and , explaining how you can
Given that the root is close to , use the iteration to evaluate the root
Question 2
(iii) Taking as a first approximations to the root, use the Newton Raphson method
twice to find the root of the equation correct to decimal places.
Question 4
(ii) Show, by calculation, that the root of the equation lies between and .
(iii) Show that the Newton-Raphson structure can be written in the form
(iv) Use the structure in (iii) once starting with , to estimate the root correct to
decimal places.
Answer: (iv)
Question 5
(iii) Show that the Newton-Raphson formula for finding the root of the equation in (i) above
can be reduced to
(iv) Starting with , use the formula to find , correct to three decimal places.
Answer: (iv)
Question 6
(a) Show by calculation that the equation has a root between and .
(b) Use the Newton Raphson method twice to find the root correct to two decimal places
starting with .
Answer: (b)
can be approximated by the area of a trapezium. This can be seen easily from the diagram
below.
NOTE: The Trapezium Rule overestimates a curve that is concave up and underestimates
functions that are concave down.
UNDERESTIMATE
o When the curve is concave down (concave), trapezium rule underestimate the area,
because when you connect the left and right sides of the trapezium to the curve, and then
connect those two points to form the top of the trapezium, you will be left with a small
space above the trapezium.
o The small space is outside the trapezium, but it’s still under the curve, which means that
it will get missed in the trapezium rule estimate, even though it’s part of the area under
the curve.
OVERESTIMATE
Worked Examples
Question 1
a) Evaluate
b) Use the Trapezium Rule with ordinates to find the approximate value of
Suggested solution
Use the trapezium rule, with four equal intervals, to estimate the value of
Suggested Solution
Question 3
Part of the track of a rollercoaster results in the car travelling at a velocity, in m/s, modelled
using the function
Using the trapezium rule with strips, calculate an approximate value for displacement over
the first seconds and explain whether this will be an underestimate or overestimate
Suggested Solution
i) Displacement:
ii) This will be an overestimate as the tops of the trapezia will be above the curve.
Question 1
Using the trapezium rule with strips, calculate an approximate value for the area under the
curve between and . Give your answer to decimal places.
Question 2
Question 3
By considering four strips of equal width and considering the approximate area to be that of
four trapezia, estimate the value of
Question 4
approximately
Question 5
Evaluate
Question 6
(i) Use the trapezium rule with for trapezia of equal width to estimate the value of
[Ans: It overestimates the value of the integral because it includes the area above the graph]
Question 7
b) Hence evaluate
Additional questions
Question 8
[ ]
(iii) Hence, find correct to decimal places, the percentage error in using the trapezium rule
as an approximation to the integral. [ ]
***ENJOY***
+263772978155/+263717267175