errors can cancel each other out
If one uses the http://planetmath.org/ChangeOfVariableInDefiniteIntegralchange of variable
| (1) |
for finding the value of the definite integral
the following calculation looks appropriate and faultless:
| (2) |
The result is quite . Unfortunately, the calculation two errors, the effects of which cancel each other out.
The crucial error in (2) is using the substitution (1) when is discontinuous![]()
in the point on the interval of integration. The error is however canceled out by the second error using the value for , when the right value were (the values of arctan lie only between and ; see cyclometric functions). The value belongs to a different branch of the inverse tangent function
![]()
than ; parts of two distinct branches cannot together form the antiderivative which must be continuous
![]()
.
What were a right way to calculate ? The universal trigonometric substitution produces an awkward integrand
and and , therefore it is unusable. It is now better to change the interval of integration, using the properties of trigonometric functions
![]()
.
Since the (graph of) cosine squared is symmetric about the line , we could integrate only over and multiply the integral
by 2 (cf. integral of even and odd functions):
We can also get rid of the inconvenient upper limit by changing over to the sine in virtue of the complement formula
getting
Then (1) is usable, and because , we obtain