Hello. From the information you have provided , the swelling might be from third molar/ wisdom tooth eruption. PLEASE do visit the dentist, as they may suggest you to take an OPG (full mouth) radiograph to investigate the position of your third molar.
Health Tips
Do not self medicate at any circumstances. Do visit the dentist.