- #1

sara_87

- 763

- 0

## Homework Statement

I read that the Newton method for finding roots of an equation doesn't always work.

How do I know whether it works or not for a given equation?

## Homework Equations

## The Attempt at a Solution

For an example, consider:

f(x) = 1/(x

^{2}-1)+1/(x

^{2}-4) - x

^{-1}

When I try to solve this using programming, I get 2.9642 for some initial guesses but if I put the initial guess as, say, 5 I get that the root is -inf

I don't understand why.

And also for other examples I either get x=0 after 0 steps (in the Newton method) or I get x=inf.

Thank you