A standing wave is produced on a string of length l given by y = asin(kx)cos(wt) fixed at both ends. Find the total energy.