If the strain energy of a linearly elastic structure can be expressed as a function of generalised force Q i then the partial derivative of the strain energy with respect to generalised force gives the generalised displacement q i in the direction of Q i.