Definite integrals of trigonometric functions
The antiderivative of sinx is −cosx. We use it to find the area of one arch of the sine curve.
∫0πsinxdx=[−cosx]0π=−(−1)−(−1)=2 The area is 2. The arch has height 1 and width π≈3.14, so against the rectangle of the same width and height, of area π, the ratio is π2≈0.64. An arch of the sine fills about six tenths of the rectangle.
Mind the sign
| Function | Antiderivative |
|---|
| sinx | −cosx |
| cosx | sinx |
Since (−cosx)′=sinx, the antiderivative is −cosx and not cosx. It is the flip side of the minus sign that appears when cos is differentiated into −sin.
Over a full period it is zero
∫02πsinxdx=[−cosx]02π=−1−(−1)=0 It comes out 0 because the trough from π to 2π lies below the x-axis and is counted negative.
| Interval | Definite integral | Area |
|---|
| 0 to π | 2 | 2 |
| π to 2π | −2 | 2 |
| 0 to 2π | 0 | 4 |
To get the area 4, integrate ∣sinx∣, or double the 2 obtained from a single arch.
Reading it on the graph of the antiderivative
The slope of y=−cosx is 0 at x=0, 1 at x=2π and 0 at x=π, which are exactly the values of sinx. Where sin is positive −cos increases, and where sin is negative it decreases.
The rise from −cos0=−1 to −cosπ=1, an increase of 2, is the area itself. That a definite integral is a difference of antiderivatives can be seen between the two graphs.
The wave on the graph is y=sinx, the wave lagging it by 2π is the antiderivative y=−cosx, and the large dots are the two ends of the integral.