I have an assignment where I have to compute the following integral $$\int_1^{1.71}\frac {\cos \sqrt[4]{x}}{1+x\sqrt{x}}dx$$ to twelve correct significant digits.
What is the best method to achieve this when computation time is not a big issue? How do I know how many digits are correct?
If you consider performances, you are correct with the problem of the square and fourth root.
Independently of the selected numerical method, I should let $x=t^4$ to make $$\int_1^{1.71}\frac {\cos \sqrt[4]{x}}{1+x\sqrt{x}}dx=4\int_1^{\sqrt[4]{1.71}}\frac{ t^3 }{t^6+1}\cos (t)\,dt$$ Now, you face a smaller integration range and the second integrand is much closer to linearity than the first one.
You could even use series expansion around $t=1$ to $O\left((t-1)^{n+1}\right)$ and it would converge quite fast $$\left( \begin{array}{cc} n & \text{result} \\ 0 & 0.13776738977500630815 \\ 1 & 0.13244166602060158949 \\ 2 & 0.13379101200456405488 \\ 3 & 0.13389678244323662667 \\ 4 & 0.13381286137858445987 \\ 5 & 0.13381750204286473434 \\ 6 & 0.13382176024778008614 \\ 7 & 0.13382093814245070512 \\ 8 & 0.13382078258061243158 \\ 9 & 0.13382085458575250985 \\ 10 & 0.13382085507917192293 \\ 11 & 0.13382085032932136977 \\ 12 & 0.13382085092985845912 \\ 13 & 0.13382085116591896269 \\ 14 & 0.13382085109375183538 \\ 15 & 0.13382085108748612023 \\ 16 & 0.13382085109326772813 \\ 17 & 0.13382085109291259286 \\ 18 & 0.13382085109256093758 \\ 19 & 0.13382085109263371344 \\ 20 & 0.13382085109264832238 \\ \cdots & \cdots \\ \infty &0.13382085109264158173 \end{array} \right)$$