(*********************************************************************** Mathematica-Compatible Notebook This notebook can be used on any computer system with Mathematica 3.0, MathReader 3.0, or any compatible application. The data for the notebook starts with the line of 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[ 6968, 276]*) (*NotebookOutlinePosition[ 7868, 307]*) (* CellTagsIndexPosition[ 7824, 303]*) (*WindowFrame->Normal*) Notebook[{ Cell["\<\ APPM 3010 Fall 1999 Nonlinear Dynamics and Chaos Lab#1. Iterations of Maps. Prof. Keith Julien (c) Hector Lomeli\ \>", "Title", Evaluatable->False, AspectRatioFixed->True], Cell[CellGroupData[{ Cell["Introduction", "Section", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[{ StyleBox[ " The following is a list of some of the basic instructions that are \ useful for the \n analysis of the dynamics of one dimensional maps.\n \n ", FontFamily->"Times"], StyleBox["Plot\n Solve\n NSolve\n D\n Abs", FontFamily->"Times", FontWeight->"Bold"], StyleBox["\n \n First we will give Mathematica a very easy task.", FontFamily->"Times"] }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[ \(1 + 1\)], "Input", AspectRatioFixed->True] }, Closed]], Cell[CellGroupData[{ Cell["Function definition", "Section", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[{ StyleBox[ "\nWe will define the function that we will use. Notice the special \ characters\n\n", FontFamily->"Times"], StyleBox["_ ", FontFamily->"Times", FontSize->24, FontWeight->"Bold"], StyleBox[" ", FontFamily->"Times", FontSize->24], StyleBox["and", FontFamily->"Times"], StyleBox[" ", FontFamily->"Times", FontSize->24], StyleBox[" ", FontFamily->"Times", FontSize->24, FontWeight->"Bold"], StyleBox[":=\n", FontFamily->"Helvetica", FontSize->24, FontWeight->"Bold"] }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[ \(f[x_] := x\^3 - 3\ x + 3\)], "Input", AspectRatioFixed->True] }, Closed]], Cell[CellGroupData[{ Cell["Derivative of the Function", "Section", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[{ "\nWe can compute the derivative and second derivatives of ", StyleBox["f[x]", FontWeight->"Bold"], " in the following way." }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[ \(D[f[x], x]\)], "Input", AspectRatioFixed->True], Cell[BoxData[ \(D[f[x], {x, 2}]\)], "Input", AspectRatioFixed->True], Cell["Here we have another way of taking the first derivative.", "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[ RowBox[{ SuperscriptBox["f", "\[Prime]", MultilineFunction->None], "[", "x", "]"}]], "Input", AspectRatioFixed->True] }, Closed]], Cell[CellGroupData[{ Cell["Plotting the function", "Section", Evaluatable->False, AspectRatioFixed->True], Cell["\<\ The following two are examples of possible plots that we can make \ with Mathematica. Notice that we can change the domain, the aspect ratio and \ the range. \ \>", "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[ \(Plot[{x, f[x]}, {x, \(-3\), 3}]\)], "Input", AspectRatioFixed->True], Cell[BoxData[ \(Plot[{x, f[x]}, {x, \(-3\), 3}, \ AspectRatio \[Rule] \ 1]\)], "Input"], Cell[BoxData[ \(Plot[{x, f[x]}, {x, \(-3\), 3}, PlotRange \[Rule] {\(-5\), 5}]\)], "Input", AspectRatioFixed->True] }, Closed]], Cell[CellGroupData[{ Cell["Fixed points", "Section", Evaluatable->False, AspectRatioFixed->True], Cell["\<\ There are at leat three ways we can find or approximate the set of \ fixed points.\ \>", "Text", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[{ StyleBox["Solve", FontWeight->"Bold"], " will try to solve algebraic equations using algebraic factorization." }], "Text"], Cell[BoxData[ \(Solve[f[x] == x, x]\)], "Input", AspectRatioFixed->True], Cell[TextData[{ StyleBox["FindRoot", FontWeight->"Bold"], " requires an initial condition. In this case, the initial guess is 2." }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[ \(FindRoot[f[x] == x, {x, 2}]\)], "Input", AspectRatioFixed->True], Cell["We can give different names to the results of a computation.", "Text"], Cell[BoxData[ \(fixedpoints = NSolve[f[x] == x, x]\)], "Input", AspectRatioFixed->True] }, Closed]], Cell[CellGroupData[{ Cell["Classification of fixed Points", "Section", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[{ "Finally, we can replace the fixed points on the derivative to classify \ them.\n First, we can read the content of the variable", StyleBox[" fixedpoints.", FontWeight->"Bold"] }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[ \(fixedpoints\)], "Input"], Cell["\<\ Notice that if we apply the original function to the fixed points \ we get the fixed points.\ \>", "Text"], Cell[BoxData[ \(f[x] /. fixedpoints\)], "Input", AspectRatioFixed->True], Cell[TextData[{ "\nThe absolute value of the derivative of the function gives the \ stability. Mathematica can\nperform this operation in the following way. \ Notice that", StyleBox[" Abs[x]", FontWeight->"Bold"], " gives the absolute value of \na number." }], "Text"], Cell[BoxData[ RowBox[{ RowBox[{"Abs", "[", RowBox[{ SuperscriptBox["f", "\[Prime]", MultilineFunction->None], "[", "x", "]"}], "]"}], "/.", "fixedpoints"}]], "Input", AspectRatioFixed->True] }, Closed]] }, FrontEndVersion->"X 3.0", ScreenRectangle->{{0, 1280}, {0, 1024}}, WindowToolbars->{}, CellGrouping->Manual, WindowSize->{1075, 707}, WindowMargins->{{14, Automatic}, {Automatic, 53}}, PrivateNotebookOptions->{"ColorPalette"->{RGBColor, 128}}, ShowCellLabel->True, ShowCellTags->False, RenderingOptions->{"ObjectDithering"->True, "RasterDithering"->False}, CharacterEncoding->"MacintoshAutomaticEncoding" ] (*********************************************************************** 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[1709, 49, 186, 9, 342, "Title"], Cell[CellGroupData[{ Cell[1920, 62, 79, 2, 54, "Section"], Cell[2002, 66, 467, 13, 70, "Text"], Cell[2472, 81, 64, 2, 70, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[2573, 88, 86, 2, 34, "Section"], Cell[2662, 92, 627, 27, 70, "Text"], Cell[3292, 121, 83, 2, 70, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[3412, 128, 93, 2, 34, "Section"], Cell[3508, 132, 210, 7, 70, "Text"], Cell[3721, 141, 69, 2, 70, "Input"], Cell[3793, 145, 74, 2, 70, "Input"], Cell[3870, 149, 120, 2, 70, "Text"], Cell[3993, 153, 151, 4, 70, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[4181, 162, 88, 2, 34, "Section"], Cell[4272, 166, 230, 7, 70, "Text"], Cell[4505, 175, 90, 2, 70, "Input"], Cell[4598, 179, 91, 1, 70, "Input"], Cell[4692, 182, 124, 3, 70, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[4853, 190, 79, 2, 34, "Section"], Cell[4935, 194, 155, 5, 70, "Text"], Cell[5093, 201, 146, 4, 70, "Text"], Cell[5242, 207, 78, 2, 70, "Input"], Cell[5323, 211, 197, 6, 70, "Text"], Cell[5523, 219, 86, 2, 70, "Input"], Cell[5612, 223, 76, 0, 70, "Text"], Cell[5691, 225, 93, 2, 70, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[5821, 232, 97, 2, 34, "Section"], Cell[5921, 236, 260, 7, 70, "Text"], Cell[6184, 245, 44, 1, 70, "Input"], Cell[6231, 248, 116, 3, 70, "Text"], Cell[6350, 253, 78, 2, 70, "Input"], Cell[6431, 257, 278, 7, 70, "Text"], Cell[6712, 266, 240, 7, 70, "Input"] }, Closed]] } ] *) (*********************************************************************** End of Mathematica Notebook file. ***********************************************************************)