(************** 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[ 6575, 176]*) (*NotebookOutlinePosition[ 7221, 198]*) (* CellTagsIndexPosition[ 7177, 194]*) (*WindowFrame->Normal*) Notebook[{ Cell["Start with two modes:", "Text"], Cell[BoxData[{ \(eq1\ = \ \(x1''\)[t]\ \ \[Equal] \ \(-2\)\ x1[t]\ + \ x2[t]\), "\[IndentingNewLine]", \(eq2\ = \ \(x2''\)[t]\ \ \[Equal] \ x1[t]\ - \ 2 x2[t]\)}], "Input"], Cell["\<\ Let's solve with certain boundary conditions and solve for the motion:\ \>", "Text"], Cell[BoxData[ \(s = DSolve[{eq1, eq2, x1[0] \[Equal] 0, x2[0] \[Equal] 0, \(x1'\)[0] \[Equal] 1, \(x2'\)[0] \[Equal] 0}, {x1[t], x2[t]}, t]\)], "Input"], Cell["Here is a function to draw the state:", "Text"], Cell[BoxData[ \(L = 12\)], "Input"], Cell[BoxData[ \(state[x_, y_] := \ Show[{ParametricPlot[{0 + \((t*x)\), Sin[2\ Pi\ 6\ t]}, {t, 0, 1}, Axes \[Rule] True, PlotStyle \[Rule] RGBColor[1, 0, 0], DisplayFunction \[Rule] Identity, PlotRange \[Rule] {{0, L}, {\(-1\), 1}}], Graphics[ Rectangle[{x - 1/2, \(-1\)/4}, {x + 1/2, 1/4}]], \[IndentingNewLine]ParametricPlot[{x + t*\((y - x)\), Sin[2\ Pi\ 6\ t]}, {t, 0, 1}, Axes \[Rule] True, PlotStyle \[Rule] RGBColor[1, 0, 0], DisplayFunction \[Rule] Identity, PlotRange \[Rule] {{0, L}, {\(-1\), 1}}], \[IndentingNewLine]Graphics[ Rectangle[{y - 1/2, \(-1\)/4}, {y + 1/2, 1/4}]], \[IndentingNewLine]ParametricPlot[{y + t*\((L - y)\), Sin[2\ Pi\ 6\ t]}, {t, 0, 1}, Axes \[Rule] True, PlotStyle \[Rule] RGBColor[1, 0, 0], DisplayFunction \[Rule] Identity, PlotRange \[Rule] {{0, L}, {\(-1\), 1}}]}, DisplayFunction \[Rule] $DisplayFunction]\)], "Input"], Cell["And here is how we use it to animate the motion.", "Text"], Cell[BoxData[ \(Table[ state[4 + x1[t] /. s[\([1]\)], 8 + x2[t] /. s[\([1]\)]], {t, 0, 10, .1}]\)], "Input"], Cell["\<\ Your first task: play with the boundary conditions until you get the \"nice\" \ modes with only one frequency.\ \>", "Text"], Cell["\<\ Your next task: add a third mass. That is, write the equations for three \ coordinates, DSolve, and animate with:\ \>", "Text"], Cell[BoxData[ \(state[x_, y_, z_] := \ Show[{\[IndentingNewLine]ParametricPlot[{0 + \((t*x)\), Sin[2\ Pi\ 6\ t]}, {t, 0, 1}, Axes \[Rule] True, PlotStyle \[Rule] RGBColor[1, 0, 0], DisplayFunction \[Rule] Identity, PlotRange \[Rule] {{0, L}, {\(-1\), 1}}], Graphics[ Rectangle[{x - 1/2, \(-1\)/4}, {x + 1/2, 1/4}]], \[IndentingNewLine]Graphics[ Rectangle[{x - 1/2, \(-1\)/4}, {x + 1/2, 1/4}]], \[IndentingNewLine]ParametricPlot[{x + t*\((y - x)\), Sin[2\ Pi\ 6\ t]}, {t, 0, 1}, Axes \[Rule] True, PlotStyle \[Rule] RGBColor[1, 0, 0], DisplayFunction \[Rule] Identity, PlotRange \[Rule] {{0, L}, {\(-1\), 1}}], \[IndentingNewLine]Graphics[ Rectangle[{y - 1/2, \(-1\)/4}, {y + 1/2, 1/4}]], \[IndentingNewLine]ParametricPlot[{y + t*\((z - y)\), Sin[2\ Pi\ 6\ t]}, {t, 0, 1}, Axes \[Rule] True, PlotStyle \[Rule] RGBColor[1, 0, 0], DisplayFunction \[Rule] Identity, PlotRange \[Rule] {{0, L}, {\(-1\), 1}}], \[IndentingNewLine]Graphics[ Rectangle[{z - 1/2, \(-1\)/4}, {z + 1/2, 1/4}]], \[IndentingNewLine]ParametricPlot[{z + t*\((L - z)\), Sin[2\ Pi\ 6\ t]}, {t, 0, 1}, Axes \[Rule] True, PlotStyle \[Rule] RGBColor[1, 0, 0], DisplayFunction \[Rule] Identity, PlotRange \[Rule] {{0, L}, {\(-1\), 1}}]}, DisplayFunction \[Rule] $DisplayFunction]\)], "Input"], Cell["\<\ Next task: write the matrix which describes this problem. For the 2x2 case \ it would be:\ \>", "Text"], Cell[BoxData[ \(\((m\ = \ {{2, \(-1\)}, {\(-1\), 2}})\)\ // \ MatrixForm\)], "Input"], Cell["\<\ and we could ask for the Eigenvectors. Your job: extend to the 3x3 problem \ at hand, find the eigenvectors and animate. As you do so, form the charateristic polynomial by taking\ \>", "Text"], Cell[BoxData[ \(\((id\ = \ {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}})\) // MatrixForm\)], "Input"], Cell[BoxData[ \(Det[m\ - \ \[Lambda]\ id]\)], "Input"], Cell["\<\ and Solving for the roots. For good measure, pick one of the eigenvalues, \ and then Solve appropriate equations to find a corresponding eigenvector.\ \>", "Text"], Cell["\<\ Further extensions: (a) add damping ( a term -\[Gamma] x'[t]), (b) add yet \ more masses (best to do this for general n at some point), (c) add forcing. \ \>", "Text"] }, FrontEndVersion->"5.2 for Microsoft Windows", ScreenRectangle->{{0, 1024}, {0, 695}}, WindowSize->{1016, 668}, WindowMargins->{{-14, Automatic}, {Automatic, 4}} ] (******************************************************************* 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[1754, 51, 37, 0, 33, "Text"], Cell[1794, 53, 199, 3, 50, "Input"], Cell[1996, 58, 94, 2, 33, "Text"], Cell[2093, 62, 187, 4, 30, "Input"], Cell[2283, 68, 53, 0, 33, "Text"], Cell[2339, 70, 39, 1, 30, "Input"], Cell[2381, 73, 1113, 20, 170, "Input"], Cell[3497, 95, 64, 0, 33, "Text"], Cell[3564, 97, 128, 3, 30, "Input"], Cell[3695, 102, 134, 3, 33, "Text"], Cell[3832, 107, 138, 3, 33, "Text"], Cell[3973, 112, 1654, 30, 250, "Input"], Cell[5630, 144, 114, 3, 33, "Text"], Cell[5747, 149, 91, 1, 30, "Input"], Cell[5841, 152, 204, 4, 52, "Text"], Cell[6048, 158, 102, 2, 30, "Input"], Cell[6153, 162, 59, 1, 30, "Input"], Cell[6215, 165, 174, 3, 33, "Text"], Cell[6392, 170, 179, 4, 52, "Text"] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)