Q_j=-\frac{\partial U}{\partial q_j}