A simply supported beam of length L is subjected to loads that produce a symmetric deflection curve with maximum deflection at the midpoint of the span. How much strain energy U is stored in the beam if the deflection curve is
(a) a parabola, or
(b) a half wave of a sine curve?