It is useful to have derivatives of the dispersion relation.
Horvath’s paper describes how we can calculate the spectrum term
from
and the derivative of the dispersion relation
:
So, with that motivation, we would like the derivatives of our
dispersion relations. You should autodifferentiate if that’s an option.
If not, here are derivations of each derivative:
Deep water:
Wolfram here.
Shallow water:
First we will need
:
With that identity, let’s proceed:
Wolfram here.
(Recall that
.)
Viscous deep water (Tessendorf version):
Wolfram here.
Viscous deep water (Horvath version):
Wolfram here.
Viscous shallow water (Tessendorf version):
FYI - use the Horvath version instead. This relation sucks.
We’ll want
:
Now we can proceed:
We can apply some transformations to get a common denominator and
agree with Wolfram:
Wolfram here.
Viscous shallow water (Horvath version):
Let’s try to corral this into a form closer to what Wolfram gives
us:
Wolfram here.
Divide numerator and denominator by
(or p in wolfram) to make them match.