The part that I highlighted in red is correct. Remember that we used implicit differentiation. Suppose I want to differentiate the equation:
I have to use implicit differentiation:
Notice that is on both sides of the equation. You can often solve for .
With your equation, we can do the same thing: