0
$\begingroup$

We are trying to integrate a vector function over a sphere. To do this we changed it to spherical coordinates and then tried to integrate it. Unfortunately we get the error message shown on the image below. enter image description here

The codes that we used are the following:

Simplify[
  ToSphericalCoordinates[
     {q*X/(4*π*ϵ*(X^2+Y^2+Z^2)^(3/2)), 
      q*Y/(4*π*ϵ*(X^2+Y^2+Z^2)^(3/2)), 
      q*Z/(4*π*ϵ*(X^2+Y^2+Z^2)^(3/2))}]]

Integrate[
  Sqrt[q^2/((X^2+Y^2+Z^2)^2 ϵ^2)]/(4 π), 
  ArcTan[(q Z)/((X^2+Y^2+Z^2)^(3/2) ϵ), Sqrt[(q^2 X^2+Y^2))/((X^2+Y^2+Z^2)^3 ϵ^2)]], 
  ArcTan[(q X)/((X^2+Y^2+Z^2)^(3/2) ϵ), (q Y)/((X^2+Y^2+Z^2)^(3/2) ϵ)], 
  {X, Y, Z} ∈ Sphere[{0,0,0},{r}]]

All help will be appreciated.

$\endgroup$
  • 3
    $\begingroup$ The radius of the sphere should not be a list: Sphere[{0,0,0},r] doesn't produce any errors $\endgroup$ – Lukas Lang Sep 15 '17 at 14:09
  • $\begingroup$ Ah we got it now. Thanks a lot! $\endgroup$ – Didier Drogba Sep 15 '17 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.