Use the fundamental theorem of calculus to find the derivative of

g(x)=|e^x top, 0 bottom, cot(t^2) dt

dg/dx = d/dx ∫[0,e^x] cot(t^2) dt = cot(e^(2x))