Problem
A electrical engineer needs a new coil and decides to make one from scratch. He hasn't decided the radius or length of the cylinder on which the coil will be wound. Define a function $f(r,l)$ where $r$=(radius), $l$=(height of the cylinder). There have to be exactly 10 full cycles of winding in total independent of its height.
Attempt to solve
We can define our curve in the form of a parametric equation:
$$ r(t)=\begin{bmatrix} r\cos(\frac{20\pi t}{l}) \\ r\sin(\frac{20}{l}) \\ t \end{bmatrix} $$
where $l$ and $r$ are constants, and $x,y,z$ are unit vectors.
$$ \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}\begin{bmatrix} x \\ y \\ z \end{bmatrix} $$
Plot of $r(t)$ when $l=10,r=3$ & plot of reference cylinder
Now we want to define a function for the length when the parametric equation is known. Length can be defined with the integral
$$ f(r,l)=\int_{a}^{b} || r'(t) || dt $$
$$r'(t)=\begin{bmatrix}x'(t)= \frac{d}{dt}r\cos(\frac{20\pi t}{l})=-\frac{20\pi\sin(\frac{20\pi t}{l})}{l}\\ y'(t)=\frac{d}{dt}r\sin(\frac{20 \pi t}{l})=\frac{20\pi\cos(\frac{20\pi t}{l})}{l} \\ z'(t)=\frac{d}{dt} t=1 \end{bmatrix}$$
$$ f(r,l)=\int_{a}^{b} \sqrt{(x(t))^2+(y(t))^2+(z(t))^2}dt $$
$$ f(r,l)=\int_{a}^{b} \sqrt{(-\frac{20\pi\sin(\frac{20\pi t}{l})}{l})^2+(\frac{20\pi\cos(\frac{20\pi t}{l})}{l})^2+(1)^2}dt $$
Now not too sure about integration limits since my understanding of what's going on here is not that good but I guess that we should be integrating from $0$ to $l$
$$ f(r,l)=\int_{0}^{l} \sqrt{(-\frac{20\pi\sin(\frac{20\pi t}{l})}{l})^2+(\frac{20\pi\cos(\frac{20\pi t}{l})}{l})^2+(1)^2}dt $$
Since we only had to define the function and not calculate anything with it I haven't tried to calculate any length since the integral looks like something I do not want to integrate by hand.
Anyway it would be highly appreciated if someone could point out the flaws (I am pretty sure there are flaws in this) or if this is correct I would like to still know the reason why integrating the tangent length will result in the length of the curve?
