03. Solution of Non Linear Equations (Bisection Method)
Dated: 14-08-2025
Polynomials
1
\(f(x) = 0\) is called an algebraic equation in \(x\) if it is purely a polynomial
.1
Some Facts
- Every equation of the form \(f(x) = 0\) has at least one root (either
real
2 orcomplex
2). - Every
polynomial
1 of \(n^{th}\) degree has \(n\) roots. - If \(f(x) = 0\) is an equation of odd degree then it has at least one
real
2 root whose sign is opposite to that of last term. - If \(f(x) = 0\) is an equation of even degree whose last term is negative then it has at least one positive and at least one negative root.
Transcendental Equation
An equation is called transcendental
equation if it has either or a combination of the following:
Roots of an Equation
If we have an equation \(f(x) = 0\) then the values for \(x\) which satisfy the equation, are called roots
.
Properties of an Algebraic Equation
Complex
2 roots appear in pairs. If \((a + \iota b)\) is a root then \((a - \iota b)\) is also a root.- If \(f(x) = 0\) is of \(n^{th}\) degree and \(a\) is a root then \((x - a)\) is a factor of \(f(x)\). Diving \(f(x)\) by \((x - a)\) gives us a
polynomial
1 of degree \(n - 1\).
Descartes Rule of Signs
The number
2 of positive roots of an algebraic equation \(f(x) = 0\) with real
2 coefficients can not exceed the number
2 of changes in the signs of the coefficients in the polynomial
1 \(f(x) = 0\). Similarly the number
2 of negative roots of the equation can not exceed the number
2 of changes in the sign of coefficients of \(f(-x) = 0\).
Example
Positive Roots
Following are the sign changes that occur in the equation
- \(+\) for \(x^3\) changes to \(-\) for \(3x^2\)
- \(-\) for \(3x^2\) changes to \(+\) for \(4x\)
- \(+\) for \(4x\) changes to \(-\) for \(5\)
Since there are 3 changes so there are 3 positive roots.
Negative Roots
Since there are no changes, therefore, there are no negative roots.
Intermediate Value Property
If \(f(x)\) is a continuous function
5 defined over \(a \le x \le b\) such that \(f(a)\) and \(f(b)\) differ in their signs then, there is a number
2 \(\beta\) such that \(a \le \beta \le b\) and \(f(\beta) = 0\).
\(a \le \beta \le b\) where \(f(a) > 0 > f(b)\)
Direct Methods
Those methods which do not require any information about the initial approximation of root to start the solution are known as direct methods.
Examples
Graefee
root squaring methodGauss
elimination methodGauss
Jordan method
Iterative Methods
These methods require an initial approximation to start.
Examples
Bisection
methodNewton Raphson
methodSecant
methodJacobie
method
How to Get an Initial Approximation?
Initial approximation can be found by using
Graphical Method
/// captions
\(f_1\) and \(f_2\) intersect at \(1.9\) and therefore, it should be taken as the initial approximation.
///
Analytical Method
This method can be used for
Algebraic
equations- Transcendental equations
We have to locate two points \(a\) and \(b\) such that \(f(a)\) and \(f(b)\) has opposite signs.
Example
Since \(f(0)\) and \(f(1)\) differ in signs, therefore, the root lies between \(0\) and \(1\).
Bisection Method (Bolzano)
Suppose that you have \(f(x) = 0\) defined on the \([x_0, x_1]\) and let \(f(x_0)\) and \(f(x_1)\) have opposite signs such that \(f(x_0)f(x_1) < 0\) then the graph crosses the \(x\) axis, suggesting that there exists a root \(x_0 < x_2 < x_1\) such that
If \(f(x_2) = 0\) then it is the root, otherwise the root lies somewhere in either
- \([x_0, x_2]\)
- \([x_2, x_1]\)
Now we have 2 halves and we check which halve will contain the root.
- \(f(x_0) f(x_2) < 0\) implies that the root is in \([x_0, x_2]\)
- \(f(x_2) f(x_1) < 0\) implies that the root is in \([x_2, x_1]\)
And we keep repeating the process.
In numerical analysis, \(\pi = 3.14\) and calculations are carried out in radians
mode.
Example
Solve \(x^3 - 9x + 1 = 0\) for the root between \(x = 2\) and \(x = 4\) by bisection method.
Solution
\(n\) | \(xn\) | \(f(xn)\) |
---|---|---|
\(2\) | \(3\) | \(1.0\) |
\(3\) | \(2.5\) | \(-5.875\) |
\(4\) | \(2.75\) | \(-2.9531\) |
\(5\) | \(2.875\) | \(-1.1113\) |
\(6\) | \(2.9375\) | \(-0.0901\) |
When to Stop the Process of Iteration?
Assume the accuracy was given to be \(10^{-3}\) and we have 2 consecutive roots like \(2.135648\) and \(2.135769\).
Since the accuracy is achieved, we can stop here.
References
Read more about notations and symbols.