\int 3x^2 dx means to find the function whose derivative with respect to x is 3x^2.
Basic rules for integration
Constant factors can be pulled out of the integral:
The sum of integrals is equal to the integral of a sum:
The integral of a constant a with regards to \dx is ax + c:
Integrating polynomials
Terms are integrated separately, much like how terms are differentiated separately during differentiation.
Integration by substitution
This is analogous to the chain rule for differentiation.
Substitute a function f(x) with u, replace dx with du such that the equation is equal to the original, then integrate, and finally replace u with f(x).
For example, to integrate the following equation:
Start by integrating both terms separately, pulling out any constant factors:
We can’t integrate the product in the second integration directly. Instead, we temporarily substitute the inner expression x^2 - 2x + 7, calling it u, and we now integrate the second integration with respect to du:
This isn’t quite right though, because we don’t know that \d{u} is equal to \dx. We also want to be removing the (x-1) factor at the same time. Find out what du is by differentiating our expression u and then manipulating the equation until \d{u} = (x-1)\dx:
Now we can see that the (x-1)\dx in our second integration can be replaced with \frac{1}{2}\d{u} (pulling the \frac{1}{2} constant factor out of the integration for tidiness):
Now integrate, remembering to add c (since c is a random constant, any multiple of c is equal to c):
Substitute u for our original expression x^2 - 2x + 7, and then simplify to get the final answer: