Next: About this document ...
Up: lab_template
Previous: lab_template
Subsections
The purpose of this lab is to introduce you to curve computations
using Maple for parametric curves and vector-valued functions in the
plane.
By parametric curve in the plane, we mean a pair of equations
and
for
in some interval
. A vector-valued function in
the plane is a function
that associates a vector in
the plane with
each value of
in its domain. Such a vector valued function can
always be
written in component form as follows,
where
and
are functions defined on some interval
. From our
definition of a parametric curve, it should be clear that you can
always associate a
parametric curve with a vector-valued function by just considering the
curve traced out by the head of the vector.
The ParamPlot command is in the CalcP package so you have to load it first. If you get an error from this command, ask for help right away.
>with(CalcP7);
The ParamPlot command produces an animated plot. To see the animation, execute the command and then click on the plot region below to make the controls appear in the Context Bar just above the worksheet window.
>ParamPlot([t,t^2],t=-2..2);
the direction of the motion on the curve can be reversed by simply changing the first component from t to -t, as shown below.
>ParamPlot([-t,t^2],t=-2..2);
The ParamPlot command is nice for visualization, but its output doesn't always show up in printouts. Toproduce a printable plot, you can use the VPlot command as shown below.
>VPlot([t^2,t^3-t],t=-1.5..1.5);
The easiest way to define a vector function or a parametric curve is to use the Maple list notaion with square brackets[]. Strictly speaking, this does not define something that Maple recognizes as a vector, but it will work with all of the commands you need for this lab.
>f:=t->[2*cos(t),2*sin(t)];
You can evaluate this function at any value of t in the usual way.
>f(0);
This is how to access a single component. You would use f(t)[2] to get the second component.
>f(t)[1]
The graph of a parametric curve may not have a slope at every point on
the curve. When the slope exists, it must be given by the formula
from class.
It is clear that this formula doesn't make sense if
at some particular value of
. If
at that same value of
, then it turns out the
graph has a vertical tangent at that point. If both
and
are zero at some
value of
, then the curve often doesn't have a tangent line at that
point. What you see instead is a sharp corner, called a cusp. An
example of this appears in the first exercise.
The vector equation for the line passing through the point
parallel to the vector
is given by:
Below is an example in Maple using this parametric form of a line that is tange nt to the curve
defined above at
. The plot of the curve and the line on the same graph verifies that the line is tangent at the given point.
>eval(slope,t=Pi/4);
Since the slope at
is -1, we want the line throug h the point
, parallel to the vector
.
>line:=t->r(Pi/4)+[t,-t];
>with(plots):
>a:=VPlot(r(t),t=-Pi..Pi):
>b:=VPlot(line(t),t=-Pi..Pi):
>display(a,b);
As mentioned above, parametric curves often represent the motion of a
particle or mechanical system. As we will see in class, when we think
of a parametric curve as representing motion, we need a way to measure
the distance traveled by the particle. This distance is given by the
arc length,
, of a curve.
For a parametric curve
,
, the arc length of the curve for
is given
below.
While the concept of arc length is very useful for the theory of
parametric curves, it turns out to be very difficult to compute in all
but the simplest cases.
- Plot the curve
for
.
- Find the formula for the slope of the parametric curve.
- Find
values for two points on the graph where the slope does not exist or where there is a cusp.
- Calculate the
coordinate location for the two points above and plot them on the graph along with the parametrization. You will find some of the commands below helpful, but you will need more commands than what is given.
>xp:=diff(r(t)[1],t);
>solve({xp=0,yp=0},t);
>r(0);
>with(plots):
>a:=VPlot(r(t),t=0..2*Pi):
>b:=VPlot(r(0),t=0..2*Pi,style=point,symbolsize=30,color=black):
>display(a,b,c);
- Consider the vector function
for
.
- Calculate the
coordinate point on the curve at
and the slope of the curve at
.
- Define the vector equation of the line through the point above tangent to the curve at that point.
- Plot the graph of
and this tangent line on the same graph over the interval
.
- For the ellipse
, plot the ellipse implicityly and calculate the arclength directly using the commands given below:
> with(plots):
> implicitplot(x^2/16+y^2/36=1,x=-4..4,y=-6..6,scaling=constrained)
> f := solve(x^2/16+y^2/36=1, y)
> df := diff(f[1],x)
> evalf(2*int(sqrt(1+df^2),x=-4..4))
Next, define the ellipse parametrically,
and
, and determine the necessary interval for the ellipse. Use VPlot to show that they are the same ellipse (you may want to use scaling=constrained) and find the arclength of the ellipse using the parametrizations.
Next: About this document ...
Up: lab_template
Previous: lab_template
Dina J. Solitro-Rassias
2018-12-05