Trigonometric Integrals
Integrals of powers of trig functions come down to choosing the right identity so that a u-substitution works.
Powers of sine and cosine: \(\int \sin^m x\cos^n x\,dx\)
- Odd power of sine: save one \(\sin x\), turn the rest into cosines with \(\sin^2 x = 1-\cos^2 x\), then let \(u = \cos x\).
- Odd power of cosine: save one \(\cos x\), turn the rest into sines, then let \(u = \sin x\).
- Both powers even: use the half-angle identities \(\sin^2 x = \tfrac{1-\cos 2x}{2}\) and \(\cos^2 x = \tfrac{1+\cos 2x}{2}\).
Example: \(\sin^{3}{\left(x \right)}\)
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Substitution (u-sub)technique▶
Let \(u = \cos{\left(x \right)}\). Then \(du = - \sin{\left(x \right)}\,dx\). Rewriting the integral in terms of \(u\):
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Power rule▶
Use \(\int x^{n}\,dx = \frac{x^{n+1}}{n+1}\) with \(n = 2\).
2Integrate a constant▶
The integral of a constant is the constant times \(u\).
3Add the results▶
2Substitute back▶
Replace \(u\) with \(\cos{\left(x \right)}\):
Example: \(\sin^{2}{\left(x \right)} \cos^{3}{\left(x \right)}\)
The power of cosine is odd, so save one \(\cos x\).
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Substitution (u-sub)technique▶
Let \(u = \sin{\left(x \right)}\). Then \(du = \cos{\left(x \right)}\,dx\). Rewriting the integral in terms of \(u\):
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Pull out the constant▶
Constants factor out of an integral: move \(-1\) outside.
1Power rule▶
Use \(\int x^{n}\,dx = \frac{x^{n+1}}{n+1}\) with \(n = 4\).
2Multiply back by the constant▶
2Power rule▶
Use \(\int x^{n}\,dx = \frac{x^{n+1}}{n+1}\) with \(n = 2\).
3Add the results▶
2Substitute back▶
Replace \(u\) with \(\sin{\left(x \right)}\):
Example: \(\cos^{4}{\left(x \right)}\)
Both powers are even, so use the half-angle identity twice.
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Pull out the constant▶
Constants factor out of an integral: move \(\frac{1}{4}\) outside.
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Pull out the constant▶
Constants factor out of an integral: move \(\frac{1}{2}\) outside.
1Substitution (u-sub)technique▶
Let \(u = 4 x\). Then \(du = 4\,dx\). Rewriting the integral in terms of \(u\):
1Pull out the constant▶
Constants factor out of an integral: move \(\frac{1}{4}\) outside.
1Integral of cosine▶
The antiderivative of cosine is sine.
2Multiply back by the constant▶
2Substitute back▶
Replace \(u\) with \(4 x\):
2Multiply back by the constant▶
2Integrate a constant▶
The integral of a constant is the constant times \(x\).
3Add the results▶
2Multiply back by the constant▶
2Pull out the constant▶
Constants factor out of an integral: move \(\frac{1}{2}\) outside.
1Substitution (u-sub)technique▶
Let \(w = 2 x\). Then \(dw = 2\,dx\). Rewriting the integral in terms of \(w\):
1Pull out the constant▶
Constants factor out of an integral: move \(\frac{1}{2}\) outside.
1Integral of cosine▶
The antiderivative of cosine is sine.
2Multiply back by the constant▶
2Substitute back▶
Replace \(w\) with \(2 x\):
2Multiply back by the constant▶
3Integrate a constant▶
The integral of a constant is the constant times \(x\).
4Add the results▶
Tangent and secant
- \(\int \tan x\,dx = -\ln|\cos x| + C = \ln|\sec x| + C\)
- \(\int \sec x\,dx = \ln|\sec x + \tan x| + C\)
- \(\tan^2 x = \sec^2 x - 1\) turns even powers of tangent into something integrable.
Example: \(\tan^{2}{\left(x \right)}\)
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Integral of sec²▶
Since \(\frac{d}{dx}\tan x = \sec^2 x\).
2Integrate a constant▶
The integral of a constant is the constant times \(x\).
3Add the results▶
Example: \(\tan{\left(x \right)}\)
1Trig identitytechnique▶
Rewrite using trigonometric identities:
1Substitution (u-sub)technique▶
Let \(u = \cos{\left(x \right)}\). Then \(du = - \sin{\left(x \right)}\,dx\). Rewriting the integral in terms of \(u\):
1Pull out the constant▶
Constants factor out of an integral: move \(-1\) outside.
1Reciprocal rule▶
The integral of \(\frac{1}{u}\) is \(\ln\left|u\right|\).
2Multiply back by the constant▶
2Substitute back▶
Replace \(u\) with \(\cos{\left(x \right)}\):
Try your own
Paste any integral into the integral calculator to get the full step-by-step solution and a graph.