Fixed Points
Where motion stops or repeats itself. Equilibria organize everything around them, found by setting change to zero and tested for pull.
Why Does This Exist?
Training settles when an update reproduces its own parameters. A market rests when a price clears supply and demand. A processor settles when heat out equals heat in. Each is a fixed point: a state the rule maps to itself, so motion stops or repeats exactly.
Three questions matter. Existence asks whether one must be there. Computation asks how to land on it. Stability asks whether landing sticks or slides off. Existence without stability misleads: a point can exist and still repel every nearby orbit, in which case plain iteration never finds it. This page finds fixed points and types them. Verdicts on attraction belong to stability analysis, built on the continuity in limits and continuity.
The one idea you need first
For a continuous flow, solve . For a discrete map, solve , equivalently . Finding and keeping are separate jobs: solving locates candidates, while derivatives at the candidate decide whether neighbours approach or flee.
Think of It Like This
Thermostat ruts and canyon echoes
A thermostat set to 20 in a 20-degree room does nothing: the room maps to itself. Shout in a canyon and most pitches return shifted, except the one pitch that returns unchanged, which is the canyon's fixed tone. A dirt road's ruts steer loose wheels into themselves: each rut bottom is an attracting fixed point of steering, while the crown between two ruts is a repelling one that throws wheels either way.
Iteration is driving with loose hands. Start anywhere near a rut and the road pulls you in, but only into attracting ruts. Repelling crowns exist just as really, yet relaxed driving never finds them: you must place the wheel exactly and hold it. Where the analogy stops: theorems certify existence from shape, such as contraction or continuity on a closed ball, rather than from road feel.
How It Actually Works
For flows, fixed points solve , often where nullclines cross in the plane. Linearize there: the Jacobian votes attract or repel through its eigenvalues, with negative real parts pulling and positive parts pushing. Several isolated points can coexist, each owning a basin divided by separatrices.
For maps, iterate . A contraction with for some on complete space converges from any start, with error shrinking geometrically by each step. Newton's method converges quadratically near simple roots but needs good starts and a nonzero derivative. Typing is separate: attracting when neighbours converge, repelling when they flee, semi-stable when one side pulls and the other pushes, and non-hyperbolic when linearization goes silent and higher orders decide.
Worked example
Take the cosine map from in radians. The fixed point solves , the Dottie number . Here near the point, so cosine contracts and convergence is guaranteed.
Iterate by hand:
Six steps bracket 0.739 within 0.04, oscillating with shrinking swings. Contrast the flow with : fixed point has and repels, while fixed point has and attracts. One line, two points, opposite stability.
Code
The point is the check: run the iteration from the worked example with standard-library arithmetic only.
import math
def iterate_cosine(x0: float, steps: int) -> list[float]: xs: list[float] = [x0] for _ in range(steps): xs.append(math.cos(xs[-1])) return xs
seq = iterate_cosine(0.0, 6)print([round(x, 3) for x in seq])# -> [0.0, 1.0, 0.54, 0.858, 0.654, 0.793, 0.701]print(round(seq[-1], 2), round(0.739 - seq[-1], 3))# -> 0.7 0.038The printout matches the hand computation: 0.701 after six steps, within 0.038 of the Dottie number. Change the start to 2.0 and rerun: it lands in the same place, which is what global attraction looks like.
Watch Out For
Iterating toward a repeller and reading divergence as a bug
Plain iteration flees repelling fixed points exponentially. The point exists, the code is correct, and the orbit leaves anyway, because existence never promised attraction. Newton without damping does the same near singular Jacobians.
Symptom: orbits blow away from an analytically confirmed equilibrium, or Newton bounces between two values. Fix: linearize before iterating, bracket repellers with bisection or damped Newton, and never certify existence from convergence alone.
Assuming the fixed point you found is the only one
Multiple basins mean the start picks the point. Cosine is kind with one global attractor, but most nonlinear maps are not: different starts land on different points with no error raised. Stopping at first convergence reports one of several answers as the answer.
Symptom: another start lands somewhere else and both look converged. Fix: sample starts across the domain, deflate found roots when hunting more, and report basins alongside points rather than a single number.
The Quick Version
- Fixed points satisfy for flows or for maps, and organize nearby motion.
- Contraction guarantees convergence from any start; otherwise the start picks among basins.
- Cosine from 0 reaches 0.701 within six steps toward the Dottie point 0.739.
- The flow pairs a repeller at 0 with an attractor at 1 on one line.
- Existence never implies attraction: linearize before iterating and survey starts before claiming uniqueness.