Integration by substitution
The chain rule differentiates a function of something more than x: the outer derivative times the derivative of the inside. For example,
So when something to integrate looks like that, a function of an inside times the inside's derivative, it came from the chain rule, and substitution takes it back.
The inside as u
Take
The inside is x squared plus 1, and its derivative, 2 x, stands beside it. Call the inside u. Its derivative, du/dx, is 2 x, and that is written as d u equals 2 x d x. So 2 x d x can be swapped for d u, and the whole integral becomes one in u:
Putting the inside back in for u gives the answer:
Differentiating it gives back the quantity x squared plus 1, cubed times 2 x, by the chain rule.
When a number is missing
The inside's derivative may be there without its number. In
the inside is u equals x squared, with d u equals 2 x d x, but there is only an x, not 2 x. So x d x is half of d u, and the half comes out in front:
1 over 2 times the integral of e to the power u d u equals e to the power u over 2 plus C
which is e to the power x squared over 2 plus C. The same works for sine of x squared or cosine of x squared times x. Only a missing number can be fixed this way: a missing x can't be moved out of the integral.
A fraction: g′ over g
When the top of a fraction is the derivative of its bottom, the bottom is the inside u, and what is left is 1 over u:
since the integral of 1 over u d u is ln of the absolute value of u, as in 1/x and ln|x|. Here x squared plus 1 is always positive, so the bars could be left out.
Look for an inside whose derivative stands beside it. Call the inside u, swap the derivative and dx for du, integrate in u, and put the inside back.