Tutorials › Calculus II › Frequency and Phase in Polynomial-Trigonometric Tables

Repeated and Tabular Parts · Tutorial 58 of 998

Frequency and Phase in Polynomial-Trigonometric Tables

Use repeated antiderivatives of sine and cosine to construct and check tabular formulas for polynomial-trigonometric products with a nonzero frequency and arbitrary phase.

Intermediate 9 min read

What You'll Learn

  • State when tabular integration applies to a polynomial times sine or cosine
  • Track the frequency factor in each successive trigonometric antiderivative
  • Use phase shifts to organize the alternating sine and cosine signs
  • Construct antiderivatives for general \(x^n\sin(bx+c)\) and \(x^n\cos(bx+c)\)
  • Verify completed tables by differentiating their results
  • Identify and correct errors caused by omitting frequency factors

Why Frequency and Phase Matter

Tabular integration is especially effective when a polynomial is multiplied by a sine or cosine: successive derivatives of the polynomial eventually become zero, while successive antiderivatives of the trigonometric factor cycle through sine and cosine. If the angle is \(bx+c\), however, each antiderivative also introduces a factor involving \(b\). Keeping track of that factor is essential.

The constant \(c\) shifts the phase of the oscillation. It does not change the frequency factor in the integration, but it must remain inside every sine and cosine that appears in the table. We will write the angle as \(\theta=bx+c\) to make those changes easier to follow.

Central rule: For a nonzero frequency \(b\), each successive antiderivative of \(\sin(bx+c)\) or \(\cos(bx+c)\) contributes one additional factor of \(1/b\). The phase stays \(bx+c\); the sine and cosine alternate with the corresponding signs.

Set Up the Table

Let \(n\) be a positive integer, \(b\) a nonzero real number, and \(c\) a real number. (If \(n=0\), the polynomial factor is the constant \(1\), and its derivative column is just \(1,\ 0\).) The polynomial side of the table is formed by differentiating \(x^n\) until it reaches zero:

$$ x^n,\quad nx^{n-1},\quad n(n-1)x^{n-2},\quad \ldots,\quad n!,\quad 0. $$

On the trigonometric side, begin with the function being integrated and repeatedly take antiderivatives with respect to \(x\). For example, starting with \(\sin(bx+c)\), the first few entries are

$$ \sin(bx+c),\quad -\frac{\cos(bx+c)}{b},\quad -\frac{\sin(bx+c)}{b^2},\quad \frac{\cos(bx+c)}{b^3},\quad \frac{\sin(bx+c)}{b^4}. $$

Starting instead with \(\cos(bx+c)\), the sequence is

$$ \cos(bx+c),\quad \frac{\sin(bx+c)}{b},\quad -\frac{\cos(bx+c)}{b^2},\quad -\frac{\sin(bx+c)}{b^3},\quad \frac{\cos(bx+c)}{b^4}. $$

The entries are antiderivatives, not derivatives. For instance, differentiating \(-\cos(bx+c)/b\) gives \(\sin(bx+c)\), because the chain rule contributes a factor of \(b\), which cancels the denominator.

To read the table, multiply diagonally, starting with the original polynomial and the first antiderivative, then alternate plus and minus signs. Continue until the polynomial derivatives reach zero. Each term uses the next antiderivative in the trigonometric sequence.

The General Formulas

The table can be summarized using phase shifts. In the formulas below, \(k\) counts the number of derivatives taken on the polynomial, and the factorial quotient gives the coefficient of that derivative.

Tabular formulas: If \(n\) is a nonnegative integer, \(b\ne 0\), and \(\theta=bx+c\), then
$$ \int x^n\sin(bx+c)\,dx = \sum_{k=0}^{n} (-1)^k \frac{n!}{(n-k)!} \frac{x^{n-k}}{b^{k+1}} \sin\left(\theta-\frac{(k+1)\pi}{2}\right)+C, $$
$$ \int x^n\cos(bx+c)\,dx = \sum_{k=0}^{n} (-1)^k \frac{n!}{(n-k)!} \frac{x^{n-k}}{b^{k+1}} \cos\left(\theta-\frac{(k+1)\pi}{2}\right)+C. $$

Here \(C\) is an arbitrary constant of integration. The phase-shift notation is a compact way to record the changing sine and cosine signs. It does not change the argument \(\theta=bx+c\) itself.

Why the Table Works

A complete justification comes from differentiating the sum. Let \(g(x)\) be either \(\sin(bx+c)\) or \(\cos(bx+c)\). Define \(W_0(x)=g(x)\), and for each \(j\geq 1\), let \(W_j\) be an antiderivative of \(W_{j-1}\), choosing any constants of integration to be zero. Thus \(W_j'=W_{j-1}\), and \(W_j\) is the \(j\)-th successive antiderivative of \(g\).

For \(u(x)=x^n\), form the finite alternating sum

$$ F(x)=\sum_{k=0}^{n}(-1)^k u^{(k)}(x)W_{k+1}(x). $$

Differentiate each product using the product rule. The result has two sums:

$$ F'(x) = \sum_{k=0}^{n}(-1)^k u^{(k+1)}W_{k+1} + \sum_{k=0}^{n}(-1)^k u^{(k)}W_k. $$

In the first sum, replace the index \(k+1\) by \(j\). Its terms then cancel the terms in the second sum for \(j=1,\ldots,n\), since their signs are opposite. The term left from the second sum at \(j=0\) is \(uW_0=ug\). The only possible final term from the first sum involves \(u^{(n+1)}\), and it is zero because the \((n+1)\)-st derivative of \(x^n\) vanishes. Consequently, \(F'=ug=x^ng\), proving that the alternating table sum is an antiderivative.

For the sine and cosine cases, the chain rule supplies the frequency factors. In particular, the \(j\)-th successive antiderivative of \(g\) contains \(b^{-j}\). Explicitly, those antiderivatives are

$$ W_j(x)= \frac{\sin\left(\theta-\frac{j\pi}{2}\right)}{b^j} \quad\text{when }g(x)=\sin\theta, \qquad W_j(x)= \frac{\cos\left(\theta-\frac{j\pi}{2}\right)}{b^j} \quad\text{when }g(x)=\cos\theta. $$

Substituting these expressions and \(u^{(k)}=n!x^{n-k}/(n-k)!\) into the alternating sum gives the two stated formulas. The proof also explains why the method stops cleanly: it is the polynomial derivative, not the trigonometric sequence, that eventually becomes zero.

Worked Examples

Worked Example: A Quadratic Times a Sine

Find \(\int x^2\sin(2x+\pi/3)\,dx\). Set \(\theta=2x+\pi/3\). The polynomial derivatives are \(x^2,2x,2,0\). The successive antiderivatives of \(\sin\theta\) are \(-\cos\theta/2\), \(-\sin\theta/4\), and \(\cos\theta/8\). Combining the diagonal products with alternating signs gives

$$ \begin{aligned} \int x^2\sin\theta\,dx &=x^2\left(-\frac{\cos\theta}{2}\right) -(2x)\left(-\frac{\sin\theta}{4}\right) +2\left(\frac{\cos\theta}{8}\right)+C\\ &=-\frac{x^2\cos\theta}{2} +\frac{x\sin\theta}{2} +\frac{\cos\theta}{4}+C. \end{aligned} $$

Check by differentiation. The derivatives of the three nonconstant terms are, respectively, \(-x\cos\theta+x^2\sin\theta\), \(\sin\theta/2+x\cos\theta\), and \(-\sin\theta/2\). Adding them leaves \(x^2\sin\theta\), as required.

Worked Example: A Cubic Times a Cosine

Find \(\int x^3\cos(3x-\pi/4)\,dx\). Set \(\theta=3x-\pi/4\). The polynomial derivatives are \(x^3,3x^2,6x,6,0\). The successive antiderivatives of \(\cos\theta\) are \(\sin\theta/3\), \(-\cos\theta/9\), \(-\sin\theta/27\), and \(\cos\theta/81\). Thus

$$ \begin{aligned} \int x^3\cos\theta\,dx &=x^3\frac{\sin\theta}{3} -(3x^2)\left(-\frac{\cos\theta}{9}\right) +(6x)\left(-\frac{\sin\theta}{27}\right) -6\frac{\cos\theta}{81}+C\\ &=\frac{x^3\sin\theta}{3} +\frac{x^2\cos\theta}{3} -\frac{2x\sin\theta}{9} -\frac{2\cos\theta}{27}+C. \end{aligned} $$

To check, differentiate the four terms. Their derivatives are \(x^2\sin\theta+x^3\cos\theta\), \(2x\cos\theta/3-x^2\sin\theta\), \(-2\sin\theta/9-2x\cos\theta/3\), and \(2\sin\theta/9\). All terms cancel except \(x^3\cos\theta\), the original integrand.

Worked Example: A Fourth Power Times a Cosine

Find \(\int x^4\cos(2x+\pi/6)\,dx\). Write \(\theta=2x+\pi/6\). The derivatives of \(x^4\) are \(x^4,4x^3,12x^2,24x,24,0\). The needed successive antiderivatives are \(\sin\theta/2\), \(-\cos\theta/4\), \(-\sin\theta/8\), \(\cos\theta/16\), and \(\sin\theta/32\). The table gives

$$ \begin{aligned} \int x^4\cos\theta\,dx &=x^4\frac{\sin\theta}{2} -(4x^3)\left(-\frac{\cos\theta}{4}\right) +(12x^2)\left(-\frac{\sin\theta}{8}\right)\\ &\quad -(24x)\frac{\cos\theta}{16} +24\frac{\sin\theta}{32}+C\\ &=\frac{x^4\sin\theta}{2} +x^3\cos\theta -\frac{3x^2\sin\theta}{2} -\frac{3x\cos\theta}{2} +\frac{3\sin\theta}{4}+C. \end{aligned} $$

Check by differentiation. The five derivatives, in order, are \(2x^3\sin\theta+x^4\cos\theta\), \(3x^2\cos\theta-2x^3\sin\theta\), \(-3x\sin\theta-3x^2\cos\theta\), \(-3\cos\theta/2+3x\sin\theta\), and \(3\cos\theta/2\). The sine and lower-degree cosine terms cancel, leaving \(x^4\cos\theta\).

A Common Frequency Error

A frequent mistake is to take an antiderivative of a trigonometric function of \(bx+c\) as if the derivative of its angle were \(1\). For example, the first antiderivative of \(\sin(3x+\pi/6)\) is not \(-\cos(3x+\pi/6)\). That expression differentiates to \(3\sin(3x+\pi/6)\), three times the desired function.

For a concrete table, consider \(\int x\sin(3x+\pi/6)\,dx\). Omitting the frequency factors gives the incorrect expression \(-x\cos\theta+\sin\theta\), where \(\theta=3x+\pi/6\). Its derivative is \(-\cos\theta+3x\sin\theta+3\cos\theta\), which does not equal \(x\sin\theta\). Keeping the factors of \(1/3\) gives the correct result:

$$ \int x\sin\theta\,dx =x\left(-\frac{\cos\theta}{3}\right) -\left(-\frac{\sin\theta}{9}\right)+C =-\frac{x\cos\theta}{3}+\frac{\sin\theta}{9}+C. $$

Differentiating this expression gives \(-\cos\theta/3+x\sin\theta+\cos\theta/3=x\sin\theta\). The check catches the missing-frequency error immediately.

When the Formula Applies

The polynomial must have a finite degree, and the frequency must satisfy \(b\ne0\). If \(b=0\), then the trigonometric factor is constant in \(x\), so the displayed formulas—which divide by powers of \(b\)—do not apply. In that case, integrate the constant multiple of \(x^n\) directly.

The phase \(c\) can be any real number. It is retained in every angle and causes no additional factor because differentiating \(bx+c\) still gives \(b\). The frequency \(b\) may be negative as well as positive: the same formulas work because the signed powers of \(b\) correctly account for the chain rule.

These tables provide an efficient, auditable way to integrate a polynomial times a single sine or cosine. Writing out the derivatives and antiderivatives before forming the diagonal sum helps prevent sign errors; differentiating the final expression confirms both the phase and every frequency factor.

Check Your Understanding

Use a tabular layout where appropriate, and check any proposed antiderivative by differentiation.

  1. What changes in each successive trigonometric antiderivative when the frequency is \(b\) rather than \(1\)?
  2. Write the first three successive antiderivatives of \(\cos(4x-\pi/5)\).
  3. Set up the tabular terms for \(\int x^2\cos(5x)\,dx\), without simplifying the final answer.
  4. Why do the general formulas require \(b\ne0\)?
  5. Find the error in the claim that \(-\cos(2x+\pi/3)\) is an antiderivative of \(\sin(2x+\pi/3)\).

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