Pass ∂/∂x under integral when limits constant and regularity holds.
JEE: often polynomial g so partial easy.