d/dx is differentiating something that isn't necessarily an equation denoted by y.
dy/dx is differentiating an equation y with respect to x
dy/dx is a noun. It is the thing you get after taking the derivative of y.
d/dx is a verb. It says "take the derivative of this thing I'm about to write after this"