implicit differentiation
And, just to motivate that, let me remind you about one trick that you probably know from single variable calculus, namely implicit differentiation.