01 / 20
\(\int\)

Basic Trig
Integrals

Learn to evaluate the fundamental integrals of sine, cosine, and other trigonometric functions: the building blocks of every calculus toolkit.

Calculus 1

What Is an Antiderivative?

An antiderivative of a function \( f(x) \) is any function \( F(x) \) whose derivative equals \( f(x) \). In symbols:

The constant \( C \) appears because differentiation destroys constants. Integration reverses differentiation, so there is always a family of solutions.

Why Trig Integrals Matter

Physics
Oscillations, waves, and circular motion all involve \(\sin\) and \(\cos\). Integrating them gives position from velocity.
Engineering
Signal processing, AC circuits, and Fourier analysis depend on integrating trig functions precisely.
Advanced Calculus
Techniques like trig substitution and integration by parts build directly on these six basic integrals.

Derivatives and Integrals: Mirror Images

Every basic trig integral comes from reversing a known derivative. If you know that \(\frac{d}{dx}[\sin x] = \cos x\), you instantly know that \(\int \cos x\,dx = \sin x + C\).

Derivative
\(\frac{d}{dx}[\sin x] = \cos x\)
Integral
\(\int \cos x\,dx = \sin x + C\)
reverse verify

The Six Core Formulas

Integral Result
\(\displaystyle\int \sin x\,dx\) \(-\cos x + C\)
\(\displaystyle\int \cos x\,dx\) \(\sin x + C\)
\(\displaystyle\int \sec^2 x\,dx\) \(\tan x + C\)
\(\displaystyle\int \csc^2 x\,dx\) \(-\cot x + C\)
\(\displaystyle\int \sec x\tan x\,dx\) \(\sec x + C\)
\(\displaystyle\int \csc x\cot x\,dx\) \(-\csc x + C\)

Visualizing \(\int \sin x\,dx\)

\(-2\pi\)
\(-\pi\)
\(\pi\)
\(2\pi\)
1 -1
\(\sin x\)
\(-\cos x\)
0

Watch the Negative Signs

Three of the six formulas produce a negative result. The pattern is easy to remember: if the antiderivative is a "co-" function (cosine, cotangent, cosecant), a negative sign appears.

Positive results
\(\int \cos x\,dx = \sin x + C\)
\(\int \sec^2 x\,dx = \tan x + C\)
\(\int \sec x\tan x\,dx = \sec x + C\)
Negative results
\(\int \sin x\,dx = -\cos x + C\)
\(\int \csc^2 x\,dx = -\cot x + C\)
\(\int \csc x\cot x\,dx = -\csc x + C\)

\(\sec^2 x\) vs \(\sec x \tan x\)

Students often confuse these two integrals because both involve \(\sec x\). The key distinction:

\(\sec^2 x\) \(\sec x \tan x\)
Integrand A squared trig function A product of two trig functions
Result \(\tan x + C\) \(\sec x + C\)
Comes from differentiating \(\tan x\) \(\sec x\)

How to Evaluate a Trig Integral

1
Identify the integrand. Match the trig expression to one of the six core formulas.
2
Factor out constants. Use \(\int k\,f(x)\,dx = k\int f(x)\,dx\) to pull scalar multiples outside.
3
Apply the formula. Write the antiderivative, including the sign.
4
Add \( + C \). Never forget the constant of integration for indefinite integrals.
5
Verify. Differentiate your answer. You should recover the original integrand.

Example 1: \(\int 5\cos x\,dx\)

1
Identify: The integrand is \(\cos x\) (with a constant factor of 5).
2
Factor out the constant: \(\int 5\cos x\,dx = 5\int \cos x\,dx\)
3
Apply the formula: \(\int \cos x\,dx = \sin x + C\)
4
Combine: \(5\sin x + C\)

Example 2: \(\int (3\sin x - 2\sec^2 x)\,dx\)

When a sum (or difference) of trig functions appears, integrate term by term:

1
Split: \(\int 3\sin x\,dx - \int 2\sec^2 x\,dx\)
2
First term: \(3\int \sin x\,dx = 3(-\cos x) = -3\cos x\)
3
Second term: \(2\int \sec^2 x\,dx = 2\tan x\)
4
Result: \(-3\cos x - 2\tan x + C\)

Example 3: \(\displaystyle\int_0^{\pi/2}\!\cos x\,dx\)

For a definite integral, find the antiderivative, then evaluate at the bounds:

1
Antiderivative: \(F(x) = \sin x\)
2
Evaluate: \(F\!\left(\frac{\pi}{2}\right) - F(0) = \sin\!\left(\frac{\pi}{2}\right) - \sin(0)\)
3
Simplify: \(1 - 0 = 1\)

Example 4: \(\displaystyle\int_0^{\pi/4}\!\sec x\tan x\,dx\)

1
Recognize: \(\sec x\tan x\) is the derivative of \(\sec x\).
2
Antiderivative: \(F(x) = \sec x\)
3
Evaluate: \(\sec\!\left(\frac{\pi}{4}\right) - \sec(0) = \sqrt{2} - 1\)

Common Mistakes

✕ Dropping the negative
Writing \(\int \sin x\,dx = \cos x + C\) instead of \(-\cos x + C\). Remember: co-functions carry a minus.
✕ Forgetting \(+\,C\)
Omitting the constant of integration on indefinite integrals. Points lost on every exam.
✕ Confusing \(\sec^2 x\) and \(\sec x \tan x\)
Mixing up which one gives \(\tan x\) vs \(\sec x\). Check by differentiating.

Summary Reference Table

Derivative Integral Sign
\(\frac{d}{dx}[-\cos x] = \sin x\) \(\int \sin x\,dx = -\cos x + C\) negative
\(\frac{d}{dx}[\sin x] = \cos x\) \(\int \cos x\,dx = \sin x + C\) positive
\(\frac{d}{dx}[\tan x] = \sec^2 x\) \(\int \sec^2 x\,dx = \tan x + C\) positive
\(\frac{d}{dx}[-\cot x] = \csc^2 x\) \(\int \csc^2 x\,dx = -\cot x + C\) negative
\(\frac{d}{dx}[\sec x] = \sec x\tan x\) \(\int \sec x\tan x\,dx = \sec x + C\) positive
\(\frac{d}{dx}[-\csc x] = \csc x\cot x\) \(\int \csc x\cot x\,dx = -\csc x + C\) negative

Question 1 of 5

Evaluate: \(\displaystyle\int \sin x\,dx\)

Question 2 of 5

Evaluate: \(\displaystyle\int 4\sec^2 x\,dx\)

Question 3 of 5

Evaluate: \(\displaystyle\int_0^{\pi}\!\sin x\,dx\)

Question 4 of 5

Which integral equals \(\sec x + C\)?

Question 5 of 5

Evaluate: \(\displaystyle\int (2\cos x + \csc^2 x)\,dx\)