Suppose $x \in \mathbb{R}^n$, and $f : \mathbb{R} \rightarrow \mathbb{R}$, $g :\mathbb{R}^n \rightarrow \mathbb{R}$ are two functions. $F(u)$ is the primitive function of $f$, $F(u) = \int_0^u f(v) dv$.
I want to compute the gradient of $F(g(x))$. I know that I should use the chain rule, but I couldn't understand chain rule in higher dimensions.