A sharing-loses-stored-energy scan holds the two capacitances fixed and varies the source voltage across three rows, checking that charge closes while the stored-energy gap delta-U = U_i - U_f grows row by row. The arithmetic is exact only for the stated capacitances, voltages, stored energies, energy losses, and rows in the ideal capacitor and ideal-switch model. Real circuits add ESR, switch on-resistance, parasitics, dielectric loss, switching-timing errors, probe/calibration limits, finite precision, and measurement uncertainty.
Charge conservation does not mean stored capacitor energy is conserved. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Sharing keeps charge but opens an energy ledger
The same source snapshots that conserve charge also compute initial and final stored energy.
Ui=243JUf=162J
Larger initial voltage makes a larger dissipated difference
Every row conserves charge first, then compares the initial and final stored energy.