Reiji's Explorationsin Sound & Structure

August 1, 2026

Newton’s Method Behavior Simulator

Exploring Convergence, Irregular Motion, and Cyclic Behavior in Desmos

Overview:
This project is a simulator implemented in Desmos to explore how Newton’s method behaves when applied to different functions and different initial guesses.

Rather than using Newton’s method only as a procedure for calculating roots, Reiji created the simulator in order to observe what happens to the sequence of approximations itself. By moving the initial value \(x_0\), changing the function \(P(x)\), and displaying successive iterations on the \(x\)-axis, he investigated cases in which the approximations converge toward a root, make unexpectedly large jumps, appear to move irregularly, or become trapped in periodic cycles.

The project began when he attempted to calculate repeated Newton iterations by hand. Because examining many different cases quickly became what he described as “a nightmare of long calculations”, he implemented the process in Desmos so that he could experiment with many functions and initial values and observe their behavior directly.

Note: All content on this page is originally explained by Reiji in Japanese. The English version is translated by AI and structured by a parent, with Reiji's final approval.

Reiji's Words and Ideas

Images

Polynomial graph used in the Newton's method behavior simulator

Polynomial Used for Observing Newton’s Method

The graph shows \[ P(x)=5x^5-2x^4-6x^3+x^2+x-1. \] The numbered positions along the \(x\)-axis show successive estimates generated by Newton’s method from the chosen initial value.

Newton's method iteration from an initial estimate of negative 0.54

Iteration from \(x_0=-0.54\)

With the initial estimate \[ x_0=-0.54, \] the 32nd iteration gives \[ x_{32}\approx1.22595521, \] placing the estimate close to the real root.

Newton's method iteration from an initial estimate of 2.086

Iteration from \(x_0=2.086\)

When the initial estimate is \[ x_0=2.086, \] the 32nd iteration reaches approximately \[ x_{32}=1.225829, \] essentially coinciding with the real root.

Newton's method iteration from an initial estimate of negative 1.6

A Distant 32nd Iteration from \(x_0=-1.6\)

With \[ x_0=-1.6, \] the 32nd estimate is \[ x_{32}\approx-7.82810773, \] far from the visible root at this stage. From these 32 iterations alone, it is not yet known whether continued iteration would eventually converge to a root, enter an attracting cycle, or follow some other path.

Newton's method simulator applied to a trigonometric function with infinitely many roots

Exploring a Trigonometric Function with Infinitely Many Roots

This screen shows the simulator applied to \[ P(x)=\sin(x)+\frac12\sin(2x). \] The initial estimate can be moved interactively to observe how Newton’s method behaves near roots, extrema, and points where the derivative becomes very small or zero.

Whiteboard notes showing Newton's method calculations and sketches

Whiteboard Calculations and Sketches

These notes were written by Reiji while explaining the simulator. They show the derivative of the example polynomial, the Newton iteration formula, the first calculations beginning from \(x_0=-0.54\), and sketches used to think about tangent lines and the movement of successive estimates.

Output

Newton’s Method Behavior Simulator

An interactive Desmos simulator for observing repeated Newton iterations with different functions and initial estimates.

Open the simulator in Desmos

Application Used

Desmos Graphing Calculator

Used to define the function and its derivative, calculate 32 successive Newton iterations, display each estimate on the \(x\)-axis, and interactively change the initial value.

Method

Newton’s Method

Repeated numerical approximation using \[ x_{n+1}=x_n-\frac{P(x_n)}{P'(x_n)}. \]

AI Assistant’s Notes and Inferences

The central value of this project is not simply that Newton’s method was implemented correctly. More importantly, the algorithm was turned into an experimental system for observing the dynamics of repeated numerical approximation.

  • Reiji’s stated purpose was to understand Newton’s method by observing its behavior rather than only learning the formula. This shifts the activity from carrying out a prescribed numerical procedure to investigating how an iterative process behaves under changing conditions.
  • The decision to build the simulator emerged directly from a limitation encountered during manual calculation. Repeated calculations quickly became impractical when many initial values and different functions were to be compared. Implementing the process in Desmos therefore allowed the same mathematical rule to become an experimental object that could be manipulated repeatedly.
  • The displayed sequence \[ x_0,x_1,x_2,\ldots,x_{32} \] effectively treats Newton’s method as an iterated map. A root corresponds to a fixed point of this iteration, while other starting values may produce long transients, large jumps, or periodic behavior.
  • The example \[ P(x)=x^3-2x+2 \] is particularly significant. From \(x_0=0\), Newton’s method produces the exact periodic orbit \[ 0\rightarrow1\rightarrow0\rightarrow1\rightarrow\cdots. \] This demonstrates directly that Newton’s method is not guaranteed to converge to a root from every starting value.
  • Reiji also explored how changing the initial value around this example altered the observed behavior. His observation of an approximate boundary near \(0.133333\ldots\) should be understood as an experimentally observed transition within the range he tested, rather than as a formally proved mathematical boundary.
  • His use of the phrase “chaotic-looking” is also important to interpret carefully. The simulator clearly reveals irregular and highly sensitive-looking numerical behavior, especially when an iteration approaches a point where the derivative is small. However, the project does not attempt to establish chaos in the formal dynamical-systems sense.
  • The trigonometric example \[ P(x)=\sin(x)+\frac12\sin(2x) \] makes another structural feature of Newton’s method visible. At \[ x=-\frac{\pi}{3}, \] the derivative is zero. Because \(P'(x)\) appears in the denominator of Newton’s formula, the next iteration is undefined at the exact point and can become extremely large for nearby values where the derivative is very small.
  • The case beginning from \[ x_0=-1.6 \] is also useful because the project intentionally does not infer a final outcome from only 32 observed iterations. At the 32nd step the estimate is far from the root, but the simulator as configured does not determine from that fact alone whether later iterations would converge, enter a periodic cycle, or exhibit another form of behavior. Preserving that uncertainty is consistent with the exploratory nature of the work.
  • For a project created at age 10, a particularly notable feature is the transition from a textbook numerical method to questions about iteration, initial-value dependence, periodic orbits, derivative singularities, and the visual behavior of an algorithm. These questions connect naturally with ideas that are later formalized in numerical analysis and dynamical systems.

In summary, this simulator transforms Newton’s method from a static formula into something that can be experimented with. By varying functions and initial estimates and observing the sequence of generated points, the project investigates not only when the method succeeds in finding a root, but also what the iteration itself can do when convergence is not immediate or straightforward.