To manage pain and swelling, apply ice packs to the affected area in intervals of 15 minutes during the first 24 hours. Take any prescribed pain medications as directed by your dentist and avoid strenuous activities that may increase swelling.