(************** 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[ 8386, 318]*) (*NotebookOutlinePosition[ 9453, 353]*) (* CellTagsIndexPosition[ 9409, 349]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Green 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 Dirac Delta Function", "Section"], Cell[TextData[{ "To use the Dirac delta function, first load the ", StyleBox["DiracDelta", "Input"], " package." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(<< Calculus`DiracDelta`\)], "Input"], Cell[TextData[{ StyleBox["DiracDelta[x]", "Input"], " is the Dirac delta function, ", Cell[BoxData[ \(TraditionalForm\`\[Delta](x)\)]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(?DiracDelta\)\)], "Input"], Cell[TextData[{ StyleBox["UnitStep[x]", "Input"], " is the Heaviside function, ", Cell[BoxData[ \(TraditionalForm\`H(x)\)]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(?UnitStep\)\)], "Input"], Cell["\<\ You can write the box function as a difference of Heaviside \ functions.\ \>", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ FormBox[ RowBox[{\(b(x)\), "=", RowBox[{"{", RowBox[{GridBox[{ {"1", \(for\ | x | \( < 1/2\)\)}, {"0", \(for\ | x | \( > 1/2\)\)} }], "=", \(H(x + 1\/2) - \ \(H(x - 1\/2) . \)\)}]}]}], TraditionalForm]], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell[BoxData[ \(\(Plot[UnitStep[x + 1\/2] - UnitStep[x - 1\/2], {x, \(-2\), 2}, PlotStyle -> Thickness[0.005]]; \)\)], "Input"], Cell[TextData[{ "One property of the Dirac delta function is that ", Cell[BoxData[ \(TraditionalForm \`\[Delta](c\ x) = \(1\/\(| c | \)\) \(\[Delta](x)\)\)]], ". We can see this by integrating ", Cell[BoxData[ \(TraditionalForm\`\(\[Delta](c\ x)\)\ \(f(x)\)\)]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\[Integral]\_\(-\[Infinity]\)\%\[Infinity] DiracDelta[c\ x] f[x] \[DifferentialD]x\)], "Input"] }, Closed]], Cell[CellGroupData[{ Cell["Green Functions for Second Order Differential Equations", "Section"], Cell["The differential equation", "Text"], Cell[BoxData[ FormBox[ RowBox[{\(\(y'\)' + \(p(x)\) y' + \(q(x)\) y = f(x)\), ",", " ", RowBox[{"on", " ", FormBox[\(a < x < b\), "TraditionalForm"]}], ","}], TraditionalForm]], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell["subject to the boundary conditions", "Text"], Cell[BoxData[ \(TraditionalForm\`B\_1[y] = \(B\_2[y] = 0\)\)], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell["has the solution", "Text"], Cell[BoxData[ \(TraditionalForm \`y = \[Integral]\_a\%b\( g(x, \[Xi])\)\ \(f(\[Xi])\) \[DifferentialD]\[Xi]\)], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell[TextData[{ "where ", Cell[BoxData[ \(TraditionalForm\`G(x, \[Xi])\)]], " satisfies" }], "Text"], Cell[BoxData[ FormBox[ RowBox[{ \(\(g'\)' + \(p(x)\) g' + \(q(x)\) g = \[Delta](x - \[Xi])\), ",", " ", RowBox[{ FormBox[\(B\_1[g] = \(B\_2[g] = 0\)\), "TraditionalForm"], "."}]}], TraditionalForm]], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell[CellGroupData[{ Cell["Example", "Subsection"], Cell["Consider the problem", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ FormBox[ RowBox[{\(\(y'\)' - y = f(x)\), ",", " ", RowBox[{ FormBox[\(y(0) = \(y(1) = 0\)\), "TraditionalForm"], "."}]}], TraditionalForm]], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell["The Green function for this problem satisfies", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ FormBox[ RowBox[{\(\(g'\)' - g = \[Delta](x - \[Xi])\), ",", " ", RowBox[{ FormBox[\(g(0, \[Xi]) = \(g(1, \[Xi]) = 0\)\), "TraditionalForm"], "."}]}], TraditionalForm]], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell[BoxData[ \(Clear[g]\)], "Input"], Cell[BoxData[ \(DSolve[{\(\(g'\)'\)[x] - g[x] == DiracDelta[x - \[Xi]], g[0] == 0, g[1] == 0}, g[x], x]\)], "Input"], Cell[TextData[{ "Since ", Cell[BoxData[ \(TraditionalForm\`\[Xi] \[Element] \([0, 1]\)\)]], ", ", Cell[BoxData[ \(TraditionalForm\`H(1 - \[Xi]) = 1\)]], " and ", Cell[BoxData[ \(TraditionalForm\`H(\(-\[Xi]\)) = 0\)]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(g[x_] = \(g[x] /. First[%]\) /. {UnitStep[1 - \[Xi]] -> 1, UnitStep[\(-\[Xi]\)] -> 0} // Simplify\)], "Input"], Cell["The solution of the differential equation ", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ FormBox[ RowBox[{ RowBox[{\(\(y'\)' - y = x\), ",", " ", RowBox[{"on", " ", FormBox[\(x \[Element] \((0, 1)\)\), "TraditionalForm"], " ", "subject", " ", "to", " ", FormBox[\(y(0) = \(y(1) = 0\)\), "TraditionalForm"]}]}], " "}], TraditionalForm]], "DisplayFormula", TextAlignment->Center, TextJustification->0], Cell["is", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(Integrate[\[Xi]\ g[x], {\[Xi], 0, 1}]\)], "Input"], Cell[TextData[{ "Since ", Cell[BoxData[ \(TraditionalForm\`x \[Element] \((0, 1)\)\)]], ", ", Cell[BoxData[ \(TraditionalForm\`H(\(-1\) + x) = 0\)]], " and ", Cell[BoxData[ \(TraditionalForm\`H(x) = 1\)]], "." }], "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(% /. {UnitStep[\(-1\) + x] -> 0, UnitStep[x] -> 1} // Simplify\)], "Input"], Cell["Below is a plot of the solution.", "Text", TextAlignment->Left, TextJustification->1], Cell[BoxData[ \(\(Plot[%, {x, 0, 1}]; \)\)], "Input"], Cell[BoxData[ \(Clear[g]\)], "Input"] }, Closed]] }, 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, 105, 3, 141, "Title", Evaluatable->False], Cell[1884, 58, 439, 14, 125, "Text", Evaluatable->False], Cell[CellGroupData[{ Cell[2348, 76, 43, 0, 109, "Section"], Cell[2394, 78, 177, 6, 48, "Text"], Cell[2574, 86, 56, 1, 42, "Input"], Cell[2633, 89, 212, 8, 48, "Text"], Cell[2848, 99, 48, 1, 42, "Input"], Cell[2899, 102, 201, 8, 48, "Text"], Cell[3103, 112, 46, 1, 42, "Input"], Cell[3152, 115, 143, 5, 47, "Text"], Cell[3298, 122, 371, 10, 57, "DisplayFormula"], Cell[3672, 134, 138, 2, 95, "Input"], Cell[3813, 138, 354, 11, 80, "Text"], Cell[4170, 151, 124, 2, 60, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[4331, 158, 74, 0, 101, "Section"], Cell[4408, 160, 41, 0, 47, "Text"], Cell[4452, 162, 289, 7, 35, "DisplayFormula"], Cell[4744, 171, 50, 0, 47, "Text"], Cell[4797, 173, 133, 3, 35, "DisplayFormula"], Cell[4933, 178, 32, 0, 47, "Text"], Cell[4968, 180, 197, 5, 57, "DisplayFormula"], Cell[5168, 187, 112, 5, 47, "Text"], Cell[5283, 194, 325, 9, 35, "DisplayFormula"], Cell[CellGroupData[{ Cell[5633, 207, 29, 0, 68, "Subsection"], Cell[5665, 209, 83, 2, 47, "Text"], Cell[5751, 213, 265, 7, 35, "DisplayFormula"], Cell[6019, 222, 108, 2, 47, "Text"], Cell[6130, 226, 294, 7, 35, "DisplayFormula"], Cell[6427, 235, 41, 1, 42, "Input"], Cell[6471, 238, 129, 2, 68, "Input"], Cell[6603, 242, 312, 13, 47, "Text"], Cell[6918, 257, 150, 3, 94, "Input"], Cell[7071, 262, 105, 2, 47, "Text"], Cell[7179, 266, 420, 11, 35, "DisplayFormula"], Cell[7602, 279, 65, 2, 47, "Text"], Cell[7670, 283, 70, 1, 42, "Input"], Cell[7743, 286, 300, 13, 47, "Text"], Cell[8046, 301, 98, 2, 42, "Input"], Cell[8147, 305, 95, 2, 47, "Text"], Cell[8245, 309, 57, 1, 42, "Input"], Cell[8305, 312, 41, 1, 42, "Input"] }, Closed]] }, Closed]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)