\sum_{i}p_i\dot{q}_i-\sum_{i}P_i\dot{Q}_i-H+\mathcal{H}=\frac{dF}{dt}