dy/dt=[Acos(wt-kx)]'
=-Asin(wt-kx) *(wt-kx)'
=-Asin(wt-kx) *(w-kdx/dt)
=Aksin(wt-kx)dx/dt -Awsin(wt-kx)