try
←

Integrating Trigonometric Functions

Practice this lesson in the app →

The trigonometric derivatives run backwards, with the signs swapping over

Cosine integrates to sine

Integration undoes differentiation, so every derivative of a trigonometric function, read backwards, is an integral. Sine differentiates to cosine, so cosine integrates to sine: .

Check by differentiating the answer. sin x + C differentiates to cos x, and the C, a constant, differentiates to 0. That returns the integrand exactly, so the integral is right.

xy

The gold curve is y = sin x and the plain curve is y = cos x, with x in radians. At x = 0, sine climbs with gradient 1, and cos 0 = 1. At , sine is at its top and has gradient 0, and . At , sine falls with gradient −1, and . The height of the cosine is the gradient of the sine everywhere.

Walking the ring backwards

Differentiating four times brings sine back to itself: sin x goes to cos x, cos x goes to −sin x, −sin x goes to −cos x, and −cos x goes back to sin x. Written in a ring, differentiation is one step forwards.

Integration is one step backwards. The step before sin x on the ring is −cos x, so . That is where the minus sign comes from: cos x differentiates to −sin x, so it is −cos x that differentiates to sin x. Check: −cos x differentiates to −(−sin x) = sin x.

The other two follow the same way. The step before −sin x is cos x, so , and the step before −cos x is −sin x, so . Each one checks by differentiating, and the minus signs land where the ring puts them.

Radians only

These results hold when x is in radians. Only there does sin x differentiate to exactly cos x. Measured in degrees, an angle of x° is radians, so by the chain rule the derivative of sin(x°) is , and every integral would carry the factor the other way.

So in every integral of sine or cosine, the limits and the angles are in radians: for half a turn, for a quarter.

A multiple of x inside

When the angle is 3x rather than x, the chain rule makes sin 3x differentiate to 3 cos 3x, three times too much. So divide by the 3: . Check: differentiates to .

Any linear bracket works the same way, dividing by the multiplier of x: . Check: differentiates to .

One arch of sine

From x = 0 to , the curve y = sin x makes one arch above the x-axis. Its area is the definite integral of sin x from 0 to , and the antiderivative −cos x gives it at once: .

Now , so , and cos 0 = 1, so −cos 0 = −1. The area is 1 − (−1) = 2, exactly.

The picture agrees. The arch sits inside a rectangle wide and 1 tall, of area , and it contains the triangle with the same base and a peak at , of area . The area 2 lies between the two.

xy

One arch of y = sin x, shaded from x = 0 to , with its top at . The shaded area is .

Other limits

The area under y = cos x from 0 to is one quarter-wave: .

With the multiple inside, the integral of cos 3x from 0 to is . At the angle 3x is , so the value is . This quarter-wave of cos 3x is three times narrower than the quarter-wave of cos x from 0 to , and its area is a third as much.

Over a whole wave, from 0 to , the integral of sin x is . The second arch lies below the x-axis, so it counts as −2, and it cancels the first.

xy

A whole wave of y = sin x, shaded from x = 0 to . The arch above the axis counts as 2 and the arch below it as −2, so the integral over the wave is 0.

The usual mistakes

The minus on the wrong function. has no minus; it is that carries one. Differentiating the answer settles it every time.

Taking a function as its own integral. cos x differentiates to −sin x, not to cos x, so is not cos x + C. Only is its own derivative.

Forgetting to divide by the multiplier. is , not sin 3x + C, which differentiates to 3 cos 3x.

Working in degrees. The integral of cos x from 0 to 90 is not 1; 90 radians is not a right angle. Use .

Your turn

1. 

xy
Practice Integrating Trigonometric Functions in the app