In short
Three patterns show up so often that they have their own shortcuts. First, e^{ax}\sin(bx) and e^{ax}\cos(bx) integrate by the cyclic trick: apply by parts twice, the integral reappears, solve algebraically. Second, any integrand of the form e^x(f(x) + f'(x)) integrates to e^x f(x) — no by parts needed. Third, integrals like \int \sin^n x\,dx are handled by a reduction formula that drops the exponent by two each step.
Integration by parts gives you a general tool, but three particular patterns are so important that the smart thing is to learn them as named shortcuts and stop re-deriving them each time. Each shortcut is a one-line consequence of the by-parts formula, and each one lets you skip steps that would otherwise take two or three passes.
Take \int e^{2x}\sin(3x)\,dx. If you try by parts naively, you get another integral — \int e^{2x}\cos(3x)\,dx — that is just as hard. Try again on that, and the original comes back. At first it looks like an infinite regress. But the regress closes: you can solve the repeating integral algebraically. This is the first shortcut.
Or take \int e^x(\sin x + \cos x)\,dx. Notice that \cos x is the derivative of \sin x. The integrand is e^x(f + f') with f = \sin x. The answer is e^x \sin x + C — you can write it down by inspection. This is the second shortcut, and it makes a whole family of integrals trivial.
Third: \int \sin^5 x\,dx. Do it by parts once, and you get an equation that expresses \int \sin^n x\,dx in terms of \int \sin^{n-2} x\,dx. Apply the formula repeatedly until the exponent is 1 or 0, and you are done. This is a reduction formula, and every power-of-a-trig-function integral has one.
This article covers all three.
Shortcut 1: the cyclic trick for e^{ax}\sin(bx) and e^{ax}\cos(bx)
Start with the derivation, since the shortcut is just the result of following the derivation once.
Let I = \int e^{ax}\sin(bx)\,dx. Apply by parts with u = \sin(bx) and dv = e^{ax}\,dx:
Call the new integral J = \int e^{ax}\cos(bx)\,dx. Apply by parts to J with u = \cos(bx) and dv = e^{ax}\,dx:
Now substitute J back into the first equation:
The original I has returned. Move it to the left:
Multiply both sides by \frac{a^2}{a^2 + b^2}:
That is the boxed formula. The same computation with \cos(bx) instead of \sin(bx) gives the twin formula.
The exponential-times-trig formulas
Both answers share the same denominator a^2 + b^2 — and the numerator is always e^{ax} times a sign-adjusted linear combination of \sin(bx) and \cos(bx). Memorise the structure, not the coefficients: you can always recover them from one pass of by parts.
A quick example on the first formula
Example 1: $\int e^{2x}\sin(3x)\,dx$
Step 1. Identify a and b. Here a = 2 and b = 3, so a^2 + b^2 = 4 + 9 = 13. Why: the denominator in the formula is always a^2 + b^2, so finding it is the first thing to do.
Step 2. Plug into the formula.
Why: the numerator is e^{ax} times (a\sin(bx) - b\cos(bx)), directly from the boxed formula.
Step 3. Verify by differentiating. Call the answer F(x). Then
The cosine terms cancel, the sine terms collect to 13\sin(3x), and dividing by 13 leaves exactly the integrand. Why: the verification is worth doing once; if the sign is wrong on the cosine term, the cosines will not cancel and you will catch the bug immediately.
Result: \int e^{2x}\sin(3x)\,dx = \dfrac{e^{2x}\bigl(2\sin(3x) - 3\cos(3x)\bigr)}{13} + C.
Shortcut 2: the e^x(f + f') rule
There is a tidy rule that lets you read off the antiderivative of any integrand that has the shape e^x \cdot [f(x) + f'(x)].
Claim. \int e^x\bigl[f(x) + f'(x)\bigr]\,dx = e^x f(x) + C.
Proof. Just differentiate the right side and check.
That is the integrand. Done.
The rule is really the product rule for (e^x \cdot f)', read backward. Anything of the form e^x(\text{function} + \text{derivative of that function}) integrates to e^x times the function.
The practical use is pattern recognition. When you see e^x multiplied by a sum of two terms, check whether one of the terms is the derivative of the other. If yes, use the rule; if no, you have to fall back on something else.
Example 2: $\int e^x\bigl(\tan x + \sec^2 x\bigr)\,dx$
Step 1. Check for the f + f' pattern. Let f(x) = \tan x. Then f'(x) = \sec^2 x. Why: the integrand is e^x times (\tan x + \sec^2 x), and the second term really is the derivative of the first. The pattern matches.
Step 2. Apply the rule.
Why: nothing to do — the answer is immediate once you identify f.
Step 3. Verify.
Matches the integrand.
Result: \int e^x\bigl(\tan x + \sec^2 x\bigr)\,dx = e^x \tan x + C.
More examples, presented without the full box because the point is to see the pattern-matching:
-
\int e^x\left(\frac{1}{x} - \frac{1}{x^2}\right)\,dx. Note that \frac{-1}{x^2} is the derivative of \frac{1}{x}. So f = \frac{1}{x}, and the answer is \frac{e^x}{x} + C.
-
\int e^x\left(\sin x + \cos x\right)\,dx. Since \cos x is the derivative of \sin x, take f = \sin x, and the answer is e^x \sin x + C.
-
\int e^x\left(\ln x + \frac{1}{x}\right)\,dx. Since \frac{1}{x} is the derivative of \ln x, take f = \ln x, and the answer is e^x \ln x + C.
Each of these would take two or three applications of by parts if you did not recognise the shortcut. That is the value of the rule — not that it extends the class of integrals you can compute, but that it collapses a three-line computation to one line.
What if you have e^{ax}(f + \frac{1}{a}f')? The rule generalises. If you differentiate e^{ax}f(x), you get ae^{ax}f + e^{ax}f' = e^{ax}(af + f'). So the general rule is
You need the coefficient in front of f to be exactly a, the same a that is in the exponent. For a = 1, this collapses back to the e^x(f + f') rule.
Shortcut 3: reduction formulas
Suppose you want to integrate \int \sin^5 x\,dx. There is no shortcut like the e^x(f+f') rule here, but there is a recursive shortcut: one application of by parts produces a formula that expresses \int \sin^n x\,dx in terms of \int \sin^{n-2} x\,dx. Then you apply the formula repeatedly until the exponent comes down to 0 or 1, which are trivial.
Let me derive the reduction formula for \int \sin^n x\,dx, with n \geq 2. Write \sin^n x = \sin^{n-1} x \cdot \sin x, and take u = \sin^{n-1} x and dv = \sin x\,dx:
By parts:
Now use \cos^2 x = 1 - \sin^2 x to split the new integrand:
The original \int \sin^n x\,dx appears on the right. Move it to the left:
Divide by n:
That is the reduction formula for \sin^n x. Each application drops the exponent by 2. By the same derivation (or by the substitution x \mapsto \pi/2 - x) you get
Using the reduction formula
Take \int \sin^5 x\,dx. Apply the formula with n = 5:
Apply again to \int \sin^3 x\,dx with n = 3:
Substitute back:
Clean closed form. Two applications of the formula.
For even exponents, you eventually land at \int \sin^0 x\,dx = \int 1\,dx = x, and the answer has a bare x in it. For odd exponents you land at \int \sin x\,dx = -\cos x, and the answer is entirely in \sin and \cos.
Other common reduction formulas
- \int \tan^n x\,dx = \dfrac{\tan^{n-1} x}{n-1} - \int \tan^{n-2} x\,dx
- \int \sec^n x\,dx = \dfrac{\sec^{n-2} x \tan x}{n-1} + \dfrac{n-2}{n-1}\int \sec^{n-2} x\,dx
- \int (\ln x)^n\,dx = x(\ln x)^n - n\int (\ln x)^{n-1}\,dx
- \int x^n e^{ax}\,dx = \dfrac{x^n e^{ax}}{a} - \dfrac{n}{a}\int x^{n-1} e^{ax}\,dx
Each is a one-application-of-by-parts derivation. You can memorise them if you like, or just re-derive on the spot: the \sin^n derivation above is the template.
Common confusions
-
"The cyclic trick gives me 0 = 0." That happens when you apply by parts the second time with the wrong choice of u and dv, so the second application undoes the first. The rule: pick the same category (u trigonometric, dv exponential, or the other way around) both times. Do not swap.
-
"I can use the e^x(f+f') rule for any e^x \cdot g(x)." Only when g(x) can be written as f(x) + f'(x) for some f. If you cannot identify the f, the rule does not apply.
-
"The reduction formula only saves me one step." For n = 3 or n = 4, yes — it saves you little. For n = 6, it saves you a lot. For general n, it is the only way to write a closed form that works for every value of n.
-
"The reduction formula for \sin^n contains \cos x on the right side." Yes — every term except the recursive piece has a factor of \cos x. That is because \cos x is the integral of \sin x that appeared during by parts.
-
"I need to memorise all four reduction formulas." You do not. Memorise the derivation template (u = one copy of the power factor, dv = one copy times dx, push through by parts, use an identity to convert the leftover to a lower power) and you can re-derive any of them in under two minutes.
Going deeper
The exponential-times-trig formula, the f + f' rule, and the reduction formulas cover most of what you will meet. The rest of this section shows where the first formula comes from via complex exponentials, how the reduction idea extends to products like \sin^m x\cos^n x, and a specific computation that you will meet in definite-integral problems.
The complex-exponential route to the first formula
If you have met e^{i\theta} = \cos\theta + i\sin\theta, the first formula has a one-line derivation. Write e^{ax}\sin(bx) = \text{Im}(e^{ax}e^{ibx}) = \text{Im}(e^{(a+ib)x}). So
Multiply numerator and denominator by a - ib:
Multiply out and take the imaginary part:
Same answer. The cyclic trick in by-parts is doing exactly this complex multiplication, just without making it explicit.
Reduction for \int \sin^m x\cos^n x\,dx
When both a sine power and a cosine power appear together, there are two reduction formulas — one that drops the sine exponent by 2 and one that drops the cosine exponent by 2. The right choice depends on which is even and which is odd. When at least one of them is odd, you do not need reduction at all — you can use substitution. Peel off one factor of the odd one to pair with dx, and use \sin^2 + \cos^2 = 1 to rewrite the rest:
Set u = \cos x, du = -\sin x\,dx:
Substituting back: -\frac{\cos^3 x}{3} + \frac{\cos^5 x}{5} + C.
When both exponents are even, neither factor peels off cleanly, and you use double-angle identities (\sin^2 x = \frac{1 - \cos 2x}{2} and \cos^2 x = \frac{1 + \cos 2x}{2}) or the reduction formula.
The definite integral \int_0^{\pi/2} \sin^n x\,dx
This is the most-used application of the reduction formula in JEE problems. The definite version of the \sin^n formula is
The boundary term is 0 at both endpoints (because \cos(\pi/2) = 0 and \sin 0 = 0), so it vanishes entirely:
A clean recursion. Starting from \int_0^{\pi/2}\sin^0 x\,dx = \frac{\pi}{2} and \int_0^{\pi/2}\sin x\,dx = 1, you get the famous Wallis product:
The same formulas hold for \cos^n x on the same interval — they are mirror images under x \mapsto \pi/2 - x.
Where this leads next
- Integration by Parts — the general technique these shortcuts specialise.
- Definite Integration Techniques — the Wallis formulas in the context of definite integrals, and how by parts interacts with limits of integration.
- Partial Fractions — the other major technique for rational-function integrals.
- Special Integrals - Part 3 — the three \sqrt{\text{quadratic}} formulas, which can also be derived by a cyclic by-parts argument.
- Sum of Series Using Integration — where the Wallis-style reduction formulas are used to evaluate limits.