Stored energy is proportional to voltage squared at fixed capacitance. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Start with the base energy
At 6 volts, the stored energy is 36 joules.
Ubase=36J
Double voltage
Raise the voltage to 12 volts while keeping capacitance the same.
Vchanged=12V
Energy scales with voltage squared
Because voltage is squared, doubling voltage multiplies stored energy by 4. The new energy is 144 joules.
Uchanged=4⋅36J=144J
Squaring voltage bends the pattern
Hold capacitance fixed. Doubling voltage from three to six makes four times the energy; doubling again from six to twelve does the same.