the interface plotting the tool palette data matters ... · tutortial plotting topic start section...
TRANSCRIPT
TEMATH 2.1 Tutorial The Interface Plotting The Tool Palette Data Matters
Matrix Calculations Solving Differential Eqns Evaluating Expressions The Visual Tools
Copyright 2000-2003 Adam O. Hausknecht and Robert E. Kowalczyk
1
Tutorial: Interface
The brief tutorial in the following sections provides an introduction to the use of some of TEMATH's capabilities.
The Interface
TEMATH's interface contains four windows:
● the Graph window for plotting; ● the Work window for entering functions, equations, constants, . . . ;● the Domain & Range window for setting the graph viewing area and entering the values needed for
the tools on the tool palette;● the Report window for writing the results of TEMATH's numerical tools.
Topic Start Next Section
Copyright 2000-2003 Adam O. Hausknecht and Robert E. Kowalczyk
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Interface.html6/26/2003 8:57:35 AM
2
Tutortial Plotting
Plotting
Enter and plot a function
Scale the y-axis
Change a plot's color
Find points of intersection
Plot a family of functions
Plot an implicitly defined curve
Plot an inequality
Plot an ellipse
Plot a function using constants
Plot a family of functions using an iterated constant
To plot the function y = x/(x^2 - 4) on the interval -4 x 4,
● Select New Function from the Work menu.● y1(x) = will appear as the first entry in the Work window.● Type the expression x/(x^2-4) into the first cell of the Work window. Press the
Enter or Return key.● Click in the Domain & Range window to make it active. Click in the cell to the left of “
x ” and type -4. Press Tab to move to the cell to the right of “ x ” and then type 4.
● Select Plot from the Graph menu. Note that TEMATH automatically scales the y-axis to fit the graph and displays the vertical asymptotes.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (1 of 14)6/26/2003 8:57:40 AM
3
Tutortial Plotting
Topic Start Section Start
If you want to specify your own scaling for the y-axis, for example, -5 y 5,
● Click in the Domain & Range window to make it active. Click in the cell to the left of “ y ” and type -5. Press Tab to move to the cell to the right of “ y ” and then
type 5.● Click in the Autoscaling checkbox to turn off autoscaling.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (2 of 14)6/26/2003 8:57:40 AM
4
Tutortial Plotting
● Select Plot from the Graph menu.
Topic Start Section Start
To change the color of the plot,
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (3 of 14)6/26/2003 8:57:40 AM
5
Tutortial Plotting
● Click in the Work window to make it active.● Click on the vertical line to the left of the function in the Work window. Each time
you click, a new color will be shown. TEMATH provides five different colors for plotting. Select the color that you want.
● Select Plot from the Graph menu.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (4 of 14)6/26/2003 8:57:40 AM
6
Tutortial Plotting
Topic Start Section Start
To find the points of intersection of the curves y = x/(x^2 - 4) and y = x^2 - 4,
● Select New Function from the Work menu.● y2(x) = will appear as the first entry in the Work window.● Type the expression x^2-4 into the first cell of the Work window. Press the Enter or
Return key.● Select Overlay Plot from the Graph menu.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (5 of 14)6/26/2003 8:57:40 AM
7
Tutortial Plotting
● Click on the Curve Intersection tool on the tool palette in the Graph window. It is the ninth tool from the left and it shows the intersection of two curves. The tool's icon will become highlighted.
● Click in the Graph window near a point of intersection. The coordinates of the point of intersection will be written into the Report window and a point with displayed coordinates will be drawn at the position of the intersection of the two curves.
● Click near the second point of intersection.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (6 of 14)6/26/2003 8:57:40 AM
8
Tutortial Plotting
Topic Start Section Start
To plot the family of functions: y = x^2, y = x^2 + 1, and y = x^2 + 2,
● Select New Function from the Work menu.● Type the expression x^2 into the first cell of the Work window. Press the Enter or
Return key.● Select New Function from the Work menu.● Type the expression x^2 + 1 into the first cell of the Work window. Press the Enter
or Return key.● Select New Function from the Work menu.● Type the expression x^2 + 2 into the first cell of the Work window. Press the Enter
or Return key.● If you've plotted the previous two functions in this section, click on the checkmark
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (7 of 14)6/26/2003 8:57:40 AM
9
Tutortial Plotting
to the left of those two functions in the Work window. The checkmarks will disappear and the two functions will be deactivated.
● Select Plot All from the Graph menu. All the checked (active) functions will be plotted in the Graph window.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (8 of 14)6/26/2003 8:57:40 AM
10
Tutortial Plotting
Topic Start Section Start
To plot the implicit equation x^2 + y^3 = 4 on -5 x 5 and -5 y 5,
● Select New Equation or Inequality from the Work menu.● Type the expression x^2 + y^3 = 4 into the first cell of the Work window. Press the
Enter or Return key.● Click in the Domain & Range window to make it active. Enter the domain -5 x 5
and the range -5 y 5.● Select Plot from the Graph menu.
Topic Start Section Start
To plot the inequality 2x + 5y 4,
● Select New Equation or Inequality from the Work menu.● Type the expression 2x + 5y 4 into the first cell of the Work window (for , type
Option < or enter using a pop-up menu).● Press the Enter or Return key.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (9 of 14)6/26/2003 8:57:40 AM
11
Tutortial Plotting
● Select Plot from the Graph menu.
Topic Start Section Start
To plot the ellipse (x-1)^2/(3^2) + (y+1)^2/(2^2) = 1,
● Select Conic — Ellipse from the Work menu.● Fill-in the template e#: ellipse(1,3,-1,2) in the first cell of the Work window. Press
the Enter or Return key.● Select Plot from the Graph menu.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (10 of 14)6/26/2003 8:57:40 AM
12
Tutortial Plotting
Topic Start Section Start
To plot a function using constants,
● Select New Constant from the Work menu.● c1 = will appear as the first entry in the Work window.● Delete c1 = and type the expression m = 3. Press the Enter or Return key.● Select New Constant from the Work menu.● c2 = will appear as the first entry in the Work window.● Delete c2 = and type the expression b = -2. Press the Enter or Return key.● Select New Function from the Work menu.● Type the expression m x + b into the first cell of the Work window. Be sure to type a
space between the m and the x. Press the Enter or Return key.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (11 of 14)6/26/2003 8:57:40 AM
13
Tutortial Plotting
● Select Plot from the Graph menu.
Topic Start Section Start
To plot a family of functions using an iterated constant,
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (12 of 14)6/26/2003 8:57:40 AM
14
Tutortial Plotting
● Select the cell containing b = -2 in the Work window.● Delete its contents and type the expression b = -2 to 2. Press the Enter or Return
key.
● Select Plot from the Graph menu. Five lines will be plotted in the Graph window for b = -2, -1, 0, 1, 2.
Topic Start Section Start Previous Section Next Section
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (13 of 14)6/26/2003 8:57:40 AM
15
Tutortial Plotting
Copyright 2000-2003 Adam O. Hausknecht and Robert E. Kowalczyk
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/Plotting.html (14 of 14)6/26/2003 8:57:40 AM
16
Tutorial Tool Palette
The Tool Palette
Getting Started
The Zoom Tool
The Root Finder Tool
To start, enter and plot the function y = x^3-x^2-16x-10 on the interval -5 x 5 by doing the following:
● Select New Function from the Work menu.● Type the expression x^3-x^2-16x-10 into the first cell of the Work window. Press the
Enter or Return key.● Enter the domain -5 x 5 and click on autoscaling.● Select Plot from the Graph menu.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/ToolPalette.html (1 of 6)6/26/2003 8:57:42 AM
17
Tutorial Tool Palette
Topic Start Section Start
To zoom-in on the left-most negative root (zero) of the function,
● Click on the Zoom tool on the tool palette in the Graph window. It is the first tool on the left. The tool's icon will become highlighted.
● Click in the Graph window near the x, y coordinates (-5, 10) and hold down the mouse button. As you drag the mouse, a gray rectangle will be displayed. Move the cursor to a point near the x, y coordinates (-3, -10).
● Release the mouse button. The portion of the graph contained in the gray rectangle will be plotted using the entire Graph window. You can now visually estimate the values of the left-most negative root.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/ToolPalette.html (2 of 6)6/26/2003 8:57:42 AM
18
Tutorial Tool Palette
To return to the original plot,
● Click on the thumb of the scroll bar on the right edge of the Graph and hold down the mouse button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/ToolPalette.html (3 of 6)6/26/2003 8:57:42 AM
19
Tutorial Tool Palette
● Drag the thumb to the top end of the scroll bar and release. The original “un-zoomed” plot will be redrawn.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/ToolPalette.html (4 of 6)6/26/2003 8:57:42 AM
20
Tutorial Tool Palette
Topic Start Section Start
To approximate the roots more accurately,
● Click the Single Root Finder tool on the tool palette. It is the eighth tool from the left.
● Click in the Graph window near the leftmost root. The value of the root will be calculated and written into the Report window.
● Click in the Graph window near the rightmost negative root.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/ToolPalette.html (5 of 6)6/26/2003 8:57:42 AM
21
Tutorial Tool Palette
Topic Start Section Start Previous Section Next Section
Copyright 2000-2003 Adam O. Hausknecht and Robert E. Kowalczyk
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/ToolPalette.html (6 of 6)6/26/2003 8:57:42 AM
22
Tutortial Data Matters
Data Matters: Entering, Plotting, and Fitting Data
Enter a data table using the keyboard
Plot data
Fit data with a least squares line
Enter a data table using the mouse
Generate a data table from a function
To enter a data table using the keyboard,
● Select New Data Table from the Work menu.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (1 of 11)6/26/2003 8:57:46 AM
23
Tutortial Data Matters
● As an example, enter the following data by typing into the Data Table window:
-5 Enter -5 Enter-3 Enter -3.2 Enter-1 Enter -0.9 Enter1 Enter 1.2 Enter3 Enter 2.9 Enter5 Enter 5
Here "Enter" means to press the Enter key (not the Return key).
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (2 of 11)6/26/2003 8:57:46 AM
24
Tutortial Data Matters
● Click the close box of the Data Table window and click the Yes button in the Add Data Table window. The data table will be added to the Work window.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (3 of 11)6/26/2003 8:57:46 AM
25
Tutortial Data Matters
Topic Start Section Start
To plot the data,
● Select Plot from the Graph menu.
Topic Start Section Start
To fit the data with a least squares line,
● Select Least Squares — Line from the Tools menu.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (4 of 11)6/26/2003 8:57:46 AM
26
Tutortial Data Matters
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (5 of 11)6/26/2003 8:57:46 AM
27
Tutortial Data Matters
Topic Start Section Start
To enter a data table using the mouse,
● Plot any object in the Graph window or simply select Plot Axes from the Graph menu.● Click the Coordinate tool on the tool palette. It is the fourth tool from the left.
● Click in the Graph window at the position where you want to enter a data point. If a curve has been plotted and the selected style of the point has a line through it (see the icon tool's pop-up menu), then the x-coordinate will be used to draw a point on the curve, otherwise, the point will be placed at the position of the click. Enter as many data points as you want. You can also hold down the mouse button and drag to enter a sequence of points.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (6 of 11)6/26/2003 8:57:46 AM
28
Tutortial Data Matters
● When you are finished entering your data points, select Generate Table from Points from the Tools menu. A data table containing the points that you entered will be added to the Work window.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (7 of 11)6/26/2003 8:57:46 AM
29
Tutortial Data Matters
Topic Start Section Start
To generate a data table using the function f(x) = x^2 sin(x),
● Enter and plot the function f(x) = x^2 sin(x) over the interval -5 x 5.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (8 of 11)6/26/2003 8:57:46 AM
30
Tutortial Data Matters
● Select Data Generator... from the Tools menu. Enter the number of points that you want to generate or simply click OK to generate 10 points.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (9 of 11)6/26/2003 8:57:46 AM
31
Tutortial Data Matters
● Select Overlay Plot from the Graph menu to plot the data on top of the plotted curve.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (10 of 11)6/26/2003 8:57:46 AM
32
Tutortial Data Matters
Topic Start Section Start Previous Section Next Section
Copyright 2000-2003 Adam O. Hausknecht and Robert E. Kowalczyk
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/DataMatters.html (11 of 11)6/26/2003 8:57:46 AM
33
Tutorial Matrix Calculations
Matrix Calculations
The Matrix Calculator
Enter a matrix
The determinant
Store a matrix
Find the inverse of a matrix
Multipy two matrices
Perform an elementary row operation
Multipy a row by a scalar
Save a matrix in the Work window
To perform matrix calculations,
● Select Matrix Calculator from the Work menu. The Matrix Calculator window will be displayed.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (1 of 13)6/26/2003 8:57:50 AM
34
Tutorial Matrix Calculations
Topic Start Section Start
To enter the matrix
|1 3 2 | |4 1 5 | |8 6 7 |
● Double-click the Resize command in the matrix command list located in the lower left of the Matrix Calculator window.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (2 of 13)6/26/2003 8:57:50 AM
35
Tutorial Matrix Calculations
● Type 3, 3 into the command area located near the top of the Matrix Calculator window. Press the Enter key.
● Type 1 Enter 3 Enter 2 Enter 4 Enter 1 Enter 5 Enter 8 Enter 6 Enter 7
Here "Enter" means to press the Enter key and not the Return key which moves down columns!
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (3 of 13)6/26/2003 8:57:50 AM
36
Tutorial Matrix Calculations
Topic Start Section Start
To find the determinant of the matrix,
● Double-click the Determinant command in the matrix command list. The value of the determinant will be written into the command area of the Matrix Calculator window.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (4 of 13)6/26/2003 8:57:50 AM
37
Tutorial Matrix Calculations
Topic Start Section Start
To save a backup copy of the matrix into memory location A,
● Click the Store button and then the A button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (5 of 13)6/26/2003 8:57:50 AM
38
Tutorial Matrix Calculations
Topic Start Section Start
To find the inverse of the matrix,
● Double-click the Inverse command.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (6 of 13)6/26/2003 8:57:50 AM
39
Tutorial Matrix Calculations
Topic Start Section Start
To check the accuracy of the inverse matrix, multiply the inverse matrix by the backup of the original matrix. To do this,
● Click the multiplication * button, the A button, and the enter button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (7 of 13)6/26/2003 8:57:50 AM
40
Tutorial Matrix Calculations
Topic Start Section Start
To perform the elementary row operation -4*R1+R2 -> R2 on the matrix stored in memory A,
● Click the Recall button and then the A button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (8 of 13)6/26/2003 8:57:50 AM
41
Tutorial Matrix Calculations
● Select row 2 of the matrix by placing the cursor over the R2 label (the cursor should become a right-pointing arrow) and clicking the mouse button.
● Double-click the Elementary command.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (9 of 13)6/26/2003 8:57:50 AM
42
Tutorial Matrix Calculations
● Select row 1 of the matrix.
● Type -4 into the command area. Press the Enter key or click the enter button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (10 of 13)6/26/2003 8:57:50 AM
43
Tutorial Matrix Calculations
Topic Start Section Start
To multiply row 2 by 1/(-11),
● Select row 2 of the matrix.
● Click the multiplication * button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (11 of 13)6/26/2003 8:57:50 AM
44
Tutorial Matrix Calculations
● Type 1/(-11) into the command area. Press the Enter key or click the enter button.
Topic Start Section Start
To save the current active matrix to the Work window for future use,
● Select Add Matrix from the Work menu.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (12 of 13)6/26/2003 8:57:50 AM
45
Tutorial Matrix Calculations
Topic Start Section Start Previous Section Next Section
Copyright 2000-2003 Adam O. Hausknecht and Robert E. Kowalczyk
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/MatrixCalculations.html (13 of 13)6/26/2003 8:57:50 AM
46
Tutorial Solving Differential Equations
Solving Differential Equations
Enter and solve a differential equation
Erase plotted solutions
Draw a slope field
Draw a family of solutions
Solve a second-order differential equation
Plotting solutions in the phase plane
To solve the differential equation dy/dt = f(t, y) = -0.2y(y-3) subject to the initial condition y(0) = 1,
● Select Diff Eq from the Graph menu to use the Differential Equation Solver.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (1 of 13)6/26/2003 8:57:54 AM
47
Tutorial Solving Differential Equations
● Select New Differential Eqn — First Order from the Work menu.
● Type -0.2y(y-3) into the first cell of the Work window. Press the Enter or Return key.
● Click in the Graph window to make it active and click the Axes button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (2 of 13)6/26/2003 8:57:54 AM
48
Tutorial Solving Differential Equations
● Click in the Domain & Range window to make it active and type 0 into the t-cell and 1 into the y-cell. Click the Enter button or press the Enter key.
● You can also click at any point in the Graph window to enter an initial condition and draw the corresponding solution curve. Try this.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (3 of 13)6/26/2003 8:57:54 AM
49
Tutorial Solving Differential Equations
Topic Start Section Start
To erase the drawn solutions,
● Click the Axes button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (4 of 13)6/26/2003 8:57:54 AM
50
Tutorial Solving Differential Equations
Topic Start Section Start
To draw the slope field,
● Click the Slope Field button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (5 of 13)6/26/2003 8:57:54 AM
51
Tutorial Solving Differential Equations
Topic Start Section Start
To draw a family of solutions,
● Click on the Family of Solutions tool on the tool palette in the Graph window. It is the first tool on the right.
● Click in the Graph window at the initial t-value that you want. For example, click on the y-axis for an initial t-value of 0.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (6 of 13)6/26/2003 8:57:54 AM
52
Tutorial Solving Differential Equations
Topic Start Section Start
The harmonic oscillator with damping is modeled by the second-order differential equation
y'' = -ks*y - kd*y'
where
y = the displacement of the free end of the spring from rest,
ks = the spring coefficient, and
kd = the damping coefficent.
To solve this second-order differential equation with
kd = 0.5, ks = 2, y(0) = 3, and y'(0) = 0,
● Select New Differential Eqn — Second Order from the Work menu.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (7 of 13)6/26/2003 8:57:54 AM
53
Tutorial Solving Differential Equations
● Type -2y-0.5y' into the first cell of the Work window. Press the Enter or Return key.
● Click in the Graph window to make it active and click the Axes button.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (8 of 13)6/26/2003 8:57:54 AM
54
Tutorial Solving Differential Equations
● If necessary, click on the Solution Curve tool on the tool palette in the Graph window. It is the second tool from the right.
● Click in the Domain & Range window to make it active and type 0 into the t-cell, 3 into the y-cell, and 0 into the y'-cell. Click the Enter button or press the Enter key.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (9 of 13)6/26/2003 8:57:54 AM
55
Tutorial Solving Differential Equations
● You can also click at any point in the Graph window to enter an initial value and draw the corresponding solution curve (be sure that a value has been entered into the y'-cell). Try this.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (10 of 13)6/26/2003 8:57:54 AM
56
Tutorial Solving Differential Equations
Topic Start Section Start
To draw the solutions of the harmonic oscillator in the phase plane,
● Click on the Style menu in the Graph window and select y' vs. y.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (11 of 13)6/26/2003 8:57:54 AM
57
Tutorial Solving Differential Equations
● Click in the Graph window to draw a solution.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (12 of 13)6/26/2003 8:57:54 AM
58
Tutorial Solving Differential Equations
Topic Start Section Start Previous Section Next Section
Copyright 2000-2003 Adam O. Hausknecht and Robert E. Kowalczyk
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/SolvingDiffEqns.html (13 of 13)6/26/2003 8:57:54 AM
59
Tutorial Evaluating Expressions
Evaluating Expressions
Enter and evaluate an expression
Evaluate a sum
Evaluate a polynomial
Compute the number of combinations
Evaluate functions in the Work window
To evaluate the expression cos(1.23)exp(-0.1)+ (2.3^2-1.7),
● Select Calculators — Expression Calculator... from the Work menu. The Expression Calculator window will open.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/EvaluatingExpress.html (1 of 5)6/26/2003 8:57:56 AM
60
Tutorial Evaluating Expressions
● Type cos(1.23)exp(-0.1)+sqrt(2.3^2-1.7) into the Expression Calculator window. Press the Enter key. Pressing the Return key will only move the cursor to the next line and not evaluate the expression. Alternatively, you can use the mouse to click the Evaluate button in the lower left corner of the Expression Calculator window to evaluate the expression. The value of the expression, 2.19716033417, will be written on the next line.
Topic Start Section Start
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/EvaluatingExpress.html (2 of 5)6/26/2003 8:57:56 AM
61
Tutorial Evaluating Expressions
Note: When you press the Enter key, the entire expression on the line containing the flashing cursor will be evaluated. To evaluate only part of the expression, select the part of the expression that you want by dragging over it and then press the Enter key.
To find the sum 1 - 1/2 + 1/3 - 1/4 + ... + ((-1)^101) 1/100,
● Scroll the function list on the left side of the window until you find (i,1,n,f(...,i...)). Double-click on (i,1,n,f(...,i...)). The template () will be written into the window's work area. Finish typing the expression (i,1,100,(-1)^(i+1) 1/i) and press the Enter key.
Topic Start Section Start
To find P(3.21), where P(x) = 2 - 3x + 6x^2 - 4x^3 - 0.2x^4,
● Double-click the poly(x,a0,a1,...,aN) function in the function list. Finish typing the expression poly(3.21, 2, -3, 6, -4, -0.2) and press the Enter key.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/EvaluatingExpress.html (3 of 5)6/26/2003 8:57:56 AM
62
Tutorial Evaluating Expressions
Topic Start Section Start
To compute the number of combinations ,
● Double-click the comb(n,m) function in the function list. Finish typing the expression comb(10, 3) and press the Enter key.
Topic Start Section Start
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/EvaluatingExpress.html (4 of 5)6/26/2003 8:57:56 AM
63
Tutorial Evaluating Expressions
You can also use the Expression Calculator to evaluate functions that have been entered into the Work window.
For example, if y1(x) = 3 cos(2x+1) has been entered into the Work window, you can evaluate this function at x = 0.23 by
● Typing y1(0.23) into the Expression Calculator window and pressing the Enter key.
Topic Start Section Start Previous Section Next Section
Copyright 2000-2003 Adam O. Hausknecht and Robert E. Kowalczyk
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/EvaluatingExpress.html (5 of 5)6/26/2003 8:57:56 AM
64
Tutorial The Visual Tools
The Visual Tools
The Dynamic Tangent Tool
The Integration Tool
The Dynamic Integration Tool
The Fixed-Point Iteration Tool
The Parametric Tracker
The Dynamic Tangent Tool
The Dynamic Tangent tool shows a moving tangent along a curve and it also plots the slope of the moving tangent. The following example demonstrates this visual tool:
● Select New Function from the Work menu and type sin(x) into the first cell of the Work window. Press the Enter or Return key.
● Enter the domain - x and range -2 y 2 into the Domain & Range window. The symbol can be entered by pressing the Option and P keys (don't press the shift key).
● Click off autoscaling.● Select Plot from the Work menu.● Click the Tangent tool on the tool palette. It is the seventh tool from the left. Click
on the tool's pop-up menu and select Dynamic.
● Click the Go button in the Graph window and watch the show.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (1 of 15)6/26/2003 8:58:01 AM
65
Tutorial The Visual Tools
<● Click the Step button to move the tangent one step at a time.● To change the speed of the dynamic tangent, select Dynamic Plotting Speed... from
the Options menu.
Topic Start Section Start
The Integration Tool
To approximate the area under a curve using rectangles, trapezoids, or parabolas (Simpson's rule) and to see a visual representation of the approximate area, use the Integration tool. The following example demonstrates how to use this tool:
● Select New Function from the Work menu and type x cos(x)+10+cos(x^2) into the first cell of the Work window. Press the Enter or Return key.
● Enter the domain 0 x 5 and range 0 y 15 into the Domain & Range window. If autoscaling is not off, click it off.
● Select Plot from the Work menu.● Click the Integration tool on the tool palette. It is the eleventh tool from the left.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (2 of 15)6/26/2003 8:58:01 AM
66
Tutorial The Visual Tools
● Position the cursor over the Method menu in the Graph window, press and hold down the mouse button, and select Left End Point from the pop-up menu. This sets the approximate integration method to be the left-end-point rule using rectangles.
● Click the Draw button (it is the middle button) in the Graph window. Ten (the default value) rectangles will be drawn in the Graph window.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (3 of 15)6/26/2003 8:58:01 AM
67
Tutorial The Visual Tools
● To double the number of rectangles, click the Up-arrow button. Continue to click the Up-arrow button until the area of the rectangles provides a good visual approximation to the area under the curve.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (4 of 15)6/26/2003 8:58:01 AM
68
Tutorial The Visual Tools
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (5 of 15)6/26/2003 8:58:01 AM
69
Tutorial The Visual Tools
● Click in the Domain & Range window and type 2 into the "n =" cell. This resets the number of rectangles (trapezoids, parabolas) to 2.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (6 of 15)6/26/2003 8:58:01 AM
70
Tutorial The Visual Tools
● Select Trapezoid from the Method menu in the Graph window.
● Click the Draw button in the Graph window. Two trapezoids will be drawn in the Graph window.
● Continue to click the Up-arrow button until the area of the trapezoids provides a good visual approximation to the area under the curve.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (7 of 15)6/26/2003 8:58:01 AM
71
Tutorial The Visual Tools
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (8 of 15)6/26/2003 8:58:01 AM
72
Tutorial The Visual Tools
Topic Start Section Start
Dynamic Integration Tool
The Dynamic Integration tool dynamically plots the "area so far" function and shades-in the corresponding area under the curve. This tool can be used to gain some visual intuition about functions defined as integrals. For example, consider the sine-integral, that is,
Si(x) = sin(t)/t dt
To investigate this function,
● Select New Function from the Work menu and type sin(x)/x into the first cell of the Work window. Press the Enter or Return key.
● Enter the domain 0 x 15 and range -1 y 2 into the Domain & Range window.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (9 of 15)6/26/2003 8:58:01 AM
73
Tutorial The Visual Tools
If autoscaling is not off, click it off.● Select Plot from the Work menu. ● Click on the Integration tool's pop-up menu and select Dynamic.
● Click the Go button in the Graph window and watch the show.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (10 of 15)6/26/2003 8:58:01 AM
74
Tutorial The Visual Tools
Topic Start Section Start
Fixed-Point Iteration Tool
The fixed-point iteration tool visually demonstrates the fixed-point iteration process. This tool can be used to investigate "orbits" as follows:
● Select New Function from the Work menu and type 3.2x(1-x) into the first cell of the Work window.
● Enter the domain 0 x 1 and range 0 y 1 into the Domain & Range window. If autoscaling is not off, click it off.
● Select Plot from the Work menu.● Click the Fixed-Point Iteration tool on the tool palette. It is the first tool on the right.● Click in the Graph window near x = 0.6.● Click the Go button. Notice that the iterations cycle between two different x-values.
Click the Stop button to stop the iterations, otherwise, they will continue for 150 iterations.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (11 of 15)6/26/2003 8:58:01 AM
75
Tutorial The Visual Tools
● Select New Function from the Work menu and type 3.5x(1-x) into the first cell of
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (12 of 15)6/26/2003 8:58:01 AM
76
Tutorial The Visual Tools
the Work window.● Select Plot from the Work menu.● Click in the Graph window near x = 0.6.● Click the Go button. This time, the iterations cycle between four different x-values.
● Select New Function from the Work menu and type 4x(1-x) into the first cell of the Work window.
● Select Plot from the Work menu.● Click in the Graph window near x = 0.6.● Click the Go button. This time, the iterations do not cycle.
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (13 of 15)6/26/2003 8:58:01 AM
77
Tutorial The Visual Tools
Topic Start Section Start
Parametric Tracker
The Parametric Tracker is used to visualize paths along parametric curves. For example, the throwing of a ball can be parameterized by the following equations:
x(t) = 30cos( /4)t, and y(t) = 2 + 30sin( /4)t - (9.8/2)t^2
To visualized this ball-throwing experiment,
● Select Parametric from the Graph menu.● Select New Function from the Work menu and type [30cos( /4)t, 2+30sin( /4)t-
(9.8/2)t^2] into the first cell of the Work window.● Enter the intervals 0 t 5, 0 x 95 and 0 y 95 into the Domain & Range
window. If autoscaling is not off, click it off.● Select Plot from the Work menu.● Click the Parametric Tracker tool on the tool palette. It is the sixth tool from the left.● Position the arrow cursor over the Parametric Tracker's slide on the top right side of
the Graph window. Press and hold down the mouse button. Drag down and watch the ball fly! Notice that the x- and y-coordinates of the position of the ball are
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (14 of 15)6/26/2003 8:58:01 AM
78
Tutorial The Visual Tools
dynamically displayed in the Domain & Range window.
Topic Start Section Start Previous Section First Section
Copyright 2000-2003 Adam O. Hausknecht and Robert E. Kowalczyk
file:///Documents/TEMATH%20Folder/TEMATHWebSite6_25_03/TEMATH2/Tutorial/TheVisualTools.html (15 of 15)6/26/2003 8:58:01 AM
79