Solution:
Concept: When y is given implicitly by an equation in x and y, we differentiate both sides with respect to x, treating y as a function of x. By the chain rule, a term in y picks up a factor dxdy: for example dxd(y2)=2ydxdy. A term such as xy needs the product rule, dxd(xy)=xdxdy+y. Finally we collect all the dxdy terms on one side and solve for dxdy.
Step 1 — Differentiate every term with respect to x.
We go term by term: ax2 gives 2ax; 2hxy needs the product rule; by2 gives 2bydxdy; 2gx gives 2g; 2fy gives 2fdxdy; and the constant c gives 0.
2ax+2h(xdxdy+y)+2bydxdy+2g+2fdxdy=0
Step 2 — Divide by 2 and expand.
Every term has a factor 2, so we divide through by 2 and multiply out the bracket.
ax+hxdxdy+hy+bydxdy+g+fdxdy=0
Step 3 — Collect the dxdy terms.
We keep the three dxdy terms on the left, take dxdy out as a common factor, and move the other terms to the right.
(hx+by+f)dxdy=−(ax+hy+g)
Step 4 — Solve for dxdy.
We divide by hx+by+f (assumed non-zero).
dxdy=−hx+by+fax+hy+g
Note: The book's printed answer has ax+by+g in the numerator, which is a misprint. Differentiating 2hxy gives the term hy (not by), so the numerator is ax+hy+g.
Therefore, dxdy=−hx+by+fax+hy+g.