The reason I asked this question is that I am trying to differentiate the relation $x^2 + y^2 = 25$. In an attempt to understand what's going on I gave the expression $x^2 + y^2x$ a name. "S" is essentially a function of two variables; it takes every point(x,y) on the plane and associates it with a number.
For points on this circle, that number happens to be $25$.
What it means to take a derivative of this expression, a derivative of S, is to consider a tiny change to both these variables, some tiny change dx to x, and some tiny change $dy$ to $y$.
The key point is that when you restrict yourself to steps along this circle, you're essentially saying you want to ensure that this value S doesn't change; it starts at a value of $25$, and you want to keep it at a value of $25$; that is, $dS$ should be $0$. So setting the expression $2xdx + 2ydy$ equal to $0$ is the condition under which a tiny step stays on the circle.
What I don't understand is this is the solution my textbook gave me...
$x^2 + y^2 = 25$
$\frac{d}{dx}(x^2 + y^2) = \frac{d}{dx}25$
Remembering that y is a function of x and using the chain rule, we have
$\frac{d}{dx}(y^2) = \frac{d}{dx} (y^2) \frac{dy}{dx} = 2y\frac{dy}{dx}$
and now we solve this equation for $\frac{dy}{dx}$ which equals $-\frac{x}{y}$.