Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

$$\int_{0}^{1}\left(2x\sin \frac{1}{x}-\cos \frac{1}{x}\right)dx$$

Am stuck in this question. Can't solve by applying any of the properties of definite integral. What should one do? By performing indefinite integration and then putting limits but that would be quite lengthy I guess.

share|cite|improve this question

Hint: Use the substitution $x\mapsto\frac1x$: $$ \begin{align} \int_0^1\left(2x\sin\left(\frac1x\right)-\cos\left(\frac1x\right)\right)\mathrm{d}x &=\int_1^\infty\frac{2\sin(x)-x\cos(x)}{x^3}\,\mathrm{d}x \end{align} $$ then notice $$ \frac{\mathrm{d}}{\mathrm{d}x}\frac{\sin(x)}{x^2}=\frac{x\cos(x)-2\sin(x)}{x^3} $$

share|cite|improve this answer

Hint: set $$ f(x) = x^2\sin \frac1x $$ and find $f'(x)$.

share|cite|improve this answer
2  
For anyone knowing this function, that pops up as example in some instances, this is clear. Yet for someone that doesn't know it the question is "how to reach this if I don't know the primitive beforehand?" – Joanpemo Mar 7 at 8:54
1  
@Joanpemo The only thing I can say is that the integrand sure looks like the result of applying the product rule, so I tried a few different things that seemed like they might work. The third one I tried was this one. – Arthur Mar 7 at 8:55
    
Thank you${}{}{}{}{}{}$ – Joanpemo Mar 7 at 8:56
    
@Joanpemo I was halfway through that comment before you posted yours, so I really understand the concern. Many times it seems like you just have to know a lot of antiderivatives to do integration. While that may be true in a lot of other cases, in this case it did narrow down the search considerably to look at the general form of the expression. – Arthur Mar 7 at 9:09
1  
Also, one gets a bit genre savvy once one has seen enough of these problems. In this case, they have one problem with two terms rather than two problems with each of the terms separately. That says that the two terms should interact. One has a sine of some argument, the other has a cosine. That speaks in favour of the product rule, where one has been differentiated and the other hasn't. The difference between the terms is a polynomial factor, and those are the nicest to integrate and differentiate. That leaves trial and error. – Arthur Mar 7 at 9:10

By parts,

$$\int 2x\sin\left(\frac1x\right)dx=x^2\sin\left(\frac1x\right)dx-\int -\frac{x^2}{x^2}\cos\left(\frac1x\right)dx=x^2\sin\left(\frac1x\right)+\int \cos\left(\frac1x\right)dx.$$

You can conclude from there.

share|cite|improve this answer
    
Can we compute $\int\cos\left(\frac1x\right)\,\mathrm{d}x$ without using special functions? – robjohn Mar 7 at 9:13
    
@robjohn: Wolfram will tell you. But here you don't need that. – Yves Daoust Mar 7 at 9:16
    
Does it not use $\operatorname{Si}(x)$? – robjohn Mar 7 at 9:18
1  
@robjohn: here you don't need that. Read the question. – Yves Daoust Mar 7 at 9:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.