Unit Tangent, Normal, and Binormal vectors


> restart;

> with(linalg):

Warning, new definition for norm

Warning, new definition for trace

Maple made a change when it upgraded from Release 4 to Release 5.1 which impacts in a clumsy way with the dot product . It now allows the dot product to act on more general vector spaces. Unfortunately for us, if u and v are vectors, the dot product command must now be entered in the form .

>dotprod(u, v, orthogonal);

I usually tell my students to introduce their own dot product command by writing

> dot:=(u,v)->dotprod(u,v,orthogonal);

[Maple Math]


Example: Let [Maple Math] be the curve defined by the vector valued position function

r(t) = sin(t) i +(cos(t)-sin(t)) j +cos(3t) k

for t in the closed interval between 0 and [Maple Math] . Compute the vectors T , N , B at the point on [Maple Math] corresponding to [Maple Math] . Plot [Maple Math] along with the frame {T, N, B} based at [Maple Math] . Finally, determine the curvature of [Maple Math] at [Maple Math] .

> r:=map(unapply,vector([sin(t),cos(t)-sin(t),cos(3*t)]),t);

[Maple Math]

> rp:=map(D,r);

[Maple Math]

> size:=proc(v) sqrt(dot(v,v));end;

[Maple Math]

> T:=map(unapply,scalarmul(rp(t),1/size(rp(t))),t);

[Maple Math]
[Maple Math]

> T1:=T(Pi/4);

[Maple Math]

The principal normal vector N as an expression in t is pretty nasty, so we turn immediately to an evaluation at [Maple Math] .

> N1:=normalize(map(D,T)(Pi/4));

[Maple Math]

> B1:=crossprod(T1,N1);

[Maple Math]

The TNB frame at [Maple Math] is the collection { T1, N1, B1 } based at [Maple Math] .

I think that the new version of Maple has tools for placing vectors into graphics. I haven't looked very carefully at the details so I will proceed instead with a simple devise for turning a vector into a line segment. We can use our imagination to place an arrow at the tip of the line segment. This, anyway, is how I created a graphic in Maple V R4.

> vline:=proc(p,v) L:=matadd(p,scalarmul(v,t));[L[1],L[2],L[3],t=0..1];end;

Warning, `L` is implicitly declared local

[Maple Math]

> frame:=vline(r(Pi/4),T1),vline(r(Pi/4),N1),vline(r(Pi/4),B1);

[Maple Math]
[Maple Math]
[Maple Math]

> c:=[r[1](t),r[2](t),r[3](t),t=0..2*Pi];

[Maple Math]

> with(plots):

> spacecurve({c,frame},scaling=CONSTRAINED,thickness=2);

[Maple Plot]

Look at this plot. Better yet, determine frames at several points, and look at a plot that shows the curve together with several frames. Move the plot around with the mouse to get a good look at
the curve and its various frames. Notice how
N always points to the concave side of the
curve, towards the center of the circle of curvature.

> kappa:=norm(map(D,T)(Pi/4),2)/norm(rp(Pi/4),2);

[Maple Math]

>

>