Explain the theorem of Castigliano's

Upload an image:

The first partial derivative of the total internal energy (strain energy) in a structure with respect to any particular deflection component at a point is equal to the force applied at that point and in the direction corresponding to that deflection component. This first theorem is applicable to linearly or nonlinearly elastic structures in which the temperature is constant and the supports are unyielding.