# Non-singular derivative operator in matrix form

I have an image in vectorized form. I have defined derivative operators in $$x$$ and $$y$$ directions, respectively using forward difference formula. However these matrices (i.e. $$G_x$$ and $$G_y$$) are singular. Is there a non-singular definition of these matrices?