Constant consistency
Excerpt: Three different ways to work out an integral give results that appear to be very different. What is going on?
Problem
In how many different ways can you find this? ∫cos(x)sin(x)dx
Some suggested approaches
Could you use a trigonometric identity?
Could you use a substitution?
Could you integrate by parts?
Anything else?
Some solutions
Using a trigonometric identity
The integrand is familiar from the identity sin(2x)≡2sin(x)cos(x) so we could use this to help us.
∫cos(x)sin(x)dx=∫21sin(2x)dx=−41cos(2x)+C
Using a substitution
If we use the substitution u=cos(x), then dxdu=−sin(x).
Therefore, ∫cos(x)sin(x)dx=∫−udu=−21cos2(x)+C
Is this the only possible substitution we could use?
Integration by parts
We have a product of two different functions, so integration by parts may be useful. ∫uv′dx=uv−∫u′vdx
We let u=sin(x) and v′=cos(x), so that u′=cosx and v=sinx.
∫cos(x)sin(x)dx=sin2(x)−∫cos(x)sin(x)dx
The integral on the right hand side is the same as our original. Has this helped?
Let’s define ∫cos(x)sin(x) dx=I.
Then we have I=sin2(x)−I+c.
Making
I
the subject, we have
2I⟹I=sin2(x)+c=21sin2(x)+C.
Would the answer have been different if we had swapped the u and v′?
We’ve integrated the function in three different ways and seem to have three different answers. What has happened?
-
Would thinking about these solutions graphically help?
-
Can we make sense of it algebraically?
Are these the same?
Graphical Approach
From the graphs we can see that each is a translation parallel to the y-axis of the same curve. Therefore we can add a constant value to each function and get the other solutions.
We used the same symbol, C for the constant of integration in each case, but in fact they must be different constants.
Algebraic Approach
If the constants are different, let’s call them P, Q and R rather than C.
So we have the three answers as:
| −41cos(2x)+P | −21cos2(x)+Q | 21sin2(x)+R |
|---|
Are there any trigonometric identities that connect the trigonometric functions?
We know that cos(2x)≡2cos2(x)−1≡1−2sin2(x) and cos2(x)≡1−sin2(x).
Therefore, −41cos(2x)+P=−41(2cos2(x)−1)+P=−21cos2(x)+41+P.
Comparing −21cos2(x)+41+P to −21cos2(x)+Q we can see they are the same except for the constants. If we equate them then Q=41+P.
Similarly, −41cos(2x)+P=−41(1−2sin2(x))+P=21sin2(x)−41+P.
Comparing again, we can see R=−41+P
So we can see the constant is not the same but the functions are equivalent.
How are the differences in the constants related to the translations of the graphs?
We worked out the integral in three different ways and got what at first seemed to be different answers. What would happen if we used the different methods to evaluate a definite integral such as ∫0π/2cos(x)sin(x)dx ?