The pointwise Hellmann-Feynman theorem