calculate the derivative using fundamental theorem of calculus This is a GRE prep question:
What's the derivative of $f(x)=\int_x^0 \frac{\cos xt}{t}\mathrm{d}t$?
The answer is $\frac{1}{x}[1-2\cos x^2]$. I guess this has something to do with the first fundamental theorem of calculus but I'm not sure how to use that to solve this problem.
Thanks in advance.

The integral does not exist,  consequently it is not differentiable. 
The integral does not exist, because for each $x$ ($x>0$, the case of negative
$x$ is dealt with similarly) there is some $\varepsilon > 0$ such that 
$\cos(xt)> 1/2$ for all $t$ in the $t$-range $0\le t \le \varepsilon$. If one splits the integral $\int_x^0 =
\int_\varepsilon^0 + \int_x^\varepsilon$, then the second integral exists,
because the integrand is continuous in the $t$-range $\varepsilon \le t\le x $. The first is by definition
$\lim_{\eta\rightarrow 0+}\int_\varepsilon^\eta$ and larger than $(-\ln \eta + \ln \varepsilon)/2$. So the limit does not exist.
