Lect47-Derivation of Castigliano's second theorem