I want to differentiate

$x^2 + y^2=1$ with respect to $x$.

The answer is $2x +2yy' = 0$.

Can some explain what is implicit differentiation and from where did $y'$ appear ? I can understand that $2x +2yy' = 0$ is a partial derivative but then it becomes multi calc not single.

This is in a chapter about chain rule so I assume there is some use of the chain rule here but I can't see any composite functions here. We can express y in terms of x but y is not composite.

P.S: I am NOT looking for HOW to solve the problem, I am looking for the WHY as stated above.


This is a matter of understanding what you're dealing with.

You're asked to differentiate $x^2+y^2=1$. An equation isn't a differentiable function, therefore the equation can't be differentiated.

Now comes the 'translating the problem part'.

The equation $x^2+y^2=1$ 'defines a function', more precisely, there exists a function $g\colon U\to V$ such that $x^2+(g(x))^2=1$, for some sets $U$ and $V$. (A lot can be said about $g, U$ and $V$). Let's assume for the time being that $g$ is differentiable. Now what the problems is actually asking you to do is to differentiate both sides of $x^2+(g(x))^2=1$, yielding $2x+2g(x)g'(x)=0$.

All this is simply the Implicit Function Theorem. The details can be checked on the link.

In two dimensions the theorem goes as follows:

Let $D\subseteq \Bbb R^2$ be an open set and let $f\colon D \to \Bbb R$ be a class $C^1$ function. Given $a\in \Bbb R$, suppose there exists $(x_0, y_0)\in D$ such that $f(x_0, y_0)=a$ and $f_y(x_0, y_0)\neq 0$. Then there are open intervals $U$ and $V$ with the property that there exists a class $C^1$ function $g\colon U\to V$ such that $\forall x\in U\left(f(x,g(x))=c\right)$. Furthermore defining $h\colon U\to \Bbb R, x\mapsto f(x,g(x))$, the chain rule yields $\forall x\in U(h'(x)=f_x(x,g(x))+f_y(x,g(x))g'(x)=0)$.


This is called the product rule, not the chain rule.

Differentiating $x^2$ w.r.t $x$ gives $2x$ which can be proven using the definition.

Now, the product rule states that (uv)' = u'v + uv'. So here $y^2 = yy$ ie $(y^2)' = (yy)' = y'y + yy' = 2yy'$ where $y' = \frac{dy}{dx}$


Let $f(x,y) = x^{2} + y^{2} - 1$. Then we claim that a function $g(x)$ satisfying $f(x,g(x)) = 0$ exists. By the implicit function theorem, it suffices to show that $\frac{\partial f}{\partial y}(x, y) = 2y \neq 0$. So the theorem holds and $g(x)$ is differentiable whenever $y\neq 0$. So when solving this problem we're essentially assuming that $y$ can be expressed in terms of $x$. The "obvious" problem is when $x=-1$ or $x=1$, but then $y=0$ and $y'$ is undefined. Now that I've shown $g(x)$ usually exists, we can proceed with chain rule. Since we are on a level set, $D_{1}[f(x,y)] = D_{1}f(x,y) + D_{2}f(x,y)\cdot g'(x)\equiv 0$. So, $g'(x) = \frac{-D_{1}f(x,y)}{D_{2}f(x,y)} = \frac{-2x}{2y} = \frac{-x}{y}$. Now these last steps are exactly what you did by "implicitly differentiating". I must admit that my answer is more of a cautionary tale than anything, but I feel that it is important.