Asymptotics (integration by parts)
Since the integrand is highly oscillatory for large $s$, we can obtain an asymptotic expression by performing integration by parts.
Observe that
$$
\begin{align}
& \int_0^1 x^2 \mathrm{e}^{\mathrm{i} f(x) s} \,\mathrm{d}x \\
&=\int_0^1 \frac{x^2}{\mathrm{i} f'(x) s} \,\mathrm{d}\left( \mathrm{e}^{\mathrm{i} f(x) s} \right) \\
&= \left[ \frac{x^2 \mathrm{e}^{\mathrm{i} f(x) s}}{\mathrm{i} f'(x) s} \right]_0^1 - \int_0^1 \mathrm{e}^{\mathrm{i} f(x) s} \,\mathrm{d} \left( \frac{x^2}{\mathrm{i} f'(x) s} \right).
\end{align}
$$
The first term (boundary term) is already small, since it is of order $1/s$. Assuming $f$ is sufficiently well behaved, the second term is even smaller, since we have a highly oscillatory integrand of order $1/s$ (I would expect the second term to be of order $1/s^2$).
So we merely need to evaluate the boundary term:
f[x_] := Log[1 + x] / x
boundaryTerm[s_][x_] := x^2 Exp[I f[x] s] / (I f'[x] s);
result = boundaryTerm[s][1] - Limit[boundaryTerm[s][x], x -> 0]
$$-\frac{\mathrm{i} \, 2^{\mathrm{i} s}}{s (1/2 - \log 2)} $$
Table[{s, result // N}, {s, 10^Range[4, 7]}] // TableForm
$s$ |
result |
$10^4$ |
$-0.000465659 + 0.00022631 \,\mathrm{i}$ |
$10^5$ |
$0.0000508565 + 9.70392 \cdot 10^{-6} \,\mathrm{i}$ |
$10^6$ |
$4.92323 \cdot 10^{-6} + 1.60227 \cdot 10^{-6} \,\mathrm{i}$ |
$10^7$ |
$-2.48291 \cdot 10^{-9} + 5.17734 \cdot 10^{-7} \,\mathrm{i}$ |
This is consistent with Michael E2's result.
Addendum: more terms
We can obtain a full asymptotic expansion by performing integration by parts iteratively. We get
$$
\int_0^1 x^2 \mathrm{e}^{\mathrm{i} f(x) s} \,\mathrm{d}x =
\frac{A_1}{s} + \frac{A_2}{s^2} + \frac{A_3}{s^3} + \text{etc.},
$$
where
$$
\begin{align}
T_1 (x) &= \frac{x^2}{\mathrm{i} f'(x)}, \\
T_n (x) &= \frac{T_{n-1}' (x)}{\mathrm{i} f'(x)},
\end{align}
$$
and
$$
A_n = (-1)^{n + 1} \left[ T_n (x) \mathrm{e}^{\mathrm{i} f(x) s} \right]_0^1.
$$
In the case of $s = 10^7$, taking 6 terms allows us to achieve all of the decimal places in Michael E2's WorkingPrecision -> 32
check:
f[x_] := Log[1 + x] / x
t[1] = x^2 / (I f'[x]);
t[n_] := t[n] = D[t[n - 1], x] / (I f'[x]);
a[n_] := a[n] =
(-1)^(n + 1) * Subtract[
Limit[t[n] Exp[I f[x] s], x -> 1],
Limit[t[n] Exp[I f[x] s], x -> 0]
];
asympTerm[n_] := a[n] / s^n;
nMax = 6;
asympSum = Sum[asympTerm[n], {n, nMax}];
asympSum /. {s -> 10^7} // N[#, 34] &
(*
-2.4821858856455486537866819639768*10^-9
+5.177339397405490473474681042944648*10^-7 I
*)
(* Check size of omitted term *)
asympTerm[nMax + 1] /. {s -> 10^7} // N
(*
4.98211*10^-47 - 4.15958*10^-42 I
*)
WARNING. This is an asymptotic expansion, NOT a convergent expansion. At some point the terms will start getting larger, and the series will NOT converge. Always check the size of the first omitted term.
s
"? E.g $s \in [10,100]$ or $s \in [10^5,10^6]$ ? $\endgroup$