next up previous
Next: About this document ... Up: lab_template Previous: lab_template

Subsections


Parametric Curves in the Plane

Purpose

The purpose of this lab is to introduce you to curve computations using Maple for parametric curves and vector-valued functions in the plane.

Background

By parametric curve in the plane, we mean a pair of equations $x=f(t)$ and $y=g(t)$ for $t$ in some interval $I$. A vector-valued function in the plane is a function $\mathbf{r}(t)$ that associates a vector in the plane with each value of $t$ in its domain. Such a vector valued function can always be written in component form as follows,

\begin{displaymath}\mathbf{r}(t) = f(t) \mathbf{i} + g(t) \mathbf{j} \end{displaymath}

where $f$ and $g$ are functions defined on some interval $I$. 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.

Plotting and animating curves in the plane

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);

Defining parametric curves and vector valued functions simply in Maple

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]

Derivatives and the slope

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.

\begin{displaymath}\frac{dy}{dx} = \frac{\frac{dy}{dt}}{\frac{dx}{dt}} \end{displaymath}

It is clear that this formula doesn't make sense if $\displaystyle
\frac{dx}{dt}= 0$ at some particular value of $t$. If $\displaystyle
\frac{dy}{dt} \neq 0$ at that same value of $t$, then it turns out the graph has a vertical tangent at that point. If both $\displaystyle
\frac{dx}{dt}$ and $\displaystyle \frac{dy}{dt}$ are zero at some value of $t$, 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 second exercise.

Arc length

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, $s$, of a curve. For a parametric curve $x=f(t)$, $y=g(t)$, the arc length of the curve for $a \leq t \leq b$ is given below.

\begin{displaymath}s = \int_{a}^{b} \sqrt{ (f'(t))^2+(g'(t))^2}   dt \end{displaymath}

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.

Exercises

  1. Consider the curve $\mathbf{r}(t) =
(2\cos(t) + 4\cos^2(t))\mathbf{i} + (2\sin(t) + 4\sin(t)\cos(t))\mathbf{j}$
    1. Calculate the $(x,y)$ coordinate point on the curve at $\displaystyle t =-\frac{\pi}{2}$ and the slope of the curve at $\displaystyle t =-\frac{\pi}{2}$.
    2. Define the vector equation of the line through the point above tangent to the curve at that point.
    3. Plot the graph of $\mathbf{r}(t)$ and this tangent line on the same graphover the interval $-\pi \leq t \leq \pi$.

  2. The parametric description $x=3\sin(t)$, $y= 2\cos(t)$, $0 \leq t \leq 2 \pi$ is the ellipse

    \begin{displaymath}\frac{x^2}{9}+ \frac{y^2}{4} = 1 \end{displaymath}

    First show that the two are the same shape by plotting them parametrically and with the command implicitplot. Find the arclength of the ellipse.

  3. Suppose that at time zero, flight 12 is at the point (100 mi, -101.63347 mi) at an altitude of 30,000 feet and traveling northwest at 429 mph and that flight 33 is at the same altitude, but is traveling due east at a speed of 388 mph. At time zero, flight 33 is at the point (-200 mi, 30 mi).
    1. Write a parametric function for each flight.
    2. Animate the flights on one plot.
    3. Do the planes crash? If so, when (convert your answer to minutes)?


next up previous
Next: About this document ... Up: lab_template Previous: lab_template
Dina J. Solitro-Rassias
2015-11-18