Bottle cap race
Imagine flicking a bottle cap (a chapa) across a table. Its movement isn't perfectly smooth. It's driven forward by your push, slowed down by friction, and knocked off course by tiny bumps and imperfections on the surface. This simulation captures that complex motion using a stochastic ordinary differential equation.
The model describes the chapa's state at any instant through its position (
1. Stratonovich Form and Analytical Solution
An SDE in Itô form,
See stochastic ordinary differential equation#Stratonovich form.
In the SDE for velocity,
- The drift is
. - The diffusion is
.
Since the diffusion termis a constant, its derivative with respect to is zero:
Therefore, the correction term is zero, and the drift terms are identical,
This means the Itô and Stratonovich forms of this SDE are the same. The system in the Stratonovich sense is:
We can solve this system by first finding the solution for
1. Solving for Velocity
The SDE for
Starting with
The left side is the differential
Isolating
2. Solving for Position
The position is simply the integral of the velocity:
Substituting the expression for
This is the exact analytical solution for the position
2. Numerical Simulation Scheme
The Euler-Maruyama scheme is a simple and effective method for simulating this system. We discretize time into small steps of size
Let
- Initialize: Start with the initial conditions
and at time . Choose a small time step . - Iterate: For each step
: - Generate a random number
from a standard normal distribution, . - Update the velocity using the SDE's discretized form:
- Update the position using the last step's velocity (this is the standard explicit Euler method):
- Generate a random number
- Repeat: Continue the iteration until the desired final time is reached.
This scheme provides a sequence of points