Tutorials › Calculus II › Phase Shifts in Sine-Cosine Power Integrals

Sine and Cosine Powers · Tutorial 122 of 998

Phase Shifts in Sine-Cosine Power Integrals

Use a shifted variable or angle-addition identities to integrate shifted sine-cosine powers, while preserving the correct limits and signs.

Beginner 9 min read

What You'll Learn

  • Translate a shifted trigonometric expression into a new variable.
  • Update both limits of a definite integral after a phase shift.
  • Integrate shifted powers using familiar power identities in the new variable.
  • Expand shifted sine functions with angle-addition identities.
  • Check shifted antiderivatives by differentiation.
  • Identify and correct endpoint errors caused by shifting a variable.

Why a Phase Shift Matters

A constant inside a trigonometric function changes the angle at which the function is evaluated. In an integral such as \(\int \sin^2(x+a)\,dx\), the expression is not a new kind of sine function: it is the usual sine function evaluated at a translated angle. Recognizing this translation lets us use familiar identities and antiderivatives.

For an indefinite integral, the translation is usually short: set \(u=x+a\), so \(du=dx\). For a definite integral, the same change also translates the endpoints. This second part is essential. The new integrand and the new limits must describe the same interval as the original integral.

Key idea: If \(u=x+a\), then \(x=u-a\), \(dx=du\), and the limits \(x=\alpha\) and \(x=\beta\) become \(u=\alpha+a\) and \(u=\beta+a\).

Translation of a Shifted Integral

Let \(g\) be a function for which the relevant integral exists, and let \(a\) be a constant. The substitution \(u=x+a\) gives the general definite-integral rule

$$ \int_{\alpha}^{\beta} g(x+a)\,dx = \int_{\alpha+a}^{\beta+a} g(u)\,du. $$

The direction of the interval is preserved: adding the same constant to both endpoints does not change which endpoint comes first. If the original limits are reversed, the translated limits remain reversed as well.

For an indefinite integral, the corresponding statement is that if \(G'(u)=g(u)\), then

$$ \int g(x+a)\,dx=G(x+a)+C, $$

where \(C\) is an arbitrary constant. The chain rule confirms the formula because the derivative of \(G(x+a)\) is \(G'(x+a)\cdot 1=g(x+a)\).

Why the Endpoint Rule Works

The substitution rule can be justified directly using an antiderivative. Suppose \(G'(u)=g(u)\). By the chain rule, \(G(x+a)\) is an antiderivative of \(g(x+a)\). The Fundamental Theorem of Calculus therefore gives

$$ \int_{\alpha}^{\beta}g(x+a)\,dx = G(\beta+a)-G(\alpha+a). $$

Applying the same theorem to \(g(u)\) on the translated interval gives

$$ \int_{\alpha+a}^{\beta+a}g(u)\,du = G(\beta+a)-G(\alpha+a). $$

Both integrals equal the same difference, which proves the translation rule. The limits are not an optional adjustment: they are what make the second integral have exactly the same antiderivative values as the first.

Applying Familiar Power Identities

Once the angle has been translated, the usual sine-cosine identities can be applied to the new variable. For example, the power-reduction identities for squares are

$$ \sin^2 u=\frac{1-\cos(2u)}{2}, \qquad \cos^2 u=\frac{1+\cos(2u)}{2}. $$

These identities work just as well when \(u=x+a\). A shifted square does not require a new power-reduction formula; it requires careful handling of the shifted angle and, for definite integrals, the shifted bounds. Likewise, products such as \(\sin^m(x+a)\cos^n(x+a)\) can be expressed in terms of \(u\) and handled using the identities and power-integral techniques already established.

Worked Example: An Indefinite Integral of a Shifted Odd Power

Evaluate \(\int \sin^3(x+\pi/3)\,dx\).

Set \(u=x+\pi/3\). Then \(du=dx\), so the integral becomes

$$ \int \sin^3 u\,du. $$

Write one sine factor separately and use \(\sin^2u=1-\cos^2u\):

$$ \int \sin u(1-\cos^2u)\,du. $$

Let \(v=\cos u\), so \(dv=-\sin u\,du\). Thus

$$ \int \sin u(1-\cos^2u)\,du =-\int(1-v^2)\,dv =-v+\frac{v^3}{3}+C. $$

Substitute \(v=\cos u\), then \(u=x+\pi/3\):

$$ \int \sin^3(x+\pi/3)\,dx = -\cos(x+\pi/3)+\frac{\cos^3(x+\pi/3)}{3}+C. $$

Check by differentiation. The derivative of the first term is \(\sin(x+\pi/3)\). The derivative of the second term is \(-\cos^2(x+\pi/3)\sin(x+\pi/3)\). Their sum is \(\sin(x+\pi/3)(1-\cos^2(x+\pi/3))=\sin^3(x+\pi/3)\), as required.

Worked Example: A Definite Integral with Shifted Limits

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

Set \(u=x-\pi/6\), so \(du=dx\). Translate both endpoints:

$$ x=0 \ \Longrightarrow\ u=-\frac{\pi}{6}, \qquad x=\frac{\pi}{2} \ \Longrightarrow\ u=\frac{\pi}{3}. $$

Now apply the cosine-square identity and integrate:

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

At the upper endpoint, the antiderivative is \(\pi/6+\sqrt{3}/8\). At the lower endpoint, it is \(-\pi/12-\sqrt{3}/8\). Therefore,

$$ \left(\frac{\pi}{6}+\frac{\sqrt{3}}{8}\right) -\left(-\frac{\pi}{12}-\frac{\sqrt{3}}{8}\right) = \frac{\pi}{4}+\frac{\sqrt{3}}{4}. $$

For a check, differentiate \(F(u)=u/2+\sin(2u)/4\). Its derivative is \(1/2+\cos(2u)/2=\cos^2u\). Since \(u=x-\pi/6\) has derivative \(1\), \(F(x-\pi/6)\) differentiates to the original integrand. The endpoint evaluation above uses the correct translated interval.

Using Angle-Addition Identities Instead

A phase shift can also be removed by expanding the shifted sine or cosine. The angle-addition identities are

$$ \sin(x+a)=\sin x\cos a+\cos x\sin a, \qquad \cos(x+a)=\cos x\cos a-\sin x\sin a. $$

These identities are especially useful when expanding a shifted expression turns it into powers or products of the unshifted sine and cosine. For a power, expansion can create several terms, so it is worth keeping the expression organized and checking that all coefficients are carried through.

Worked Example: Expanding a Shifted Square

Evaluate \(\int_0^{\pi/2}\sin^2(x+\pi/6)\,dx\) by the angle-addition identity.

Since \(\cos(\pi/6)=\sqrt{3}/2\) and \(\sin(\pi/6)=1/2\),

$$ \sin(x+\pi/6)=\frac{\sqrt{3}}{2}\sin x+\frac{1}{2}\cos x. $$

Squaring gives

$$ \sin^2(x+\pi/6) = \frac{3}{4}\sin^2x+\frac{1}{4}\cos^2x +\frac{\sqrt{3}}{2}\sin x\cos x. $$

Integrate each term over the stated interval. The square identities give \(\int_0^{\pi/2}\sin^2x\,dx=\pi/4\) and \(\int_0^{\pi/2}\cos^2x\,dx=\pi/4\). Also, \(\sin x\cos x\) has antiderivative \(\sin^2x/2\), so its integral on this interval is \(1/2\). Hence

$$ \begin{aligned} \int_0^{\pi/2}\sin^2(x+\pi/6)\,dx &=\frac{3}{4}\cdot\frac{\pi}{4} +\frac{1}{4}\cdot\frac{\pi}{4} +\frac{\sqrt{3}}{2}\cdot\frac{1}{2}\\ &=\frac{\pi}{4}+\frac{\sqrt{3}}{4}. \end{aligned} $$

To check the antiderivative used in this calculation, an antiderivative of the expanded integrand is

$$ F(x)=\frac{3}{4}\left(\frac{x}{2}-\frac{\sin(2x)}{4}\right) +\frac{1}{4}\left(\frac{x}{2}+\frac{\sin(2x)}{4}\right) +\frac{\sqrt{3}}{4}\sin^2x. $$

Differentiating the first two terms gives \((3/4)\sin^2x+(1/4)\cos^2x\). Differentiating the last gives \((\sqrt{3}/2)\sin x\cos x\). Their sum is exactly the expanded integrand. Evaluating \(F(\pi/2)-F(0)\) gives \(\pi/4+\sqrt{3}/4\), matching the integral calculation.

The substitution method gives the same value with less expansion: set \(u=x+\pi/6\), which changes the limits from \(0,\pi/2\) to \(\pi/6,2\pi/3\), then integrate \(\sin^2u\). The expansion above illustrates that the angle-addition route is also valid when its terms are integrated correctly.

A Common Endpoint Error

Consider again \(\int_0^{\pi/2}\cos^2(x-\pi/6)\,dx\). A common mistake is to set \(u=x-\pi/6\) in the integrand but retain the old limits \(0\) and \(\pi/2\). That incorrect calculation gives

$$ \int_0^{\pi/2}\cos^2u\,du=\frac{\pi}{4}, $$

which is not the original integral's value. The shift changes the interval: its endpoints are \(-\pi/6\) and \(\pi/3\), not \(0\) and \(\pi/2\). The correct evaluation is \(\pi/4+\sqrt{3}/4\). The error is not in the cosine-square identity; it is in pairing the transformed integrand with limits that belong to a different interval.

Endpoint check: After setting \(u=x+a\), substitute each original endpoint into \(u=x+a\) before evaluating. Do not change the integrand while leaving the old limits in place.

Choosing Between the Two Representations

Both shifting the variable and expanding with angle addition are exact. Shifting is often direct when every trigonometric factor has the same shifted angle, because the whole expression becomes a familiar function of \(u\). Expansion is useful when the resulting unshifted terms are straightforward to integrate or when the angle-addition identity itself is the clearest way to expose the expression.

For a product with a shared phase, such as \(\sin^m(x+a)\cos^n(x+a)\), the substitution \(u=x+a\) moves both factors together: the product becomes \(\sin^m u\cos^n u\). If the integral is definite, both bounds move by \(a\). If the phases differ between factors, one cannot replace both angles by the same \(u\) without further rewriting; angle-addition identities can express the factors relative to a common variable instead.

In every case, keep the original limits visible until they have been translated, and check an antiderivative by differentiating it with the chain rule. These checks distinguish a correct phase shift from an expression that merely looks similar.

Check Your Understanding

For each question, pay particular attention to what happens to the angle and, where relevant, the endpoints.

  1. Under the substitution \(u=x-\pi/4\), what are the new limits when \(x\) ranges from \(-\pi/6\) to \(\pi/3\)?
  2. State an antiderivative of \(\sin^2(x+\pi/3)\) using a power-reduction identity.
  3. What is the main error in replacing \(\int_0^{\pi/2}g(x+\pi/5)\,dx\) with \(\int_0^{\pi/2}g(u)\,du\)?
  4. Write \(\cos(x+\pi/3)\) in terms of \(\sin x\) and \(\cos x\).
  5. How can differentiation check an antiderivative of \(g(x+a)\)?

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