Message Boards Message Boards

0
|
995 Views
|
2 Replies
|
4 Total Likes
View groups...
Share
Share this post:

No output from Integrate

Posted 7 months ago

I know it's doing something because it uses a bunch of system resources for a few hours than just stops. Anyone know what I'm doing wrong?

original Input:

Integrate[(r^2 - 2 r (a*cos (\[Theta]) - b*sin (\[Theta])) + a^2 + b^2)^-1, {r, 0, R}, {\[Theta], 0, \[Pi]}]

Screenshot After computation but still no output

POSTED BY: Remi Panon
2 Replies

You must first have a look at the very basics of Mathematica syntax: capitalization of commands and square brackets for the arguments of functions. Done that, your integral seems very complicated because of the three symbolic parameters. You can do special cases:

With[{a = 1, b = 0},
 Integrate[(r^2 - 2 r (a Cos[\[Theta]] - b Sin[\[Theta]]) +
     a^2 + b^2)^-1,
  {r, 0, R}, {\[Theta], 0, \[Pi]},
  Assumptions -> 0 < R < Sqrt[a^2 + b^2]]]
With[{a = 1, b = 0},
 Integrate[(r^2 - 2 r (a Cos[\[Theta]] - b Sin[\[Theta]]) +
     a^2 + b^2)^-1,
  {r, 0, Sqrt[a^2 + b^2]}, {\[Theta], 0, \[Pi]}]]
POSTED BY: Gianluca Gorni

Building on Gianluca's response, one can get s result in several minutes by providing plausible assumptions.

Integrate[(r^2 - 2 r (a Cos[\[Theta]] - b Sin[\[Theta]]) + a^2 + 
    b^2)^(-1), {r, 0, R}, {\[Theta], 0, \[Pi]}, 
 Assumptions -> {0 < R, Element[{a, b}, Reals], a^2 + b^2 > R^2 > 0}]

This will take several minutes and it gives a result longer than I care to post.

POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract