Додаток: недоліки методу Ньютона

Before this, knowМетод Ньютона для знаходження нулів функцій

Read · 1 min

So there are 2 scenarios when Newton's Method does not work:

  1. When it oscillates: This means that you guessed a point that will not lead to a root. In other words, the points you get will form a pattern and repeat themselves over and over again.

  2. When you end up at a different root: This means that you guessed in such a way that you ended up with a root other than what you desired. So, did Newton's Method help you find your root? No!

Video · + 1 min read

(Videos) Newton's Method Example

by PatrickJMT

Here's a video by patrickJMT where he goes over some more examples using Newton's Method.

The problem he looks at is:

Compute two iterations of Newton's method for the given function and indicated initial guess: f(x)=x2−8, x1=3f(x)=x^2-8,\ x_1=3

xn+1=xn−f(xn)f′(xn)xn+1=xn−xn2−82xn\begin{align} x_{n+1}&=x_n-\frac{f(x_n)}{f'(x_n)}\\ x_{n+1}&=x_n-\frac{x_n^2-8}{2x_n} \end{align}

Let's do the first iteration. x2=x1−f(x1)f′(x1)x2=3−32−82(3)x2=176\begin{align} x_{2}&=x_1-\frac{f(x_1)}{f'(x_1)}\\ x_{2}&=\color{red}{3}-\frac{\color{red}{3}^2-8}{2\color{red}{(3)}}\\ x_{2}&=\frac{17}{6} \end{align}

Now the second iteration. x3=x2−f(x2)f′(x2)x3=176−(176)2−82(176)x3≈2.82843\begin{align} x_{3}&=x_2-\frac{f(x_2)}{f'(x_2)}\\ x_{3}&=\color{red}{\frac{17}{6}}-\frac{\color{red}{(\frac{17}{6})}^2-8}{2\color{red}{(\frac{17}{6})}}\\ x_{3}&\approx2.82843 \end{align}

Here's another video with another example.

Apply two iterations of Newton's Method to approximate the xx-value of a point of intersection of these two functions using the given initial guess: f(x)=x2−4, g(x)=2x−3, x1=0f(x)=x^2-4,\ g(x)=2x-3,\ x_1=0 What is the value of x3x_3?

If we wanted to find the intersection of these two functions we would set them equal to each other. x2−4=2x−3x^2-4=2x-3 What Newton's Method does is look for where the function equals zero. So we can rewrite this as: x2−2x−1=0x^2-2x-1=0

Now we just apply Newton's Method do our new function which we'll call h(x)h(x). xn+1=xn−h(xn)h′(xn)xn+1=xn−xn2−2xn−12xn−2\begin{align} x_{n+1}&=x_n-\frac{h(x_n)}{h'(x_n)}\\ x_{n+1}&=x_n-\frac{x_n^2-2x_n-1}{2x_n-2} \end{align}

The first iteration gives us: x2=x1−h(x1)h′(x1)x2=0−02−2(0)−12(0)−2x2=−12\begin{align} x_{2}&=x_1-\frac{h(x_1)}{h'(x_1)}\\ x_{2}&=\color{red}{0}-\frac{\color{red}{0}^2-2\color{red}{(0)}-1}{2\color{red}{(0)}-2}\\ x_2&=-\frac12 \end{align}

The second iteration give us: x3=x2−h(x2)h′(x2)x3=−0.5−(−0.5)2−2(−0.5)−12(−0.5)−2x3=−512\begin{align} x_{3}&=x_2-\frac{h(x_2)}{h'(x_2)}\\ x_{3}&=\color{red}{-0.5}-\frac{\color{red}{(-0.5)}^2-2\color{red}{(-0.5)}-1}{2\color{red}{(-0.5)}-2}\\ x_3&=-\frac{5}{12} \end{align}

Here's one more video on Newton's Method. This one is to show you how this method can fail.

Given the following equation and initial guess, why would Newton's Method fail to approximate a solution? f(x)=(x−2)2−1; x1=2f(x)=(x-2)^2-1;\ x_1=2

We want to start at an xx that gives us something close to zero. If we plug in x=2x=2 we get out f(2)=−1f(2)=-1 which is close. So why will this not work? Let's look at the graph.

Newton's Method looks at the tangent line at the point we choose. We then want to see where this tangent line hits the xx-axis because that place becomes our new xx value. But this point gives us a horizontal tangent line which doesn't hit the xx-axis.

Let's see what would happen if we didn't notice this and instead jumped right in to using the method.

xn+1=xn−f(xn)f′(xn)xn+1=xn−(xn−2)2−12(xn−2)\begin{align} x_{n+1}&=x_n-\frac{f(x_n)}{f'(x_n)}\\ x_{n+1}&=x_n-\frac{(x_n-2)^2-1}{2(x_n-2)} \end{align}

So our first iteration yields: x2=x1−f(x1)f′(x1)x2=2−(2−2)2−12(2−2)x2=2−−10\begin{align} x_{2}&=x_1-\frac{f(x_1)}{f'(x_1)}\\ x_{2}&=\color{red}{2}-\frac{(\color{red}{2}-2)^2-1}{2(\color{red}{2}-2)}\\ x_2&=2-\frac{-1}{0} \end{align}

And we all know we can't divide by zero.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems