Graphing Functions |
||||||||||||||||||||||||||||||||||||||||||
Task
no. 1
|
||||||||||||||||||||||||||||||||||||||||||
Suppose we wish to graph the behavior of damped oscillations made by a system consisting of a simple (linear) spring and a mass attatched to it from a ceiling. Without entering the small details of the calculation (this is not the purpose of our discussion), here is the solution: |
||||||||||||||||||||||||||||||||||||||||||
This analysis is brought only for the mathematical and physical background of our task. | ||||||||||||||||||||||||||||||||||||||||||
The spring's stiffness is k= 1000 N/m The mass m is 1 kg The damping coefficient is c= 10 kg/s The mass m was given a velocity of 2 m/s in the x positive direction from the point of equilibrium. |
||||||||||||||||||||||||||||||||||||||||||
And so we would like to see what this function looks like. We will graph it using the TI calculator. |
||||||||||||||||||||||||||||||||||||||||||
1. The function we want to graph is y(x)=0.064051e^(-5x)·sin(31.225x) where x is the time axis and y is the vertical distance from the equilibruim position, denoted above by x. | ||||||||||||||||||||||||||||||||||||||||||
? Why aren't we graphing an "x" function of "t"? Ans The calculator uses a list of functions, from which it is most convenient to graph. Sort of a "To Do" list of graphs. This list is accessible in the Y= editor, by pressing DIAMOND+F1, for example:
See the list of numbered y's waiting to be graphed? Each y is a function of x, and when it contains an expression of x, and is tagged (with the tick mark) it will be graphed. To graph our function, we need to name the independent variable x, and not t. Otherwise the calculator will not be able to graph it. It always expects a function of x. |
||||||||||||||||||||||||||||||||||||||||||
1. Since we wish to graph a function and not a sequence, for example, we first need to make sure the calculator's mode is set for function graphing. The mode setting is in the MODE screen. Press the MODE button now. | ||||||||||||||||||||||||||||||||||||||||||
See the "Graph.............. FUNCTION" setting? This is the correct setting we need right now. Confirm by pressing ENTER. | ||||||||||||||||||||||||||||||||||||||||||
? It doesn't say FUNCTION. What do I do? Ans If your calculator says otherwise, such as PARAMETRIC or POLAR or any other listing, you will need to change it back to FUNCTION. Use the right arrow while on the Graph line (as indicated above) and choose FUNCTION: Confirm by pressing ENTER to save your settings. |
||||||||||||||||||||||||||||||||||||||||||
The correct setting for graph type could have been verified by looking at the status line under the Entry Line in the Home Screen. If you take a quick look, you will notice it says "FUNC" to indicate it is in FUNCTION mode. | ||||||||||||||||||||||||||||||||||||||||||
2. Now that we have "told" our calculator that we wish to graph functions of the form f(x), we can enter our function in the Y= editor. Open the Y= editor by pressing DIAMOND+F1. |
||||||||||||||||||||||||||||||||||||||||||
Your Y= editor may show one or more functions already entered. We will need just one of the y#'s free. You can scroll down to a free y# or delete one of the occupied y#'s using the CLEAR button or the Backspace button while the highlight is on the occupied line. Either way, with the highlight on an empty y# line, we are now ready to enter our function. Start typing and the entry line below will show you what you enter, just like on the home screen. Enter the entire expression: 0.064051*e^(-5x)*sin(31.225x) |
||||||||||||||||||||||||||||||||||||||||||
After entering the expression press ENTER and it will complete the entry of the expression. Our expression will then appear in the free y# we chose: | ||||||||||||||||||||||||||||||||||||||||||
Notice that he newly entered y# is tagged (selected, the manual calls it). If there are any other selected y# in your Y= editor, deselect them by highlighting them and pressing F4. If you leave another y# selected, the calculator will graph it too. They may overlap, take longer to graph, and complicate other actions. We don't want that, do we? Make sure only our expression is selected before we continue. Next we need to specify the graphing boundaries. It is not easy in this case: we know that we do not need the x<0 range (equivalent to t<0) but we don't know the other boundaries. The simple, straightforward approach of trial and error is the most suitable in this case (why? because the function is small and doesn't take long to evaluate). Let us set the boudaries: 3. Press DIAMOND+F2 for the WINDOW screen. This is where we set the boundaries of the graphed area. Your WINDOW screen setting probably shows different numbers, but as we have learned, this is not an obstacle for us: any setting can be easily changed to suit out needs. |
||||||||||||||||||||||||||||||||||||||||||
Graphing with these boundaries will not help much. Try it! Go to the GRAPH screen by pressing DIAMOND+F3. Here's what you'll see: | ||||||||||||||||||||||||||||||||||||||||||
Note: This graph is for the x=-10..10, y=-10..10 range. | ||||||||||||||||||||||||||||||||||||||||||
Not very useful is it? Not very physical either: it contains the t<0 range, and that certainly isn't what we need. Next we notice that the interesting part, after t=0 (that is, the t>0 range) is too small in this picture. Obviously the Y range should not be -10..10, but much smaller. Let's go back to the WINDOW settings and change the boundaries. Press DIAMOND+F2 again. |
||||||||||||||||||||||||||||||||||||||||||
First, change xmin to indicate 0, so that our time axis starts from t=0. We accomplish this by highlighting the xmin= line, typing 0 and pressing ENTER. |
||||||||||||||||||||||||||||||||||||||||||
Next we will change the Y range, as we have seen that -10..10 is not helpful. Let's not be afraid to experiment! Let's choose -0.06 to 0.06! | ||||||||||||||||||||||||||||||||||||||||||
Now, we've also noticed that the maximum x range (xmax) of 10 might be too much. Let's change that one too. Let's take xmax=1: | ||||||||||||||||||||||||||||||||||||||||||
Now we can see the graph. Return to the GRAPH screen (press DIAMOND+F3). | ||||||||||||||||||||||||||||||||||||||||||
Well, that's more like it! | ||||||||||||||||||||||||||||||||||||||||||
Task no. 2 | ||||||||||||||||||||||||||||||||||||||||||
The GRAPH screen is a great place to learn many useful things about our function. For example, where it reaches maximum and minumum values (that is, the amplitude the mass m reaches each time), and when it practically stops oscillating. Let's find out how far the mass reaches each oscillation. First the mass reaches the first "peak". Where is that peak located? To see the coordinates of the peak (maximum) we would have to locate it. The graph screen has a tool that does just that. Press F5. Item number 4 says "Maximum". |
||||||||||||||||||||||||||||||||||||||||||
Scroll down to it and press ENTER. | ||||||||||||||||||||||||||||||||||||||||||
The calculator wants to know where to look for the maximum. It needs a range. Now it is asking us for the leftmost point of that range. Use the left arrow key to move the cursor close to the maximum from its left side. | ||||||||||||||||||||||||||||||||||||||||||
Press ENTER and the Lower Bound is set. Now the calculator is asking for the other point of the search range. The Upper Bound is the rightmost point in the search range. Use the right arrow key to move the cursor somewhat to the right of the maximum... | ||||||||||||||||||||||||||||||||||||||||||
...and press ENTER to confirm. The calculator looks for a maximum point, and shortly returns a answer: | ||||||||||||||||||||||||||||||||||||||||||
The first maximum is at t=0.0452 seconds, and at a distance of 0.05 meters from the equilibrium point (0.05 m = 5 cm ~ 2 in). The second peak must have been closer to the equilibrium point than the first, since the oscillations are damped. But this time it's a minimum value on our graph. So how far did it reach the second time? Let see: Open the menu once again and choose 3:Minimum... | ||||||||||||||||||||||||||||||||||||||||||
Again the calculator asks for the leftmost range where it will search for the minimum. | ||||||||||||||||||||||||||||||||||||||||||
Use the arrow keys to move the cursor somewhat to the left of the minimum... | ||||||||||||||||||||||||||||||||||||||||||
...and press ENTER to comfirm. Next we will provide the rightmost point of the search range. Move the cursor somewhat to the right of the minimum... |
||||||||||||||||||||||||||||||||||||||||||
...and press ENTER again to confirm. | ||||||||||||||||||||||||||||||||||||||||||
As you can see, the mass now reaches only to 0.03 meters distance from the equilibrium point (instead of 0.05). Repeat the search for the other visible peaks (7 of them... don't be lazy now!). Here are the results: |
||||||||||||||||||||||||||||||||||||||||||
The last important number that we would like to know is when the oscillations practically stopped. I say practically, because methematically that would me t=infinity. But in reality, all we need to know is when the oscillations become very, very small. As it happens to be, this information is also visible on the GRAPH screen. See how the oscillation virtually "disapear" after the ninth peak? But we should not be satisfied with mere eye sight. Let's actually look into the values the function has after the ninth peak: To track (or trace) the values of a function, the calculator has a command called, surprise-surprise, Trace, which is activated with F3. Press F3 now. |
||||||||||||||||||||||||||||||||||||||||||
The current coordinates are noted at the bottom of the screen. We can now "walk" along the function, seeing its values at each step. try it! "Walk" left or right with the arrow keys. To the right of the last visible peak are very small values, but we still can't tell where the oscillations "stop". | ||||||||||||||||||||||||||||||||||||||||||
? Why are the steps such irrational numbers? Why not something a little more logical like 0.01? Ans The calculator graphs the function using points. The intervals between the points are calculated according to the boundaries of the graph area, the "xres" variable (which means the number of pixels to use for intervals)... In short, you cannot "walk" on a point that's not there. If we insisted on exactly 0.01 inetrvals, for example, we could have acheived this by manually assigning the deltax variable a value of, say, 0.01, after setting the graph area boundaries. But this is rarely necessary and will not be further discussed here. |
||||||||||||||||||||||||||||||||||||||||||
Back to our search of the time when the mass stops oscillating -- we must determine a rule of thumb since there is no absolute way of determining this. Let's say that for us the mass stops oscillating when the amplitudes (the peaks) reach 1% or less of the first one. If we look at the last (ninth) peak we checked, there was an amplitude of 0.000902, which is 0.01788 or 1.788% of the first amplitude. That's not enough. Let's look for the next peak. But we cannot even see it! How do we find it? Well, it's time to zoom in! The zoom option is, again very surprisingly, within the ZOOM (F2) menu. Press F2 now. |
||||||||||||||||||||||||||||||||||||||||||
The easiest way to zoom in exactly on the area that interests us is to use zoom box. This way, we could choose a "frame" within which to view the function. Choose 2:ZoomBox. |
||||||||||||||||||||||||||||||||||||||||||
The calculator is now asking for any one of the corners if our frame. Use the arrow keys to move the cursor somewhat above the ninth peak (last visible peak)... | ||||||||||||||||||||||||||||||||||||||||||
...and press ENTER. | ||||||||||||||||||||||||||||||||||||||||||
Complete the box by pressing the right and down arrow keys until you create something like this: | ||||||||||||||||||||||||||||||||||||||||||
And then press ENTER to confirm. | ||||||||||||||||||||||||||||||||||||||||||
Just as before, find the amplitude of the tenth peak. | ||||||||||||||||||||||||||||||||||||||||||
As you can see, the amplitude is now only 0.000545, which makes 1.08% of the first peak. That's close enough to our rule. We can say, therefore, that the mass oscillates for about 0.9507 seconds, before it returns to its original state. | ||||||||||||||||||||||||||||||||||||||||||
Congratulations! You have completed this task! | ||||||||||||||||||||||||||||||||||||||||||
______________________________________________________________________________________
Created by Andrew Cacovean, Sep. 14, 2000