SlideShare a Scribd company logo
Numerical Computing
Lecture # 11
Regula Falsi Method
By Nasima Akhtar
Working Rule
• The Regula–Falsi Method is a numerical method for estimating the roots of a
polynomial f(x). A value x replaces the midpoint in the Bisection Method and serves as
the new approximation of a root of f(x). The objective is to make convergence
faster. Assume that f(x) is continuous.
• This method also known as CHORD METHOD ,, LINEAR INTERPOLATION and
method is one of the bracketing methods and based on intermediate value theorem
Graphical Representation
Derivation
• Equation Of line gives us:
•
𝑦 − 𝑦1
𝑥 − 𝑥1
=
𝑦2− 𝑦1
𝑥2− 𝑥1
• 𝑦 − 𝑦1 =
𝑦2− 𝑦1
𝑥2− 𝑥1
(𝑥 − 𝑥1)
• (𝑥1, 𝑦1)=(a,f(a)), (𝑥2, 𝑦2)=(b,f(b)), (𝑥 , 𝑦 )=(𝑥0, 𝑦0)
• y- f(a) =
f(b)−f(a)
b− 𝑎
(𝑥 −a)
• 0- f(a) =
f(b)−f(a)
b− 𝑎
(𝑥 −a) at x-axis y=0
• 0- f(a) =
f(b)−f(a)
b− 𝑎
(𝑥 −a)
•
(b− 𝑎)(− f(a) )
f(b)−f(a)
=x-a
• a +
(b− 𝑎)(− f(a) )
f(b)−f(a)
=x
•
𝑎(f(b)−f(a))+(b− 𝑎)(− f(a) )
f(b)−f(a)
=x `
•
𝑎(f(b))−a(f(a))−b(f(a) )+a(f(a) )
f(b)−f(a)
=x `
•
𝑎(f(b)) −b(f(a) )
f(b)−f(a)
=x `
• X=
𝑎(f(b)) −b(f(a) )
f(b)−f(a)
`
Algorithm
1.Find points a and b such that a < b and f(a) * f(b) < 0.
2.Take the interval [a, b] and determine the next value of x1.
3.If f(x1) = 0 then x1 is an exact root, else if f(x1) * f(b) < 0 then let a = x1,
else if f(a) * f(x1) < 0 then let b = x1.
4.Repeat steps 2 & 3 until f(xi) = 0 or |f(xi)|  tolerance
Example Numerical
• Find Approximate root using Regula Falsi method of the equation
𝑥3-4x+1
Putting values in
x=
𝑎(f(b)) −b(f(a) )
f(b)−f(a)
`
X F(x)
a=0 1
b=1 -2
𝑥0=0.3333 F(𝑥0)= -0.2963
𝑥1=0.25714 F(𝑥1)= -0.0115
𝑥2=0.2542 F(𝑥2)= -0.0003
𝑥3=0.2541 F(𝑥3)= -0.00001
𝑥4=0.2541
Pros and Cons
Advantages
• 1. It always converges.
• 2. It does not require the derivative.
• 3. It is a quick method.
Disadvantages
• 1. One of the interval definitions can get stuck.
• 2. It may slowdown in unfavourable situations.
Matlab Code
f=@(x)(x^3+3*x-5);
x1=1;
x2 = 2;
i = 0;
val = f(x2);
val1 = f(x1);
if val*val1 >= 0
i = 99;
end
while i <= 4
val = f(x2);
val1 = f(x1);24
temp = x2 - x1;
temp1 = val - val1;
nVal = temp/temp1;
nVal = nVal * val;
nVal = x2 - nVal;
if (f(x2)*nVal <= 0)
x1 = x2;
x2 = nVal;
else
if (f(x1)*nVal <= 0)
x2 = nVal;
end
end
i = i+1;
end
fprintf('Point is %fn',x2)
fprintf('At This Point Value is %fn',f(x2))

More Related Content

What's hot

Bisection method in maths 4
Bisection method in maths 4Bisection method in maths 4
Bisection method in maths 4
Vaidik Trivedi
 
BISECTION METHOD
BISECTION METHODBISECTION METHOD
MEAN VALUE THEOREM
MEAN VALUE THEOREMMEAN VALUE THEOREM
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
Nasima Akhtar
 
Bisection method
Bisection methodBisection method
Bisection method
Isaac Yowetu
 
Secent method
Secent methodSecent method
Secent method
ritu1806
 
Bisection method
Bisection methodBisection method
Bisection method
Md. Mujahid Islam
 
Bisection method
Bisection methodBisection method
Bisection method
Tirth Parmar
 
Mean Value Theorems
Mean Value TheoremsMean Value Theorems
Secant method
Secant methodSecant method
Secant method
Zahra Saman
 
Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equations
Rifat Rahamatullah
 
Newton cotes integration method
Newton cotes integration  methodNewton cotes integration  method
Newton cotes integration method
shashikant pabari
 
Approximation and error
Approximation and errorApproximation and error
Approximation and error
rubenarismendi
 
Bisection method
Bisection methodBisection method
Bisection method
kishor pokar
 
Numerical solutions of algebraic equations
Numerical solutions of algebraic equationsNumerical solutions of algebraic equations
Numerical solutions of algebraic equations
Avneet Singh Lal
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
Dr. Nirav Vyas
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
Asad Ali
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
VARUN KUMAR
 
Newton’s Divided Difference Formula
Newton’s Divided Difference FormulaNewton’s Divided Difference Formula
Newton’s Divided Difference Formula
Jas Singh Bhasin
 
Interpolation and its applications
Interpolation and its applicationsInterpolation and its applications
Interpolation and its applications
RinkuMonani
 

What's hot (20)

Bisection method in maths 4
Bisection method in maths 4Bisection method in maths 4
Bisection method in maths 4
 
BISECTION METHOD
BISECTION METHODBISECTION METHOD
BISECTION METHOD
 
MEAN VALUE THEOREM
MEAN VALUE THEOREMMEAN VALUE THEOREM
MEAN VALUE THEOREM
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
 
Bisection method
Bisection methodBisection method
Bisection method
 
Secent method
Secent methodSecent method
Secent method
 
Bisection method
Bisection methodBisection method
Bisection method
 
Bisection method
Bisection methodBisection method
Bisection method
 
Mean Value Theorems
Mean Value TheoremsMean Value Theorems
Mean Value Theorems
 
Secant method
Secant methodSecant method
Secant method
 
Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equations
 
Newton cotes integration method
Newton cotes integration  methodNewton cotes integration  method
Newton cotes integration method
 
Approximation and error
Approximation and errorApproximation and error
Approximation and error
 
Bisection method
Bisection methodBisection method
Bisection method
 
Numerical solutions of algebraic equations
Numerical solutions of algebraic equationsNumerical solutions of algebraic equations
Numerical solutions of algebraic equations
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Newton’s Divided Difference Formula
Newton’s Divided Difference FormulaNewton’s Divided Difference Formula
Newton’s Divided Difference Formula
 
Interpolation and its applications
Interpolation and its applicationsInterpolation and its applications
Interpolation and its applications
 

Similar to False Point Method / Regula falsi method

Introduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfIntroduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdf
JifarRaya
 
Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etc
Riyandika Jastin
 
Analysis for engineers _roots_ overeruption
Analysis for engineers _roots_ overeruptionAnalysis for engineers _roots_ overeruption
Analysis for engineers _roots_ overeruption
uttamna97
 
Solution 3
Solution 3Solution 3
Solution 3
aldrins
 
Solution 3
Solution 3Solution 3
Solution 3
aldrins
 
Quadratic Function Presentation
Quadratic Function PresentationQuadratic Function Presentation
Quadratic Function Presentation
RyanWatt
 
Ch 2
Ch 2Ch 2
Evaluating Functions.ppt
Evaluating Functions.pptEvaluating Functions.ppt
Evaluating Functions.ppt
RiaFineenGTorres
 
Bisection
BisectionBisection
Bisection
Nasima Akhtar
 
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
KarmaX1
 
PRESENT.pptx this paper will help the next
PRESENT.pptx this paper will help the nextPRESENT.pptx this paper will help the next
PRESENT.pptx this paper will help the next
seidnegash1
 
OPRATION ON FUNCTIONS.ppt
OPRATION ON FUNCTIONS.pptOPRATION ON FUNCTIONS.ppt
OPRATION ON FUNCTIONS.ppt
RiaFineenGTorres
 
ppt.pptx fixed point iteration method no
ppt.pptx fixed point iteration method noppt.pptx fixed point iteration method no
ppt.pptx fixed point iteration method no
seidnegash1
 
Quadratic function
Quadratic functionQuadratic function
Quadratic function
Dwight Ikitan
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
Tarun Gehlot
 
Approximate Integration
Approximate IntegrationApproximate Integration
Approximate Integration
Silvius
 
Quantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodQuantitive Techniques: Bisection method
Quantitive Techniques: Bisection method
Arti Parab Academics
 
Quadraticfunctionpresentation 100127142417-phpapp02
Quadraticfunctionpresentation 100127142417-phpapp02Quadraticfunctionpresentation 100127142417-phpapp02
Quadraticfunctionpresentation 100127142417-phpapp02
Vine Gonzales
 
Secant Method
Secant MethodSecant Method
Secant Method
Nasima Akhtar
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
wraithxjmin
 

Similar to False Point Method / Regula falsi method (20)

Introduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfIntroduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdf
 
Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etc
 
Analysis for engineers _roots_ overeruption
Analysis for engineers _roots_ overeruptionAnalysis for engineers _roots_ overeruption
Analysis for engineers _roots_ overeruption
 
Solution 3
Solution 3Solution 3
Solution 3
 
Solution 3
Solution 3Solution 3
Solution 3
 
Quadratic Function Presentation
Quadratic Function PresentationQuadratic Function Presentation
Quadratic Function Presentation
 
Ch 2
Ch 2Ch 2
Ch 2
 
Evaluating Functions.ppt
Evaluating Functions.pptEvaluating Functions.ppt
Evaluating Functions.ppt
 
Bisection
BisectionBisection
Bisection
 
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
 
PRESENT.pptx this paper will help the next
PRESENT.pptx this paper will help the nextPRESENT.pptx this paper will help the next
PRESENT.pptx this paper will help the next
 
OPRATION ON FUNCTIONS.ppt
OPRATION ON FUNCTIONS.pptOPRATION ON FUNCTIONS.ppt
OPRATION ON FUNCTIONS.ppt
 
ppt.pptx fixed point iteration method no
ppt.pptx fixed point iteration method noppt.pptx fixed point iteration method no
ppt.pptx fixed point iteration method no
 
Quadratic function
Quadratic functionQuadratic function
Quadratic function
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
 
Approximate Integration
Approximate IntegrationApproximate Integration
Approximate Integration
 
Quantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodQuantitive Techniques: Bisection method
Quantitive Techniques: Bisection method
 
Quadraticfunctionpresentation 100127142417-phpapp02
Quadraticfunctionpresentation 100127142417-phpapp02Quadraticfunctionpresentation 100127142417-phpapp02
Quadraticfunctionpresentation 100127142417-phpapp02
 
Secant Method
Secant MethodSecant Method
Secant Method
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 

Recently uploaded

ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
PuktoonEngr
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 

Recently uploaded (20)

ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 

False Point Method / Regula falsi method

  • 1. Numerical Computing Lecture # 11 Regula Falsi Method By Nasima Akhtar
  • 2. Working Rule • The Regula–Falsi Method is a numerical method for estimating the roots of a polynomial f(x). A value x replaces the midpoint in the Bisection Method and serves as the new approximation of a root of f(x). The objective is to make convergence faster. Assume that f(x) is continuous. • This method also known as CHORD METHOD ,, LINEAR INTERPOLATION and method is one of the bracketing methods and based on intermediate value theorem
  • 4. Derivation • Equation Of line gives us: • 𝑦 − 𝑦1 𝑥 − 𝑥1 = 𝑦2− 𝑦1 𝑥2− 𝑥1 • 𝑦 − 𝑦1 = 𝑦2− 𝑦1 𝑥2− 𝑥1 (𝑥 − 𝑥1) • (𝑥1, 𝑦1)=(a,f(a)), (𝑥2, 𝑦2)=(b,f(b)), (𝑥 , 𝑦 )=(𝑥0, 𝑦0) • y- f(a) = f(b)−f(a) b− 𝑎 (𝑥 −a) • 0- f(a) = f(b)−f(a) b− 𝑎 (𝑥 −a) at x-axis y=0 • 0- f(a) = f(b)−f(a) b− 𝑎 (𝑥 −a) • (b− 𝑎)(− f(a) ) f(b)−f(a) =x-a • a + (b− 𝑎)(− f(a) ) f(b)−f(a) =x • 𝑎(f(b)−f(a))+(b− 𝑎)(− f(a) ) f(b)−f(a) =x ` • 𝑎(f(b))−a(f(a))−b(f(a) )+a(f(a) ) f(b)−f(a) =x ` • 𝑎(f(b)) −b(f(a) ) f(b)−f(a) =x ` • X= 𝑎(f(b)) −b(f(a) ) f(b)−f(a) `
  • 5. Algorithm 1.Find points a and b such that a < b and f(a) * f(b) < 0. 2.Take the interval [a, b] and determine the next value of x1. 3.If f(x1) = 0 then x1 is an exact root, else if f(x1) * f(b) < 0 then let a = x1, else if f(a) * f(x1) < 0 then let b = x1. 4.Repeat steps 2 & 3 until f(xi) = 0 or |f(xi)|  tolerance
  • 6. Example Numerical • Find Approximate root using Regula Falsi method of the equation 𝑥3-4x+1 Putting values in x= 𝑎(f(b)) −b(f(a) ) f(b)−f(a) ` X F(x) a=0 1 b=1 -2 𝑥0=0.3333 F(𝑥0)= -0.2963 𝑥1=0.25714 F(𝑥1)= -0.0115 𝑥2=0.2542 F(𝑥2)= -0.0003 𝑥3=0.2541 F(𝑥3)= -0.00001 𝑥4=0.2541
  • 7. Pros and Cons Advantages • 1. It always converges. • 2. It does not require the derivative. • 3. It is a quick method. Disadvantages • 1. One of the interval definitions can get stuck. • 2. It may slowdown in unfavourable situations.
  • 8. Matlab Code f=@(x)(x^3+3*x-5); x1=1; x2 = 2; i = 0; val = f(x2); val1 = f(x1); if val*val1 >= 0 i = 99; end while i <= 4 val = f(x2); val1 = f(x1);24 temp = x2 - x1; temp1 = val - val1; nVal = temp/temp1; nVal = nVal * val; nVal = x2 - nVal; if (f(x2)*nVal <= 0) x1 = x2; x2 = nVal; else if (f(x1)*nVal <= 0) x2 = nVal; end end i = i+1; end fprintf('Point is %fn',x2) fprintf('At This Point Value is %fn',f(x2))