Tutorials › Calculus I › The Missing Chain Factor Pitfall

Trigonometric Derivatives · Tutorial 519 of 1495

The Missing Chain Factor Pitfall

Learn how to include the derivative of the inner function when differentiating sine and cosine composites, and how to diagnose omissions that can be hidden at special points.

Intermediate 9 min read

What You'll Learn

  • Identify the inner function in a composite sine or cosine expression.
  • Apply the chain rule to sine and cosine with a differentiable inner function.
  • Explain why the inner derivative appears in the formula.
  • Check whether an omitted factor changes a derivative formula or only its value at a particular point.
  • Diagnose missing chain factors in linear, shifted, and nonlinear trigonometric expressions.

Introduction

A trigonometric derivative can look familiar and still be wrong. For example, differentiating \(\sin(3x)\) by changing only sine to cosine gives \(\cos(3x)\), but this leaves out a factor. That missing factor matters because the angle \(3x\) changes three times as fast as \(x\).

This is a common instance of the chain rule: when a function is composed with another function, its derivative includes the rate of change of the inner function. In trigonometric differentiation, the inner function is the angle supplied to sine or cosine.

Key idea: Differentiate the outer trigonometric function, keep its inner angle in place, and multiply by the derivative of that angle.

The Chain Factor in Sine and Cosine Derivatives

Throughout, trigonometric arguments are measured in radians. The standard derivatives are \(\frac{d}{du}\sin u=\cos u\) and \(\frac{d}{du}\cos u=-\sin u\). If the angle is itself a differentiable function \(g(x)\), the chain rule gives:

Theorem: If \(g\) is differentiable, then \(\frac{d}{dx}\sin(g(x))=\cos(g(x))g'(x)\) and \(\frac{d}{dx}\cos(g(x))=-\sin(g(x))g'(x)\). The factor \(g'(x)\) is the derivative of the inner function, or angle.

The formula has two parts. The derivative of the outer function changes sine to cosine, or cosine to negative sine. The inner function remains in the trigonometric expression. Finally, multiply by the derivative of that inner function.

$$ \text{outer derivative at the inner function} \times \text{derivative of the inner function} $$

For \(\sin(3x)\), the outer function is sine and the inner function is \(g(x)=3x\). Since \(g'(x)=3\), the derivative is \(3\cos(3x)\), not merely \(\cos(3x)\). For \(\cos(x^2)\), the inner function is \(g(x)=x^2\), so the derivative includes \(2x\).

Why the Inner Derivative Appears

The chain factor is not an extra convention to memorize. It records how quickly the angle changes when \(x\) changes. A short limit argument shows why it must be present.

Let \(a=g(x)\), and let \(\delta=g(x+h)-g(x)\). The change in the sine value can be written using a trigonometric identity:

$$ \frac{\sin(g(x+h))-\sin(g(x))}{h} = \cos\left(a+\frac{\delta}{2}\right) \frac{\sin(\delta/2)}{\delta/2} \frac{\delta}{h}. $$

When \(\delta=0\), interpret the middle factor as \(1\); both sides of the identity are then \(0\). Because \(g\) is differentiable, \(\delta\) tends to \(0\) as \(h\) tends to \(0\), and \(\delta/h\) tends to \(g'(x)\). The standard limit \(\lim_{u\to 0}\sin(u)/u=1\) and continuity of cosine therefore give:

$$ \lim_{h\to 0} \frac{\sin(g(x+h))-\sin(g(x))}{h} = \cos(g(x))g'(x). $$

For cosine, use \(\cos(a+\delta)-\cos(a)=-2\sin(a+\delta/2)\sin(\delta/2)\). The same limit reasoning gives:

$$ \lim_{h\to 0} \frac{\cos(g(x+h))-\cos(g(x))}{h} = -\sin(g(x))g'(x). $$

In both cases, the change in the inner angle contributes the factor \(\delta/h\), whose limit is \(g'(x)\). Leaving out that factor ignores how rapidly the angle changes.

Worked Example: Differentiating \(\sin(3x)\)

Worked Example: Differentiating \(\sin(3x)\)

Find the derivative of \(f(x)=\sin(3x)\), and compare it with the result of omitting the chain factor.

Step 1: Identify the inner function. The angle is \(g(x)=3x\), so \(g'(x)=3\).

Step 2: Differentiate the outer function. The derivative of sine is cosine, leaving the angle \(3x\) in place.

$$ f'(x)=\cos(3x)\cdot 3=3\cos(3x). $$

Step 3: Check by a difference quotient. Put \(\delta=3h\) in the sine difference identity:

$$ \frac{\sin(3x+3h)-\sin(3x)}{h} = 3\cos\left(3x+\frac{3h}{2}\right) \frac{\sin(3h/2)}{3h/2}. $$

As \(h\to 0\), the cosine factor tends to \(\cos(3x)\), and the sine ratio tends to \(1\). The limit is \(3\cos(3x)\), confirming the derivative.

Step 4: See why the omission matters. At \(x=0\), the correct derivative is \(3\cos(0)=3\), whereas the expression with the factor omitted gives \(\cos(0)=1\). They disagree. But at \(x=\pi/6\), the angle is \(3x=\pi/2\), so both expressions equal \(0\). Agreement at that one point does not make the omitted-factor formula correct.

Worked Example: Differentiating \(\cos(x^2)\)

Worked Example: Differentiating \(\cos(x^2)\)

Find the derivative of \(f(x)=\cos(x^2)\). Here the angle changes with \(x\), but not at a constant rate.

Step 1: Identify the inner function and its derivative.

$$ g(x)=x^2, \qquad g'(x)=2x. $$

Step 2: Apply the cosine chain rule. The outer derivative is negative sine, and the chain factor is \(2x\):

$$ f'(x)=-\sin(x^2)\cdot 2x=-2x\sin(x^2). $$

Step 3: Check with the difference quotient. For an increment \(h\), the change in the inner function is \(\delta=(x+h)^2-x^2=2xh+h^2=h(2x+h)\). The cosine difference identity gives:

$$ \frac{\cos((x+h)^2)-\cos(x^2)}{h} = -\sin\left(x^2+\frac{\delta}{2}\right) \frac{\sin(\delta/2)}{\delta/2} (2x+h). $$

As \(h\to 0\), \(\delta\to 0\), the sine ratio tends to \(1\), and \(2x+h\) tends to \(2x\). The limit is \(-2x\sin(x^2)\), as found by the chain rule.

Step 4: Compare at \(x=1\). The correct derivative is \(-2\sin(1)\). Omitting the chain factor gives \(-\sin(1)\), which is different because \(\sin(1)\ne 0\).

Worked Example: A Shifted Linear Angle

Worked Example: A Shifted Linear Angle

Differentiate \(f(x)=\cos(3x+\pi/4)\), then evaluate the derivative at \(x=\pi/12\).

Step 1: Differentiate the inner angle.

$$ g(x)=3x+\frac{\pi}{4}, \qquad g'(x)=3. $$

Step 2: Differentiate the outer cosine and include the chain factor.

$$ f'(x)=-\sin\left(3x+\frac{\pi}{4}\right)\cdot 3 =-3\sin\left(3x+\frac{\pi}{4}\right). $$

Step 3: Evaluate at the specified input.

$$ 3\left(\frac{\pi}{12}\right)+\frac{\pi}{4} = \frac{\pi}{4}+\frac{\pi}{4} = \frac{\pi}{2}, \qquad f'\left(\frac{\pi}{12}\right) = -3\sin\left(\frac{\pi}{2}\right) = -3. $$

Step 4: Check by a difference quotient. Replacing \(x\) by \(x+h\) changes the angle by \(3h\). The cosine difference identity yields a quotient whose limit is \(-3\sin(3x+\pi/4)\), since \(\sin(3h/2)/(3h/2)\to 1\). At \(x=\pi/12\), that limit is \(-3\sin(\pi/2)=-3\), matching the evaluated derivative.

If the factor \(3\) were omitted, the derivative at this input would be \(-1\), not \(-3\).

Diagnosing the Missing-Factor Error

A common incorrect calculation is:

$$ \frac{d}{dx}\cos(x^2) \overset{\text{incorrect}}{=} -\sin(x^2). $$

This calculation differentiates the outer cosine but stops before differentiating its angle. Correct the calculation by identifying the inner function \(g(x)=x^2\) and multiplying by \(g'(x)=2x\):

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

An omitted factor does not necessarily cause the two expressions to differ at every input. If \(g'(x)=1\), the factor does not change the formula. Omitting it generally gives an incorrect derivative formula, though the two expressions can happen to agree at points where the outer derivative is zero. For instance, in the first example, both expressions vanish when \(3x=\pi/2\). This pointwise agreement does not validate the incomplete formula for other inputs.

A reliable check is to name the inner angle before differentiating. Then ask: Have I multiplied by the derivative of that angle? This simple check catches omissions in both linear angles, such as \(3x+\pi/4\), and nonlinear angles, such as \(x^2\).

Why the Chain Factor Matters

The derivative measures change with respect to \(x\). A trigonometric value can change quickly not only because of the behavior of sine or cosine, but also because its angle changes quickly. The chain factor accounts for this second rate of change.

For example, in \(\sin(3x)\), the input to sine changes three times as quickly as \(x\). In \(\cos(x^2)\), the angle changes at rate \(2x\), which varies with \(x\). Leaving out that rate loses information about the composite function's slope.

When differentiating a sine or cosine composite, use this sequence:

1
Identify the angle.
Write the inner function \(g(x)\) explicitly.
2
Differentiate the outer function.
Sine becomes cosine; cosine becomes negative sine.
3
Keep the angle in place and multiply.
Include the inner derivative \(g'(x)\).
4
Check the result.
Test a suitable input or use the difference quotient reasoning to see whether an omitted factor would change the value.

The essential distinction is between differentiating the outer trigonometric function and differentiating the full composite. The chain factor completes the second task.

Check Your Understanding

For each question, identify the inner function before deciding whether the derivative includes a chain factor.

  1. Differentiate \(\sin(5x)\). What is the inner function and its derivative?
  2. Differentiate \(\cos(2x+\pi/3)\), and evaluate the derivative at \(x=0\).
  3. Differentiate \(\sin(x^2+1)\). Which factor would be missing in the calculation \(\cos(x^2+1)\)?
  4. For \(\sin(3x)\), why can the correct and incomplete expressions agree at \(x=\pi/6\), even though the incomplete derivative formula is wrong?
  5. State the chain rule formula for \(\cos(g(x))\), including the condition on \(g\).

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