I was given the following problem:
Find $\frac{dy}{dx}$ using the implicit equation $x^2 + y^2 = 1$
What I'm more interested in is the explicit equation, $y = \sqrt{1 - x^2}$ (I'm allowed to assume only the positive part of the equation, I know it's actually $y = \pm\sqrt{1 - x^2}$). Lets say we tried to differentiate $y$ directly:
$$ \begin{align} \frac{dy}{dx} & = \frac{d}{dx}\sqrt{1 - x^2}\\ & = \frac{d}{dx}(1 - x^2)^{1/2}\\ & = 1/2(1 - x^2)^{-1/2}\\ & = \frac{1}{2\sqrt{1 - x^2}} \end{align} $$
Now this is clearly wrong. What we actually found was $\frac{dy}{d(1 - x^2)}$. So we have to use the chain rule to get $\frac{dy}{dx} = \frac{-x}{\sqrt{1 - x^2}}$.
Now lets take a look at $\frac{d}{dx}(1 - x^2)$:
$$ \frac{d}{dx}(1 - x^2) = -2x $$
Because $\frac{d}{dx}1 = 0$, and $\frac{d}{dx}(-x^2) = -2x$. But we can still technically consider $1 - x^2$ to be the composition of two functions $f(x) = 1 + x$ and $g(x) = x^2$. If we use the chain rule to find the derivative of $f \circ g$, we still see that it is equal to $-2x$.
So what is it about expressions like $\sqrt{1 - x^2}$ that don't allow us to differentiate them directly? Like what I said above about how we technically only found $\frac{dy}{d(1 - x^2)}$, what's to say that the way I differentiated $\frac{d}{dx}(1 - x^2)$ isn't actually the right way to do it because it is just analogous to $\frac{d}{d(1 + x)}$? What is the fundamental difference between two expressions that determines whether or not they can be differentiated directly, or if they need to be differentiated using the chain rule?