The initial wavefunction has unit norm, since . On its nonzero half, with . A small domain qualification is important: the derivative jumps at zero, so the state is not in the operator domain of the Dirichlet Hamiltonian operator. Its finite energy expectation value is nevertheless defined by the quadratic form of a positive quantum Hamiltonian. The energy form of a half-well sine state gives
This is also the rigorous weak interpretation of the printed . Indeed the distributional second derivative is inside the well. The Dirac delta term pairs to zero because . One should not instead conclude that this state is an energy eigenstate from its equation on just the positive half.
Its coefficients in the full-well energy eigenstates are
For even , sine orthogonality gives and all other even coefficients zero. For , set and use . Product-to-sum integration then gives
Since these coefficients are , converges, confirming that the state has finite energy. With , the spectral expression is
The kinetic-energy quadratic form equals this spectral sum: expanding the weak derivative in the corresponding orthonormal cosine modes and using Parseval's identity gives . Equating it to the directly integrated value proves
In contrast, diverges, consistently showing why is not an ordinary square-integrable vector even though the energy expectation is finite.