I am trying to figure out how to control the equation to make a controllable equidistantly sine wave(or you can say same period sine wave) on spiral with some parameters.
I want to Offset a constant distant d on a spiral.
I successfully made a equation of Archimedean Spiral which can be controlled by some parameters. BUT the sine waves are not same period. The parametric form of Archimedean Spiral is: $$x(t) = a\cdot t\cdot \cos(t)$$ $$y(t) = a\cdot t\cdot \sin(t)$$
To make a distant d, I need to know the Normal unit vector of the equation. First I differentiate the parameter formula to obtain the tangent vector(T1) and I get: $$T1 = (a\cdot cos(b\cdot t)-b\cdot t \cdot sin(b\cdot t), b\cdot t \cdot cos(b\cdot t)+ a\cdot sin(b\cdot t))$$
then normalize T1 by Wolfram(1) can get T2; $$T2 = (a\cos(bt)-bt\sin(bt), bt\cos(bt)+ a\sin(bt))\frac{1}{\sqrt{b^2 t^2 + 1}}$$
Next, differentiate T2 to get Normal vector N1 by Wolfram(2)
get N1 and simplify: $$N1 = (-\sin(bt)-bt\cos(bt), \cos(bt)-bt\sin(bt))\frac{b(b^2 t^2 + 1)}{\sqrt{b^2 t^2 + 1}^(3/2)}$$
the unit vector of N1 will be N2 show as: $$N2 = (\sin(bt)+bt\cos(bt), -\cos(bt)+bt\sin(bt))\frac{-1}{\sqrt{b^2 t^2 + 1}^(1/2)}$$
So a point P on the spiral offset along the normal direction with a distant d can be like:

then I change d to d'; d' = d(1 + A * sin(25t)) to make 25 sine waves on the spiral, and the amplitude can be control by parameter A(it is from 0 ~ 1)
I draw on Desmos to show out :https://www.desmos.com/calculator/kvtd6aihab
Watch the gif in the comments' link[gif]
I wonder how to fix the equation to make every sine wave have the same period. I found some similar example. Equation of sine wave around a spiral? this one is about same period sine wave. $$x(t) = (at + \sin(bt^2)) \cos(t)$$ $$y(t) = (at + \sin(bt^2)) \sin(t)$$
I try some ways on my desmos. I add some exponential parameter to decay the sine wave but it's not good enough https://www.desmos.com/calculator/89yyu30xcr
So I try to use MATLAB to do the same calculation steps but always fail
MY GOAL:
1.Use the MATLAB to do the same steps as original Archimedean Spiral equation on the same period sine waves equation $$x(t) = (at + \sin(bt^2)) \cos(t)$$ $$y(t) = (at + \sin(bt^2)) \sin(t)$$ 2.Add some decay equation on the offset d equation to make every sine wave same period.
Please help me! Thank you!