Professional Documents
Culture Documents
and Computation
Lecture # 3
(Solution of Non-Linear Equations)
Bisection Method
Course Instructor:
IMTIAZ ALI Mr. Attiq Iqbal
SHAH Class: BSCS-F19
Office: IAA-404 Section: C
Non-linear Equations
𝒇(𝒙) = 𝟎
where 𝒇(𝒙) is non-linear
• Bisection Method
• Newton-Raphson Method
• Secant Method
• Regula Falsi Method
• Fixed Point Method
Root Bracketing Criterion
Intermediate Value Theorem:
If 𝑓 is some continuous function on [𝑎, 𝑏] and if 𝑓(𝑎) < 0, 𝑓(𝑏) > 0 or
𝑓(𝑎) > 0 , 𝑓 (𝑏) < 0 which means
𝒇(𝒂). 𝒇(𝒃) < 𝟎 (Opposite signs)
Then there exists at least one point 𝑐 ∈ (𝑎, 𝑏) such that 𝑓 (𝑐 ) = 0
Bisection Method
Suppose 𝑓(𝑥 ) = 0 is a non-linear equation where 𝒇 is continuous function defined on
[𝑎, 𝑏]. Also 𝑓(𝑎) 𝑎𝑛𝑑 𝑓(𝑏) has different signs i.e. 𝒇(𝒂). 𝒇(𝒃) < 𝟎
Compute Mid-point
𝑎+𝑏
𝑃1 =
2
• |𝑃𝑛+1 − 𝑃𝑛 | < 𝜖
|𝑃𝑛+1 −𝑃𝑛 |
• <𝜖
|𝑃𝑛+1 |
Question: Given a non-linear equation 2𝑥 − 5𝑥 + 2 = 0. Use Bisection Method to find
the root of this equation correct upto 4 decimal places (𝜀 = 10−4 )
Solution: First we must bracket the root. For this choose random consecutive integers
and compute function values at those integers.
𝑥 -2 -1 0 1 2
𝑓(𝑥) 12.5 7.5 3 -1 -4
Signs of
+ + + - -
𝑓(𝑥)
Since 𝑃14 = 𝑃15 up to 4 decimal places so 0.7322 is the root of given function correct up
to 4 decimal places.
Practice Question:
1. Given a non-linear equation
𝟑𝒙 − 𝟔𝒙 = −𝟐
a). Bracket the root of above equation between two consecutive integers.
b). Use bisection method to find the root of this equation correct upto 2
decimal places (𝜀 = 10−2 )
H.W- Page No. 54 book (Burden and Faires)