AP Calculus AB and BC
Integral of cos 4x: Answer, Proof, and Steps
The integral of cos(4x) is sin(4x)/4 + C. The 4 inside the cosine reappears as a factor when you differentiate sin(4x), so the antiderivative divides by 4 to cancel it. The substitution u = 4x makes the same point, since dx = du/4.
Undoing the chain rule on the inside
The antiderivative of is , so the shape of the answer is a sine. What changes is the 4 sitting in front of . Differentiating triggers the chain rule, and the inside derivative shows up as a stray factor.
That first guess is four times too big, so scale it down by 4.
The substitution that makes it automatic
If guessing feels risky, run the substitution. Let , so and . The constant leaves the integral, and what remains is the basic cosine rule.
Putting back gives . Differentiating it returns , the function you started with.
The mistake students make
The frequent error is multiplying by 4 instead of dividing, writing . Differentiating that gives , off by a factor of 16. Derivatives of composite functions multiply by the inside derivative, so antiderivatives have to divide by it.
Only a linear inside gets this shortcut
Dividing by the inside coefficient works because the derivative of is the constant 4, which can be pulled out front. For an inside like the derivative still contains , no constant cancels it, and has no elementary answer at all.
Every answer on this page is machine checked
An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.
Frequently asked questions
Why divide by 4 instead of multiplying by 4?
Because , so the raw guess already overshoots by a factor of 4. Dividing cancels it exactly. Multiplying would leave a derivative of .
Does the same rule work for any coefficient?
Yes. For any nonzero constant , . It stops working the moment the inside is nonlinear, since then the inside derivative is not a constant.
What is the definite integral of cos 4x from 0 to pi/8?
Evaluate at the endpoints: .