12.07.2015 Views

Principles of Linear Algebra With Maple The Newton–Raphson ...

Principles of Linear Algebra With Maple The Newton–Raphson ...

Principles of Linear Algebra With Maple The Newton–Raphson ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 Chapter 1. Newton-Raphson Method for a Single Equation> display({plot guess, plotfwithtang, plot xint, plot soln});y2004 4.5 5 5.5x–20Figure 1.2: Tangent line to our polynomial at x = 5Uponinspection<strong>of</strong>Figure1.2, notethatthetangentlineatx = 5crossesthex-axis much closer to our solution near x = 4 than our very rough estimate <strong>of</strong>x = 5forthe placement<strong>of</strong>thistangentline. <strong>The</strong> x-intercept<strong>of</strong>this tangentlineis the solution for x to the tangent line’s equation y = f(5)+ dfdx (5)(x−5) = 0which isx = 5− f(5)dfdx (5)(1.2)= 307 ≈ 4.285714286So x-intercepts <strong>of</strong> tangent lines seem to move you closer to the x-intercepts<strong>of</strong> their function f(x). This is what Raphson saw which Newton did not seebecause Newton forgot to look at the geometry <strong>of</strong> the situation and instead heconcentrated on the algebra.Raphson’s next idea was to try to move even closer to the root <strong>of</strong> f(x) (thex-intercept <strong>of</strong> y = f(x) or solution to f(x) = 0) by repeating the tangent line,but now at the point given by this new value <strong>of</strong> x = 4.285714286 which is thex-intercept <strong>of</strong> the previous tangent line. Let’s do it repeating the above workand see if Raphson was correct to do this. Let’s now call our starting guessnear the root by x 0 = 5 and the x-intercept <strong>of</strong> the tangent line at x = 5 byx 1 = 4.285714286. <strong>The</strong> value <strong>of</strong> x 1 is definitely closer to the root than thestarting guess x 0 .> x0:= 5.:> x1:= x0 - f(x0)/df(x0);x1 := 4.285714286

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!