Académique Documents
Professionnel Documents
Culture Documents
DE-35 MECH-B
NUMERICAL
METHODS
ASSIGNMENT-1
BISECTION METHOD
EXPLANATION:
The bisection method is based on the following result from calculus:
The Intermediate Value Theorem:
Assume f : IR IR is a continuous function and there are two real numbers a
and b such that f (a)f (b) < 0. Then f (x) has at least one zero between a and
b.
In other words, if a continuous function has different signs at two points, it
has to go through zero somewhere in between!
The bisection method consists of finding two such numbers a and b, then
halving the interval [a,b] and keeping the half on which f (x) changes sign
and repeating the procedure until this interval shrinks to give the required
accuracy for the root.
Bisection Algorithm:
Step 1: Find two numbers a and b at which f has different signs.
Step 2: Define c = a+ 2b.
Step 3: If b c then accept c as the root and stop.
Step 4: If f (a)f (c) 0 then set c as the new b. Otherwise, set c as the
new a. Return to step 1.
ADVANTAGES:
Always convergent
The root bracket gets halved with each iteration - guaranteed.
We know that the bisection method for root finding is slow (linear convergence), but
has the advantage of always working for a continuous function, if we start with a
interval which brackets the root. However, the arithmetic is very simple, no
derivatives are required, and only one new function evaluation is needed each
iteration.
DRAWBACKS:
Slow convergence
If one of the initial guesses is close to the root, the convergence is slower
If a function f(x) is such that it just touches the x-axis it will be unable to find
the lower and upper guesses.
Function changes sign but root does not exist
The bisection method cannot detect multiple roots
ADVANTAGES:
Very easy to program.
DISADVANTAGES:
-Diverges if the absolute value of the derivative of g(x) with respect to x is
greater than 1 for all x in the interval containing the root.
-If the equation has more than 1 root, and f(x) is continuous then this method
may miss one or more roots
-There can be hit or miss when trying to rearrange to make x the subject as
not all rearrangements will work
- Needs decent algebra to rearrange in the form x = .
Error analysis
Let be the root of f (x) = 0 we are trying to approximate. Then, Taylors
formula gives
which means that the error in xn+1 is proportional to the square of the error
in xn. Hence, if the initial estimate was good enough, the error is expected to
decrease very fast and the algorithm converges to the root.
To give an actual error estimation, write Taylors formula again
The regula falsi method can be considered similar to the secant method and
the bisection method. There are two variations of this technique:
We, in this course, will be using the double false position variant. This type
requires the two input values to get a single output. It also uses a formula
similar to that used in the Newtons Method, however, like in the secant
method, we make use of the definition of derivative to estimate the value,
instead of differentiating the given function. However, to use the definition,
we require two values of input and their corresponding function outputs.
It works on a technique similar to the bisection method, i.e. it works by
reducing the size of the bracketing interval after each iteration. This helps to
pinpoint the root of the given function.
Comparing with the other methods, regula falsi is similar to some of the
methods available for numerical analysis.
SECANT METHOD
Assume we need to find a root of the equation f (x) = 0, called . Consider
the graph of the function f (x) and two initial estimates of the root, x0 and
x1. The two points (x0,f (x0)) and (x1,f (x1)) on the graph of f (x) determine a
straight line, called a secant line which can be viewed as
an approximation to the graph. The point x2 where this secant line crosses
the x axis is then an approximation for the root . This is the same idea as in
Newtons method, where the tangent line has been approximated by a
secant line.
REFERENCES:
http://nm.mathforcollege.com/#sthash.1WQF9xcF.dpbs
http://web.mit.edu/10.001/Web/Course_Notes/NLAE/node5.html
https://answers.yahoo.com/question/index?
qid=20130228221303AALj5Tx
https://en.wikipedia.org/wiki/Bisection_method