Integrating sin(x)*cos(x) paradox

  • Context: Undergrad 
  • Thread starter Thread starter cqfd
  • Start date Start date
  • Tags Tags
    Integrating Paradox
Click For Summary
SUMMARY

The discussion centers on the paradox encountered when calculating the integral of ##\int sin(x)cos(x)\,dx## using integration by parts. Two different approaches yield results of ##\frac{1}{2}\sin^2(x)## and ##-\frac{1}{2}\cos^2(x)##, leading to confusion. The resolution reveals that both results are equivalent, differing only by a constant offset, which is crucial in indefinite integrals. The correct interpretation emphasizes the importance of including the constant of integration, denoted as ##+C##, in the final answer.

PREREQUISITES
  • Understanding of integration techniques, specifically integration by parts.
  • Familiarity with trigonometric identities, particularly ##\sin(2x)##.
  • Knowledge of the concept of indefinite integrals and the significance of the constant of integration.
  • Basic calculus concepts, including differentiation and the Fundamental Theorem of Calculus.
NEXT STEPS
  • Study the application of integration by parts in various contexts.
  • Learn about trigonometric identities and their use in simplifying integrals.
  • Explore the implications of the constant of integration in indefinite integrals.
  • Investigate the Fundamental Theorem of Calculus and its relationship to integration and differentiation.
USEFUL FOR

Students and educators in calculus, mathematicians dealing with integrals, and anyone seeking to deepen their understanding of integration techniques and the nuances of indefinite integrals.

cqfd
Messages
11
Reaction score
0
I am encountering a paradox when calculating the integral ##\int sin(x)\cos(x)\,dx## with integration by parts:

Defining ##u = sin(x), v' = cos(x)##:

##\int sin(x)cos(x) dx = sin^2(x) - \int cos(x) sin(x) dx##

##\Leftrightarrow \int sin(x) * cos(x) dx = +1/2*sin^2(x)##.

On the other hand, defining ##u = cos(x), v' = sin(x)##:

##\int sin(x)cos(x) dx = -cos^2(x) - \int cos(x) sin(x) dx##

##\Leftrightarrow \int sin(x) * cos(x) dx = -1/2*cos^2(x)##.
##1/2*sin^2(x) \neq -1/2*cos^2(x)##, and I know that the second one is the correct one. But I can't find an error in my upper calculation. Does somebody see the error I made?

Thanks!
 
Physics news on Phys.org
\frac 1 2 \sin^2 x=\frac 1 2 (1-\cos^2 x)=-\frac 1 2 \cos^2 x + \frac 1 2=-\frac 1 2 \cos^2 x + const.
So they are equivalent solutions for the integral!
 
Oh, ok. So there's just a constant offset between the two solutions that we do not care about. :)
 
The correct version of your first solution is that ##\int\sin x\cos x\ dx=\frac{1}{2}\sin x+C##, where ##\frac{1}{2}\sin^2 x+C## indicates the family of functions which differ from ##\frac{1}{2}\sin x## by a constant. ##\frac{1}{2}\sin^2 x## is a member of that family, as is ##-\frac{1}{2}\cos^2 x##. ##-\frac{1}{4}\cos 2x##, the "representative" you would have found if you had used the trig identity ##\sin x\cos x=\frac{1}{2}\sin 2x##, is also a member of that family.

When you see a problem that asks you to compute ##\int f(x)\ dx##, it is essentially asking you to find all of the functions ##g## satisfying ##\frac{dg}{dx}=f(x)##. There's a theorem that says that any two functions ##g_1## and ##g_2## satisfying ##g_1'=g_2'## on an interval differ only by a constant on that interval. and so to answer the question of what is ##\int f(x)\ dx##, we need only find one function ##g## satisfying ##\frac{dg}{dx}=f(x)## (which I called a "representative" earlier), and every other function ##\tilde{g}## satisfying ##\frac{d\tilde{g}}{dx}=f(x)## is of the form ##\tilde{g}(x)=g(x)+c## for some constant ##c##.

Now you can either understand all of that, or you can just know that you can't forget the ##+C## when you're doing indefinite integral. Most students learning this stuff for the first time chose the latter, although the former is not particular hard to wrap your head around. The bottom line is that we do care about the "constant offset", and it most definitely does matter.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K