Maple Worksheet 1
Some things to try in MAPLE:
1. Put your cursor between the bracket and the prompt to type in text. This is good for labeling your work. Then hit Enter and the prompt will reappear.
2. Try some simple arithmetic. For example, compute
Use * for multiplication. After the expression, put a semicolon “;” and hit Enter.
Here is my example:
Try some of your own.
Now try to find by typing
If we want the decimal form, type
> evalf(%);The % means the previous line.
We saw the function .
To work with this function, we need to define it.
Don’t forget to hit enter.
Now we can use it. For example, to find f(3) simply type it in, then ; and Enter.
Now find f(2),f(4),f(6) Find f(π) by typing
Notice that they look the same. However maple thinks pi is a Greek letter but Pi is a number. To find this number as a decimal, type
Don’t forget the semicolon. Now try
To get a picture of your function, type
Not such a nice picture, but if you look at the axes you
will see why. We are only interested in this function for positive values, say
between 1 and 6, so try >plot(f(x),x=1..6);
Looks better. What do you think the minimum is, and for what x should it occur?
Zoom in by trying different values for x. For example, try
Please note that you do not need to retype everything:
Let’s cut to the chase. We want to find the minimum value, and the input for which it occurs. Of course we are supposed to learn a lot of machinery first, but why not ask the machine?!
You should not be surprised by the result. However, we
want the minimum value over a small domain, say from 2 to 4. Type
To find the number as a decimal, type
To find the input that gives the minimum output, type
Cutting and pasting is easier than retyping.
Find the number you got as a decimal.
Congratulations, you just solved your first calculus problem without using or learning any calculus!
Using maple, define the simple quadratic function by typing
Graph this function.
Find minimum value of this function, and the value that produces it. In other words, find the vertex of the function.
Find the zeros of the function.
Note: you need neither maple nor calculus to solve this problem.
Define the quadratic function and repeat as above.