Solution: Let reaction at support A be R . According to the Castigliano's theorem
The bending moment at any point X at a distance x from A is given by
Since