AP Calculus AB and BC

Integral of sin(4x): Answer, Proof, and Steps

The integral of sin(4x) is -cos(4x)/4 + C. Integrating sine produces negative cosine, and dividing by the inner coefficient 4 cancels the factor the chain rule would create. Differentiating -cos(4x)/4 gives 4 sin(4x) divided by 4, which is sin(4x).

∫sin⁡4x dx=−cos⁡4x4+C\int \sin 4x\,dx = -\frac{\cos 4x}{4} + C

Two adjustments: the sign and the coefficient

Integrating sin⁡x\sin x gives −cos⁡x-\cos x, so the minus sign is built in. The inner coefficient 44 adds a second adjustment, because differentiating anything with 4x4x inside multiplies by 44.

∫sin⁡kx dx=−cos⁡kxk+C\int \sin kx\,dx = -\frac{\cos kx}{k} + C
∫sin⁡4x dx=−cos⁡4x4+C\int \sin 4x\,dx = -\frac{\cos 4x}{4} + C

Substitution makes the division explicit. Let u=4xu = 4x, so du=4 dxdu = 4\,dx and dx=du4dx = \frac{du}{4}.

∫sin⁡4x dx=14∫sin⁡u du=−14cos⁡u+C=−cos⁡4x4+C\int \sin 4x\,dx = \frac{1}{4}\int \sin u\,du = -\frac{1}{4}\cos u + C = -\frac{\cos 4x}{4} + C

Checking by differentiating

Differentiate the answer and watch both adjustments reverse.

ddx(−cos⁡4x4)=−14⋅(−sin⁡4x)⋅4=sin⁡4x\frac{d}{dx}\left(-\frac{\cos 4x}{4}\right) = -\frac{1}{4}\cdot(-\sin 4x)\cdot 4 = \sin 4x

The chain rule brings out the 44, which cancels the 14\frac{1}{4}, and the derivative of cosine supplies the second minus sign that turns the answer positive.

The mistakes students make

  • Losing the minus sign and answering cos⁡4x4\frac{\cos 4x}{4}. Differentiating that gives −sin⁡4x-\sin 4x.
  • Answering −cos⁡4x-\cos 4x with no division. Its derivative is 4sin⁡4x4\sin 4x, four times too large.
  • Multiplying by 44 instead of dividing, giving −4cos⁡4x-4\cos 4x, whose derivative is 16sin⁡4x16\sin 4x.
  • Mixing up the sign rules. Sine integrates to negative cosine; cosine integrates to positive sine.

Divide by the inner coefficient

For any constant k≠0k \neq 0, both ∫sin⁡kx dx\int\sin kx\,dx and ∫cos⁡kx dx\int\cos kx\,dx carry a factor of 1k\frac{1}{k}, which cancels the kk the chain rule would introduce.

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 is the answer negative?

Because ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x. To land on +sin⁡4x+\sin 4x after differentiating, the antiderivative has to start with a minus sign, giving −cos⁡4x4+C-\frac{\cos 4x}{4} + C.

What is the integral of sin(4x) from 0 to pi/4?

∫0π/4sin⁡4x dx=[−cos⁡4x4]0π/4=−cos⁡π4+cos⁡04=14+14=12\int_0^{\pi/4}\sin 4x\,dx = \left[-\frac{\cos 4x}{4}\right]_0^{\pi/4} = -\frac{\cos\pi}{4} + \frac{\cos 0}{4} = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}.

Does the same rule apply to sin(kx) for any k?

Yes, for any nonzero constant kk: ∫sin⁡kx dx=−cos⁡kxk+C\int\sin kx\,dx = -\frac{\cos kx}{k} + C. It fails only when the inside is not linear, as in sin⁡(x2)\sin(x^2), where no elementary antiderivative exists.