Does any one know how I should do this integral?

May be this is more of a math problem, but I really need to know how to do it? can anyone help?

Integrate[Sin[n1 \[Pi] sp] Sin[n2 \[Pi] sp] (1/(s - sp)), {sp, 0, 1}]

• What are n1, n2 and s? – zhk Jul 14 '17 at 0:58
• @zhk some indices I want to sum over later (both of them will vary from 1 to 10 for example), you can think of them as numbers. s is also a variable . I will multiply the current integral by some other terms and integrate over s. – Delaram Nematollahi Jul 14 '17 at 1:00
• Then n1[Pi] is a syntax error. – John Doty Jul 14 '17 at 1:11
• If you are pasting Mathematica source code into a post, like \[Pi] for example, then the posting software "eats" the leading backslash. But if you manually insert an extra backslash in front of each backslash then the first one guards the second one and you will see \[Pi]. That will keep from confusing people into thinking that you have a function n2[Pi] instead of having n2*\[Pi]. (It is also possible to manually edit in Greek characters if that is something you think you need to do) You can also use the formatting tools during posting to put code into highlighted blocks) – Bill Jul 14 '17 at 5:28
• @Bill, Thank you, that was really helpful – Delaram Nematollahi Jul 14 '17 at 16:02

Int = Integrate[Sin[n1 π sp] Sin[n2 π sp] (1/(s - sp)), sp]