Let $\{q_j\}_{j\in\mathbb N}$ be an enumeration of the rational numbers in the unit interval $[0,1]$. Let $\{a_j\}_{j\in\mathbb N}$ be positive real numbers with $\textstyle\sum_j a_j < \infty$. Define for all $x\in [0,1]$ $$g(x):=\sum_{j=0}^\infty \,a_j \sqrt[3]{x-q_j}.$$ It is claimed in this wiki page that $$g^{\prime}(x)=\frac{1}{3}\sum_{j=0}^\infty \frac{a_j}{\sqrt[3]{(x-q_j)^2}}$$ holds at any point $x$ where the sum is finite.
It is not clear to me how to justify this. Any help would be appreciated.