2. (10%) Find the derivative of the function \( g(x) = \int_{\tan x}^{x^3} \frac{1}{\sqrt{2 + t^4}} dt \).