The document describes the bisection method for finding roots of equations. It provides an introduction to the bisection method and its graphical representation. It also presents the algorithm, a C program implementing the method, and examples finding roots of polynomial and trigonometric equations using bisection.
Overview of Bisection Method presentation, including topics like equations, algorithms, flowchart, and C programming.
Explains finding roots of equations with independent variables, classifying them into linear and non-linear categories.
Describes the Bisection Method for finding roots, its robustness, and the implications of the Intermediate Value Theorem.
Code snippets demonstrating the implementation of the Bisection Method in C programming, including user input and iterative calculations.
Output demonstrations of the Bisection Method showing iterations and convergence results with specific roots.
Examples illustrating the application of the Bisection Method on polynomial equations, addressing root convergence based on interval selections.
Further examples of finding roots using the Bisection Method, with detailed iterations and results for specific equations like cos(x) - x * exp(x) and x - sin(x) - (1/2).
Topics to beCovered
Introduction of Bisection method
Graphical Representation Of Bisection Method
Finding Roots of Equations
Classification of Equations
Algorithm
Flowchart
C program
Examples
3.
Finding Roots ofEquations
• In this topic we are examining equations with one
independent variable.
• These equations may be linear or non-linear
• Non-linear equations may be polynomials or
generally non-linear equations
• A root of the equation is simply a value of the
independent variable that satisfies the equation
4.
Classification of Equations
•Linear: independent variable appears to the first
power only, either alone or multiplied by a
constant
• Nonlinear:
– Polynomial: independent variable appears
raised to powers of positive integers only
– General non-linear: all other equations
5.
BISECTION METHOD
Thebisection method in mathematics is a root-finding method that
repeatedly bisects an interval and then selects a subinterval in
which a root must lie for further processing.
It is a very simple and robust method, but it is also relatively slow.
Because of this, it is often used to obtain a rough approximation to
a solution which is then used as a starting point for more rapidly
converging methods.
The method is also called “The Interval Halving Method”.
The methodis applicable for numerically solving the
equation f(x) = 0 for the real variable x, where f is a
continuous function defined on an interval [a, b] and
where f(a) and f(b) have opposite signs. In this case a and
b are said to bracket a root since, by the intermediate
value theorem, the continuous function f must have at
least one root in the interval (a, b).
8.
C Program ForBisection Method
#include<stdio.h>
#include<conio.h>
# define eqn x*x-5
float f(float x)
{
float ans;
ans=eqn;
return(ans);}
Bisection Method Example- Polynomial
Now consider this example:
Use the bisection method, with allowed error of
0.0001
15.
Bisection Method Example- Polynomial
If limits of -10 to 0
are selected, the
solution converges
to x = -2
16.
Bisection Method Example- Polynomial
If limits of 0 to 10
are selected, the
solution converges
to x = 4
17.
Bisection Method Example- Polynomial
If limits of -10 to 10 are
selected, which root is
found?
In this case f(-10) and f(10)
are both positive, and f(0) is
negative
18.
Bisection Method Example- Polynomial
Which half of the
interval is kept?
Depends on the
algorithm used – in our
example, if the function
values for the lower
limit and midpoint are
of opposite signs, we
keep the lower half of
the interval