Say I want to integrate 1/(x^2+a^2) and I want Mathematica to know that $a>0$. What would be the command? Something like:

Integrate[1/(x^2+a^2), {x, 0, 1}, {a > 0}]

Or, if I want to compute the limit of $\sin(xy)/(xy)$ as $(x,y)\to (0,0)$, $x,y$ reals, what would be the command?

  • 4
    $\begingroup$ Check the Assumptions options and check the examples in the Integrate documentation page. $\endgroup$ – Szabolcs May 16 '13 at 19:49
  • 1
    $\begingroup$ Here's from the help file for Integrate: Integrate[x^n, {x, 0, 1}, Assumptions -> n > 0]. Maybe the help file would be helpful? $\endgroup$ – bill s May 16 '13 at 20:07

As i know, there should be a command which is Assuming as follows,

Assuming[a > 0, Integrate[1/(x^2+a^2) ,{x,0,1}]]


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