Maple Lab 1 (Spring 2007 Math 251 Sections 05-07)
Background Worksheet.
It's a good idea to start every sheet with the restart command. Maple remembers everything that
you do, so the restart command gives you a fresh start without having to shutdown and restart
the program itself!
| > |
A Quick Note for Typing in Maple:
To create new text groups such as this use the button labeled "T" above. To create a new execution group
(the lines with maple commands which start with ">") you can use the button labeled "[>" or the keyboard
shortcut "Ctrl+J". To insert a group before the cursor use "Ctrl+K".
To delete a line of input or Maple output you can use the keyboard shortcut "Ctrl+Delete". To begin
another line in an execution group use "Shift+Enter". Remember that "Enter" alone will just execute
the command you've typed.
For this lab we will need the "plots" package along with the "VectorCalculus" package.
| > |
Warning, the name changecoords has been redefined
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Warning, the assigned names `<,>` and `<|>` now have a global binding
Warning, these protected names have been redefined and unprotected: `*`, `+`, `-`, `.`, D, Vector, diff, int, limit, series
![]()
![]()
![]()
![]()
![]()
![]()
![]()
We will be exploring Chapter 13 material using Maple. Specifically, we will be looking at:
parametric curves, arc length, curvature, TNB-frames, and torsion.
So let's get started. The command "spacecurve" allows us to draw parametric curves in
.
We will begin by plotting a helix.
| > |
Now let's try that again using a more "general approach".
| > |
![]()
| > |
It's easy to differentiate vector valued functions.
Note: Maple uses the notation "
" for the unit vector "
", "
" for the unit vector "
", and "
" for the unit vector "
".
| > |
| > |
Let's plot the helix together with it's tangent line at
.
The derivative gives the direction of the line, and the function will give a point on the line.
| > |
| > |
| > |
| > |
Next, let's compute the arc length function for the helix.
[Remember that out parameter
ranges from
to
.]
Note: Sometimes we have to tell Maple some extra information -- in this problem Maple should know that
our dummy variable "
" is a real number.
| > |
| > |
| > |
Substituting in
(the end of the curve) will give us the length of our helix.
| > |
Now we can make Maple solve for t and then reparametrize our helix in terms of arc length.
| > |
| > |
| > |
![]()
| > |
Of course, our graph looks no different, since we have the same curve (with a different parametrization).
Now we can compute the curvature of the helix using the definition: "
".
| > |
| > |
![]()
Notice that we just computed the derivative of
and didn't bother dividing by it's length -- we don't
need to since
is parametrized with respect to arc legnth!
Don't believe me? Let's check the length of "
" -- the unit tangent.
| > |
| > |
Now we compute the curvature.
| > |
![]()
| > |
| > |
We have re-discovered that the helix has constant curvature.
Next, let's make Maple compute the TNB-frame for the helix. We can either do this "step-by-step" or using
built in functions. Let's do it "step-by-step" first.
I will introduce a "normalize" function which given a non-zero vector spits out a unit vector pointing in the same direction.
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
Now let's use the built in function "TNBFrame".
| > |
![]()
![]()
| > |
| > |
| > |
| > |
| > |
| > |
We can also use a built in command to compute curvature.
| > |
| > |
Let's plot the TNB-frame for our helix at the point
.
| > |
| > |
| > |
| > |
| > |
A curve in
doesn't neccessarily lie in a plane -- see for example the helix above!
Given a particular point on the curve, the osculating plane at that point is the best try
at placing the curve in a plane. In other words, near the point in question, the curve
looks like it lies in the osculating plane.
The osculating plane for
at
is the plane which passes through the point
and has the normal vector
.
We will plot the helix together with its osculating point at
.
| > |
| > |
| > |
We know that tangent lines give the best linear approximation of a curve. The osculating
circle gives the best approximating circle. That is, the osculating circle at a particular point
looks like the curve near that point.
The osculating circle lies in the osculating plane, touches the curve at the point in question,
and has a raduis of
(the reciprical of the curvature at that point).
Let's graph the osculating circle for the helix for
.
| > |
![]()
![]()
![]()
| > |
| > |
The curvature function measures how curved our curve is (eh?). Another function called the "torsion" function
measures how much the curve "twists" out of its osculating plane. Torsion is defined to be the function
where
. So to compute torsion directly we would need to parametrize our curve with
respect to arc length, compute the curve's TNB-frame, and then differentiate the binormal vector. This is too
much work. So in the same way we found a direct formula for curvature, we get a direct formula for torsion:
Let's compute the torsion of the helix using this formula.
| > |
![]()
![]()
![]()
![]()
![]()
![]()
![]()
| > |
So we see that the helix not only has constant curvature, but also constant torsion. This means it is "twisted"
the "same" way everywhere.
Let's also use a built in function to compute torsion.
| > |
| > |