Tutorials › Calculus II › Using t = sin x with an Odd Cosine Factor

Rationalizing Substitutions · Tutorial 241 of 998

Using t = sin x with an Odd Cosine Factor

Use the sine substitution to rationalize integrals with an odd cosine factor, while keeping track of domain restrictions and the sign of cosine.

Intermediate 9 min read

What You'll Learn

  • Identify when an odd power of cosine pairs with the differential to allow the sine substitution.
  • Rewrite the remaining even cosine powers in terms of sine.
  • Convert the resulting integral into a rational function of the substitution variable.
  • Apply the method to indefinite and definite integrals.
  • Preserve the direction of transformed limits when cosine is negative.
  • Split definite integrals at points where cosine changes sign.

Why the Sine Substitution Fits

Some trigonometric integrals become algebraic once their sine and cosine factors are expressed using a single variable. The substitution \(t=\sin x\) is especially useful when the integrand contains an odd power of cosine: one factor of \(\cos x\) pairs with \(dx\), while every remaining cosine factor occurs in an even power and can be replaced using \(\cos^2 x=1-\sin^2 x\).

The sign of cosine still matters when changing limits on a definite integral. On an interval where \(\cos x<0\), the quantity \(t=\sin x\) decreases as \(x\) increases. The correct transformed limits preserve that direction; they should not be reversed merely to make them appear in increasing order.

Key idea: For an integrand of the form \(R(\sin x)\cos^{2m+1}x\), where \(m\) is a nonnegative integer and \(R\) is rational, set \(t=\sin x\). Then \(\cos^{2m}x=(1-t^2)^m\) and \(\cos x\,dx=dt\), so the transformed integrand is rational in \(t\).

Setting Up the Substitution

Suppose the integrand has the form

$$ R(\sin x)\cos^{2m+1}x\,dx, $$

where \(m\) is a nonnegative integer and \(R\) is a rational function: a quotient of polynomials wherever its denominator is nonzero. Separate the odd power of cosine into an even power and one remaining factor:

$$ \cos^{2m+1}x\,dx = \bigl(\cos^2 x\bigr)^m\cos x\,dx = \bigl(1-\sin^2 x\bigr)^m\cos x\,dx. $$

Now set \(t=\sin x\), so \(dt=\cos x\,dx\). The integral becomes

$$ \int R(t)(1-t^2)^m\,dt. $$

This is a rational integral in \(t\), which can then be evaluated using algebraic integration methods. When translating an answer back to \(x\), replace \(t\) with \(\sin x\). The substitution is valid wherever the original integrand is defined; in particular, avoid intervals containing points where a denominator in \(R(\sin x)\) is zero.

Why this works: The factor \(\cos x\,dx\) is exactly the differential \(dt\). All the other cosine factors combine into powers of \(\cos^2 x=1-\sin^2 x\), so no square-root choice is needed to form the transformed integrand.

A Derivation Using the Chain Rule

The substitution formula can also be checked by differentiating. Let \(H\) be an antiderivative of \(R(t)(1-t^2)^m\) on an interval where this function is defined. By the chain rule,

$$ \frac{d}{dx}H(\sin x) = H'(\sin x)\cos x = R(\sin x)(1-\sin^2 x)^m\cos x = R(\sin x)\cos^{2m+1}x. $$

Thus \(H(\sin x)\) is an antiderivative of the original integrand. This verifies the method directly and also explains why the same expression can be used on either side of a point where cosine changes sign, as long as the expression is defined there.

Worked Examples

Worked Example: Simplifying a Denominator After Substitution

Evaluate \(\int \frac{\cos^3 x}{1+\sin x}\,dx\) on any interval where the integrand is defined.

Write \(\cos^3 x=\cos^2 x\cos x\), and let \(t=\sin x\), so \(dt=\cos x\,dx\). Then

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

Since \(1-t^2=(1-t)(1+t)\), the quotient simplifies to \(1-t\), provided \(t\ne -1\). This restriction matches the original denominator, which is zero when \(\sin x=-1\). Therefore,

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

To check, differentiate the result:

$$ \frac{d}{dx}\left(\sin x-\frac{\sin^2 x}{2}\right) = \cos x-\sin x\cos x = \cos x(1-\sin x). $$

The original integrand is also \(\cos x(1-\sin x)\), because \[ \frac{\cos^3 x}{1+\sin x} = \frac{\cos x(1-\sin^2 x)}{1+\sin x} = \cos x(1-\sin x) \] where \(1+\sin x\ne0\). The derivative check agrees.

Worked Example: A Higher Odd Power of Cosine

Evaluate \(\int \frac{\cos^5 x}{1+\sin^2 x}\,dx\).

Set \(t=\sin x\), so \(dt=\cos x\,dx\). The remaining fourth power of cosine becomes \((1-t^2)^2\):

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

Divide the polynomials. The quotient is \(t^2-3\), since \[ (t^2+1)(t^2-3)=t^4-2t^2-3. \] The remainder is \(4\), so

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

Integrating each term gives

$$ \int \left(t^2-3+\frac{4}{t^2+1}\right)\,dt = \frac{t^3}{3}-3t+4\arctan t+C. $$

Substituting \(t=\sin x\), the answer is \[ \frac{\sin^3 x}{3}-3\sin x+4\arctan(\sin x)+C. \] For a check, the derivative of the expression as a function of \(t\) is \[ t^2-3+\frac{4}{1+t^2} = \frac{(t^2-3)(1+t^2)+4}{1+t^2} = \frac{t^4-2t^2+1}{1+t^2} = \frac{(1-t^2)^2}{1+t^2}. \] Multiplying by \(dt/dx=\cos x\) gives \(\cos x(1-\sin^2 x)^2/(1+\sin^2 x)\), which equals the original integrand.

Worked Example: Definite Limits When Cosine Is Negative

Evaluate \[ \int_{2\pi/3}^{\pi}\frac{\cos^3 x}{1+\sin x}\,dx. \] On this interval, \(\cos x<0\), so \(\sin x\) decreases as \(x\) increases. With \(t=\sin x\), the lower limit becomes \(\sin(2\pi/3)=\sqrt{3}/2\), and the upper limit becomes \(\sin(\pi)=0\). Thus

$$ \int_{2\pi/3}^{\pi}\frac{\cos^3 x}{1+\sin x}\,dx = \int_{\sqrt{3}/2}^{0}(1-t)\,dt = \left[t-\frac{t^2}{2}\right]_{\sqrt{3}/2}^{0}. $$

Evaluating the bounds,

$$ 0-\left(\frac{\sqrt{3}}{2}-\frac{1}{2}\cdot\frac{3}{4}\right) = \frac{3}{8}-\frac{\sqrt{3}}{2}. $$

This value is negative, as expected: \(\cos^3 x<0\) on the interval and \(1+\sin x>0\). The reversed order of the transformed limits carries the sign correctly.

Cosine's Sign and the Limits of Integration

On an interval where \(\cos x>0\), \(t=\sin x\) increases with \(x\). Where \(\cos x<0\), it decreases. The change-of-variables formula uses the actual transformed endpoints in their original order, and therefore accounts for this orientation automatically:

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

provided the integrands are defined and the substitution is applied over an interval on which \(t=\sin x\) is one-to-one. In particular, an interval on which cosine has a fixed sign is monotone for this substitution. If the original interval crosses a point where \(\cos x=0\), split it there and apply the formula to each monotone piece.

There is no need to write \(\cos x=\sqrt{1-\sin^2 x}\) or \(\cos x=-\sqrt{1-\sin^2 x}\) in this method. The even power is replaced by \(1-t^2\), and the remaining factor \(\cos x\,dx\) is replaced by \(dt\). Introducing a square root can obscure the sign that is already handled by the transformed limits.

A Common Sign Mistake

For the definite integral in the preceding example, a tempting but incorrect step is to reorder the limits from \(0\) to \(\sqrt{3}/2\) without also changing the sign. That would give

$$ \int_0^{\sqrt{3}/2}(1-t)\,dt = \frac{\sqrt{3}}{2}-\frac{3}{8}, $$

which is positive. But \(t\) actually moves from \(\sqrt{3}/2\) down to \(0\), not from \(0\) up to \(\sqrt{3}/2\). Reversing the limits requires a minus sign:

$$ \int_{\sqrt{3}/2}^{0}(1-t)\,dt = -\int_0^{\sqrt{3}/2}(1-t)\,dt = \frac{3}{8}-\frac{\sqrt{3}}{2}. $$

The corrected sign agrees with the sign of the original integrand. A reliable check for definite integrals is to compare the answer's sign with the sign of the integrand over the interval.

When This Method Is Useful

The sine substitution is a direct choice when the sine-dependent factors form a rational function of \(\sin x\) and the differential includes a positive odd power of cosine. It reduces the trigonometric integral to a rational one without needing to solve for \(x\) in terms of \(t\). The essential procedure is to reserve one \(\cos x\,dx\) for \(dt\), then convert every remaining even power of cosine using \(1-\sin^2 x\).

Before applying the method, check two details. First, make sure the denominator is nonzero on the interval of integration, or split the integral at any singularity and treat each defined interval appropriately. Second, for definite integrals, check whether \(\sin x\) is increasing or decreasing. If cosine changes sign inside the interval, split at the zero of cosine so that the substitution is one-to-one on each piece.

Practical rule: Keep the transformed limits in the order \(\sin a\) to \(\sin b\). If that order is decreasing, leave it decreasing or explicitly include a minus sign when reversing it.

Check Your Understanding

For each question, track both the algebra and the orientation of the substitution.

  1. For an integrand containing \(\cos^7 x\,dx\) and a rational function of \(\sin x\), how many cosine factors become \(dt\), and how can the others be rewritten?
  2. Use \(t=\sin x\) to set up, but do not necessarily evaluate, \(\int \frac{\cos^3 x}{2+\sin x}\,dx\).
  3. Why does \(\cos^2 x=1-\sin^2 x\) avoid the need to choose a sign for a square root?
  4. If a definite integral is taken over an interval where cosine is negative, what happens to the transformed limits?
  5. What should be done before applying the substitution to an interval that crosses a point where \(\cos x=0\)?

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