ExploreCalc04BHTML.html
Calculus Exploration 4B: Newton-Raphson Method
The
following is a problem solver that uses the Newton-Raphson method to
find the zeroes of a smooth (differentiable) function f(t). You should
work through each example experimenting with different starting points
for the approximation process. Each exploration contains a math movie
of the iteration process that you can step through using the VCR like
controls at the top of the toolbar above. Note that these VCR controls
appear only after you click on the plot image.
After
exploring the first three examples below, use the last two sections to
create your own different examples. You should find two functions that
would be difficult for you to compute the zeroes of by hand.
Example
1.
![[Maple Plot]](images/ExploreCalc04BHTML1.gif)



 = `f '`(t[i])*t+b[i], ` b`[i] = f(t[i])-`f '`(t[i])*t[i], i = 0 .. n](images/ExploreCalc04BHTML5.gif)
 = 0, ` or equivalently`, ` t`[i+1] = ` t`[i]-f(` t`[i])/`f '`(` t`[i])](images/ExploreCalc04BHTML6.gif)

![` t`[0] = 2, ` L`[0](t) = -.4161468365*t+1.741591100](images/ExploreCalc04BHTML8.gif)
 = 0, ` or equivalently`, ` t`[1] = ` t`[0]-f(` t`[0])/`f '`(` t`[0])](images/ExploreCalc04BHTML9.gif)
![` t`[1] = 4.185039864, ` f`(` t`[1]) = -.8641441474](images/ExploreCalc04BHTML10.gif)

![` t`[1] = 4.185039864, ` L`[1](t) = -.5032443665*t+1.241953588](images/ExploreCalc04BHTML12.gif)
 = 0, ` or equivalently`, ` t`[2] = ` t`[1]-f(` t`[1])/`f '`(` t`[1])](images/ExploreCalc04BHTML13.gif)
![` t`[2] = 2.467893673, ` f`(` t`[2]) = .6238810733](images/ExploreCalc04BHTML14.gif)

![` t`[2] = 2.467893673, ` L`[2](t) = -.7815192937*t+2.552587593](images/ExploreCalc04BHTML16.gif)
 = 0, ` or equivalently`, ` t`[3] = ` t`[2]-f(` t`[2])/`f '`(` t`[2])](images/ExploreCalc04BHTML17.gif)
![` t`[3] = 3.266186278, ` f`(` t`[3]) = -.1242715182](images/ExploreCalc04BHTML18.gif)

![` t`[3] = 3.266186278, ` L`[3](t) = -.9922482501*t+3.116596101](images/ExploreCalc04BHTML20.gif)
 = 0, ` or equivalently`, ` t`[4] = ` t`[3]-f(` t`[3])/`f '`(` t`[3])](images/ExploreCalc04BHTML21.gif)
![` t`[4] = 3.140943913, ` f`(` t`[4]) = .6487405443e-3](images/ExploreCalc04BHTML22.gif)

![` t`[4] = 3.140943913, ` L`[4](t) = -.9999997896*t+3.141591993](images/ExploreCalc04BHTML24.gif)
 = 0, ` or equivalently`, ` t`[5] = ` t`[4]-f(` t`[4])/`f '`(` t`[4])](images/ExploreCalc04BHTML25.gif)
![` t`[5] = 3.141592654, ` f`(` t`[5]) = -.4102067615e-9](images/ExploreCalc04BHTML26.gif)

![` t`[5] = 3.141592654, ` L`[5](t) = -1.*t+3.141592654](images/ExploreCalc04BHTML28.gif)
 = 0, ` or equivalently`, ` t`[6] = ` t`[5]-f(` t`[5])/`f '`(` t`[5])](images/ExploreCalc04BHTML29.gif)
![` t`[6] = 3.141592654, ` f`(` t`[6]) = -.4102067615e-9](images/ExploreCalc04BHTML30.gif)

![` t`[6] = 3.141592654, ` L`[6](t) = -1.*t+3.141592654](images/ExploreCalc04BHTML32.gif)
 = 0, ` or equivalently`, ` t`[7] = ` t`[6]-f(` t`[6])/`f '`(` t`[6])](images/ExploreCalc04BHTML33.gif)
![` t`[7] = 3.141592654, ` f`(` t`[7]) = -.4102067615e-9](images/ExploreCalc04BHTML34.gif)

![` t`[7] = 3.141592654, ` L`[7](t) = -1.*t+3.141592654](images/ExploreCalc04BHTML36.gif)
 = 0, ` or equivalently`, ` t`[8] = ` t`[7]-f(` t`[7])/`f '`(` t`[7])](images/ExploreCalc04BHTML37.gif)
![` t`[8] = 3.141592654, ` f`(` t`[8]) = -.4102067615e-9](images/ExploreCalc04BHTML38.gif)

![` t`[8] = 3.141592654, ` L`[8](t) = -1.*t+3.141592654](images/ExploreCalc04BHTML40.gif)
 = 0, ` or equivalently`, ` t`[9] = ` t`[8]-f(` t`[8])/`f '`(` t`[8])](images/ExploreCalc04BHTML41.gif)
![` t`[9] = 3.141592654, ` f`(` t`[9]) = -.4102067615e-9](images/ExploreCalc04BHTML42.gif)

![` t`[9] = 3.141592654, ` L`[9](t) = -1.*t+3.141592654](images/ExploreCalc04BHTML44.gif)
 = 0, ` or equivalently`, ` t`[10] = ` t`[9]-f(` t`[9])/`f '`(` t`[9])](images/ExploreCalc04BHTML45.gif)
![` t`[10] = 3.141592654, ` f`(` t`[10]) = -.4102067615e-9](images/ExploreCalc04BHTML46.gif)

![` t`[10] = 3.141592654, ` L`[10](t) = -1.*t+3.141592654](images/ExploreCalc04BHTML48.gif)
 = 0, ` or equivalently`, ` t`[11] = ` t`[10]-f(` t`[10])/`f '`(` t`[10])](images/ExploreCalc04BHTML49.gif)
![` t`[11] = 3.141592654, ` f`(` t`[11]) = -.4102067615e-9](images/ExploreCalc04BHTML50.gif)
Example
2.
![[Maple Plot]](images/ExploreCalc04BHTML51.gif)



 = `f '`(t[i])*t+b[i], ` b`[i] = f(t[i])-`f '`(t[i])*t[i], i = 0 .. n](images/ExploreCalc04BHTML55.gif)
 = 0, ` or equivalently`, ` t`[i+1] = ` t`[i]-f(` t`[i])/`f '`(` t`[i])](images/ExploreCalc04BHTML56.gif)

![` t`[0] = .8, ` L`[0](t) = .2444444444*t-.4633422204](images/ExploreCalc04BHTML58.gif)
 = 0, ` or equivalently`, ` t`[1] = ` t`[0]-f(` t`[0])/`f '`(` t`[0])](images/ExploreCalc04BHTML59.gif)
![` t`[1] = 1.895490902, ` f`(` t`[1]) = .733288214](images/ExploreCalc04BHTML60.gif)

![` t`[1] = 1.895490902, ` L`[1](t) = 1.550126322*t-2.204962126](images/ExploreCalc04BHTML62.gif)
 = 0, ` or equivalently`, ` t`[2] = ` t`[1]-f(` t`[1])/`f '`(` t`[1])](images/ExploreCalc04BHTML63.gif)
![` t`[2] = 1.422440284, ` f`(` t`[2]) = .1268927671](images/ExploreCalc04BHTML64.gif)

![` t`[2] = 1.422440284, ` L`[2](t) = 1.009633410*t-1.309250467](images/ExploreCalc04BHTML66.gif)
 = 0, ` or equivalently`, ` t`[3] = ` t`[2]-f(` t`[2])/`f '`(` t`[2])](images/ExploreCalc04BHTML67.gif)
![` t`[3] = 1.296758263, ` f`(` t`[3]) = .92923186e-2](images/ExploreCalc04BHTML68.gif)

![` t`[3] = 1.296758263, ` L`[3](t) = .8613619846*t-1.107685952](images/ExploreCalc04BHTML70.gif)
 = 0, ` or equivalently`, ` t`[4] = ` t`[3]-f(` t`[3])/`f '`(` t`[3])](images/ExploreCalc04BHTML71.gif)
![` t`[4] = 1.285970326, ` f`(` t`[4]) = .692550e-4](images/ExploreCalc04BHTML72.gif)

![` t`[4] = 1.285970326, ` L`[4](t) = .8485193282*t-1.091101422](images/ExploreCalc04BHTML74.gif)
 = 0, ` or equivalently`, ` t`[5] = ` t`[4]-f(` t`[4])/`f '`(` t`[4])](images/ExploreCalc04BHTML75.gif)
![` t`[5] = 1.285888707, ` f`(` t`[5]) = .39e-8](images/ExploreCalc04BHTML76.gif)

![` t`[5] = 1.285888707, ` L`[5](t) = .8484220898*t-1.090976380](images/ExploreCalc04BHTML78.gif)
 = 0, ` or equivalently`, ` t`[6] = ` t`[5]-f(` t`[5])/`f '`(` t`[5])](images/ExploreCalc04BHTML79.gif)
![` t`[6] = 1.285888702, ` f`(` t`[6]) = -.4e-9](images/ExploreCalc04BHTML80.gif)

![` t`[6] = 1.285888702, ` L`[6](t) = .8484220838*t-1.090976372](images/ExploreCalc04BHTML82.gif)
 = 0, ` or equivalently`, ` t`[7] = ` t`[6]-f(` t`[6])/`f '`(` t`[6])](images/ExploreCalc04BHTML83.gif)
![` t`[7] = 1.285888702, ` f`(` t`[7]) = -.4e-9](images/ExploreCalc04BHTML84.gif)

![` t`[7] = 1.285888702, ` L`[7](t) = .8484220838*t-1.090976372](images/ExploreCalc04BHTML86.gif)
 = 0, ` or equivalently`, ` t`[8] = ` t`[7]-f(` t`[7])/`f '`(` t`[7])](images/ExploreCalc04BHTML87.gif)
![` t`[8] = 1.285888702, ` f`(` t`[8]) = -.4e-9](images/ExploreCalc04BHTML88.gif)

![` t`[8] = 1.285888702, ` L`[8](t) = .8484220838*t-1.090976372](images/ExploreCalc04BHTML90.gif)
 = 0, ` or equivalently`, ` t`[9] = ` t`[8]-f(` t`[8])/`f '`(` t`[8])](images/ExploreCalc04BHTML91.gif)
![` t`[9] = 1.285888702, ` f`(` t`[9]) = -.4e-9](images/ExploreCalc04BHTML92.gif)

![` t`[9] = 1.285888702, ` L`[9](t) = .8484220838*t-1.090976372](images/ExploreCalc04BHTML94.gif)
 = 0, ` or equivalently`, ` t`[10] = ` t`[9]-f(` t`[9])/`f '`(` t`[9])](images/ExploreCalc04BHTML95.gif)
![` t`[10] = 1.285888702, ` f`(` t`[10]) = -.4e-9](images/ExploreCalc04BHTML96.gif)

![` t`[10] = 1.285888702, ` L`[10](t) = .8484220838*t-1.090976372](images/ExploreCalc04BHTML98.gif)
 = 0, ` or equivalently`, ` t`[11] = ` t`[10]-f(` t`[10])/`f '`(` t`[10])](images/ExploreCalc04BHTML99.gif)
![` t`[11] = 1.285888702, ` f`(` t`[11]) = -.4e-9](images/ExploreCalc04BHTML100.gif)
Example
3.
![[Maple Plot]](images/ExploreCalc04BHTML101.gif)



 = `f '`(t[i])*t+b[i], ` b`[i] = f(t[i])-`f '`(t[i])*t[i], i = 0 .. n](images/ExploreCalc04BHTML105.gif)
 = 0, ` or equivalently`, ` t`[i+1] = ` t`[i]-f(` t`[i])/`f '`(` t`[i])](images/ExploreCalc04BHTML106.gif)

![` t`[0] = -1.2, ` L`[0](t) = -6.746112*t-10.5725952](images/ExploreCalc04BHTML108.gif)
 = 0, ` or equivalently`, ` t`[1] = ` t`[0]-f(` t`[0])/`f '`(` t`[0])](images/ExploreCalc04BHTML109.gif)
![` t`[1] = -1.567213115, ` f`(` t`[1]) = 2.71082582](images/ExploreCalc04BHTML110.gif)

![` t`[1] = -1.567213115, ` L`[1](t) = -18.31251615*t-25.98878966](images/ExploreCalc04BHTML112.gif)
 = 0, ` or equivalently`, ` t`[2] = ` t`[1]-f(` t`[1])/`f '`(` t`[1])](images/ExploreCalc04BHTML113.gif)
![` t`[2] = -1.419181802, ` f`(` t`[2]) = .7990726e-1](images/ExploreCalc04BHTML114.gif)

![` t`[2] = -1.419181802, ` L`[2](t) = -16.16652638*t-22.86333278](images/ExploreCalc04BHTML116.gif)
 = 0, ` or equivalently`, ` t`[3] = ` t`[2]-f(` t`[2])/`f '`(` t`[2])](images/ExploreCalc04BHTML117.gif)
![` t`[3] = -1.414239042, ` f`(` t`[3]) = .40768e-3](images/ExploreCalc04BHTML118.gif)

![` t`[3] = -1.414239042, ` L`[3](t) = -16.00086475*t-22.62863996](images/ExploreCalc04BHTML120.gif)
 = 0, ` or equivalently`, ` t`[4] = ` t`[3]-f(` t`[3])/`f '`(` t`[3])](images/ExploreCalc04BHTML121.gif)
![` t`[4] = -1.414213564, ` f`(` t`[4]) = .2e-7](images/ExploreCalc04BHTML122.gif)

![` t`[4] = -1.414213564, ` L`[4](t) = -16.00000000*t-22.62741700](images/ExploreCalc04BHTML124.gif)
 = 0, ` or equivalently`, ` t`[5] = ` t`[4]-f(` t`[4])/`f '`(` t`[4])](images/ExploreCalc04BHTML125.gif)
![` t`[5] = -1.414213562, ` f`(` t`[5]) = -.1e-7](images/ExploreCalc04BHTML126.gif)

![` t`[5] = -1.414213562, ` L`[5](t) = -16.00000001*t-22.62741702](images/ExploreCalc04BHTML128.gif)
 = 0, ` or equivalently`, ` t`[6] = ` t`[5]-f(` t`[5])/`f '`(` t`[5])](images/ExploreCalc04BHTML129.gif)
![` t`[6] = -1.414213563, ` f`(` t`[6]) = .2e-7](images/ExploreCalc04BHTML130.gif)

![` t`[6] = -1.414213563, ` L`[6](t) = -16.00000000*t-22.62741699](images/ExploreCalc04BHTML132.gif)
 = 0, ` or equivalently`, ` t`[7] = ` t`[6]-f(` t`[6])/`f '`(` t`[6])](images/ExploreCalc04BHTML133.gif)
![` t`[7] = -1.414213562, ` f`(` t`[7]) = -.1e-7](images/ExploreCalc04BHTML134.gif)

![` t`[7] = -1.414213562, ` L`[7](t) = -16.00000001*t-22.62741702](images/ExploreCalc04BHTML136.gif)
 = 0, ` or equivalently`, ` t`[8] = ` t`[7]-f(` t`[7])/`f '`(` t`[7])](images/ExploreCalc04BHTML137.gif)
![` t`[8] = -1.414213563, ` f`(` t`[8]) = .2e-7](images/ExploreCalc04BHTML138.gif)

![` t`[8] = -1.414213563, ` L`[8](t) = -16.00000000*t-22.62741699](images/ExploreCalc04BHTML140.gif)
 = 0, ` or equivalently`, ` t`[9] = ` t`[8]-f(` t`[8])/`f '`(` t`[8])](images/ExploreCalc04BHTML141.gif)
![` t`[9] = -1.414213562, ` f`(` t`[9]) = -.1e-7](images/ExploreCalc04BHTML142.gif)

![` t`[9] = -1.414213562, ` L`[9](t) = -16.00000001*t-22.62741702](images/ExploreCalc04BHTML144.gif)
 = 0, ` or equivalently`, ` t`[10] = ` t`[9]-f(` t`[9])/`f '`(` t`[9])](images/ExploreCalc04BHTML145.gif)
![` t`[10] = -1.414213563, ` f`(` t`[10]) = .2e-7](images/ExploreCalc04BHTML146.gif)

![` t`[10] = -1.414213563, ` L`[10](t) = -16.00000000*t-22.62741699](images/ExploreCalc04BHTML148.gif)
 = 0, ` or equivalently`, ` t`[11] = ` t`[10]-f(` t`[10])/`f '`(` t`[10])](images/ExploreCalc04BHTML149.gif)
![` t`[11] = -1.414213562, ` f`(` t`[11]) = -.1e-7](images/ExploreCalc04BHTML150.gif)
____________________________________
Filename:
ExploreCalc04B.mws
Copyright 2005, All
Rights Reserved.
Permission is
granted to use and modify for
academic and
non-commercial purposes.
Dr. John Pais
Mathematics
Department-MICDS
E-mail:
pais@micds.org or pais@kinetigram.com
URL:
http://kinetigram.com/micds
_____________________________________