Division fix and typos

If I understand it correctly, the expression for the gradient in case of a division should include `dx`.