Let f(x) be a function of bounded variation on closed, bounded interval [a, b].

Let g(x) = V(f, [a, x])

where given some partition of [a, x].

How can I calculate the derivate of g(x)?

I know of differentiation term-by-term but not sure if this would apply here.

Thanks