Mathematica’s D function has really been doing partial derivatives all along; that’s why you tell it what variable to take the derivative with respect to.

D[ x^3 - y^2, x ]

D[ x^3 - y^2, y ]