A dentist may take an x-ray of your jaw to determine if you have a cavity.