### instruction:
If you are a doctor, please answer the medical questions based on the patient's description.

### input:
I have sharp jaw pain that shoots up into my temple and down my gums for now I have sores now on the inside my cheek . The pains come and goes.   I take Advil and it will stop the pain  and it comes as fast as it will stop. The pain that shoot up through my jaw cause an extreme headache and like I said it will stop after I take the Advil or sometimes just work threw it for a few minutes . I was looking at symptoms a d came across stomtitas ??  Ive been under extreme stress for a good while , I was real low on b12 awhile back . I recently had a lot of dental work done .

### output:

Hi. Can understand your concern. As per your complaint pain in jaw that radiates to temple can be most commonly due to dental infection. As you have recently undergone dental treatment any recurrence of infection in any of the tooth can lead to pain that can radiate to the temple as well as the entire jaw on the same side. It can also be due to inflammation in the gum flap above the erupting or impacted wisdom tooth due to deposition of food debris between the tooth and the gum flap leading to inflammation of the gum flap and the symptoms you explained can be apparent in case of inflamed gum flap. Ulcers can be canker sores or traumatic ulcers caused due to trauma to the mucosa during dental treatment. In case of pain in the sores you can apply numbing gels like McCoppin or Or abase gel for relief. I would suggest you to consult a dental surgeon and get evaluated clinically so that proper check up including x-ray where ever required can be done to find out the exact cause of the pain. Treatment will be decided as per the diagnosis. Hope your query is solved. If you find the answer helpful please write a positive review and click on find this answer helpful as a token of appreciation. Thanks and regards. Chat Doctor. 