(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.2' Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 6470, 233]*) (*NotebookOutlinePosition[ 7135, 256]*) (* CellTagsIndexPosition[ 7091, 252]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Green Function for Dirichlet Problem on Sphere", "Subtitle"], Cell[CellGroupData[{ Cell["\<\ \[CapitalPhi](a,\[Theta]) = V, for 0<\[Theta]< \[Pi]/2 and \ \[CapitalPhi](a,\[Theta]) = -V, for \[Pi]/2<\[Theta]< \[Pi].\ \>", "Subsection"], Cell[BoxData[ \(Clear["\<`*\>"]\)], "Input"], Cell[TextData[{ "The Green function is\n\nG(r,\[Theta],\[Phi]; a,\[Psi],\[Chi]) = ", Cell[BoxData[ FormBox[ FractionBox[ RowBox[{"a", " ", RowBox[{"(", RowBox[{ FormBox[\(r\^2\), "TraditionalForm"], "-", FormBox[\(a\^2\), "TraditionalForm"]}], ")"}]}], \(\((a\^2 + r\^2 - 2\ a\ r\ x)\)\^\(3/2\)\)], TraditionalForm]]], " \n\nwhere x = Cos[", Cell[BoxData[ \(TraditionalForm\`\[Theta]\_12\)]], "] = Cos[\[Theta]]Cos[\[Psi]]+Sin[\[Theta]]Sin[\[Psi]] Cos[\[Chi]-\[Phi]].\n\ \n In our case, there is azimuthal symmetry so \[CapitalPhi] must be \ independent of the angle \[Phi]. We may, therefore, simply evaluate the \ potential at \[Phi] = 0." }], "Text"], Cell[BoxData[ \(greenf\ = \ a \((r^2 - a^2)\)/\((a^2 + r^2 - 2\ a\ r\ x)\)^\((3/2)\)\)], "Input"], Cell[TextData[{ "We can express green in terms of the ratio \[Rho]=", Cell[BoxData[ \(TraditionalForm\`r\/a\)]], " " }], "Text"], Cell[BoxData[ \(g = \ Simplify[greenf /. \ r \[Rule] \ a\ \[Rho], Assumptions\ \[Rule] \ a > 0]\)], "Input"], Cell["\<\ Expand g in an asymptotic series in \[Rho] and retain the \"n\" leading terms\ \ \>", "Text"], Cell[BoxData[ \(n = 10\)], "Input"], Cell[BoxData[ \(g = Normal[Series[g, {\[Rho], Infinity, n}]]\)], "Input"], Cell["\<\ Substitute for the angle variable x in terms of the integration and \ observation angles\ \>", "Text"], Cell[BoxData[ \(x = \ Cos[\[Theta]] Cos[\[Psi]]\ + \ Sin[\[Theta]] Sin[\[Psi]] Cos[\[Chi]]\)], "Input"], Cell["Expand g so that it is simpler for mathematica to integrate", "Text"], Cell[BoxData[ \(eg = \ Expand[g]\)], "Input"], Cell["Do the integral over \[Chi] ", "Text"], Cell[BoxData[ \(\(\(\ \)\(part1 = \ Integrate[eg, {\[Chi], 0, 2 \[Pi]}]\)\)\)], "Input"], Cell["\<\ Now, do the integral over \[Psi], divide out the factor of 4\[Pi], and expand \ the result\ \>", "Text"], Cell[BoxData[ \(part2\ = \ Expand[\((Integrate[Sin[\[Psi]] part1, {\[Psi], 0, \[Pi]/2}] - \ Integrate[ Sin[\[Psi]] part1, {\[Psi], \[Pi]/ 2, \[Pi]}])\)/\((4 \[Pi])\)]\)], "Input"], Cell["\<\ Substitute to express your answer in terms of \[Mu] = Cos[\[Theta]]\ \>", "Text"], Cell[BoxData[ \(\[CapitalPhi]0\ = \ TrigExpand[ FullSimplify[part2 /. \ \[Theta] \[Rule] \ ArcCos[\[Mu]]]]\)], "Input"], Cell["Pick out leading term", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(len = \ Length[\[CapitalPhi]0]\)], "Input"], Cell[BoxData[ \(15\)], "Output"] }, Open ]], Cell[BoxData[ \(coef\ = \ \[CapitalPhi]0[\([len]\)]/\[Mu]\)], "Input"], Cell["Factor out the leading power", "Text"], Cell[BoxData[ \(res\ = \ Expand[\[CapitalPhi]0/coef]\)], "Input"], Cell["Put the result back in the form of an asymptotic expansion", "Text"], Cell[BoxData[ \(res\ = \ Normal[Series[res, {\[Rho], Infinity, n}]]\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(lnr\ = \ Length[res]\)], "Input"], Cell[BoxData[ \(5\)], "Output"] }, Open ]], Cell[TextData[{ "Express the coefficients of ", Cell[BoxData[ \(TraditionalForm\`\[Rho]\^\(\(-2\) n\)\)]], " in terms of Legendre polynomials" }], "Text"], Cell[BoxData[ \(Do[t[i] = \ Simplify[\[Rho]^\((2\ i)\)\ res[\([lnr + 1 - i]\)]/ LegendreP[2\ i + 1, \[Mu]]], {i, 1, lnr - 1}]\)], "Input"], Cell[BoxData[ \(\(\(Table[t[i], {i, 1, lnr - 1}]\)\(\ \)\)\)], "Input"], Cell["Put it back together in a neat form", "Text"], Cell[BoxData[ \(\(\(For[{k = 1, fac = \ P\_1[\[Mu]]}, k < lnr, \(k++\), fac = fac + \ t[k]\ P\_\(2\ k + 1\)[\[Mu]]/\[Rho]^\((2\ k)\)]\)\(\ \[IndentingNewLine]\) \)\)], "Input"], Cell[BoxData[ \(fac\ /. \ \[Rho] \[Rule] \ r/a\)], "Input"], Cell["\<\ Here is the resulting asymptotic expansion of \[CapitalPhi] in terms of \ Legendre Polynomials\ \>", "Text"], Cell[BoxData[ \(\[CapitalPhi]\ = V\ \ Expand\ [coef\ fac\ /. \ \[Rho] \[Rule] \ r/a]\)], "Input"], Cell[BoxData[ \(V \((Normal[ Series[\((1 - \((z^2 - a^2)\)/\((z\ Sqrt[z^2 + a^2])\))\), {z, Infinity, 10}]])\)\)], "Input"] }, Open ]] }, Open ]] }, FrontEndVersion->"5.2 for Microsoft Windows", ScreenRectangle->{{0, 1024}, {0, 685}}, WindowSize->{910, 652}, WindowMargins->{{13, Automatic}, {Automatic, 12}}, Magnification->1.5 ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1776, 53, 66, 0, 76, "Subtitle"], Cell[CellGroupData[{ Cell[1867, 57, 155, 3, 56, "Subsection"], Cell[2025, 62, 48, 1, 42, "Input"], Cell[2076, 65, 816, 21, 248, "Text"], Cell[2895, 88, 109, 2, 42, "Input"], Cell[3007, 92, 141, 5, 52, "Text"], Cell[3151, 99, 129, 3, 42, "Input"], Cell[3283, 104, 103, 3, 47, "Text"], Cell[3389, 109, 39, 1, 42, "Input"], Cell[3431, 112, 77, 1, 42, "Input"], Cell[3511, 115, 112, 3, 47, "Text"], Cell[3626, 120, 124, 3, 42, "Input"], Cell[3753, 125, 75, 0, 47, "Text"], Cell[3831, 127, 49, 1, 42, "Input"], Cell[3883, 130, 44, 0, 47, "Text"], Cell[3930, 132, 93, 1, 42, "Input"], Cell[4026, 135, 114, 3, 47, "Text"], Cell[4143, 140, 262, 6, 120, "Input"], Cell[4408, 148, 91, 2, 47, "Text"], Cell[4502, 152, 139, 3, 42, "Input"], Cell[4644, 157, 37, 0, 47, "Text"], Cell[CellGroupData[{ Cell[4706, 161, 63, 1, 42, "Input"], Cell[4772, 164, 36, 1, 41, "Output"] }, Open ]], Cell[4823, 168, 75, 1, 42, "Input"], Cell[4901, 171, 44, 0, 47, "Text"], Cell[4948, 173, 70, 1, 42, "Input"], Cell[5021, 176, 74, 0, 47, "Text"], Cell[5098, 178, 85, 1, 42, "Input"], Cell[CellGroupData[{ Cell[5208, 183, 54, 1, 42, "Input"], Cell[5265, 186, 35, 1, 41, "Output"] }, Open ]], Cell[5315, 190, 166, 5, 47, "Text"], Cell[5484, 197, 165, 3, 68, "Input"], Cell[5652, 202, 75, 1, 42, "Input"], Cell[5730, 205, 51, 0, 47, "Text"], Cell[5784, 207, 202, 5, 68, "Input"], Cell[5989, 214, 64, 1, 42, "Input"], Cell[6056, 217, 118, 3, 47, "Text"], Cell[6177, 222, 110, 2, 42, "Input"], Cell[6290, 226, 152, 3, 94, "Input"] }, Open ]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)