Added closed form gradient and laplacian. Laplacian not correct yet!