Skip to content

Lissajous2D

Systems / ODEs / Oscillatory systems

A planar curve from two harmonic motions: periodic for a rational frequency ratio and quasiperiodic otherwise.

continuous · ODE2 dimensionsoscillatory

Start here

Python
import tsdynamics as ts

system = ts.systems.Lissajous2D()
traj = system.run(final_time=20.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.

With an adaptive ODE solver, dt sets the output spacing; rtol and atol control local integration error. For a fixed-step solver, reduce dt to check numerical convergence.

state projection (x, y); playback follows arc length, not physical speed. 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
Finite-time / numerical estimate
$+5.551e-16,\; 0$
per time unit
Method and evidence

Benettin QR tangent dynamics

Finite-time estimate, not a convergence certificate. Response directions only; the forcing phase is not an extra state.

Settings

{
  "backend": "jit",
  "k": 2,
  "final_time": 400.0,
  "transient": 100.0,
  "dt": 0.1,
  "ic": [
    0.021269098688788436,
    -0.07679410959351636
  ],
  "rtol": 1e-09,
  "atol": 1e-12,
  "solver": "rk45"
}

Preparation

{
  "seed": 2022547635,
  "ic_policy": "declared/in-basin start, else seeded small ball"
}

Estimator runtime in the recorded environment: 0.11 s.

Kaplan–Yorke dimension
Not applicable: Explicit forcing: the response spectrum omits the forcing phase. An autonomous extension is needed for an attractor dimension.
Divergence ∇·f
Symbolic
$\nabla\!\cdot f = 0$
constant in the state
Equilibria / fixed points
Not applicable: The equations depend explicitly on time. A root of f(x, 0) is not an equilibrium of the forced system.
Recorded parameters and software
{
  "parameters": {
    "A": 1,
    "B": 1,
    "a": 3,
    "b": 2,
    "delta": 1.5707963267948966
  },
  "parameter_expressions": {
    "delta": "(1/2)*pi"
  },
  "state_dimension": 2,
  "explicit_time": true,
  "library_version": "6.0.3",
  "python": "3.14.8",
  "numpy": "2.4.4",
  "scipy": "1.17.1",
  "protocol_version": 1
}

Definition

\[ \begin{aligned} \dot{x} &= - A a \sin{\left(a t \right)} \\ \dot{y} &= - B b \sin{\left(b t + \delta \right)} \end{aligned} \]

Parameters

Symbol Default Role
A 1 amplitude along the x axis
B 1 amplitude along the y axis
a 3 frequency along the x axis
b 2 frequency along the y axis
delta (1/2)*pi phase shift of y relative to x

State variables: x, y

Explore further

Reference

J.-A. Lissajous (1857), 'Mémoire sur l'étude optique des mouvements vibratoires', Annales de Chimie et de Physique, 3e série, 51, 147–231 (historical planar construction; catalogue ODEs integrate its analytic derivatives, with a coordinate-wise extension for 3D). Original memoir

BibTeX
BibTeX
@misc{lissajous2d,
  title = {Lissajous2D system},
  note = {J.-A. Lissajous (1857), 'Mémoire sur l'étude optique des mouvements vibratoires', Annales de Chimie et de Physique, 3e série, 51, 147–231 (historical planar construction; catalogue ODEs integrate its analytic derivatives, with a coordinate-wise extension for 3D). [Original memoir](https://gallica.bnf.fr/ark:/12148/bpt6k34792z/f146.item)}
}