If you have a function f(x,y) = 0 then you can differentiate it using the formula:

With your function you'll get:

---------------------------------------------------------------------

If you don't want to use this formula differentiate the given equation wrt x:

Expand the brackets and collect all terms containing y' at the LHS:

Factor out y' and divide both sides by the bracket. You'll get the result which you've got by the formula too.