Tutorials › Calculus II › Using t = cos x with an Odd Sine Factor

Rationalizing Substitutions · Tutorial 242 of 998

Using t = cos x with an Odd Sine Factor

Use the cosine substitution to turn trigonometric integrals with an odd sine factor into rational integrals, while keeping signs and interval orientation under control.

Intermediate 10 min read

What You'll Learn

  • Recognize when an odd power of sine pairs with a rational function of cosine.
  • Rewrite the even sine powers as powers of one minus cosine squared.
  • Derive the transformed integral and track the minus sign from the differential.
  • Change definite-integral bounds and handle intervals where cosine is not one-to-one.
  • Check transformed antiderivatives by differentiating and identify common sign errors.

When the Cosine Substitution Fits

An integral involving both sine and cosine can sometimes be simplified by treating cosine as the new variable. The key pattern is an odd power of sine multiplied by a factor that is rational in cosine. The odd power leaves one factor of \(\sin x\,dx\) to become a differential, while the remaining even power can be written using \(\cos x\).

This method does not apply to every trigonometric integral. It is useful when the factors left after extracting one sine factor can all be expressed rationally in \(\cos x\). The resulting integral is then rational in the new variable and can be handled using standard methods for rational functions.

Definition: An integral has the cosine-substitution form if its integrand can be written as \(R(\cos x)\sin^{2k+1}x\), where \(k\) is a nonnegative integer and \(R\) is a rational function. The substitution \(t=\cos x\) changes this to \(-R(t)(1-t^2)^k\,dt\), wherever the expressions are defined.

Deriving the Transformation

Set \(t=\cos x\). Differentiating gives \(dt=-\sin x\,dx\), or \(\sin x\,dx=-dt\). Also, from \(\sin^2 x+\cos^2 x=1\), we have \(\sin^2 x=1-t^2\). Therefore,

$$ \sin^{2k+1}x\,dx = (\sin^2 x)^k\sin x\,dx = (1-t^2)^k(-dt). $$

The minus sign is part of the substitution: it comes from the derivative of cosine. It should not be dropped, even when the transformed integral is later rewritten with its bounds in increasing order.

$$ \int R(\cos x)\sin^{2k+1}x\,dx = -\int R(t)(1-t^2)^k\,dt. $$

Because \(k\) is an integer, \((1-t^2)^k\) is a polynomial. Multiplying it by the rational function \(R(t)\) still gives a rational function. Thus the substitution reduces the trigonometric integral to a rational integral.

Why the Substitution Works

The transformation can be justified directly by the chain rule. Suppose \(R\) is defined for the values of \(\cos x\) under consideration, and let \(G\) be an antiderivative of \(-R(t)(1-t^2)^k\) on the corresponding \(t\)-interval. Then

$$ G'(t)=-R(t)(1-t^2)^k. $$

Apply the chain rule to \(G(\cos x)\). Using \(t=\cos x\) and \(1-\cos^2x=\sin^2x\) gives

$$ \begin{aligned} \frac{d}{dx}G(\cos x) &=G'(\cos x)(-\sin x)\\ &=R(\cos x)(1-\cos^2x)^k\sin x\\ &=R(\cos x)\sin^{2k+1}x. \end{aligned} $$

So \(G(\cos x)\) is an antiderivative of the original integrand wherever the expressions are defined. This argument also shows why the substitution does not require choosing an inverse cosine for an indefinite integral.

Worked Examples

Worked Example: An Odd Sine Power Over a Linear Cosine Factor

Evaluate \(\int \frac{\sin^3 x}{2+\cos x}\,dx\). The denominator is rational in \(\cos x\), and \(\sin^3x\) contains one sine factor for the differential and one even power.

Let \(t=\cos x\). Then \(dt=-\sin x\,dx\), and \(\sin^2x=1-t^2\). Hence

$$ \int \frac{\sin^3 x}{2+\cos x}\,dx = -\int\frac{1-t^2}{2+t}\,dt. $$

Divide the numerator by the denominator. Since \((-t+2)(t+2)=-t^2+4\), the remainder needed to obtain \(1-t^2\) is \(-3\). Therefore,

$$ \frac{1-t^2}{t+2}=-t+2-\frac{3}{t+2}. $$

Including the minus sign from the substitution,

$$ -\int\left(-t+2-\frac{3}{t+2}\right)dt = \int\left(t-2+\frac{3}{t+2}\right)dt. $$

Integrate each term and substitute \(t=\cos x\):

$$ \frac{t^2}{2}-2t+3\ln|t+2|+C = \frac{\cos^2x}{2}-2\cos x+3\ln|2+\cos x|+C. $$

To check, differentiating the expression in \(t\) gives \[ t-2+\frac{3}{t+2} = \frac{t^2-1}{t+2}. \] Multiplying by \(dt/dx=-\sin x\) gives \[ -\sin x\,\frac{\cos^2x-1}{\cos x+2} = \frac{\sin x(1-\cos^2x)}{2+\cos x} = \frac{\sin^3x}{2+\cos x}, \] as required.

Worked Example: A Fifth Power and a Quadratic Denominator

Evaluate \(\int \frac{\sin^5x}{1+\cos^2x}\,dx\). Use \(t=\cos x\), so that \(\sin^4x=(1-t^2)^2\) and \(\sin x\,dx=-dt\):

$$ \int \frac{\sin^5x}{1+\cos^2x}\,dx = -\int\frac{(1-t^2)^2}{1+t^2}\,dt. $$

Expand the numerator and divide:

$$ (1-t^2)^2=t^4-2t^2+1 =(t^2+1)(t^2-3)+4. $$

Thus the transformed integrand, including the minus sign, is

$$ -\frac{(1-t^2)^2}{1+t^2} = -t^2+3-\frac{4}{1+t^2}. $$

Integrating and returning to \(x\) gives

$$ -\frac{t^3}{3}+3t-4\arctan t+C = -\frac{\cos^3x}{3}+3\cos x-4\arctan(\cos x)+C. $$

For a check, the derivative of the expression in \(t\) is \(-t^2+3-\frac{4}{1+t^2}\). Multiplying by \(dt/dx=-\sin x\) gives \[ \sin x\left(t^2-3+\frac{4}{1+t^2}\right) = \sin x\,\frac{t^4-2t^2+1}{1+t^2} = \frac{\sin x(1-t^2)^2}{1+t^2} = \frac{\sin^5x}{1+\cos^2x}. \]

Worked Example: Definite Bounds and Orientation

Evaluate \(\int_0^{\pi/2}\frac{\sin^5x}{1+\cos x}\,dx\). The substitution sends the lower bound \(x=0\) to \(t=1\), and the upper bound \(x=\pi/2\) to \(t=0\). Keeping the minus sign and the transformed bounds together gives

$$ \int_0^{\pi/2}\frac{\sin^5x}{1+\cos x}\,dx = -\int_1^0\frac{(1-t^2)^2}{1+t}\,dt = \int_0^1\frac{(1-t^2)^2}{1+t}\,dt. $$

Factor \(1-t^2=(1-t)(1+t)\). Since \(1+t\) is nonzero on this interval,

$$ \frac{(1-t^2)^2}{1+t} =(1-t)^2(1+t) =1-t-t^2+t^3. $$

Therefore,

$$ \begin{aligned} \int_0^1(1-t-t^2+t^3)\,dt &=\left[t-\frac{t^2}{2}-\frac{t^3}{3}+\frac{t^4}{4}\right]_0^1\\ &=1-\frac12-\frac13+\frac14\\ &=\frac{12-6-4+3}{12} =\frac{5}{12}. \end{aligned} $$

The result is \(\frac{5}{12}\). The bounds are reversed because cosine decreases from \(1\) to \(0\) on \([0,\pi/2]\); the minus sign in the differential compensates for that reversal.

Definite Integrals and the Interval

For a definite integral, the bounds must be transformed along with the differential. If \(x\) runs from \(a\) to \(b\), then \(t=\cos x\) runs from \(\cos a\) to \(\cos b\), and the transformed integral is

$$ \int_a^b R(\cos x)\sin^{2k+1}x\,dx = -\int_{\cos a}^{\cos b}R(t)(1-t^2)^k\,dt. $$

A particularly straightforward change of variables is when cosine is monotone on \([a,b]\), so each \(t\)-value in the resulting interval corresponds to at most one \(x\)-value. If cosine is not monotone, split the \(x\)-interval into pieces on which it is monotone before applying the ordinary one-to-one change-of-variables rule.

There is also a useful chain-rule perspective. If the transformed integrand has a primitive throughout the range of \(\cos x\), the composed primitive gives the endpoint formula directly, even if the path of \(t=\cos x\) turns around. For example, on \([\pi/2,3\pi/2]\), cosine goes from \(0\) down to \(-1\) and then back to \(0\). Splitting at \(x=\pi\) makes the cancellation explicit:

$$ -\int_0^{-1}\frac{1-t^2}{2+t}\,dt -\int_{-1}^{0}\frac{1-t^2}{2+t}\,dt = \int_{-1}^{0}\frac{1-t^2}{2+t}\,dt -\int_{-1}^{0}\frac{1-t^2}{2+t}\,dt =0. $$

This applies to the original integral \(\int_{\pi/2}^{3\pi/2}\frac{\sin^3x}{2+\cos x}\,dx\). The denominator does not vanish on the relevant range \(t\in[-1,0]\), and the two pieces cancel. If a rational factor has a pole in the range, the integral must instead be considered on intervals where the integrand is defined; endpoint substitution alone does not remove a singularity.

A Common Sign Error

A frequent mistake is to write \(dt=\sin x\,dx\). That is the derivative of \(-\cos x\), not of \(\cos x\). For example, the incorrect calculation

$$ \int\frac{\sin^3x}{2+\cos x}\,dx \overset{\text{wrong}}{=} \int\frac{1-t^2}{2+t}\,dt $$

loses the minus sign. In fact, the derivative with respect to \(x\) of an antiderivative of the right-hand side is the negative of the original integrand, because \(dt/dx=-\sin x\). The correction is

$$ \int\frac{\sin^3x}{2+\cos x}\,dx = -\int\frac{1-t^2}{2+t}\,dt. $$

For definite integrals, another common error is to reverse the bounds but forget to account for the minus sign—or to keep the minus sign and reverse the bounds a second time. Transform the differential and both bounds first, then simplify the signs.

When to Use the Method

Before substituting, check the structure rather than relying on the appearance of the integrand. Extract one factor of \(\sin x\); express every remaining factor using \(\cos x\); then use \(\sin^2x=1-\cos^2x\). If this leaves a rational function of \(\cos x\), the substitution is a good fit. If other factors cannot be written rationally in cosine, this substitution may not simplify the integral.

  • An odd sine power is needed to supply the factor \(\sin x\,dx\).
  • The other factors must be expressible as a rational function of \(\cos x\).
  • The transformed denominator must remain nonzero on the interval being integrated.
  • For definite integrals, map both bounds and preserve the orientation sign.

The method is valuable because it turns a trigonometric integral into an algebraic problem without approximations. Its reliability depends on two small but essential details: the identity \(\sin^2x=1-\cos^2x\) and the negative sign in \(d(\cos x)=-\sin x\,dx\).

Check Your Understanding

For each question, identify the transformed integrand and pay particular attention to the sign and the interval.

  1. Under \(t=\cos x\), what does \(\int \frac{\sin^7x}{3+\cos^2x}\,dx\) become in the variable \(t\)?
  2. Why does an odd power of sine leave a factor suitable for \(dt\), while the remaining sine power can be replaced by \(1-t^2\)?
  3. What are the transformed bounds when \(x\) runs from \(0\) to \(\pi/3\)?
  4. On what interval of \(x\) is cosine monotone on \([0,\pi]\), and why can splitting at \(\pi/2\) help with a direct change of variables?
  5. What sign error results from using \(dt=\sin x\,dx\) when \(t=\cos x\)?

Test yourself: Calculus II 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