“There are a number of steps to follow when you come across an integration problem that requires trig substitution. The first step is to cry. The second step is to re-evaluate your life and wonder what you did to deserve this.”
Professor Leslie Buck (via mathprofessorquotes)
I don’t remember much of my math courses, but that sounds like solid advice.