When I have an onset of chest pain and dyspnea I try to take rapid deap breaths and things get worse. Is hyperventilation cause or result of it?

Depends. Chest pain can make you feel anxious and breathe faster. Having anxiety and breathing faster can cause chest pain. The best suggestion is to be examined by your doctor for a more complete history and exam to give you the best answer. Good luck.