(************** Content-type: application/mathematica ************** 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[ 7692, 222]*) (*NotebookOutlinePosition[ 8391, 246]*) (* CellTagsIndexPosition[ 8347, 242]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Constant Coefficient Second Order Equations", "Title", CellFrame->True, TextAlignment->Center, Background->RGBColor[0, 1, 0]], Cell["\<\ This notebook is by Steven Amgott. Please send any questions or \ comments to samgott1@swarthmore.edu. Feel free to use and distribute this \ notebook, but keep this author information in any copy you use or distribute.\ \ \>", "SmallText"], Cell[TextData[{ "This notebook used the add-on package ", StyleBox["VisualDSolve", FontColor->RGBColor[0, 0, 1]], " to create the plots. ", StyleBox["VisualDSolve", FontColor->RGBColor[0, 0, 1]], " is not part of the standard ", StyleBox["Mathematica", FontSlant->"Italic"], " media set. It is a commercial third-party package available (together \ with an accompanying book) from Telos at" }], "Text"], Cell[TextData[{ " ", StyleBox["http://www.telospub.com/catalog/MATHEMATICA/VisualDSolve.html", FontColor->RGBColor[0, 0, 0.996109]], "." }], "Text", TextAlignment->Center, TextJustification->0], Cell["or by download from Wolfram Research at", "Text"], Cell[TextData[{ StyleBox[" ", TextAlignment->Center, TextJustification->0, FontFamily->"Times New Roman", FontVariations->{"CompatibilityType"->0}], StyleBox["http://store.wolfram.com/view/book/D0706.str.", TextAlignment->Center, TextJustification->0, FontFamily->"Times New Roman", FontColor->RGBColor[0, 0, 0.996109], FontVariations->{"CompatibilityType"->0}] }], "Text", TextAlignment->Center, TextJustification->0], Cell["\<\ Without this package you will not be able to create the plots in \ this notebook.\ \>", "Text"], Cell[TextData[{ "In any input cell containing ", StyleBox["xxx", FontColor->RGBColor[1, 0, 1]], " , you must replace it with your input before evaluating the cell. In \ general, anything in ", StyleBox["magenta", FontColor->RGBColor[1, 0, 1]], " is something you can, and possibly should, change." }], "Text"], Cell["\<\ The following cell is an initialization cell which will be \ automatically evaluated, provided you answer \"Yes\" to the initialization \ prompt. If you do not, you will need to evaluate it manually before \ evaluating any of the cells in this notebook which create the plots.\ \>", \ "Text"], Cell[BoxData[ \(Needs["\"]\)], "Input", InitializationCell->True], Cell[TextData[{ "You can check to see if the package loaded by evaluating the next cell. \ The output should include ", StyleBox["VisualDSolve`", FontColor->RGBColor[1, 0, 0]], ". If it does not, either the package is not on your computer or it did \ not load correctly, and you will be unable to produce the plots." }], "Text"], Cell[BoxData[ \($Packages\)], "Input"], Cell[CellGroupData[{ Cell["What this notebook does", "Section"], Cell["\<\ This notebook plots solutions to any homogeneous linear second \ order differential equation with constant coefficents. It produces plots of \ y vs. t, y' vs t, and y' vs. y. You can easily vary the values of a, b, and \ c, and see the effect on the solutions. You can also change the plotting \ region, and the initial conditions.\ \>", "Text"] }, Closed]], Cell[CellGroupData[{ Cell["Plots of solutions", "Section"], Cell[BoxData[{\(Clear[t, y, a, b, c, t0, y0, dy0]\), "\n", RowBox[{ RowBox[{"a", "=", StyleBox["1", FontColor->RGBColor[1, 0, 1]]}], ";"}], "\n", RowBox[{ RowBox[{"b", "=", StyleBox["3", FontColor->RGBColor[1, 0, 1]]}], ";"}], "\n", RowBox[{ RowBox[{"c", "=", StyleBox["2", FontColor->RGBColor[1, 0, 1]]}], ";"}], "\n", RowBox[{ RowBox[{"t0", "=", StyleBox["0", FontColor->RGBColor[1, 0, 1]]}], ";"}], "\n", RowBox[{ RowBox[{"y0", "=", StyleBox["1", FontColor->RGBColor[1, 0, 1]]}], ";"}], "\n", RowBox[{ RowBox[{"dy0", "=", StyleBox["0", FontColor->RGBColor[1, 0, 1]]}], ";"}], "\n", \(SecondOrderPlot[ a\ \(\(y'\)'\)[t] + b\ \(y'\)[t] + c\ y[t] == 0, y[t], {t, 0, 12}, \n\t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ PlotVariables -> {{y}}, \n\t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ InitialValues \[Rule] {t0, y0, dy0}, AxesLabel \[Rule] {"\", "\"}, PlotLabel \[Rule] "\"];\), "\n", \(SecondOrderPlot[ a\ \(\(y'\)'\)[t] + b\ \(y'\)[t] + c\ y[t] == 0, y[t], {t, 0, 12}, \n\t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ PlotVariables -> {{y'}}, \n\t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ InitialValues \[Rule] {t0, y0, dy0}, AxesLabel \[Rule] {"\", "\"}, PlotLabel \[Rule] "\"];\), "\n", \ \(SecondOrderPlot[a\ \(\(y'\)'\)[t] + b\ \(y'\)[t] + c\ y[t] == 0, y[t], {t, 0, 12}, \n\t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ PlotVariables -> All, \n\t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ InitialValues \[Rule] {t0, y0, dy0}, AxesLabel \[Rule] {"\", "\"}, PlotLabel \[Rule] "\"];\), "\n", \ \(SecondOrderPlot[a\ \(\(y'\)'\)[t] + b\ \(y'\)[t] + c\ y[t] == 0, y[t], {t, 0, 12}, {y, \(-2\), 2}, {y', \(-2\), 2}, \n\t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ PlotVariables -> All, \n\t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ InitialValues \[Rule] {t0, y0, dy0}, AxesLabel \[Rule] {"\", "\"}, PlotLabel \[Rule] "\", AspectRatio \[Rule] 1];\)}], "Input"] }, Closed]] }, Open ]] }, FrontEndVersion->"4.1 for Microsoft Windows", ScreenRectangle->{{0, 1024}, {0, 722}}, AutoGeneratedPackage->None, WindowToolbars->"EditBar", WindowSize->{574, 575}, WindowMargins->{{12, Automatic}, {Automatic, 0}} ] (******************************************************************* 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[1727, 52, 137, 3, 186, "Title"], Cell[1867, 57, 252, 5, 44, "SmallText"], Cell[2122, 64, 430, 12, 71, "Text"], Cell[2555, 78, 207, 7, 33, "Text"], Cell[2765, 87, 55, 0, 33, "Text"], Cell[2823, 89, 462, 14, 33, "Text"], Cell[3288, 105, 105, 3, 33, "Text"], Cell[3396, 110, 328, 9, 52, "Text"], Cell[3727, 121, 303, 6, 71, "Text"], Cell[4033, 129, 87, 2, 30, "Input", InitializationCell->True], Cell[4123, 133, 340, 7, 71, "Text"], Cell[4466, 142, 42, 1, 27, "Input"], Cell[CellGroupData[{ Cell[4533, 147, 42, 0, 53, "Section"], Cell[4578, 149, 358, 6, 71, "Text"] }, Closed]], Cell[CellGroupData[{ Cell[4973, 160, 37, 0, 33, "Section"], Cell[5013, 162, 2651, 56, 530, "Input"] }, Closed]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)