In an oscillating LC circuit, the maximum energy stored in the capacitor during one cycle is equal to the total stored energy (U) in the circuit.
This is because the total energy oscillates between the capacitor and the inductor, with the total energy remaining constant in an ideal, lossless LC circuit.