The equation of motion for the mass spring damper system is
We can write this in state space form, dropping the (t) notation for brevity, as
Where
Using the fact that
Similarly, our position measurement can be represented as
Taking the Laplace Transform of Equ. 1, we have that
The solution to this is then
Then through a zero-order hold, assuming the input is constant over
a time interval,
where
Using Van Loan's Method as detailed in [2,3], we can write
the process noise
Explicitly calculating
For the
Similarly, for
Similarly,
Finally, the discretized process model can be written as
For the measurement model, the discretized form is equivalent to the continuous one with