At half the amplitude, spring and kinetic energy share the total. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.

highlighted = computed this step

Half displacement gives one-quarter spring energy

At position 2 metres, the checked spring energy is 4 joules.

U=12222=4 JU={1\over 2}\cdot 2\cdot 2^{2}=4\ \mathrm{J}
Midpoint spring energyThe spring energy is recomputed from x.k=2 N/mA=4 mx=2 mE=16 JU=4 JK=12 J

The rest of the total is kinetic energy

The total 16 joules minus 4 joules leaves 12 joules of kinetic energy.

16+(4)=12 J16+(-4)=12\ \mathrm{J}
Midpoint energy splitThe visible split conserves the total.k=2 N/mA=4 mx=2 mE=16 JU=4 JK=12 J