Documente Academic
Documente Profesional
Documente Cultură
N. B. Vyas
Department of Mathematics,
Atmiya Institute of Tech. and Science,
Rajkot (Guj.)
Introduction
There are two types of functions: (i) Algebraic function and
(ii) Transcendental function
Introduction
There are two types of functions: (i) Algebraic function and
(ii) Transcendental function
An algebraic function is informally a function that
satisfies a polynomial equation
Introduction
There are two types of functions: (i) Algebraic function and
(ii) Transcendental function
An algebraic function is informally a function that
satisfies a polynomial equation
A function which is not algebraic is called a transcendental
function.
Introduction
There are two types of functions: (i) Algebraic function and
(ii) Transcendental function
An algebraic function is informally a function that
satisfies a polynomial equation
A function which is not algebraic is called a transcendental
function.
The values of x which satisfy the equation f (x) = 0 are
called roots of f (x).
Introduction
There are two types of functions: (i) Algebraic function and
(ii) Transcendental function
An algebraic function is informally a function that
satisfies a polynomial equation
A function which is not algebraic is called a transcendental
function.
The values of x which satisfy the equation f (x) = 0 are
called roots of f (x).
If f (x) is quadratic, cubic or bi-quadratic expression, then
algebraic formulae are available for getting the solution.
Introduction
There are two types of functions: (i) Algebraic function and
(ii) Transcendental function
An algebraic function is informally a function that
satisfies a polynomial equation
A function which is not algebraic is called a transcendental
function.
The values of x which satisfy the equation f (x) = 0 are
called roots of f (x).
If f (x) is quadratic, cubic or bi-quadratic expression, then
algebraic formulae are available for getting the solution.
If f (x) is a higher degree polynomial or transcendental
function then algebraic methods are not available.
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Bisection Method
Consider a continuous function f (x).
Bisection Method
Consider a continuous function f (x).
Numbers a < b such that f (a) and f (b) have opposite signs.
Bisection Method
Consider a continuous function f (x).
Numbers a < b such that f (a) and f (b) have opposite signs.
Let f (a) be negative and f (b) be positive for [a, b].
Bisection Method
Consider a continuous function f (x).
Numbers a < b such that f (a) and f (b) have opposite signs.
Let f (a) be negative and f (b) be positive for [a, b].
Then there exists at least one point(root), say x, a < x < b
such that f (x) = 0.
Bisection Method
Consider a continuous function f (x).
Numbers a < b such that f (a) and f (b) have opposite signs.
Let f (a) be negative and f (b) be positive for [a, b].
Then there exists at least one point(root), say x, a < x < b
such that f (x) = 0.
Now according to Bisection method, bisect the interval [a, b],
a+b
x1 =
(a < x1 < b).
2
Bisection Method
Consider a continuous function f (x).
Numbers a < b such that f (a) and f (b) have opposite signs.
Let f (a) be negative and f (b) be positive for [a, b].
Then there exists at least one point(root), say x, a < x < b
such that f (x) = 0.
Now according to Bisection method, bisect the interval [a, b],
a+b
x1 =
(a < x1 < b).
2
If f (x1 ) = 0 then x1 be the root of the given equation.
Bisection Method
Consider a continuous function f (x).
Numbers a < b such that f (a) and f (b) have opposite signs.
Let f (a) be negative and f (b) be positive for [a, b].
Then there exists at least one point(root), say x, a < x < b
such that f (x) = 0.
Now according to Bisection method, bisect the interval [a, b],
a+b
x1 =
(a < x1 < b).
2
If f (x1 ) = 0 then x1 be the root of the given equation.
Otherwise the root lies between x1 and b if f (x1 ) < 0.
Bisection Method
Consider a continuous function f (x).
Numbers a < b such that f (a) and f (b) have opposite signs.
Let f (a) be negative and f (b) be positive for [a, b].
Then there exists at least one point(root), say x, a < x < b
such that f (x) = 0.
Now according to Bisection method, bisect the interval [a, b],
a+b
x1 =
(a < x1 < b).
2
If f (x1 ) = 0 then x1 be the root of the given equation.
Otherwise the root lies between x1 and b if f (x1 ) < 0.
OR the root lies between a and x1 if f (x1 ) > 0.
Then again bisect this interval to get next point x2 .
Bisection Method
Consider a continuous function f (x).
Numbers a < b such that f (a) and f (b) have opposite signs.
Let f (a) be negative and f (b) be positive for [a, b].
Then there exists at least one point(root), say x, a < x < b
such that f (x) = 0.
Now according to Bisection method, bisect the interval [a, b],
a+b
x1 =
(a < x1 < b).
2
If f (x1 ) = 0 then x1 be the root of the given equation.
Otherwise the root lies between x1 and b if f (x1 ) < 0.
OR the root lies between a and x1 if f (x1 ) > 0.
Then again bisect this interval to get next point x2 .
Repeat the above procedure to generate x1 , x2 , . . . till the
root upto desired accuracy is obtained.
N.B.V yas Department of M athematics, AIT S Rajkot
Bisection Method
Characteristics:
1 This method always slowly converge to a root.
Bisection Method
Characteristics:
1 This method always slowly converge to a root.
2 It gives only one root at a time on the the selection of small
interval near the root.
Bisection Method
Characteristics:
1 This method always slowly converge to a root.
2 It gives only one root at a time on the the selection of small
interval near the root.
3 In case of the multiple roots of an equation, other initial
interval can be chosen.
Bisection Method
Characteristics:
1 This method always slowly converge to a root.
2 It gives only one root at a time on the the selection of small
interval near the root.
3 In case of the multiple roots of an equation, other initial
interval can be chosen.
4 Smallest interval must be selected to obtain immediate
convergence to the root, .
iterations
1
(f (a) < 0)
1
(f (b) > 0)
2
c=
a+b
2
1.5
f(c)
(< 0, > 0)
-
tan( ) =
f(x0 )
f '( x 0) =
x1
x0
AB
AC
f ( x0 )
x0 x1
x1 = x0
f ( x0 )
f ( x0 )
Newton-Raphson method
f(x)
f(x0 )
x0, f ( x0 )
xn +1 = xn -
f(x 1)
x2
x1
x0
f(xn )
f (xn )
N-R Method:
Advantages:
Converges Fast (if it converges).
Requires only one guess.
Drawbacks:
Divergence at inflection point.
Selection of the initial guess or an iteration value of the root that
is close to the inflection point of the function f (x) may start
diverging away from the root in the Newton-Raphson method.
N-R Method:(Drawbacks)
Division by zero
N-R Method:(Drawbacks)
Results obtained from the N-R method may oscillate about
the local maximum or minimum without converging on a
root but converging on the local maximum or minimum.
For example for f (x) = x2 + 2 = 0 the equation has no real roots.
N-R Method:(Drawbacks)
Root Jumping
N-R Method
xq N = 0 i.e. x = N q
N-R Method
xq N = 0 i.e. x = N q
Let f (x) = xq N
N-R Method
xq N = 0 i.e. x = N q
Let f (x) = xq N
f 0 (x) = qxq1
N-R Method
xq N = 0 i.e. x = N q
Let f (x) = xq N
f 0 (x) = qxq1
f (xn )
(xn )q N
=
x
n
f 0 (xn )
q(xn )q1
N-R Method
xq N = 0 i.e. x = N q
Let f (x) = xq N
f 0 (x) = qxq1
f (xn )
(xn )q N
=
x
n
f 0 (xn )
q(xn )q1
1
N
= xn xn +
q
q(xn )q1
N-R Method
xq N = 0 i.e. x = N q
Let f (x) = xq N
f 0 (x) = qxq1
f (xn )
(xn )q N
=
x
n
f 0 (xn )
q(xn )q1
1
N
= xn xn +
q
q(xn )q1
1
N
xn+1 =
(q 1)xn +
; n = 0, 1, 2, . . .
q
(xn )q1
N-R Method
xq N = 0 i.e. x = N q
Let f (x) = xq N
f 0 (x) = qxq1
f (xn )
(xn )q N
=
x
n
f 0 (xn )
q(xn )q1
1
N
= xn xn +
q
q(xn )q1
1
N
xn+1 =
(q 1)xn +
; n = 0, 1, 2, . . .
q
(xn )q1
N-R Method
Secant Method
In N-R method two functions f and f 0 are required to be
evaluate per step.
Secant Method
In N-R method two functions f and f 0 are required to be
evaluate per step.
Also it requires to evaluate derivative of f and sometimes it is
very complicated to evaluate f 0 .
Secant Method
In N-R method two functions f and f 0 are required to be
evaluate per step.
Also it requires to evaluate derivative of f and sometimes it is
very complicated to evaluate f 0 .
Often it requires a very good initial guess.
Secant Method
In N-R method two functions f and f 0 are required to be
evaluate per step.
Also it requires to evaluate derivative of f and sometimes it is
very complicated to evaluate f 0 .
Often it requires a very good initial guess.
To overcome these drawbacks, the derivative of f 0 of the function
f (xn1 ) f (xn )
f is approximated as f 0 (xn ) =
xn1 xn
Secant Method
In N-R method two functions f and f 0 are required to be
evaluate per step.
Also it requires to evaluate derivative of f and sometimes it is
very complicated to evaluate f 0 .
Often it requires a very good initial guess.
To overcome these drawbacks, the derivative of f 0 of the function
f (xn1 ) f (xn )
f is approximated as f 0 (xn ) =
xn1 xn
Therefore formula of N-R method becomes
Secant Method
In N-R method two functions f and f 0 are required to be
evaluate per step.
Also it requires to evaluate derivative of f and sometimes it is
very complicated to evaluate f 0 .
Often it requires a very good initial guess.
To overcome these drawbacks, the derivative of f 0 of the function
f (xn1 ) f (xn )
f is approximated as f 0 (xn ) =
xn1 xn
Therefore formula of N-R method becomes
f (xn )
xn+1 = xn
f (xn1 )f (xn )
xn1 xn
Secant Method
In N-R method two functions f and f 0 are required to be
evaluate per step.
Also it requires to evaluate derivative of f and sometimes it is
very complicated to evaluate f 0 .
Often it requires a very good initial guess.
To overcome these drawbacks, the derivative of f 0 of the function
f (xn1 ) f (xn )
f is approximated as f 0 (xn ) =
xn1 xn
Therefore formula of N-R method becomes
f (xn )
xn+1 = xn
f (xn1 )f (xn )
xn1 xn
xn1 xn
f (xn1 ) f (xn )
where n = 1, 2, 3, . . ., f (xn1 ) 6= f (xn )
xn+1 = xn f (xn )
Secant Method
Secant Method
Secant Method
Secant Method
Secant Method
Secant Method
Secant Method
=
DC
DE
f (xn1 )
xn1 xn+1
Secant Method
=
DC
DE
f (xn1 )
xn1 xn+1
xn1 xn
xn+1 = xn f (xn )
f (xn1 ) f (xn )
Secant Method
NOTE:
Do not combine the secant formula and write it in the form as
follows because it has enormous loss of significance errors
xn f (xn1 ) xn1 f (xn )
xn+1 =
f (xn1 ) f (xn )
Secant Method
General Features:
The secant method is an open method and may not converge.
Secant Method
General Features:
The secant method is an open method and may not converge.
It requires fewer function evaluations.
Secant Method
General Features:
The secant method is an open method and may not converge.
It requires fewer function evaluations.
In some problems the secant method will work when Newtons
method does not and vice-versa.
Secant Method
General Features:
The secant method is an open method and may not converge.
It requires fewer function evaluations.
In some problems the secant method will work when Newtons
method does not and vice-versa.
The method is usually a bit slower than Newtons method. It is
more rapidly convergent than the bisection method.
Secant Method
General Features:
The secant method is an open method and may not converge.
It requires fewer function evaluations.
In some problems the secant method will work when Newtons
method does not and vice-versa.
The method is usually a bit slower than Newtons method. It is
more rapidly convergent than the bisection method.
This method does not require use of the derivative of the
function.
Secant Method
General Features:
The secant method is an open method and may not converge.
It requires fewer function evaluations.
In some problems the secant method will work when Newtons
method does not and vice-versa.
The method is usually a bit slower than Newtons method. It is
more rapidly convergent than the bisection method.
This method does not require use of the derivative of the
function.
This method requires only one function evaluation per iteration.
Secant Method
Disadvantages:
There is no guaranteed error bound for the computed value.
Secant Method
Disadvantages:
There is no guaranteed error bound for the computed value.
It is likely to difficulty of f 0 (x) = 0. This means Xaxis is
tangent to the graph of y = f (x)
Secant Method
Disadvantages:
There is no guaranteed error bound for the computed value.
It is likely to difficulty of f 0 (x) = 0. This means Xaxis is
tangent to the graph of y = f (x)
Method may converge very slowly or not at all.