Numerical Methods: Puskar R. Pokhrel
Numerical Methods: Puskar R. Pokhrel
Numerical Methods
Puskar R. Pokhrel
2. Solution of Non-linear
Equation
3 If f (x) is continuous in the interval [a, b] and f (a)f (b) < 0, then a root
must exist in the interval (a, b)
Analytical Method,
Graphical Method,
Trial and Error Method,
Iterative Method.
Analytic Method:
Analytical approach to solve the non -linear equations do not exist except
for certain simple cases,
is ax 2 + bx+ c = 0, a 6= 0 can be solved analytically
b b 2 4ac
x= ,
2a
cos x + x = 0 that cannot be solved analytically,
Graphical Method:
Graphical methods are also used to find an approximate value of the root,
This method involves plotting the given function and determining the
points where it crosses the axis of x.
Trial and Error Method:
Trial and error methods involve a series of guess for x,
Each time evaluating the function to see whether it is close to zero
Iterative Method
Begin with an approximate value of the root known as the initial guess,
which is then successively corrected by iterations
The process of iterations comes to the end when the desired level of
accuracy is obtained
Bracketing method:
Bisection method
Regula Falsi or False position method.
Open end method
Newton-Raphson method
Secant method
Fixed point iteration method.
Definition
An iterative method has the rate of convergence p, if p is the largest positive
real number for which there exist a finite constant C 6= 0 such that
|k+1 | C |k |p , where k = xk .
Bisection Method
Bisection Method
Theorem
(Intermediate Value Theorem):If f (x) is real and continuous function in
the interval [a, b] with f (a) and f (b) are opposite signs, i. e. f (a) f (b) < 0,
then there exist at least one real root f (x) = 0 in the interval between a and
b
Theorem
( Bisection Method) To find a real root of the equation f (x) = 0 using
bisection method
Bisection Method
If f (x) in C [a, b] with f (a) and f (b) are opposite signs, i. e.
f (a) f (b) < 0, one real root f (x) = 0 in the interval between a and b
a+b
the first approximate to the root is x0 =
2
If f (x0 ) = 0, then x0 is a root, and if f (x0 ) 6= 0, then there arises two
cases:
if f (a)f (x0 ) < 0, then there is a root between a and x0 ,
if f (x0 )f (b) < 0, then there is a root between x0 and b.
The new sub intervals [a, x0 ] or [x0 , b] and is exactly half of the the given
interval [a, b] and thus this method is also called half interval method.
This process can be continued until the interval containing the root is as
small as desired accuracy
This is illustrated in the figure 2.
Bisection Algorithm
|b a|
The error bound at nth iteration is en = .
2n
|b a| 1 |b a| 1
en+1 = = = en .
2n+1 2 2n 2
en+1 = (1/2)en . Thus, this method converges linearly.
Exercise
Find a root of the equation cos x = xe x using bisection method correct
to four decimal places
root = 0.5178
Find an approximate root of the equation x sin x 1 = 0 that lies
between x = 1 and x = 1.5 (measured in radians) using bisection
method carry out computations up to the 7th stage root =1.1133
Find a positive real root of the equation x log10 x = 1.9 using bisection
method
root = 3.4961
Find the root of the equation e x 3x = 0 correct up to three decimal
places using bisection method 2068 Baishakh IOE
root = 0.6191
Estimate at least two possible real roots of the following nonlinear
equation using bisection method up to two decimal points
sin x x 2 x + 1 = 0 2064 Jestha, B. E., IOE