Integrating sin(x)*cos(x) paradox

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

Discussion Overview

The discussion revolves around the integration of the function ##\sin(x)\cos(x)##, specifically addressing a perceived paradox when using integration by parts. Participants explore different approaches to the integral, examining the implications of constants of integration and the equivalence of solutions.

Discussion Character

  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant calculates the integral using integration by parts with ##u = \sin(x)## and ##v' = \cos(x)##, leading to ##\int \sin(x)\cos(x) dx = \frac{1}{2}\sin^2(x)##.
  • The same participant then uses ##u = \cos(x)## and ##v' = \sin(x)##, resulting in ##\int \sin(x)\cos(x) dx = -\frac{1}{2}\cos^2(x)##, expressing confusion over the apparent contradiction.
  • Another participant suggests that the two results are equivalent due to a constant offset, indicating that both solutions can represent the same family of functions.
  • A later reply clarifies that the first solution should be interpreted as ##\int \sin(x)\cos(x) dx = \frac{1}{2}\sin x + C##, emphasizing the importance of including the constant of integration.
  • This reply also notes that all functions satisfying the derivative condition differ only by a constant, reinforcing the idea that the constant offset is significant.

Areas of Agreement / Disagreement

Participants generally agree that the solutions represent the same family of functions differing by a constant. However, there is some contention regarding the importance of the constant of integration in the context of indefinite integrals.

Contextual Notes

The discussion highlights the nuances of indefinite integration and the role of constants, which may not be fully resolved in the participants' exchanges.

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
5K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K