Skip to content

DoubleWell

Systems / SDEs / Noise-driven systems

A particle in a bistable potential driven by noise — noise-induced switching between the two wells.

stochastic · SDE1 dimensionswitchingbistable

Start here

Python
import tsdynamics as ts

system = ts.systems.DoubleWell()
traj = system.run(final_time=200.0, dt=0.01, seed=0)
ts.plot(traj)

traj.t contains the sample times and traj.y the state array; system.info shows the defaults. In a notebook the last line displays the plot. In a Python script, call .show() on it to open a window, or .save("trajectory.svg") to export it.

seed=0 fixes the noise realization. For SDEs, dt controls both the numerical step and output spacing; compare smaller steps before interpreting a statistic.

one seeded sample path (t, x); playback follows recorded time, not a distribution. Interactive: drag to rotate; use the play/pause control in the viewer.

This finite simulation illustrates one initial condition and view. The diagnostics below report their own inputs and observation windows.

Dynamics at the default parameters

Lyapunov exponents measure separation rates along an orbit. The Kaplan–Yorke dimension is derived from those rates, not a direct geometric measurement. Finite runs depend on the initial condition, transient and observation window; a value near zero needs a convergence check.

Lyapunov spectrum
Not computed: A stochastic Lyapunov exponent needs a shared-noise tangent estimator; the deterministic spectrum estimator does not implement that method.
Kaplan–Yorke dimension
Not computed: A numerical Lyapunov spectrum is required.
Drift Jacobian trace
Symbolic
$\nabla\!\cdot f = a - 3 b x^{2}$
state-dependent
Method and evidence

Trace of the drift Jacobian; stochastic path contraction also depends on diffusion.

Equilibria / fixed points
Not applicable: Sample paths have no deterministic equilibria; drift zeros describe a different object.
Recorded parameters and software
{
  "parameters": {
    "a": 1.0,
    "b": 1.0,
    "sigma": 0.5
  },
  "parameter_expressions": {},
  "state_dimension": 1,
  "explicit_time": false,
  "library_version": "6.0.3",
  "python": "3.14.8",
  "numpy": "2.4.4",
  "scipy": "1.17.1",
  "protocol_version": 1
}

Definition

\[ \begin{aligned} dx &= \left(a x - b x^{3}\right)\,dt + \left(\sigma\right)\,dW_{x} \end{aligned} \]

Parameters

Symbol Default Role
a 1 curvature of the potential at the origin (barrier / well locations)
b 1 quartic stiffness confining the wells
sigma 0.5 noise amplitude (sets the escape rate)

State variables: x

Explore further

Reference

Kramers (1940), Physica 7, 284-304
doi:10.1016/S0031-8914(40)90098-2

BibTeX
BibTeX
@misc{doublewell,
  title = {DoubleWell system},
  note = {Kramers (1940), Physica 7, 284-304},
  doi = {10.1016/S0031-8914(40)90098-2}
}