\frac{d}{dx}f[g(x)] = \frac{df}{dg} (\frac{dg}{dx});