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).

sin4xdx=cos4x4+C\int \sin 4x\,dx = -\frac{\cos 4x}{4} + C

Two adjustments: the sign and the coefficient

Integrating sinx\sin x gives cosx-\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.

sinkxdx=coskxk+C\int \sin kx\,dx = -\frac{\cos kx}{k} + C
sin4xdx=cos4x4+C\int \sin 4x\,dx = -\frac{\cos 4x}{4} + C

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

sin4xdx=14sinudu=14cosu+C=cos4x4+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(cos4x4)=14(sin4x)4=sin4x\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 cos4x4\frac{\cos 4x}{4}. Differentiating that gives sin4x-\sin 4x.
  • Answering cos4x-\cos 4x with no division. Its derivative is 4sin4x4\sin 4x, four times too large.
  • Multiplying by 44 instead of dividing, giving 4cos4x-4\cos 4x, whose derivative is 16sin4x16\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 k0k \neq 0, both sinkxdx\int\sin kx\,dx and coskxdx\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 ddxcosx=sinx\frac{d}{dx}\cos x = -\sin x. To land on +sin4x+\sin 4x after differentiating, the antiderivative has to start with a minus sign, giving cos4x4+C-\frac{\cos 4x}{4} + C.

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

0π/4sin4xdx=[cos4x4]0π/4=cosπ4+cos04=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: sinkxdx=coskxk+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.