Tutorials › Calculus I › Trigonometric Definite Integrals By Substitution

Substitution and Reversing the Chain Rule · Tutorial 1145 of 1495

Trigonometric Definite Integrals By Substitution

Use substitution to evaluate composite trigonometric definite integrals, with correctly transformed limits and exact endpoint values.

Intermediate 10 min read

What You'll Learn

  • Identify when a composite trigonometric integrand has the form of a standard antiderivative pattern.
  • Transform both limits by evaluating the inner function at the original endpoints.
  • Evaluate sine and cosine substitutions using exact trigonometric values.
  • Apply tangent and secant antiderivative patterns on intervals where the functions are defined.
  • Check domain conditions and verify definite integral answers.

Why the Endpoints Must Change

Substitution is useful when an integrand contains a trigonometric function of an inner expression, together with the derivative of that expression. In a definite integral, the substitution changes not only the integrand but also the values at which the integral is evaluated. Transforming both endpoints keeps the new variable and its limits consistent.

For example, if \(u=4x\), then an original endpoint \(x=\pi/6\) corresponds to the new endpoint \(u=4(\pi/6)=2\pi/3\). The upper limit is not still \(\pi/6\): that value belongs to the \(x\)-variable, not the \(u\)-variable.

Key rule: Under the substitution \(u=g(x)\), transform the original limits \(x=a\) and \(x=b\) into \(u=g(a)\) and \(u=g(b)\). Then evaluate the transformed integral using those new limits.

The Definite Substitution Formula

Suppose \(g\) is continuously differentiable on \([a,b]\), and \(F\) is continuous on an interval containing the values \(g(x)\) for \(a\le x\le b\). The definite substitution formula is

$$ \int_a^b F(g(x))g'(x)\,dx = \int_{g(a)}^{g(b)} F(u)\,du. $$

The new limits are written in the order \(g(a)\) to \(g(b)\). If \(g\) decreases, this order may be decreasing as well; the formula already accounts for that. For the examples here, the inner functions are linear, but the same endpoint rule applies to other differentiable inner functions too.

Why the Formula Works

Let \(A\) be an antiderivative of \(F\) on the interval containing the values of \(g\), so \(A'(u)=F(u)\). The chain rule gives the derivative of \(A(g(x))\):

$$ \frac{d}{dx}A(g(x)) = A'(g(x))g'(x) = F(g(x))g'(x). $$

Thus \(A(g(x))\) is an antiderivative of the original integrand. By the Fundamental Theorem of Calculus,

$$ \int_a^b F(g(x))g'(x)\,dx = A(g(b))-A(g(a)). $$

Since \(A\) is an antiderivative of \(F\), the right-hand side is also

$$ A(g(b))-A(g(a)) = \int_{g(a)}^{g(b)} F(u)\,du. $$

This proves the substitution formula and explains why the endpoints must be transformed: the new antiderivative is evaluated at \(g(b)\) and \(g(a)\), not at \(b\) and \(a\).

Common Trigonometric Patterns

The following patterns apply when the derivative of the inner function supplies the required factor. In the table, \(u\) denotes the inner expression. Each formula is valid on an interval where the functions involved are defined; in particular, tangent and secant require \(\cos u\ne 0\).

Integrand in \(u\)An antiderivativeUseful condition
\(\sin u\)\(-\cos u\)Defined for all real \(u\)
\(\cos u\)\(\sin u\)Defined for all real \(u\)
\(\sec^2 u\)\(\tan u\)\(\cos u\ne 0\)
\(\sec u\tan u\)\(\sec u\)\(\cos u\ne 0\)
\(\tan u\)\(-\ln|\cos u|\)\(\cos u\ne 0\)
\(\sec u\)\(\ln|\sec u+\tan u|\)\(\cos u\ne 0\)

For instance, the tangent formula follows because the derivative of \(-\ln|\cos u|\) is \(\sin u/\cos u=\tan u\), wherever \(\cos u\ne 0\). These formulas are patterns, not permission to ignore the rest of the integrand: the factor \(g'(x)\) must also be present, including any constant multiplier needed to make the substitution exact.

Worked Examples

Worked Example: A Composite Sine Integral

Evaluate \(\displaystyle\int_0^{\pi/6}4\sin(4x)\,dx\).

Set \(u=4x\). Then \(du=4\,dx\), so the factor \(4\,dx\) in the integral is exactly \(du\). Transform the endpoints:

$$ x=0\ \Longrightarrow\ u=4(0)=0, \qquad x=\frac{\pi}{6}\ \Longrightarrow\ u=4\left(\frac{\pi}{6}\right)=\frac{2\pi}{3}. $$

Therefore,

$$ \begin{aligned} \int_0^{\pi/6}4\sin(4x)\,dx &=\int_0^{2\pi/3}\sin u\,du\\ &=\left[-\cos u\right]_0^{2\pi/3}\\ &=-\cos\left(\frac{2\pi}{3}\right)-\bigl(-\cos 0\bigr)\\ &=-\left(-\frac12\right)+1\\ &=\frac32. \end{aligned} $$

Check the result by differentiating the corresponding antiderivative in \(x\): \(\frac{d}{dx}[-\cos(4x)]=4\sin(4x)\). Its endpoint difference is \(-\cos(2\pi/3)-[-\cos(0)]=3/2\), as obtained above.

Worked Example: A Composite Cosine Integral

Evaluate \(\displaystyle\int_0^{\pi/3}2\cos(2x)\,dx\).

Let \(u=2x\), so \(du=2\,dx\). At the lower endpoint, \(u=2(0)=0\); at the upper endpoint, \(u=2(\pi/3)=2\pi/3\). Thus

$$ \begin{aligned} \int_0^{\pi/3}2\cos(2x)\,dx &=\int_0^{2\pi/3}\cos u\,du\\ &=\left[\sin u\right]_0^{2\pi/3}\\ &=\sin\left(\frac{2\pi}{3}\right)-\sin(0)\\ &=\frac{\sqrt{3}}{2}-0\\ &=\frac{\sqrt{3}}{2}. \end{aligned} $$

Check: \(\frac{d}{dx}\sin(2x)=2\cos(2x)\), and \(\sin(2\pi/3)-\sin(0)=\sqrt{3}/2\). Both the derivative and endpoint evaluation match the original integral.

Worked Example: A Composite Tangent Integral

Evaluate \(\displaystyle\int_0^{\pi/8}2\tan(2x)\,dx\).

Use \(u=2x\), for which \(du=2\,dx\). The transformed limits are \(u=2(0)=0\) and \(u=2(\pi/8)=\pi/4\). On the full interval \(0\le u\le\pi/4\), \(\cos u\) is positive, so tangent is defined and the logarithm formula applies.

$$ \begin{aligned} \int_0^{\pi/8}2\tan(2x)\,dx &=\int_0^{\pi/4}\tan u\,du\\ &=\left[-\ln|\cos u|\right]_0^{\pi/4}\\ &=-\ln\left(\frac{\sqrt{2}}{2}\right)+\ln(1)\\ &=-\ln\left(\frac{\sqrt{2}}{2}\right)\\ &=\ln(\sqrt{2})=\frac12\ln 2. \end{aligned} $$

Check: differentiating \(-\ln|\cos(2x)|\) gives \(2\tan(2x)\). The endpoint difference is \(-\ln(\cos(\pi/4))+\ln(\cos 0)=\frac12\ln 2\), confirming the value.

Worked Example: A Composite Secant-Tangent Integral

Evaluate \(\displaystyle\int_0^{\pi/9}3\sec(3x)\tan(3x)\,dx\).

Set \(u=3x\), so \(du=3\,dx\). The limits become \(u=3(0)=0\) and \(u=3(\pi/9)=\pi/3\). The interval from \(0\) to \(\pi/3\) contains no point where \(\cos u=0\); hence secant and tangent are defined throughout the transformed interval.

$$ \begin{aligned} \int_0^{\pi/9}3\sec(3x)\tan(3x)\,dx &=\int_0^{\pi/3}\sec u\tan u\,du\\ &=\left[\sec u\right]_0^{\pi/3}\\ &=\sec\left(\frac{\pi}{3}\right)-\sec(0)\\ &=2-1\\ &=1. \end{aligned} $$

Check: \(\frac{d}{dx}\sec(3x)=3\sec(3x)\tan(3x)\), and \(\sec(\pi/3)-\sec(0)=2-1=1\). This agrees with the evaluated integral.

Endpoint Values and Domain Checks

After changing variables, evaluate the trigonometric functions at the new endpoints. Exact values from the unit circle are usually preferable to decimal approximations. For example, \(\sin(2\pi/3)=\sqrt{3}/2\), \(\cos(2\pi/3)=-1/2\), and \(\sec(\pi/3)=2\). Keeping these exact values makes the endpoint subtraction transparent.

For tangent and secant patterns, also verify that the interval does not cross a point where cosine is zero. If it does, the integrand may be undefined at an interior point, so the ordinary substitution formula for a continuous integrand on the whole interval cannot be applied as written. The examples above avoid such points, and their transformed integrands are continuous across their full intervals.

A Common Mistake: Leaving the Old Limits in Place

Consider the sine example \(\int_0^{\pi/6}4\sin(4x)\,dx\). If \(u=4x\), the integrand becomes \(\sin u\,du\), but the limits must become \(0\) and \(2\pi/3\). A common incorrect calculation keeps the old limits and writes

$$ \int_0^{\pi/6}\sin u\,du = 1-\cos\left(\frac{\pi}{6}\right) = 1-\frac{\sqrt{3}}{2}. $$

This is wrong because \(u\) is not being evaluated over the original \(x\)-interval; its endpoint value corresponding to \(x=\pi/6\) is \(u=2\pi/3\). The correct calculation is

$$ \int_0^{2\pi/3}\sin u\,du = 1-\cos\left(\frac{2\pi}{3}\right) = 1-\left(-\frac12\right) = \frac32. $$

The error is not a trigonometric simplification; it is a mismatch between the integration variable and its limits. Either transform the limits and finish in \(u\), or return to the original variable before using the original limits. Do not mix the two choices.

A Reliable Evaluation Sequence

1
Identify the inner function.
Write \(u=g(x)\) and check whether the remaining factor includes \(g'(x)\), with the correct constant.
2
Transform both endpoints.
Calculate \(g(a)\) and \(g(b)\) from the original lower and upper limits.
3
Apply the matching trigonometric pattern.
Use a sine, cosine, tangent, or secant antiderivative, checking that it is defined over the transformed interval.
4
Evaluate exactly and check.
Substitute the transformed endpoints, simplify the trigonometric values, and verify by differentiating the corresponding antiderivative.

Why These Integrals Matter

Definite substitution lets an integral be evaluated in the variable that makes its structure simplest. Composite trigonometric patterns occur whenever a sine, cosine, tangent, or secant is applied to a scaled or otherwise transformed input. Recognizing the derivative factor and carrying the endpoints through the change of variable turns those expressions into standard trigonometric integrals.

The essential discipline is to keep three things aligned: the transformed integrand, the new differential, and the transformed limits. When those pieces agree, the Fundamental Theorem of Calculus gives the definite value directly. When they do not, even a familiar antiderivative can produce an incorrect answer.

Check Your Understanding

For each question, state any domain condition needed and use exact values where possible.

  1. Evaluate \(\displaystyle\int_0^{\pi/4}2\sin(2x)\,dx\), showing the transformed endpoints.
  2. For \(\displaystyle\int_0^{\pi/6}3\cos(3x)\,dx\), what are the new limits after setting \(u=3x\), and what is the integral's value?
  3. Evaluate \(\displaystyle\int_0^{\pi/8}2\sec^2(2x)\,dx\). Verify the result by differentiating an antiderivative.
  4. Evaluate \(\displaystyle\int_0^{\pi/9}3\tan(3x)\,dx\), and explain why the tangent antiderivative is valid on the transformed interval.
  5. In a definite substitution, why is it incorrect to change the integrand to a new variable but retain the old numerical limits?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon