I'm playing around with Euler spirals, using a variable power to see how the plot changes,
$ \left\{\begin{matrix} x = \int_0^s \cos \left ( s^n \right ) ds \\ y = \int_0^s \sin \left ( s^n \right ) ds \end{matrix}\right. $
and finding the values for powers 2 or 3 work as expected in Mathematica:
Limit[ Integrate[Cos[s^2], {s, 0, x}], x -> ∞]
Limit[ Integrate[Sin[s^2], {s, 0, x}], x -> ∞]
$ \frac{\sqrt{\frac{\pi}{2}}}{2} \\ \frac{\sqrt{\frac{\pi}{2}}}{2} $
and similarly,
Limit[ Integrate[ Cos[s^3], {s, 0, x}], x -> ∞]
Limit[ Integrate[ Sin[s^3], {s, 0, x}], x -> ∞]
$ \frac{Gamma\left[\frac{1}{3} \right]}{2\sqrt{3}} \\ \frac{1}{6} Gamma \left [ \frac{1}{3} \right ] $
Plotting the spiral at different values (using a different general purpose graphics language) for $n$ suggests that there there should certainly be convergence values for both $x$ and $y$ for any value $1 \lt n \leq 3$ (and presumably above), but trying some of these leads to Mathematica giving most unhelpful answers:
$ Limit \left [ \int_0^s Cos \left [ s^{1.5} \right ]ds,s\rightarrow\infty \right ] \Rightarrow 0.451373 \\ Limit \left [ \int_0^s Sin \left [ s^{1.5} \right ]ds,s\rightarrow\infty \right ] \Rightarrow ComplexInfinity $
Which looks like the right $x$ coordinate, but a plain wrong $y$ coordinate, which quite clearly exists somewhere around 0.76ish:
Trying $n=2.5$ fails even harder, yielding "ComplexInfinity" for both coordinates, which is clearly incorrect (being somewhere near $(0.72,0.533)$):
Is there a way to make Mathematica generate these values anyway?
Or, is there a way to compute the general solution for symbolic power $n$ and getting a general formula for when $n\gt1$, using something like this (but then actually yielding a result):
$ Limit \left [ \int_0^s Cos \left [ s^n \right ]ds,s\rightarrow\infty \right ] \\ Limit \left [ \int_0^s Sin \left [ s^n \right ]ds,s\rightarrow\infty \right ] $
Limit
doesn't like functions with inexact numbers. A very recent question was asked about this. Why don't you just integrate to infinity? Do this:Integrate[Cos[s^(3/2)], {s, 0, \[Infinity]}]
. $\endgroup$Integral[]
or the like when I can avoid it. $\endgroup$