Integration by Parts with sin and ln(x)

Ayesh
Messages
29
Reaction score
0

Homework Statement




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


Homework Equations



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

Here is the function:

\intsin(ln(x))/x2


The Attempt at a Solution



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

\intsin(lnx)/x2 dx = -sin(lnx)/x - \int -cos(lnx)/x2 dx
= -sin(lnx)/x + \int cos(lnx)/x2 dx
= -sin(lnx)/x + (-cos(lnx)/x2 - \int sin(lnx)/x dx

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

\intsin(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:
Physics news on Phys.org
Hi Ayesh! :smile:

(have an integral: ∫ and try using the X2 tag just above the Reply box :wink:)
Ayesh said:
…Int sin(lnx)/x^2 dx = 1/2(-sin(lnx)/x - cos(lnx)/x^2)

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:
According to Maple, the answer is 1/2((-2sin(lnx) - 2cos(1/2ln(x))^2 + 1 + 2sin(1/2ln(x))cos(1/2lnx))/x

oh, this is just Maple going beserk :rolleyes:

if you simplify that, you'll get something much more sensible :wink:
 
The answer Maple gave me is simplified.
 
Ayesh said:
The answer Maple gave me is simplified.

really?? simplify it some more! :smile:
 
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
 
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:)
 
I've redone the integration by hand and my answer now is:

\intsin(lnx)/x2 = 1/2 (-sin(lnx) + cos(lnx)/x)
 
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.
 
Hi Ayesh! :smile:

(what happened to that ∫ i gave you? :wink:)
vela said:
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.

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:
 
  • #10
I found my mistake, thank you!

Differentiating was a good idea :)
 
  • #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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 7 ·
Replies
7
Views
9K
Replies
3
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K