So, I was recently working on the Sine Fresnal integral and was curious whether we could generalise for any Real Number, i.e.
$$I = \int_{0}^{\infty} \sin\left(x^n\right)\:dx$$
I have formed a solution that I'm uncomfortable with and was hoping for qualified eyes to have a look over.
So, the approach I took was to employ Complex Numbers (I forget the name(s) of the theorem that allows this).
But
$$\sin\left(x^n\right) = \Im\left[-e^{-ix^n}\right]$$
And so, n
$$ I = \int_{0}^{\infty} \sin\left(x^n\right)\:dx = \Im\left[\int_{0}^{\infty} -e^{-ix^n}\:dx \right]= -\Im\left[\int_{0}^{\infty} e^{-\left(i^{\frac{1}{n}}x\right)^{n}}\:dx \right]$$
Applying a change of variable $u = i^{\frac{1}{n}}x$ we arrive at:
\begin{align} I &= -\Im\left[i^{-\frac{1}{n}}\int_{0}^{\infty} e^{-u^{n}}\:du \right] \\ &= -\Im\left[i^{-\frac{1}{n}}\frac{\Gamma\left(\frac{1}{n}\right)}{n} \right]\\ &= \sin\left(\frac{\pi}{2n}\right)\frac{\Gamma\left(\frac{1}{n}\right)}{n} \end{align}
My area of concern is in the substitution. As $i^{-\frac{1}{n}} \in \mathbb{C}$, I believe the limits of the integral should have been from $0$ to $i^{-\frac{1}{n}}\infty$. Is that correct or not?
I'm also struggling with bounds on $n$ for convergence. Is this expression valid for all $n\in\mathbb{R}$
Any guidance would be greatly appreciated
Another approach substitutes $y=x^n$ and writes $y^{1/n-1}$ in terms of a Gamma integral, viz. $$I=\Im\int_0^\infty\frac{1}{n}y^{1/n-1}\exp(iy) dy=\Im\int_0^\infty\int_0^\infty\frac{1}{n\Gamma(1/n)}z^{-1/n}\exp(-y(z-i))dydz.$$By Fubini's theorem, and using $\Im\frac{1}{z-i}=\frac{1}{1+z^2}$,$$I=\int_0^\infty\frac{1}{n\Gamma(1/n)}\frac{z^{-1/n}}{1+z^2}dz.$$Then the substitution $z=\tan u$ obtains a Beta integral, which can be rewritten in terms of Gamma functions, and the result you've claimed is proven true, by the reflection formula of the Gamma function. Alternatively, we can a keyhole contour, as when proving the reflection formula; this doesn't use the above substitution, but benefits from another: $v=z^2$.