Where did that substitution come from?
If you want to understand maths, you really have to do it. I recommend going through these examples and using the substitutions given here as hints. Get a blank piece of paper, put your notes away and try to do these examples and see if you get the same answers as in class. If you don’t, write in the comments, and we can see where things may have gone astray.
I’ve been teaching integration by substitution, including by trig substitutions over the last few days, and a frequent question which a newbie substituter will ask is “how did you know to make that substitution?”. It’s a very reasonable question, and one that takes practice to build the correct intuition, but I’ll do my best to give some motivation now as to why we made some of the substitutions we made. We won’t solve the integrals, but we will motivate here why we make particular choices for substitutions.…