1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Integration by Parts with sin and ln(x)

  1. Feb 17, 2010 #1
    1. The problem statement, all variables and given/known data


    The method to use to integrate the function is up to us.
    The choices are:
    1) U-substitution
    2)Integration by Parts
    3)Trigonometric integrals
    4)Trigonometric substitution
    5)Partial fraction


    2. Relevant equations

    According to me, the best way to do it is to use Integration by Parts.

    Here is the function:

    [tex]\int[/tex]sin(ln(x))/x2


    3. The attempt at a solution

    u=sin(lnx)
    du=cos(lnx)/x dx
    dv=1/x2 dx
    v=-1/x

    [tex]\int[/tex]sin(lnx)/x2 dx = -sin(lnx)/x - [tex]\int[/tex] -cos(lnx)/x2 dx
    = -sin(lnx)/x + [tex]\int[/tex] cos(lnx)/x2 dx
    = -sin(lnx)/x + (-cos(lnx)/x2 - [tex]\int[/tex] sin(lnx)/x dx

    2 [tex]\int[/tex] sin(lnx)/x2 dx = -sin(lnx)/x - cos(lnx)/x2 dx

    [tex]\int[/tex]sin(lnx)/x2dx = 1/2(-sin(lnx)/x - cos(lnx)/x2)



    According to Maple, the answer is 1/2((-2sin(lnx) - 2cos(1/2ln(x))2 + 1 + 2sin(1/2ln(x))cos(1/2lnx))/x
     
    Last edited: Feb 17, 2010
  2. jcsd
  3. Feb 17, 2010 #2

    tiny-tim

    User Avatar
    Science Advisor
    Homework Helper

    Hi Ayesh! :smile:

    (have an integral: ∫ and try using the X2 tag just above the Reply box :wink:)
    No, almost but not quite …

    (and I'm afraid what you've written is too difficult to read for me to work out where the error was :redface:
    oh, this is just Maple going beserk :rolleyes:

    if you simplify that, you'll get something much more sensible :wink:
     
  4. Feb 17, 2010 #3
    The answer Maple gave me is simplified.
     
  5. Feb 17, 2010 #4

    tiny-tim

    User Avatar
    Science Advisor
    Homework Helper

    really?? simplify it some more! :smile:
     
  6. Feb 17, 2010 #5
    This is the most simplified answer Maple gives me :

    -(1/2)*(2sin(lnx)+2cos((1/2)ln(x))2-1-2sin((1/2)lnx)*cos((1/2)lnx))/x
     
  7. Feb 17, 2010 #6

    tiny-tim

    User Avatar
    Science Advisor
    Homework Helper

    You're human! Maple isn't! :rolleyes:

    simplify it some more! :smile:

    (alternatively, try the integration by parts again, only more neatly, and see if it comes out right this time :wink:)
     
  8. Feb 17, 2010 #7
    I've redone the integration by hand and my answer now is:

    [tex]\int[/tex]sin(lnx)/x2 = 1/2 (-sin(lnx) + cos(lnx)/x)
     
  9. Feb 17, 2010 #8

    vela

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    Closer, but you flipped a sign somewhere.

    You can always differentiate your answer and see if you recover the integrand to see if your answer is correct.
     
  10. Feb 18, 2010 #9

    tiny-tim

    User Avatar
    Science Advisor
    Homework Helper

    Hi Ayesh! :smile:

    (what happened to that ∫ i gave you? :wink:)
    I strongly agree. :smile:

    Getting the sign wrong in integration by parts is notoriously easy,

    so it's essential to check the answer by differentiating it (especially if the question has obviously been designed to put in as many minuses as possible!) :wink:
     
  11. Feb 18, 2010 #10
    I found my mistake, thank you!

    Differentiating was a good idea :)
     
  12. Feb 18, 2010 #11
    You could also have substituted x = exp(u) and then have done the partial integration. In that case there is an alternative method to partial integration that is not on your list:

    6) Differentiation w.r.t. to a parameter.

    If 6) works that's usually a lot easier than partial integration.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook