I need to compute the definite integral defined as $$\int_{-\infty }^{+\infty } \frac{\sin ({x_0}\, \omega )-\sin (x \omega )}{(\sin (x \omega )-\sin ({x_0}\, \omega ))^2+(x-{x_0})^2} \, dx\,.$$

When I try

Integrate[(- Sin[x \[Omega]] + 
    Sin[x0 \[Omega]])/((x - x0)^2 + (Sin[x \[Omega]] - 
     Sin[x0 \[Omega]])^2), {x, -\[Infinity], +\[Infinity]}] // \

Mathematica cannot find the result.

So could you help me? Thank you.

  • $\begingroup$ Warning: This user does not mark any answers as accepted. Proceed with posting answers to this user's question with due vigilance. $\endgroup$
    – QuantumDot
    Oct 11, 2019 at 20:09
  • $\begingroup$ I am sorry for that because I don't know "flag or mak it as accepted answer". Now I understand how it works. $\endgroup$
    – tanghe2014
    May 2, 2020 at 0:16

1 Answer 1


A numerical solution, considering the singularity at x==x0, might be

int[x0_?NumericQ, \[Omega]_?NumericQ] := NIntegrate[(-Sin[x \[Omega]] + Sin[x0 \[Omega]])/((x - x0)^2 + (Sin[x \[Omega]] - Sin[x0 \[Omega]])^2), {x, -\[Infinity], +\[Infinity]},, Method -> "PrincipalValue", Exclusions -> {x == x0}]


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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