$\int314^{\cos x}~dx$
$=\int e^{\ln314\cos x}~dx$
$=\int\sum\limits_{n=0}^\infty\dfrac{\ln^{2n}314\cos^{2n}x}{(2n)!}dx+\int\sum\limits_{n=0}^\infty\dfrac{\ln^{2n+1}314\cos^{2n+1}x}{(2n+1)!}dx$
$=\int\left(1+\sum\limits_{n=1}^\infty\dfrac{\ln^{2n}314\cos^{2n}x}{(2n)!}\right)dx+\int\sum\limits_{n=0}^\infty\dfrac{\ln^{2n+1}314\cos^{2n+1}x}{(2n+1)!}dx$
For $n$ is any natural number,
$\int\cos^{2n}x~dx=\dfrac{(2n)!x}{4^n(n!)^2}+\sum\limits_{k=1}^n\dfrac{(2n)!((k-1)!)^2\sin x\cos^{2k-1}x}{4^{n-k+1}(n!)^2(2k-1)!}+C$
This result can be done by successive integration by parts.
For $n$ is any non-negative integer,
$\int\cos^{2n+1}x~dx$
$=\int\cos^{2n}x~d(\sin x)$
$=\int(1-\sin^2x)^n~d(\sin x)$
$=\int\sum\limits_{k=0}^nC_k^n(-1)^k\sin^{2k}x~d(\sin x)$
$=\sum\limits_{k=0}^n\dfrac{(-1)^kn!\sin^{2k+1}x}{k!(n-k)!(2k+1)}+C$
$\therefore\int\left(1+\sum\limits_{n=1}^\infty\dfrac{\ln^{2n}314\cos^{2n}x}{(2n)!}\right)dx+\int\sum\limits_{n=0}^\infty\dfrac{\ln^{2n+1}314\cos^{2n+1}x}{(2n+1)!}dx$
$=x+\sum\limits_{n=1}^\infty\dfrac{x\ln^{2n}314}{4^n(n!)^2}+\sum\limits_{n=1}^\infty\sum\limits_{k=1}^n\dfrac{((k-1)!)^2\ln^{2n}314\sin x\cos^{2k-1}x}{4^{n-k+1}(n!)^2(2k-1)!}+\sum\limits_{n=0}^\infty\sum\limits_{k=0}^n\dfrac{(-1)^kn!\ln^{2n+1}314\sin^{2k+1}x}{(2n+1)!k!(n-k)!(2k+1)}+C$
$=\sum\limits_{n=0}^\infty\dfrac{x\ln^{2n}314}{4^n(n!)^2}+\sum\limits_{n=1}^\infty\sum\limits_{k=1}^n\dfrac{((k-1)!)^2\ln^{2n}314\sin x\cos^{2k-1}x}{4^{n-k+1}(n!)^2(2k-1)!}+\sum\limits_{n=0}^\infty\sum\limits_{k=0}^n\dfrac{(-1)^kn!\ln^{2n+1}314\sin^{2k+1}x}{(2n+1)!k!(n-k)!(2k+1)}+C$