(*********************************************************************** Mathematica-Compatible Notebook This notebook can be used on any computer system with Mathematica 4.0, MathReader 4.0, or any compatible application. 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[ 7312, 212]*) (*NotebookOutlinePosition[ 8187, 242]*) (* CellTagsIndexPosition[ 8143, 238]*) (*WindowFrame->Normal*) Notebook[{ Cell["Derivatives of Trigonometric Functions", "Title", CellFrame->True, Evaluatable->False, TextAlignment->Center, AspectRatioFixed->True, 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[{ "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[CellGroupData[{ Cell["Warm-up: A derivative we already know", "Section"], Cell[CellGroupData[{ Cell["Graphing a function and its approximate derivative.", "Subsection", Evaluatable->False, AspectRatioFixed->True], Cell["\<\ The syntax in the cell below draws the graph of a trigonometric \ function and its (approximate) derivative. The function will be called f[x], \ and the derivative df[x]. The graph of the original function will be solid, \ while that of its derivative will be dashed. We are using an \"h\" value of \ .0001, which should give us a good enough approximation for the derivative.\ \ \>", "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[{ \(Clear[x, f, df]\), \(f[x_] := x\^2\), \(df[x_] := \(f[x + .0001] - f[x]\)\/ .0001\), \(\(Plot[{f[x], df[x]}, {x, \(-2\), 2}, PlotStyle \[Rule] {{Thickness[0.005]}, {Dashing[{0.05, 0.02}]}}]; \)\)}], "Input", AspectRatioFixed->True] }, Closed]], Cell[CellGroupData[{ Cell["Guessing a formula for the derivative of the function.", "Subsection", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[{ "The syntax in the cell below draws the graph of the (approximate) \ derivative of a trigonometric function, together with our guess for the \ actual derivative. The function will be called f[x], and the derivative \ df[x]. Our guess for the derivative will be called g[x]. The graph of g[x] \ will be solid, while that of df[x] will be dashed. We are using an \"h\" \ value of .0001, which should give us a good enough approximation for the \ derivative. We are trying to make the graphs coincide. Replace the ", StyleBox["xxx", FontColor->RGBColor[1, 0, 1]], " with your guess for the derivative." }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[{\(Clear[x, f, g, df]\), "\n", \(f[x_] := x\^2\), "\n", RowBox[{\(g[x_]\), ":=", StyleBox["xxx", FontColor->RGBColor[1, 0, 1]]}], "\n", \(df[ x_] := \(f[x + .0001] - f[x]\)\/ .0001\), "\n", \(Plot[{g[x], df[x]}, {x, \(-2\), 2}, PlotStyle \[Rule] {{Thickness[ 0.005]}, {Dashing[{0.05, 0.02}]}}];\)}], "Input", AspectRatioFixed->True] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell["Derivatives of some trigonometric functions", "Section"], Cell[CellGroupData[{ Cell["\<\ Graphing a trigonometric function and its approximate derivative.\ \ \>", "Subsection", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[ "The syntax in the cell below draws the graph of a trigonometric function and \ its (approximate) derivative. The function will be called f[x], and the \ derivative df[x]. The graph of the original function will be solid, while \ that of its derivative will be dashed. We are using an \"h\" value of .0001, \ which should give us a good enough approximation for the derivative."], "Text",\ Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[{\(Clear[x, f, df]\), "\n", RowBox[{\(f[x_]\), ":=", StyleBox[\(Sin[x]\), FontColor->RGBColor[1, 0, 1]]}], "\n", \(df[ x_] := \(f[x + .0001] - f[x]\)\/ .0001\), "\n", \(Plot[{f[x], df[x]}, {x, \(-\[Pi]\), \[Pi]}, PlotStyle \[Rule] {{Thickness[ 0.005]}, {Dashing[{0.05, 0.02}]}}];\)}], "Input", AspectRatioFixed->True] }, Closed]], Cell[CellGroupData[{ Cell["\<\ Guessing a formula for the derivative of the trigonometric \ function.\ \>", "Subsection", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[{ "The syntax in the cell below draws the graph of the (approximate) \ derivative of a trigonometric function, together with our guess for the \ actual derivative. The function will be called f[x], and the derivative \ df[x]. Our guess for the derivative will be called g[x]. The graph of g[x] \ will be solid, while that of df[x] will be dashed. We are using an \"h\" \ value of .0001, which should give us a good enough approximation for the \ derivative. We are trying to make the graphs coincide. Be sure to replace \ the ", StyleBox["xxx", FontColor->RGBColor[1, 0, 1]], " with your guess for the derivative before evaluating the cell." }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[BoxData[{\(Clear[x, f, g, df]\), "\n", RowBox[{\(f[x_]\), ":=", StyleBox[\(Sin[x]\), FontColor->RGBColor[1, 0, 1]]}], "\n", RowBox[{\(g[x_]\), ":=", StyleBox["xxx", FontColor->RGBColor[1, 0, 1]]}], "\n", \(df[ x_] := \(f[x + .0001] - f[x]\)\/ .0001\), "\n", \(Plot[{g[x], df[x]}, {x, \(-\[Pi]\), \[Pi]}, PlotStyle \[Rule] {{Thickness[ 0.005]}, {Dashing[{0.05, 0.02}]}}];\)}], "Input", AspectRatioFixed->True] }, Closed]] }, Closed]] }, FrontEndVersion->"4.0 for Microsoft Windows", ScreenRectangle->{{0, 1024}, {0, 720}}, WindowToolbars->"EditBar", CellGrouping->Manual, WindowSize->{520, 509}, WindowMargins->{{36, Automatic}, {15, Automatic}}, PrivateNotebookOptions->{"ColorPalette"->{RGBColor, -1}}, ShowCellLabel->True, ShowCellTags->False, RenderingOptions->{"ObjectDithering"->True, "RasterDithering"->False} ] (*********************************************************************** 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[1717, 49, 180, 5, 166, "Title", Evaluatable->False], Cell[1900, 56, 252, 5, 44, "SmallText"], Cell[2155, 63, 328, 9, 52, "Text"], Cell[CellGroupData[{ Cell[2508, 76, 57, 0, 53, "Section"], Cell[CellGroupData[{ Cell[2590, 80, 121, 2, 46, "Subsection", Evaluatable->False], Cell[2714, 84, 453, 9, 78, "Text", Evaluatable->False], Cell[3170, 95, 282, 7, 128, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[3489, 107, 124, 2, 30, "Subsection", Evaluatable->False], Cell[3616, 111, 691, 13, 110, "Text", Evaluatable->False], Cell[4310, 126, 412, 8, 144, "Input"] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell[4771, 140, 62, 0, 33, "Section"], Cell[CellGroupData[{ Cell[4858, 144, 145, 5, 46, "Subsection", Evaluatable->False], Cell[5006, 151, 456, 8, 78, "Text", Evaluatable->False], Cell[5465, 161, 397, 8, 126, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[5899, 174, 148, 5, 30, "Subsection", Evaluatable->False], Cell[6050, 181, 731, 14, 110, "Text", Evaluatable->False], Cell[6784, 197, 500, 11, 142, "Input"] }, Closed]] }, Closed]] } ] *) (*********************************************************************** End of Mathematica Notebook file. ***********************************************************************)