For the density, the partial derivatives are
and the weighted contribution to the error is given by
and combined by taking the square root of the sum of the squares,
yielding
or