Tutorials › Calculus I › Differentiating Products of Trigonometric Functions

Trigonometric Derivatives · Tutorial 502 of 1495

Differentiating Products of Trigonometric Functions

Use the product rule and trigonometric chain rules together to differentiate products accurately, then verify each factor and term.

Intermediate 9 min read

What You'll Learn

  • Apply the product rule to a pair of trigonometric functions.
  • Differentiate factors with different composite inputs using the chain rule.
  • Extend the rule to products of three or more factors.
  • Track signs, inner derivatives, and domain restrictions.
  • Check a result by verifying each term and evaluating at a convenient input.

Why Products Need a Separate Rule

A trigonometric expression may contain two or more functions multiplied together. Differentiating such an expression requires accounting for how each factor changes. The product rule does this: for two differentiable factors, differentiate the first while leaving the second unchanged, then add the first unchanged times the derivative of the second.

When a factor also has a composite input, such as \(\sin(3x)\), its derivative must include the chain rule. Thus a product can require both rules at once. The main discipline is to identify the factors clearly before differentiating.

Definition: If \(u\) and \(v\) are differentiable functions, then their product is differentiable and \( (uv)'=u'v+uv'\). For trigonometric products, compute each factor’s derivative—including any derivative of its input—before assembling the two terms.

Trigonometric Derivatives Used in Products

The product rule does not change the derivative of an individual trigonometric factor. The usual trigonometric derivative formulas are combined with the chain rule when the input is not simply \(x\). For a differentiable function \(g\), the formulas we will use include:

$$ \begin{aligned} \frac{d}{dx}\sin(g(x))&=\cos(g(x))g'(x),\\ \frac{d}{dx}\cos(g(x))&=-\sin(g(x))g'(x),\\ \frac{d}{dx}\tan(g(x))&=\sec^2(g(x))g'(x),\\ \frac{d}{dx}\sec(g(x))&=\sec(g(x))\tan(g(x))g'(x). \end{aligned} $$

The sine and cosine formulas apply wherever \(g\) is differentiable. The tangent formula requires \(\cos(g(x))\ne 0\), and the secant formula requires the same condition, so that the tangent or secant is defined. These conditions also apply when such factors occur in a product.

For a pair \(u(x)v(x)\), the product rule gives two terms, not one. If \(u(x)=\sin(g(x))\) and \(v(x)=\cos(h(x))\), then the inputs \(g\) and \(h\) need not be the same:

$$ \frac{d}{dx}\bigl(\sin(g(x))\cos(h(x))\bigr) = g'(x)\cos(g(x))\cos(h(x)) - h'(x)\sin(g(x))\sin(h(x)). $$

The first term comes from differentiating the sine factor while keeping the cosine factor in place. The second comes from differentiating the cosine factor while keeping the sine factor in place. In particular, \(g'(x)\) and \(h'(x)\) belong to different terms.

Worked Example: A Product of Sine and Cosine

Differentiate \(y=\sin x\cos x\).

Take \(u(x)=\sin x\) and \(v(x)=\cos x\). Their derivatives are \(u'(x)=\cos x\) and \(v'(x)=-\sin x\). Apply the product rule:

$$ \begin{aligned} y' &=u'v+uv'\\ &=(\cos x)(\cos x)+(\sin x)(-\sin x)\\ &=\cos^2 x-\sin^2 x. \end{aligned} $$

To check the calculation at \(x=0\), the derivative formula gives \(\cos^2(0)-\sin^2(0)=1^2-0^2=1\). The two product-rule contributions at \(0\) are \(\cos(0)\cos(0)=1\) and \(\sin(0)(-\sin(0))=0\), which also sum to \(1\). No trigonometric identity is needed to state the derivative.

Products with Different Composite Inputs

When the factors have different inputs, work out each derivative separately. A common source of errors is to use the derivative of the outer trigonometric function but omit the derivative of its input. For example, differentiating \(\sin(3x)\) produces the factor \(3\), while differentiating \(\cos(x^2+1)\) produces the factor \(2x\).

Worked Example: Sine and Cosine with Different Inputs

Differentiate \(y=\sin(3x)\cos(x^2+1)\).

Let \(u(x)=\sin(3x)\) and \(v(x)=\cos(x^2+1)\). By the chain rule,

$$ u'(x)=3\cos(3x), \qquad v'(x)=-2x\sin(x^2+1). $$

Now apply the product rule and substitute both factor derivatives:

$$ \begin{aligned} y' &=u'v+uv'\\ &=\bigl(3\cos(3x)\bigr)\cos(x^2+1) +\sin(3x)\bigl(-2x\sin(x^2+1)\bigr)\\ &=3\cos(3x)\cos(x^2+1) -2x\sin(3x)\sin(x^2+1). \end{aligned} $$

Check at \(x=0\). The first term is \(3\cos(0)\cos(1)=3\cos(1)\). The second term is \(-2(0)\sin(0)\sin(1)=0\). Thus the formula gives \(y'(0)=3\cos(1)\). Directly from the product rule at \(0\), \(u'(0)v(0)+u(0)v'(0)=3\cdot\cos(1)+0\cdot v'(0)=3\cos(1)\), confirming the evaluation.

Why the Product Rule Works

The rule follows from the definition of derivative. Suppose \(u\) and \(v\) are differentiable at \(x\). In the difference quotient for their product, add and subtract \(u(x+h)v(x)\). For nonzero \(h\), this gives:

$$ \begin{aligned} \frac{u(x+h)v(x+h)-u(x)v(x)}{h} &= u(x+h)\frac{v(x+h)-v(x)}{h}\\ &\quad+ v(x)\frac{u(x+h)-u(x)}{h}. \end{aligned} $$

As \(h\) approaches \(0\), differentiability of \(u\) implies continuity of \(u\) at \(x\), so \(u(x+h)\) approaches \(u(x)\). The difference quotients for \(v\) and \(u\) approach \(v'(x)\) and \(u'(x)\), respectively. Therefore the limit of the displayed expression is \(u(x)v'(x)+v(x)u'(x)\). This is the derivative of \(uv\), which proves the product rule. The argument applies to trigonometric factors because, wherever their inputs are defined and differentiable, their compositions are differentiable as well.

Products of Three or More Factors

For three differentiable factors \(u\), \(v\), and \(w\), apply the two-factor rule and then apply it again to the resulting products. This gives:

$$ \begin{aligned} \frac{d}{dx}(uvw) &=(uv)'w+(uv)w'\\ &=(u'v+uv')w+uvw'\\ &=u'vw+uv'w+uvw'. \end{aligned} $$

Each term differentiates exactly one factor and leaves every other factor unchanged. For any positive integer \(n\), the same pattern holds for a product of \(n\) differentiable factors: the derivative is the sum of \(n\) terms, with one factor differentiated in each term. This follows by induction: it holds for two factors by the product rule; if it holds for \(n\) factors, apply the product rule to their product times one more factor. The result consists of the existing \(n\) terms multiplied by the new factor, together with one term in which the new factor is differentiated.

Rule for a finite product: If \(f_1,\ldots,f_n\) are differentiable, then \(\frac{d}{dx}(f_1f_2\cdots f_n)=\sum_{i=1}^{n} f_1\cdots f_{i-1}f_i'f_{i+1}\cdots f_n\). In each summand, exactly one factor is differentiated. For a trigonometric product, use the appropriate chain rule inside every differentiated factor.

Worked Example: A Product of Three Trigonometric Factors

Differentiate \(y=\sin(2x)\cos x\sec(3x)\). This function is defined where \(\cos(3x)\ne 0\), because the secant factor must be defined.

Name the factors \(u(x)=\sin(2x)\), \(v(x)=\cos x\), and \(w(x)=\sec(3x)\). Their derivatives are:

$$ u'(x)=2\cos(2x), \qquad v'(x)=-\sin x, \qquad w'(x)=3\sec(3x)\tan(3x). $$

Differentiate one factor at a time, retaining the other two in each term:

$$ \begin{aligned} y' &=u'vw+uv'w+uvw'\\ &=2\cos(2x)\cos x\sec(3x)\\ &\quad-\sin(2x)\sin x\sec(3x)\\ &\quad+3\sin(2x)\cos x\sec(3x)\tan(3x). \end{aligned} $$

Check at \(x=0\), where all factors and derivatives are defined. The first term is \(2\cos(0)\cos(0)\sec(0)=2\). The second term is \(-\sin(0)\sin(0)\sec(0)=0\). The third term is \(3\sin(0)\cos(0)\sec(0)\tan(0)=0\). Thus \(y'(0)=2\). Substituting \(x=0\) into the three-factor rule before expansion gives \(u'(0)v(0)w(0)+u(0)v'(0)w(0)+u(0)v(0)w'(0)=2\cdot1\cdot1+0+0=2\), confirming the result.

A Common Product-Rule Mistake

Consider \(y=\sin(3x)\cos x\). A tempting but incorrect calculation differentiates both factors in the same term:

$$ \text{Incorrect:}\qquad y'=3\cos(3x)(-\sin x). $$

This expression omits the two-factor product rule’s second contribution. It behaves as though the change in the product came only from changing both factors simultaneously. The product rule instead accounts for the change in each factor separately, while holding the other factor in place in that term. The correct calculation is:

$$ \begin{aligned} y' &=3\cos(3x)\cos x+\sin(3x)(-\sin x)\\ &=3\cos(3x)\cos x-\sin(3x)\sin x. \end{aligned} $$

At \(x=0\), the incorrect expression gives \(3\cdot1\cdot0=0\), whereas the correct expression gives \(3\cdot1\cdot1-0\cdot0=3\). The discrepancy makes the omitted term visible. A reliable check is to count factors: for two factors there must be two product-rule contributions; for three factors there must be three.

A Reliable Differentiation Process

Before simplifying, keep the product-rule structure visible. This makes it easier to check that every factor has been differentiated once and that the chain rule has been applied to each input.

1
Identify the factors.
Write the expression as \(f_1(x)f_2(x)\cdots f_n(x)\), and note any domain restrictions such as a secant or tangent denominator being nonzero.
2
Differentiate each factor separately.
Use the trigonometric derivative formula and include the derivative of every composite input.
3
Assemble one term per factor.
In each term, differentiate one factor and leave all the others unchanged.
4
Check the result.
Count the terms, inspect chain-rule factors and signs, then test the formula at a convenient point in its domain.

Check Your Understanding

For each question, keep the product-rule contributions separate until every factor derivative has been found.

  1. Differentiate \(y=\cos x\sin(2x)\).
  2. Differentiate \(y=\sin(x^2)\cos(4x)\), showing both chain-rule factors.
  3. Differentiate \(y=\tan x\sec(2x)\) and state the domain restriction.
  4. How many terms occur when differentiating a product of five differentiable factors?
  5. For \(y=\sin x\cos x\sec x\), write the three product-rule terms without combining them.

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