Problem with Integration/Two Different Integrals

  • Thread starter Thread starter yoshtov
  • Start date Start date
  • Tags Tags
    Integrals
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
yoshtov
Messages
29
Reaction score
0

Homework Statement



int[sin(x)*cos(x)]dx


Homework Equations



U-substitution

The Attempt at a Solution



Alternative #1:

u=sin(x)
du=cos(x)dx

intdu = u^2/2 + K = sin^2(x)/2+K

Alternative #2

u=cos(x)
du=-sin(x)dx

-intdu = -u^2/2 + K = -cos^2(x)/2+K

From where I'm sitting, both approaches to using U-substitution are equally valid, but yield different solutions. As near as I can tell, they are not equal. Can you please point out where I made a logical misstep?
 
Physics news on Phys.org
Let's rewrite your two Ks as K1 and K2

Then we can equate these two expressions to get:

[tex]\frac{sin^2(x)}{2} + K_1 = - \frac{cos^2(x)}{2} + K_2[/tex]

Then rewrite sin2(x) as 1-cos2(x) via the Pythagorean theorem, and we get...

[tex]\frac{1 - cos^2(x)}{2} + K_1 = - \frac{cos^2(x)}{2} + K_2[/tex]

Then, adding cos2(x)/2 to both sides, we get...

[tex]\frac{1}{2} + K_1 = K_2[/tex]

And since K1 and K2 are both arbitrary, there exists a K1 and K2 such that this is true. Therefore, the equations are really the same, up to a constant.
 
Remarkable! Thank you!