Why needs a rewrite
The four functions on the sine and cosine ring differentiate to sin x, cos x, −sin x and −cos x. None of them differentiates to , so there is no integral to read off the ring.
Treating sin x as if it were x does not work either. The guess differentiates, by the chain rule, to . That has an extra factor of cos x, so is not the integral of .
The double angle formula removes the square
One form of the double angle formula for cosine is . Rearrange it for the square: , so .
The right-hand side has no square in it. It is a constant, ½, minus a plain cosine, ½ cos 2x, and both of those integrate directly.
Check at : , so . On the right, , so as well.
The curve and the line y = ½. The curve swings between 0 and 1, an amount ½ either side of the line, and repeats every , which is the period of cos 2x. That is what says: a constant ½, and a wave of size ½ about it.
Integrating the pieces
Now . The ½ integrates to . The cos 2x has a 2 inside, so it integrates to , and ½ of that is . Together, .
Check by differentiating. gives ½, and gives . So the derivative is ½ − ½ cos 2x, which is .
takes a plus
Another form of the same formula is . Rearranged, : the same move, with a plus where had a minus. Check at x = 0: , and .
So . Adding the two results gives , which is right, since .
cos²x = ½ + ½ cos 2x: the ½ integrates to X/2 and the wave to sin 2X / 4 = −0.238, so the green and red pieces do not yet cancel
Drag the limit to where the wave cancels
The area under from 0 to X, measured against the line y = ½. The term is the rectangle under the line; the term is what the curve adds above the line less what it leaves out below. At X = 2.2 that is 1.1 − 0.238 = 0.862. Drag X to , , or , where sin 2X = 0: the parts above and below the line cancel, and the area is exactly .
Definite integrals
Over half a turn the wave term vanishes. The integral of from 0 to is , since and sin 0 = 0. The integral of over the same interval is also , and the two add to , the integral of 1.
Over a part of a wave it does not. The integral of from 0 to is . That is less than half of the width , because stays below ½ until .
Other angles and products
With 3x in place of x, the double angle is 6x: , so . Check: the derivative is .
A product of sine and cosine uses the sine formula instead. sin 2x = 2 sin x cos x, so , which integrates to . Check: differentiates to .
Worked example: An Alternating Supply Into a Heater: The Steady Voltage That Would Do the Same Work
Question A generator supplies v = 340sin(π n10) volts, where n is the number of milliseconds since the voltage last passed through zero on its way up; one whole cycle takes 20 milliseconds. (a) Find the mean of v2 over one cycle, and hence the root mean square voltage. (b) The supply feeds a heating element of resistance 34 ohms, in which the instantaneous power is v234 watts. Find the mean power, and compare it with the power a steady 340 volts would give.
1.The mean of v2 over a cycle is 120∫020 3402sin2(π n10)dn. Replace the squared sine by its double-angle form, sin2θ = 1 − cos 2θ2, which gives sin2(π n10) = 12 − 12cos(π n5).
The power is v234 watts, a squared sine; the double angle writes it as 12 − 12cos(π n5) of its peak. 2.The cosine term contributes nothing. Its antiderivative is 5πsin(π n5), which is 0 at n = 0 and 0 again at n = 20, so ∫020cos(π n5)dn = 0: over a whole number of cycles the cosine cancels itself out.
Across a whole cycle the cosine term integrates to nothing, because sin(π n5) is 0 at n = 0 and 0 again at n = 20. 3.(a) What survives is the constant half: the mean of v2 is 34022 = 1156002 = 57800. The root mean square voltage is the square root of that, 340√2 = 240.4 volts, or 240 volts to three significant figures.
(a) What survives is the constant half: the mean of v2 is 1156002 = 57800, whose root is 340√2 = 240.4 volts. 4.(b) Averaging is linear, so the mean of v234 is the mean of v2 divided by 34: the mean power is 5780034 = 1700 watts.
(b) The mean power is that mean divided by the resistance, 5780034 = 1700 watts: the humps above the line fill the gaps below it. 5.A steady 340 volts across the same element would give 340234 = 3400 watts, exactly twice as much. Check: the mean of a squared sine is 12, so the alternating supply delivers half the peak power, and the steady voltage that would match it is smaller by a factor of √2, which is the 240.4 volts of part (a).
A steady 340 volts would hold the element at 340234 = 3400 watts, exactly twice the mean.
Answer: (a) the mean of v2 is 57800 and the root mean square voltage is 340√2 = 240.4 volts, which is 240 volts to three significant figures; (b) the mean power is 1700 watts, against 3400 watts for a steady 340 volts, exactly twice as much
Common mistakes
- Averaging v rather than v2. Over a whole cycle ∫020 340sin(π n10)dn = 0, so the mean voltage is zero, and yet the element plainly gets hot. Power depends on v2, which is never negative, and it is the mean of that square which matters.
- Taking the effective voltage to be half the peak, 170 volts. The halving happens to the square, not to the voltage: the mean of v2 is 34022, whose root is 340√2 = 240.4 volts. A steady 170 volts would deliver 170234 = 850 watts, half the true mean power.
More techniques of integration problems, worked step by step →
The usual mistakes
Integrating the square as a power. differentiates to , not .
The plus and minus swapped. has the minus. At x = 0, is 0, and only the minus version gives .
Halving one piece and not the other. Both the 1 and the cos 2x are divided by 2, so the answer is , not .
Forgetting the 2 inside. cos 2x integrates to , not sin 2x; with the ½ in front, that makes .
Using . It only trades for , which still has a square.