Build a surface normal vector (I use Mathematica)

Click For Summary
The discussion focuses on computing a surface normal vector using Mathematica, specifically addressing the equation $$n.S = \frac{(-1+\cos(c s))}{c^2} \sin(c s) \neq 0$$. The user provides Mathematica code for defining parametric equations for a surface and attempts to compute the normal vector using the cross product of derivatives. They express confusion about the dot product yielding zero and seek clarification on the variable ##n##. The user acknowledges a mistake in their approach, realizing that the dot product should not be zero except in specific cases, such as rare spheres.
member 428835
Homework Statement
Given ##r(s) = \sin(c s)/c## we define the surface ##S = \langle r(s) \cos(\phi), r(s) \sin(\phi), (1 - \cos(cs))/c \rangle##. Compute a normal vector ##n## to ##S##.
Relevant Equations
a surface normal is found for a parametric surface ##S(s,\phi)## via ##n = d_sS \times d_\phi S##
Not HW, but seems to fit here.

I compute $$n.S = \frac{(-1+\cos(c s))}{c^2} \sin(c s) \neq 0$$

I use the following in Mathematica:

Code:
r[s_, \[Alpha]_] := Sin[Cos[\[Alpha]] s]/Cos[\[Alpha]]
z[s_, \[Alpha]_] := (1 - Cos[Cos[\[Alpha]] s])/Cos[\[Alpha]]
x[s_, \[CurlyPhi]_, \[Alpha]_] := r[s, \[Alpha]] Cos[\[CurlyPhi]]
y[s_, \[CurlyPhi]_, \[Alpha]_] := r[s, \[Alpha]] Sin[\[CurlyPhi]]
z[s_, \[CurlyPhi]_, \[Alpha]_] := z[s, \[Alpha]]
S[s_, \[CurlyPhi]_, \[Alpha]_] := {x[s, \[CurlyPhi], \[Alpha]],
  y[s, \[CurlyPhi], \[Alpha]], z[s, \[CurlyPhi], \[Alpha]]}
Cross[D[S[s, \[CurlyPhi], \[Alpha]], s],
   D[S[s, \[CurlyPhi], \[Alpha]], \[CurlyPhi]]].S[
   s, \[CurlyPhi], \[Alpha]] // FullSimplify

If you copy-paste this you should get the same output, where ##c = \cos(\alpha)##. What am I doing wrong? What is ##n##? Any help is greatly appreciated!
 
Physics news on Phys.org
My mistake! Unsure why I was taking that final dot product: it obviously should not be zero except for rare spheres!
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
46
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
2K
  • · Replies 43 ·
2
Replies
43
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K