Secant Methods:
In this lecture we introduce two additional methods to search numerical solutions of the equation f(x) = 0. Both of these methods are basis on approximating the function by secant lines now as Newton’s method was based on approximating the function by tangent lines.
The Secant Method:
The secant method requires two initial points x0 with x1 which are both reasonably close to the solution x*. Preferably the signs of y0 = f(x0) and y1 = f(x1) must be different. Once x0 also x1 are determined the method proceeds by the following formula:
xi+1 = xi– [{xi− xi−1}/{yi− yi−1}]*[yi− yi−1]
Illustration - Suppose f(x) = x4 − 5 for which the true solution is x*= 4√ 5. Plotting this function disclose that the solution is at about 1.25. If we let x0 = 1 as well as x1 = 2 then we know that the root is in between x0 as well as x1. After that we have that y0 = f(1) = −4 and y1 = f(2) = 11. We may then compute x2 from the formula:
Pluggin x2 = 19/15 into f(x) we acquire y2 = f(19/15) ≈ −2.425758.... In the subsequent step we would use x1 = 2 and x2 = 19/15 in the above formula to find x3 and so on.
Given Below is a program for the secant method. Notice that it necessitate two input guesses x0 and x1, however it does not require the derivative to be input.
function x = mysecant(f,x0,x1,n)format long % prints more digitsformat compact % makes the output more compact% Solves f(x) = 0 by doing n steps of the secant method starting with x0 and x1.% Inputs: f -- the function input as an inline function% x0 -- starting guess, a number% x1 -- second starting geuss% n -- the number of steps to do% Output: x -- the approximate solutiony0 = f(x0);y1 = f(x1);for i = 1:n % Do n timesx = x1 - (x1-x0)*y1/(y1-y0) % secant formula.y=f(x) % y value at the new approximate solution.% Move numbers to get ready for the next stepx0=x1;y0=y1;x1=x;y1=y;end
The Regula Falsi Method:
The Regula Falsi method is fairly a combination of the secant method and bisection method. The idea is to utilize secant lines to approximate f(x) but choose how to update using the sign of f(xn). Now as in the bisection method we begin with a and b for which f(a) and f(b) have different signs.
Then let:
x = b –[{b – a}/{f(b) − f(a)}]*[f(b)].
Then check the sign of f(x). If it is the similar as the sign of f(a) then x becomes the new a Otherwise let b = x.
Convergence:
If we can start with a good choice x0 then Newton’s method will converge to x* rapidly. The secant method is a slightly slower than Newton’s method and the Regula Falsi method is slightly slower than that. Both nevertheless are still much faster than the bisection method.
If we don’t have a good starting point or interval, after that the secant method, just similar to Newton’s method can fail altogether. The Regula Falsi method just similar to the bisection method always works for the reason that it keeps the solution inside a definite interval.
Simulations and Experiments:
Although Newton’s method converges quicker than any other method there are contexts when it isn’t convenient or even impossible. One noticeable situation is when it is difficult to calculate a formula for f′(x) even though one knows the formula for f(x). This is habitually the case when f(x) isn’t defined explicitly however implicitly. There are other situations, which are extremely common in engineering and science where even a formula for f(x) isn’t known. This happens when f(x) is the result of experiment or else simulation rather than a formula. In such circumstances the secant method is usually the best choice.
Latest technology based Matlab Programming Online Tutoring Assistance
Tutors, at the www.tutorsglobe.com, take pledge to provide full satisfaction and assurance in Matlab Programming help via online tutoring. Students are getting 100% satisfaction by online tutors across the globe. Here you can get homework help for Matlab Programming, project ideas and tutorials. We provide email based Matlab Programming help. You can join us to ask queries 24x7 with live, experienced and qualified online tutors specialized in Matlab Programming. Through Online Tutoring, you would be able to complete your homework or assignments at your home. Tutors at the TutorsGlobe are committed to provide the best quality online tutoring assistance for Matlab Programming Homework help and assignment help services. They use their experience, as they have solved thousands of the Matlab Programming assignments, which may help you to solve your complex issues of Matlab Programming. TutorsGlobe assure for the best quality compliance to your homework. Compromise with quality is not in our dictionary. If we feel that we are not able to provide the homework help as per the deadline or given instruction by the student, we refund the money of the student without any delay.
www.tutorsglobe.com offers Non Procedural Languages homework help, assignment help, case study, writing homework help, online tutoring assistance by computer science tutors.
Theory and lecture notes of Changes in Fiscal Policy all along with the key concepts of changes in fiscal policy, Government Purchases on the Flow-of-Funds, Domestic Interest Rate, Supply Shocks. Tutorsglobe offers homework help, assignment help and tutor’s assistance on Changes in Fiscal Policy.
Vertebrates tutorial all along with the key concepts of Features of Vertebrata, Pisces, Adaptive Features of Fishes, Nature of Medium, Osmoregulation and Water Loss
Measurement of Temperature tutorial all along with the key concepts of Sign of heat, Temperature and Heat, Zeroth Law of Thermodynamics, Temperature Scales, Triple Point of Water, Thermometric Properties, Calibration, Thermocouple Thermometer, Resistance Thermometer
www.tutorsglobe.com offers prototyping methods and tools homework help, assignment help, case study, writing homework help, online tutoring assistance by computer science tutors.
tutorsglobe.com economics and jurisprudence assignment help-homework help by online positive or normative economics tutors
tutorsglobe.com active immunization assignment help-homework help by online vaccines tutors
tutorsglobe.com digestion assignment help-homework help by online human physiology tutors
www.tutorsglobe.com offers system analysis of the existing system homework help, assignment help, case study, writing homework help, online tutoring assistance by computer science tutors.
www.tutorsglobe.com offers concurrent development model homework help, assignment help, case study, writing homework help, online tutoring assistance by computer science tutors.
Systematic Classification of Protozoa tutorial all along with the key concepts of The Flagellates, The Zooflagellates, The Amoebas, Nutrition of Amoeba, The Sporozoa, The Ciliates and Other Ciliated Protozoa
Annelida tutorial all along with the key concepts of Characteristics of annelida, Coelomate Body Plan, Biological significance of Coelom, Metameric Segmentation, Classification of Annelids, Oligochaeta and Class Polychaeta
www.tutorsglobe.com offers Benefits of Budgeting homework help, assignment help, case study, writing homework help, online tutoring assistance by accounting tutors.
Avail hassle-free Engineering Thermodynamics Assignment Help by native tutors at affordable prices to score A++ grades.
Basic concepts in Petroleum Chemistry tutorial all along with the key concepts of Clastic Sedimentary Rocks, Non-Clastic Sedimentary Rocks, Origin and Habitat of Petroleum, Petroleum Migration and Accumulation
1964820
Questions Asked
3689
Tutors
1474051
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!