What Is Integration Of Trigonometric Functions?
Integration of trigonometric functions is the process of finding a function whose derivative is a given trigonometric expression. If $\frac{d}{dx}[F(x)] = f(x)$, then $F(x)$ is an antiderivative of $f(x)$, and we write $\int f(x),dx = F(x) + C$. The $+C$ is the constant of integration, and it belongs on every indefinite integral because shifting a function up or down does not change its slope.
Every standard trigonometric integral is simply a derivative rule read backwards. Because $\frac{d}{dx}[\sin x] = \cos x$, we immediately get $\int \cos x,dx = \sin x + C$. The six core results below are the ones worth knowing cold.
Table: Standard integrals of the six trigonometric functions (each is a derivative rule reversed).
Integral | Result | Reverse of the derivative |
|---|---|---|
$\int \sin x,dx$ | $-\cos x + C$ | $\frac{d}{dx}[-\cos x] = \sin x$ |
$\int \cos x,dx$ | $\sin x + C$ | $\frac{d}{dx}[\sin x] = \cos x$ |
$\int \sec^2 x,dx$ | $\tan x + C$ | $\frac{d}{dx}[\tan x] = \sec^2 x$ |
$\int \csc^2 x,dx$ | $-\cot x + C$ | $\frac{d}{dx}[-\cot x] = \csc^2 x$ |
$\int \sec x \tan x,dx$ | $\sec x + C$ | $\frac{d}{dx}[\sec x] = \sec x \tan x$ |
$\int \csc x \cot x,dx$ | $-\csc x + C$ | $\frac{d}{dx}[-\csc x] = \csc x \cot x$ |
The remaining four, for $\tan$, $\cot$, $\sec$, and $\csc$, all produce a natural logarithm and need the derivative rules of trigonometric functions plus one substitution to derive. They come next.
What Are The Integrals Of Tan, Cot, Sec, And Csc?
These four integrals do not come straight from a derivative rule, so each carries a natural logarithm and an absolute value inside it.
$$\int \tan x,dx = -\ln|\cos x| + C \qquad \int \cot x,dx = \ln|\sin x| + C$$
$$\int \sec x,dx = \ln|\sec x + \tan x| + C \qquad \int \csc x,dx = -\ln|\csc x + \cot x| + C$$
The tangent result is quick to see. Write $\tan x = \dfrac{\sin x}{\cos x}$ and substitute $u = \cos x$, so $du = -\sin x,dx$:
$$\int \tan x,dx = \int \frac{\sin x}{\cos x},dx = -\int \frac{du}{u} = -\ln|u| + C = -\ln|\cos x| + C$$
Checking backwards confirms it: $\frac{d}{dx}\big[-\ln|\cos x|\big] = -\dfrac{1}{\cos x}\cdot(-\sin x) = \dfrac{\sin x}{\cos x} = \tan x$. The cotangent integral works the same way with $u = \sin x$.
How Do You Derive The Integral Of Sec X?
The secant integral uses a trick that looks like it comes from nowhere until you see it once: multiply and divide by $(\sec x + \tan x)$.
$$\int \sec x,dx = \int \sec x \cdot \frac{\sec x + \tan x}{\sec x + \tan x},dx = \int \frac{\sec^2 x + \sec x \tan x}{\sec x + \tan x},dx$$
Now substitute $u = \sec x + \tan x$. Its derivative is $\frac{du}{dx} = \sec x \tan x + \sec^2 x$, which is exactly the numerator. So the integral collapses to $\int \dfrac{du}{u}$:
$$\int \sec x,dx = \int \frac{du}{u} = \ln|u| + C = \ln|\sec x + \tan x| + C$$
Differentiating back returns $\sec x$, which confirms the form. The cosecant integral follows the identical trick with the factor $(\csc x + \cot x)$, and the leading minus sign appears because the derivative of that factor is $-(\csc x \cot x + \csc^2 x)$.
How Do You Integrate Powers Of Sine And Cosine?
Higher powers such as $\sin^3 x$ or $\cos^4 x$ split into two clean cases, and choosing the right one is the whole skill.
Odd power: peel off one factor of $\sin x$ (or $\cos x$), convert the rest with $\sin^2 x + \cos^2 x = 1$, then substitute.
Even power: there is no factor to peel off cleanly, so use the power-reduction identities $\sin^2 x = \dfrac{1 - \cos 2x}{2}$ and $\cos^2 x = \dfrac{1 + \cos 2x}{2}$ to drop the exponent.
Example 1: Integrate the even power $\int \sin^2 x,dx$.
Replace $\sin^2 x$ with its power-reduction identity, then integrate term by term:
$$\int \sin^2 x,dx = \int \frac{1 - \cos 2x}{2},dx = \frac{1}{2}\left(x - \frac{\sin 2x}{2}\right) + C = \frac{x}{2} - \frac{\sin 2x}{4} + C$$
Check by differentiating: $\frac{d}{dx}\left[\dfrac{x}{2} - \dfrac{\sin 2x}{4}\right] = \dfrac{1}{2} - \dfrac{2\cos 2x}{4} = \dfrac{1 - \cos 2x}{2} = \sin^2 x$.
Final answer: $\int \sin^2 x,dx = \dfrac{x}{2} - \dfrac{\sin 2x}{4} + C$.
Example 2: Integrate the odd power $\int \sin^3 x,dx$.
Split off one $\sin x$ and rewrite the leftover $\sin^2 x$ as $1 - \cos^2 x$. Then substitute $u = \cos x$, so $du = -\sin x,dx$:
$$\int \sin^3 x,dx = \int (1 - \cos^2 x)\sin x,dx = -\int (1 - u^2),du = -u + \frac{u^3}{3} + C$$
Putting $u = \cos x$ back:
$$\int \sin^3 x,dx = -\cos x + \frac{\cos^3 x}{3} + C$$
Check by differentiating: $\frac{d}{dx}\left[-\cos x + \dfrac{\cos^3 x}{3}\right] = \sin x - \cos^2 x \sin x = \sin x,(1 - \cos^2 x) = \sin^3 x$.
Final answer: $\int \sin^3 x,dx = -\cos x + \dfrac{\cos^3 x}{3} + C$.
How Do You Integrate A Product Like Sin Mx Cos Nx?
A product of a sine and a cosine at different angles has no simple antiderivative until you turn it into a sum. The product-to-sum identity does exactly that:
$$\sin mx \cos nx = \frac{1}{2}\big[\sin(m+n)x + \sin(m-n)x\big]$$
Example 3: Integrate $\int \sin 3x \cos x,dx$.
Here $m = 3$ and $n = 1$, so the product becomes $\tfrac{1}{2}[\sin 4x + \sin 2x]$:
$$\int \sin 3x \cos x,dx = \frac{1}{2}\int \big(\sin 4x + \sin 2x\big),dx = \frac{1}{2}\left(-\frac{\cos 4x}{4} - \frac{\cos 2x}{2}\right) + C$$
$$= -\frac{\cos 4x}{8} - \frac{\cos 2x}{4} + C$$
Check by differentiating: $\frac{d}{dx}\left[-\dfrac{\cos 4x}{8} - \dfrac{\cos 2x}{4}\right] = \dfrac{\sin 4x}{2} + \dfrac{\sin 2x}{2} = \sin 3x \cos x$, using the same identity in reverse.
Final answer: $\int \sin 3x \cos x,dx = -\dfrac{\cos 4x}{8} - \dfrac{\cos 2x}{4} + C$.
For products such as $\int x \sin x,dx$ that mix a trig function with another kind of function, the method changes to integration by parts, covered under the integration of uv rule.
What Do These Integrals Mean Geometrically?
Every integral of a trigonometric function has a picture: it is the signed area between the curve and the horizontal axis. A definite integral adds up that area between two limits.
Take one arch of the sine curve, from $0$ to $\pi$:
$$\int_{0}^{\pi} \sin x,dx = \big[-\cos x\big]_{0}^{\pi} = -\cos \pi - (-\cos 0) = -(-1) + 1 = 2$$
So the region under a single hump of $\sin x$ has area exactly $2$. Below the axis the sign flips: over a full period from $0$ to $2\pi$, the positive first half and the negative second half cancel, and $\int_{0}^{2\pi} \sin x,dx = 0$.
This is the geometric half of calculus that the algebra can hide. A derivative is the slope of the tangent line; an integral is the area the curve encloses. Keeping both readings in view is what the calculus toolkit is really about.
Why Do The Log Integrals Need An Absolute Value?
The absolute value in $\int \tan x,dx = -\ln|\cos x| + C$ is not decoration. It is what keeps the answer defined wherever the original function is.
The logarithm $\ln(y)$ only accepts a positive input, but $\cos x$ is negative on wide stretches of its domain, for example between $\tfrac{\pi}{2}$ and $\tfrac{3\pi}{2}$.
Writing $\ln|\cos x|$ instead of $\ln(\cos x)$ lets the antiderivative exist on those intervals too, matching the fact that $\tan x$ itself is defined there.
The identity behind it is general: $\int \frac{1}{u},du = \ln|u| + C$, and the bars can only be dropped when you already know $u$ stays positive.
The same reasoning gives the bars in $\ln|\sin x|$, $\ln|\sec x + \tan x|$, and $\ln|\csc x + \cot x|$. Dropping them is one of the most common ways a correct method still loses marks.
Who Discovered The Integration Of Trigonometric Functions?
The area under a curve was chased for centuries before anyone had a general rule for it. The sine and cosine integrals arrived once integration itself became a system, in the late 1600s.
Two more names sit behind these specific results:
Madhava of Sangamagrama (c. 1340–1425, India) found infinite-series expansions for sine and cosine around 1400, roughly two centuries before European calculus, work that pointed straight at how trigonometric functions accumulate.
Roger Cotes (1682–1716, England) and later Leonhard Euler (1707–1783, Switzerland) pinned down the logarithmic form of the secant integral, the odd one out that puzzled early integrators.
Where Is Integration Of Trigonometric Functions Used In The Real World?
Because so much of the physical world oscillates, integrating sines and cosines is everyday engineering, not just an exam topic.
Electrical engineering: the average power delivered by alternating current comes from integrating $\sin^2$ over a cycle, which is exactly why the "RMS" voltage of a mains supply involves that $\frac{x}{2} - \frac{\sin 2x}{4}$ result.
Physics and motion: integrating a sinusoidal velocity or acceleration returns the position of a pendulum, a spring, or a vibrating string.
Signal processing and audio: Fourier analysis rebuilds any sound or signal from sine and cosine pieces, and the coefficients are trigonometric integrals.
Computer graphics and animation: smooth looping motion and lighting falloff are integrated from trigonometric curves.
Civil and mechanical design: loads that vary like a wave, from bridge oscillation to tidal flow, are totalled by integrating trigonometric models.
One family of integrals underlies power grids, music software, and structural safety, because a wave is the shape nature keeps reusing.
What Are The Most Common Mistakes With Integration Of Trigonometric Functions?
These four errors account for most lost marks, and each is confirmed by published error guides (Paul's Online Math Notes "Common Calculus Errors", MIT OpenCourseWare) and by recurring student questions on Reddit's r/calculus and math forums.
Getting the sign wrong on $\int \sin x,dx$.
Where it slips in:
A student writes $\int \sin x,dx = \cos x + C$, copying the pattern of $\frac{d}{dx}[\sin x] = \cos x$ without flipping the sign.
Don't do this:
Do not assume the integral looks like the derivative. Integration reverses it.
The correct way:
$\int \sin x,dx = -\cos x + C$. The check is instant: $\frac{d}{dx}[-\cos x] = \sin x$, and only the negative version gives that.
Dropping the absolute value in the log answers.
Where it slips in:
A student writes $\int \tan x,dx = -\ln(\cos x) + C$, leaving off the bars.
Don't do this:
Do not write $\ln$ of a quantity that goes negative. The answer becomes undefined on half the domain.
The correct way:
Keep the bars: $\int \tan x,dx = -\ln|\cos x| + C$. Only remove them once you have shown the inside stays positive on the interval in question.
Confusing the odd-power and even-power methods.
Where it slips in:
A student reaches for the power-reduction identity on $\sin^3 x$, or tries to peel off a factor from $\sin^2 x$ where none is left to substitute cleanly.
Don't do this:
Do not pick the method at random. The parity of the exponent decides it.
The correct way:
Odd power, split off one factor and substitute. Even power, use $\sin^2 x = \frac{1 - \cos 2x}{2}$ or $\cos^2 x = \frac{1 + \cos 2x}{2}$ to lower the exponent first.
Losing a factor in the substitution, or forgetting $+C$.
Where it slips in:
During a $u$-substitution a student forgets that $du$ carries an extra constant or sign, or finishes an indefinite integral with no constant of integration.
Don't do this:
Do not copy $dx$ straight into $du$ without matching the derivative, and never leave an indefinite integral without $+C$.
The correct way:
Write $u$ and compute $du$ in full before rewriting the integral, then restore the original variable and add $+C$ at the end.
Practice Problems On Integration Of Trigonometric Functions
Work each one, then differentiate your answer back to confirm it. Answers follow each line.
Find $\int \cos x,dx$.
(Answer: $\sin x + C$.)Find $\int \sec^2 x,dx$.
(Answer: $\tan x + C$.)Find $\int \cot x,dx$.
(Answer: $\ln|\sin x| + C$.)Find $\int \cos^2 x,dx$.
(Answer: $\dfrac{x}{2} + \dfrac{\sin 2x}{4} + C$, using $\cos^2 x = \tfrac{1+\cos 2x}{2}$.)Find $\int \cos^3 x,dx$.
(Answer: $\sin x - \dfrac{\sin^3 x}{3} + C$, splitting off one $\cos x$ and substituting $u = \sin x$.)Evaluate $\int_{0}^{\pi/2} \cos x,dx$.
(Answer: $[\sin x]_{0}^{\pi/2} = 1 - 0 = 1$.)
Where Should You Go Next After Integration Of Trigonometric Functions?
These integrals sit between two topics, and both are worth locking down.
Differentiation of trigonometric functions. Every integral here is one of these rules reversed, so a firm grip on the derivatives makes the integrals almost automatic.
The trigonometric functions and their identities. The power-reduction and product-to-sum identities are what make these integrals solvable, and they reward memorising.
Integration formulas. See where the trig integrals fit alongside the power, exponential, and logarithmic rules in one reference.
If your child is building calculus foundations, a live Bhanzu trainer teaches the integration of trigonometric functions starting from the geometry (area under the wave) before the formulas, in the Bhanzu trigonometry program.
Was this article helpful?
Your feedback helps us write better content
