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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Chapter 1. Newton-Raphson Method for a Single Equationapproximately although to as many decimal places as you want.Nowwe will discussthe important application<strong>of</strong>usingtangent lines tosolvea single equation <strong>of</strong> the form f(x) = 0 for approximate solutions either real orcomplex.Example 1.1.1. <strong>The</strong> best way to understand the simplicity <strong>of</strong> this methodand its geometric basis is to look at an example. Let’s say that we want tosolve the equationx 3 −5x 2 +3x+5 = 0 (1.1)for an approximate solution x. We can easily estimate where the real solutionsare by finding the x-intercepts <strong>of</strong> the graph <strong>of</strong> y = x 3 −5x 2 +3x+5. Rememberthat the total number <strong>of</strong> real or complex roots to any polynomial is its degree(or order) which in this case is three. Also, when a polynomial has all realcoefficients as this one does all <strong>of</strong> the complex roots (if there are any) occurin complex conjugate pairs. This particular polynomial has exactly three realroots and no complex roots by looking at its graph below.> with(plots): with(plottools):> f:= x -> xˆ3 - 5*xˆ2 + 3*x + 5:> roots f:= [fsolve(f(x), x, complex)];roots f := [−0.7092753594,1.806063434,3.903211926]> plot xintercepts:= seq(circle([roots f[j],0], .3, color = blue), j=1..3):> plotf:= plot(f(x), x = -3..7, thickness = 2):> display({plotf, plot xintercepts}, view = [-3..7,-4..6]);6y42–2 2 4 6x–2–4Figure 1.1: <strong>The</strong> three roots <strong>of</strong> the polynomial x 3 −5x 2 +3x+5 are its threex-intercepts (circled)

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

Saved successfully!

Ooh no, something went wrong!