How to Choose an Integration Method
Most integration mistakes are not algebra mistakes. They happen earlier, when you pick a method that does not fit the integral and spend ten minutes going nowhere. Choosing well is a skill, and it comes from asking the same few questions in the same order.
If you want to check a result along the way, the integral calculator solves indefinite and definite integrals step by step and can verify your answer. This article is a map of the techniques: how to decide between them, and what to do when none of them works. The full workflow from problem to checked answer is in How to Solve Integrals Step by Step.
The Decision Flow
Go through these questions in order and stop at the first one that fits. The order matters: the early steps are cheap, and the later ones take more work.
Can you simplify the integrand? Expand brackets, split a fraction into separate terms, rewrite roots as powers, or apply a trigonometric identity. For example,
\int \frac{x^2+1}{x}\,dx = \int \left(x + \frac{1}{x}\right)dx = \frac{x^2}{2} + \ln|x| + C.
Many integrals that look hard are only a rewrite away from this form.
Is it a table integral? Compare it with the basic formulas: powers, e^x, \sin x, \cos x, \dfrac{1}{x}, \dfrac{1}{1+x^2} and so on. If the inner function is linear, such as \cos(3x) or e^{2x+1}, a quick substitution u = ax + b reduces it to the table form.
Is there an inner function whose derivative also appears? If the integrand looks like f(g(x))\cdot g'(x), up to a constant factor, use Integration by Substitution.
Is it a product of two unrelated kinds of functions? A polynomial times e^x, \sin x or \cos x is the classic case. A single function with a simpler derivative, such as \ln x or \arctan x, also qualifies. Use Integration by Parts.
Is it a ratio of two polynomials? If the degree of the numerator is at least the degree of the denominator, divide first. Then factor the denominator and use Partial Fractions.
Does it contain powers or products of \sin, \cos, \tan or \sec? Expressions like \sin^3 x or \sin(2x)\cos(3x) are handled with Trigonometric Integrals.
Is there a square root of a quadratic with no helpful substitution? Expressions such as \sqrt{a^2 - x^2}, \sqrt{a^2 + x^2} and \sqrt{x^2 - a^2} call for Trigonometric Substitution.
If you reach the end and nothing fits, see the last section of this article.
Quick Reference Table
| Form of the integrand | First method to try | Where to read more |
|---|---|---|
| Sums, brackets, fractions that split | Simplify, then table formulas | How to Solve Integrals Step by Step |
| f(g(x))\,g'(x) | Substitution | Integration by Substitution |
| x^n e^x, x^n\sin x, x^n\cos x, \ln x, \arctan x | Integration by parts | Integration by Parts |
| \dfrac{P(x)}{Q(x)} | Partial fractions | Partial Fractions |
| \sin^m x\cos^n x, \tan^n x, \sec^n x, \sin(mx)\cos(nx) | Trigonometric identities | Trigonometric Integrals |
| \sqrt{a^2 - x^2}, \sqrt{a^2 + x^2}, \sqrt{x^2 - a^2} | Trigonometric substitution | Trigonometric Substitution |
| e^{-x^2}, \dfrac{\sin x}{x}, x^x | No elementary antiderivative | Non-Elementary Integrals |
The table gives the method to try first, not a guarantee. The examples below show where the first guess is not the only good one, or not the right one.
Four Cases Where the Choice Is Not Obvious
Example 1: Three methods for one integral
Take \displaystyle\int \sin x\cos x\,dx.
With u = \sin x, we get du = \cos x\,dx and
\int u\,du = \frac{u^2}{2} + C = \frac{\sin^2 x}{2} + C.
With u = \cos x, we get du = -\sin x\,dx and
-\int u\,du = -\frac{\cos^2 x}{2} + C.
With the identity \sin x\cos x = \tfrac12\sin 2x we get
\frac12\int \sin 2x\,dx = -\frac{\cos 2x}{4} + C.
These look different, but they are the same family of functions. Since \sin^2 x = 1 - \cos^2 x, the first two differ by the constant \tfrac12. Since \cos 2x = 2\cos^2 x - 1, the third equals -\tfrac{\cos^2 x}{2} + \tfrac14, which differs from the second by a constant as well.
Check: \dfrac{d}{dx}\dfrac{\sin^2 x}{2} = \sin x\cos x. When two correct answers differ, the difference is always a constant, absorbed into +C.
Example 2: Substitution and parts both work
Take \displaystyle\int x\sqrt{x+1}\,dx.
By substitution. Let u = x + 1, so x = u - 1 and dx = du:
\int (u-1)\,u^{1/2}\,du = \int \left(u^{3/2} - u^{1/2}\right)du = \frac25 u^{5/2} - \frac23 u^{3/2} + C.
Back in x:
\frac25 (x+1)^{5/2} - \frac23 (x+1)^{3/2} + C.
By parts. Let u = x and dv = \sqrt{x+1}\,dx, so du = dx and v = \tfrac23 (x+1)^{3/2}:
\frac23\, x\,(x+1)^{3/2} - \frac23\int (x+1)^{3/2}\,dx = \frac23\, x\,(x+1)^{3/2} - \frac{4}{15}(x+1)^{5/2} + C.
Factoring out (x+1)^{3/2}, both results become
\frac{2}{15}(x+1)^{3/2}(3x-2) + C.
Check: differentiating the first form gives (x+1)^{3/2} - (x+1)^{1/2} = (x+1)^{1/2}\big((x+1) - 1\big) = x\sqrt{x+1}.
Substitution is a little shorter here, but parts is just as valid. If you are stuck with one, switch to the other. You can check this step by step in the integral calculator. The form it shows may differ from yours by a constant, which is fine.
Example 3: A rational function that does not need partial fractions
Compare \displaystyle\int \frac{x}{x^2+1}\,dx and \displaystyle\int \frac{1}{x^2-4}\,dx. Both are ratios of polynomials, but they need different methods.
The first has the derivative of the denominator in the numerator, so substitution is enough. With u = x^2 + 1, du = 2x\,dx:
\frac12\int \frac{du}{u} = \frac12\ln(x^2+1) + C.
The second has a denominator that factors, so partial fractions apply:
\frac{1}{x^2-4} = \frac14\left(\frac{1}{x-2} - \frac{1}{x+2}\right),
\int \frac{1}{x^2-4}\,dx = \frac14\ln|x-2| - \frac14\ln|x+2| + C = \frac14\ln\left|\frac{x-2}{x+2}\right| + C.
Check: \dfrac14\left(\dfrac{1}{x-2} - \dfrac{1}{x+2}\right) = \dfrac14\cdot\dfrac{4}{x^2-4} = \dfrac{1}{x^2-4}.
A third relative, \displaystyle\int \frac{1}{x^2+4}\,dx, has a denominator that does not factor over the real numbers. It is a table integral: \dfrac12\arctan\dfrac{x}{2} + C. The lesson is to look at the denominator before choosing the method.
Example 4: Two roots, two different methods
Compare \displaystyle\int x\sqrt{4-x^2}\,dx and \displaystyle\int \sqrt{4-x^2}\,dx. The only difference is a factor of x.
In the first, the factor x is, up to a constant, the derivative of 4 - x^2. Substitution works. With u = 4 - x^2, du = -2x\,dx:
-\frac12\int u^{1/2}\,du = -\frac13 u^{3/2} + C = -\frac13(4-x^2)^{3/2} + C.
Check: \dfrac{d}{dx}\left[-\dfrac13(4-x^2)^{3/2}\right] = -\dfrac13\cdot\dfrac32(4-x^2)^{1/2}\cdot(-2x) = x\sqrt{4-x^2}.
In the second, there is nothing to match, so we use trigonometric substitution. Let x = 2\sin\theta, so dx = 2\cos\theta\,d\theta and \sqrt{4-x^2} = 2\cos\theta for -\tfrac{\pi}{2} \le \theta \le \tfrac{\pi}{2}:
\int 4\cos^2\theta\,d\theta = 2\theta + \sin 2\theta + C.
Since \theta = \arcsin\dfrac{x}{2} and \sin 2\theta = 2\sin\theta\cos\theta = \dfrac{x\sqrt{4-x^2}}{2}:
\int \sqrt{4-x^2}\,dx = 2\arcsin\frac{x}{2} + \frac{x\sqrt{4-x^2}}{2} + C.
Check: the derivative of the first term is \dfrac{2}{\sqrt{4-x^2}}, and the derivative of the second is \dfrac{2-x^2}{\sqrt{4-x^2}}. Their sum is \dfrac{4-x^2}{\sqrt{4-x^2}} = \sqrt{4-x^2}.
When No Method Works
Sometimes you try everything and nothing works. There are two possible reasons: you have not found the right trick yet, or the integral has no antiderivative that can be written with elementary functions.
The second case is more common than students expect. The integrals
\int e^{-x^2}\,dx, \qquad \int \frac{\sin x}{x}\,dx, \qquad \int x^x\,dx
have no elementary antiderivative. This is a proven fact, not a failure of technique. It does not mean the definite integral has no value. For example,
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}.
Before you decide an integral is non-elementary, make sure you have tried simplifying, substitution and parts, since they cover most textbook cases. If they all fail, read Non-Elementary Integrals to see what to do next.