This is a textbook case of SENSITIVITY (a sharp sensation caused by eating cold,sweet,hot),and it shows tooth is still alive and caries have reached till dentin the inner yellow layer,for that you have to visit dentist.
Generally teeth whitening is done in front teeth canine to canine ,so it primarily does not affect the WHITENING you are seeking
Next Steps
But you should priorities the cavity then think about whitening
Health Tips
Brush twice daily if you are not,one in the morning and one in the night after meal,use soft toothbrush and change it after Every 3 months(coz it usually wore down around this time)search on YouTube
MODIFIED BASS TECHNIQUE and do it accordingly.
HAVE A GOOD SMILE