Professional Documents
Culture Documents
Equations
Roots of Equations
5
Graphical Method
Involves plotting f(x) curve and finding the
solution at the intersection of f(x) with x-axis.
6
Bracketing Methods
Intermediate value theorem: Let f be a continuous fn on [a, b]
and let f(a) < s < f(b), then there exists at least one x such that
a < x < b and f(x) = s.
Bracketing methods are application of this theorem with s = 0
Nested interval theorem: For each n, let In = [an, bn] be a
sequence of (non-empty) bounded intervals of real numbers
such that and ,
then contains only one point.
This guarantees the convergence of the bracketing methods to the root.
In bracketing methods, a sequence of nested interval is generated
such that each interval follows the intermediate value theorem with s
= 0. Then the method converges to the root by the one point specified
by the nested interval theorem. Methods only differ in ways to
generate the nested intervals.
7
Intermediate Value Theorem
8
Mean Value Theorem
If f(x) is defined and continuous on the interval [a,b] and
differentiable on (a,b), then there is at least one number c in the
interval (a,b) (that is a < c < b) such that
11
Regula-Falsi or Method of False Position
Principle: In place of the mid point, the function is assumed to be
linear within the interval and the root of the linear function is chosen.
Initialize: Choose a0 and b0 such that, f(a0)f(b0) < 0. This is done by
trial and error.
Iteration step k:
A straight line passing through two points (ak, f(ak)) and (bk, f(bk)) is
given by:
y = f(x)
f(ak)
mk+1
bk
ak
f(bk)
13
Example Problem
True solution = 0.5671
Set up a scheme as follows:
Itr. xl f(xl) xu f(xu) xk f(xk) er(%)
0 0 2 0.6981 186
1 0 0.6981 0.5818 20
2 0 0.5818 0.5687 2.2
14
Example Problem
Find th
, x is in m.
Stopping criteria:
As , = constant
17
Open Methods: Fixed Point
y = g(x)
y=x y = x y = g(x)
x3 x2 x1 x0 x3 x2 x1 x0
Root α Root α
18
Example Problem
True solution = 0.5671
Set up a scheme as follows:
Iterations x g(x) er (%)
1 0 1 100
2 1 0.3678 172
3 0.3678 0.6922 47
4 0.6922 0.5004 38
5 0.5004 0.6064 17
19
Example Problem
Find th
, x is in m.
- e.g. )Δ
→
! !
! !
Taylor polynomial approximation:
x ( i 1)
x (i )
x (i )
f(x0)
f(x1)
x0
y = f(x)
x1 x2
26
Open Methods: Newton-Raphson
Problem: f(x) = 0, find a root x = α such that f(α) = 0
Iteration Step 0: Taylor’s Theorem at x = x0
! !
!
, for some
Iteration Step k:
! !
, for some
Assumptions: Neglect 2nd and higher order terms and assume that the root is
arrived at the (k+1)th iteration, i.e., f(xk+1) = 0
Iteration Formula:
27
Open Methods: Newton-Raphson
Convergence: Taylor’s Theorem after n iterations,
for some
Re-arrange: !
or !
or !
As , = constant
28
Open Methods: Newton-Raphson
Advantages:
y = f(x)
Faster convergence f(x0)
(quadratic) x1
x0
Disadvantages: f(x1)
Need to calculate
derivate
Newton-Raphson
method may get stuck!
29
Open Methods: Secant
Principle: Use a difference approximation for the slope
or derivative in the Newton-Raphson method. This is
equivalent to approximating the tangent with a secant.
Problem: f(x) = 0, find a root x = α such that f(α) = 0
f(x0)
f(x1)
f(x2)
x0 x1 x2
y = f(x)
x3 30
Open Methods: Secant
Problem: f(x) = 0, find a root x = α such that f(α) = 0
Initialize: choose two points x0 and x1 and evaluate f(x0) and f(x1)
Iteration Formula:
Stopping criteria:
31