I stopped at the place highlighted in yellow how to find this integral ? $$\int (314)^{\large \cos x} \; dx$$
$$\begin{aligned}\int 314^{\cos x}\sin x\,\mathrm{d}x=&\int u\mathrm{d}v=uv-\int v\mathrm{d} u\\ &u=\sin x\quad\mathrm{d}u=\cos x\mathrm{d}x\\ &\mathrm{d}v=314^{\cos x}\mathrm{d}x\quad v=\int 314^{\cos x}\mathrm{d}x \end{aligned}$$
Hint: Substitute $$t=\cos(x)$$ then $$dt=-\sin(x)dx$$Then you will get $$-\int 314^t dt$$