untested: compute x,y derivatives alongside Gaussians