I need to calculate the arc length of a half period of a sine wave with a given frequency and amplitude.
I found this article which summarizes a polynomial method for getting a very close approximation:
http://edspi31415.blogspot.com/2012/05/arc-length-of-sinx-curve-approximation.html
He states:
We have been looking to find the arc length of the curve $y = a sin x$ from $x = 0$ to $x = π$.
The exact value is:
$π ∫ √ (1 + a^2 cos^2 x ) dx$
$0$
However, a good estimate can be found (to 2-3 decimal places) with the polynomial:
$y = .0081196317102889 x^4 - .11577326164517 x^3 + .63914882375794 x^2 + .2071162669684 x + 3.0881429428239$
I'm having trouble understanding how that polynomial works though. Arc length of the sine wave will vary both with amplitude and frequency of the sine wave, right? I don't see a way to accommodate for that.
Let's say I have a simple equation of:
$y = a * sin (\frac{π x}{c})$
As shown here:
https://www.desmos.com/calculator/gshaw6pqar
Could this polynomial give me the arc length say from $x=0$ to $x=c$ on that graph? If so, how do I implement it?
Alternatively, are there any good or easy to implement other polynomial solutions for this problem?
For $a\sin x$, since the arc length is always taken between the same endpoints, it depends on only one variable and we can apply one-dimensional regression to it, which is what the blog post did. There, the explanation earlier up reads
So the resulting approximation is just a quartic fit to the data. It would have better been written with $a$ replacing $x$ and $L$ replacing $y$.
To transform your problem into the $a\sin x$ problem, note that uniformly scaling the Euclidean plane scales all arc lengths proportionally. Thus the arc length of $a\sin\frac{\pi x}c$ over $[0,c]$ is the arc length of $\frac{a\pi}c\sin x$ over $[0,\pi]$ multiplied by $\frac c\pi$.