(************** 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[ 9597, 384]*) (*NotebookOutlinePosition[ 10664, 419]*) (* CellTagsIndexPosition[ 10620, 415]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Special Functions", "Title", Evaluatable->False, TextAlignment->Center, AspectRatioFixed->True], Cell[TextData[{ "Sean Mauch\nsean@caltech.edu\n", ButtonBox["http://www.its.caltech.edu/~sean", ButtonData:>{ URL[ "http://www.its.caltech.edu/~sean"], None}, ButtonStyle->"Hyperlink"], "\n", "This work is distributed under the GNU FDL. See ", ButtonBox["license.nb ", ButtonData:>{"license.nb", None}, ButtonStyle->"Hyperlink"], "for details." }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[CellGroupData[{ Cell["The Gamma Function", "Section"], Cell[TextData[{ "In a sense, the gamma function, ", Cell[BoxData[ \(TraditionalForm\`\[CapitalGamma](z)\)]], " is the generalization of the factorial function. If ", Cell[BoxData[ \(TraditionalForm\`n\)]], " is an integer, then ", Cell[BoxData[ \(TraditionalForm\`\(n!\)\ = \[CapitalGamma](n + 1)\)]], ". The gamma function satisfies the recurrence relation" }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(TraditionalForm \`\[CapitalGamma] \((n + 1)\) = n\ \(\[CapitalGamma](n) . \)\)], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell[TextData[{ "In ", StyleBox["Mathematica", FontSlant->"Italic"], ", the gamma function is ", Cell[BoxData[ FormBox[ StyleBox[\(Gamma[]\), "Input"], TraditionalForm]]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(?Gamma\)\)], "Input"], Cell[BoxData[ \(Gamma[6]\)], "Input"], Cell["\<\ You can define the gamma function for positive argument with \ Euler's formula\ \>", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(TraditionalForm \`\[CapitalGamma] \((z)\) = \[Integral]\_0\%\[Infinity] \[ExponentialE]\^\(-t\)\ \(t\^\(z - 1\)\) \(\[DifferentialD]t . \)\)], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell[TextData[{ StyleBox["Mathematica", FontSlant->"Italic"], " may evaluate an integral, by writing it in terms of the Gamma function." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(Integrate[Exp[\(-x\^3\)], {x, 0, \[Infinity]}]\)], "Input"], Cell[BoxData[ \(N[%]\)], "Input"] }, Closed]], Cell[CellGroupData[{ Cell["Bessel Functions", "Section"], Cell["Bessel's equation is", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(TraditionalForm \`\(y'\)' + \(1\/x\) y' + \((1 - \[Nu]\^2\/x\^2)\) y = 0. \)], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell[TextData[{ "If ", Cell[BoxData[ \(TraditionalForm\`\[Nu]\)]], " is not an integer, then two linearly independent solutions are the Bessel \ functions of the first kind, ", Cell[BoxData[ \(TraditionalForm\`\(J\_\[Nu]\)(x)\)]], " and ", Cell[BoxData[ \(TraditionalForm\`\(J\_\(-\[Nu]\)\)(x)\)]], ". In ", StyleBox["Mathematica", FontSlant->"Italic"], ", these are ", Cell[BoxData[ FormBox[ StyleBox[\(BesselJ[\[Nu], x]\), "Input"], TraditionalForm]]], " and ", Cell[BoxData[ FormBox[ StyleBox[\(BesselJ[\(-\[Nu]\), x]\), "Input"], TraditionalForm]]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(?BesselJ\)\)], "Input"], Cell[BoxData[ \(DSolve[ \(\(y'\)'\)[x] + \(1\/x\) \(y'\)[x] + \((1 - 2\/x\^2)\) y[x] == 0, y[x], x]\)], "Input"], Cell[BoxData[ \(% // PowerExpand\)], "Input"], Cell[TextData[{ "For any value of ", Cell[BoxData[ \(TraditionalForm\`\[Nu]\)]], ", two linearly independent solutions are the Bessel function of the first \ kind, ", Cell[BoxData[ \(TraditionalForm\`\(J\_\[Nu]\)(x)\)]], ", and the Bessel function of the second kind, ", Cell[BoxData[ \(TraditionalForm\`\(Y\_\[Nu]\)(x)\)]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(?BesselY\)\)], "Input"], Cell[BoxData[ \(DSolve[ \(\(y'\)'\)[x] + \(1\/x\) \(y'\)[x] + \((1 - 1\/x\^2)\) y[x] == 0, y[x], x]\)], "Input"], Cell[BoxData[ \(% // PowerExpand\)], "Input"], Cell["The modified Bessel equation is", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(TraditionalForm \`\(y'\)' + \(1\/x\) y' - \((1 + \[Nu]\^2\/x\^2)\) y = 0. \)], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell[TextData[{ "If ", Cell[BoxData[ \(TraditionalForm\`\[Nu]\)]], " is not an integer, then two linearly independent solutions are the \ modified Bessel functions of the first kind, ", Cell[BoxData[ \(TraditionalForm\`\(I\_\[Nu]\)(x)\)]], " and ", Cell[BoxData[ \(TraditionalForm\`\(I\_\(-\[Nu]\)\)(x)\)]], ". In ", StyleBox["Mathematica", FontSlant->"Italic"], ", these are ", Cell[BoxData[ FormBox[ StyleBox[\(BesselI[\[Nu], x]\), "Input"], TraditionalForm]]], " and ", Cell[BoxData[ FormBox[ StyleBox[\(BesselI[\(-\[Nu]\), x]\), "Input"], TraditionalForm]]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(?BesselI\)\)], "Input"], Cell[BoxData[ \(DSolve[ \(\(y'\)'\)[x] + \(1\/x\) \(y'\)[x] - \((1 + 2\/x\^2)\) y[x] == 0, y[x], x]\)], "Input"], Cell[BoxData[ \(% // PowerExpand\)], "Input"], Cell[TextData[{ "For any value of ", Cell[BoxData[ \(TraditionalForm\`\[Nu]\)]], ", two linearly independent solutions are the modified Bessel function of \ the first kind, ", Cell[BoxData[ \(TraditionalForm\`\(I\_\[Nu]\)(x)\)]], ", and the modified Bessel function of the second kind, ", Cell[BoxData[ \(TraditionalForm\`\(K\_\[Nu]\)(x)\)]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(?BesselK\)\)], "Input"], Cell[BoxData[ \(DSolve[ \(\(y'\)'\)[x] + \(1\/x\) \(y'\)[x] - \((1 + 1\/x\^2)\) y[x] == 0, y[x], x]\)], "Input"], Cell[BoxData[ \(% // PowerExpand\)], "Input"] }, Closed]], Cell[CellGroupData[{ Cell["Airy Functions", "Section"], Cell["The Airy equation is", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(TraditionalForm\`\(y'\)' = x\ \(y . \)\)], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell[TextData[{ "Two linearly independent solutions are the Airy functions ", Cell[BoxData[ \(TraditionalForm\`Ai(x)\)]], " and ", Cell[BoxData[ \(TraditionalForm\`Bi(x)\)]], ". In ", StyleBox["Mathematica", FontSlant->"Italic"], " these are denoted ", Cell[BoxData[ FormBox[ StyleBox[\(AiryAi[]\), "Input"], TraditionalForm]]], " and ", Cell[BoxData[ FormBox[ StyleBox[\(AiryBi[]\), "Input"], TraditionalForm]]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(?AiryAi\)\)], "Input"], Cell[BoxData[ \(\(?AiryBi\)\)], "Input"], Cell[BoxData[ \(DSolve[\(\(y'\)'\)[x] == x\ y[x], y[x], x]\)], "Input"], Cell[TextData[{ "Both functions are oscillatory and decaying for negative ", Cell[BoxData[ \(TraditionalForm\`x\)]], ". ", Cell[BoxData[ \(TraditionalForm\`Ai(x)\)]], " is exponentially decaying for positive ", Cell[BoxData[ \(TraditionalForm\`x\)]], "; ", Cell[BoxData[ \(TraditionalForm\`Bi(x)\)]], " is exponentially growing for positive ", Cell[BoxData[ \(TraditionalForm\`x\)]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(Plot[{AiryAi[x], AiryBi[x]}, {x, \(-10\), 2}]; \)\)], "Input"] }, Closed]] }, Open ]] }, FrontEndVersion->"5.2 for Microsoft Windows", ScreenRectangle->{{0, 1680}, {0, 963}}, WindowToolbars->"EditBar", CellGrouping->Automatic, WindowSize->{772, 476}, WindowMargins->{{2, Automatic}, {Automatic, 2}}, PrintingPageRange->{Automatic, Automatic}, PrintingOptions->{"PaperSize"->{612, 792}, "PaperOrientation"->"Portrait", "Magnification"->1}, PrivateNotebookOptions->{"ColorPalette"->{RGBColor, 128}}, ShowCellLabel->True, ShowCellTags->False, RenderingOptions->{"ObjectDithering"->True, "RasterDithering"->False}, CharacterEncoding->"XAutomaticEncoding", 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, 107, 3, 141, "Title", Evaluatable->False], Cell[1886, 58, 439, 14, 125, "Text", Evaluatable->False], Cell[CellGroupData[{ Cell[2350, 76, 37, 0, 109, "Section"], Cell[2390, 78, 452, 13, 73, "Text"], Cell[2845, 93, 174, 5, 35, "DisplayFormula"], Cell[3022, 100, 272, 12, 47, "Text"], Cell[3297, 114, 43, 1, 42, "Input"], Cell[3343, 117, 41, 1, 42, "Input"], Cell[3387, 120, 149, 5, 47, "Text"], Cell[3539, 127, 251, 6, 56, "DisplayFormula"], Cell[3793, 135, 203, 6, 47, "Text"], Cell[3999, 143, 79, 1, 42, "Input"], Cell[4081, 146, 37, 1, 42, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[4155, 152, 35, 0, 62, "Section"], Cell[4193, 154, 83, 2, 47, "Text"], Cell[4279, 158, 172, 5, 60, "DisplayFormula"], Cell[4454, 165, 713, 27, 73, "Text"], Cell[5170, 194, 45, 1, 42, "Input"], Cell[5218, 197, 129, 3, 63, "Input"], Cell[5350, 202, 49, 1, 42, "Input"], Cell[5402, 205, 419, 14, 73, "Text"], Cell[5824, 221, 45, 1, 42, "Input"], Cell[5872, 224, 129, 3, 63, "Input"], Cell[6004, 229, 49, 1, 42, "Input"], Cell[6056, 232, 94, 2, 47, "Text"], Cell[6153, 236, 172, 5, 60, "DisplayFormula"], Cell[6328, 243, 722, 27, 73, "Text"], Cell[7053, 272, 45, 1, 42, "Input"], Cell[7101, 275, 129, 3, 63, "Input"], Cell[7233, 280, 49, 1, 42, "Input"], Cell[7285, 283, 437, 14, 73, "Text"], Cell[7725, 299, 45, 1, 42, "Input"], Cell[7773, 302, 129, 3, 63, "Input"], Cell[7905, 307, 49, 1, 42, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[7991, 313, 33, 0, 62, "Section"], Cell[8027, 315, 83, 2, 47, "Text"], Cell[8113, 319, 129, 3, 35, "DisplayFormula"], Cell[8245, 324, 563, 23, 73, "Text"], Cell[8811, 349, 44, 1, 42, "Input"], Cell[8858, 352, 44, 1, 42, "Input"], Cell[8905, 355, 75, 1, 42, "Input"], Cell[8983, 358, 499, 19, 73, "Text"], Cell[9485, 379, 84, 1, 42, "Input"] }, Closed]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)