5

I have seen how people implicitly differentiate the equation $x^2 + y^2 = c$.

$$d/dx(x^2) + d/dx(y^2) = d/dx(c)$$

treating "$y$" as "$f(x)$" and using the chainrule we get

$$2x + 2y(y') = 0$$

and solving for $y'$

$$y'= -2x/2y$$

The problem is that I just don´t understand implicit differentiation, I do know the rules but they don´t make any sense to me. The fact that it is valid to differentiate both "$x$" and "$y$" on the same side of the equation is what´s bothering me and even if I see "$y$" as a function of "$x$" I just end up imagining

$$x^2 + (-x^2 + c) = c$$

which doesn´t help me. I also don´t know very much about partial derivatives but I´m willing to learn about them if that helps me understand implicit differentiation.

I really appreciate any thoughts or ideas. Thank you!

Git Gud
  • 31,356
Sam
  • 4,734
  • 2
  • Please format your question properly.

    Implicit differentiation is best understood by knowing what physics the Chain Rule is supposed to model. The following question should help. If you have a ball of ice, which melts so that the radius shrinks at the rate $r'(t) = m(t)$, at what rate does the volume shrink?

    – avs Aug 17 '16 at 21:15
  • @GitGud: The answer provided there might be too technical for the current situation. – user66081 Aug 17 '16 at 21:20
  • @user66081 "The" isn't right. There are several answers. Are you of the opinion that all of them are too technical? I did consider not closing as a duplicate, but since my vote is just one fifth of the closing contribution, I decided to vote to close. – Git Gud Aug 17 '16 at 21:22
  • @Leo (cc. @GitGud): maybe you could comment if/why you find the answers to the previous question unhelpful. That would be of general interest. – user66081 Aug 17 '16 at 21:26
  • The problem was that I couldn´t understand how it was valid to differentiate both "y" and "x" on one side of the equation and just a constant on the other, until, thanks to your responses, I was able to see that both sides could be seen as functions of "x" and that pretty much cleared up thing for me. – Sam Aug 17 '16 at 22:00
  • When I read the answers of the other question (Implicit differentiation) I wasn´t able to see that, maybe because it was just clearer to me to see each term written as a function (including the constant) since in that way I understand why the process is valid. I´m not saying that those were bad answers, they just didn´t get to me. – Sam Aug 17 '16 at 22:00
  • "(Implicit differentiation)" was supposed to be carrying this link: http://math.stackexchange.com/questions/569787/implicit-differentiation – Sam Aug 17 '16 at 22:01
  • Thank you all for your help. Really. – Sam Aug 17 '16 at 22:04

3 Answers3

4

Maybe this helps. Take the function $f(x) = x^2$ and some other functions $g(x)$ and $h(x)$.

Let's differentiate the expression $$ f(x) + (g(x))^2 = h(x) $$ with respect to $x$ (not: "differentiate $x$").

We use the fact that you can differentiate each summand individually, and the chain rule for $(g(x))^2$, to get $$ f'(x) + 2 g(x) g'(x) = h'(x) . $$

In your case, $f(x) = x^2$, $g(x) = y(x)$, and $h(x) = c$, i.e.: $$ 2 x + 2 y(x) y'(x) = 0 . $$

Sometimes, the argument $(x)$ is omitted -- that's what you have there; but that's just notation (no deeper meaning, afaik).

user66081
  • 3,987
  • 17
  • 29
  • Now I get. Thank you so much! That was actually a really good explanation, at least for me. – Sam Aug 17 '16 at 21:26
  • @Leo: Ok. Feel free to accept one of the answers. I think even better would be if you could write your own answer and explain the difficulties. – user66081 Aug 17 '16 at 21:29
0

We are just using the chain rule

If I said:

$f(x) = (2x +1) \implies \frac {df}{dx} = 2\\ g(x) = x^2\implies \frac {dg}{dx} = 2x\\ \frac {d}{dx}(g\circ f)(x) = \frac {dg}{df}\frac {df}{dx} = 2(2x+1)(2)$

Do have a problem with that?

So, $y$ is a function of $x.$ $y^2$ is a function of $y$

$\frac {d}{dx} y^2 = \frac {d}{dy}(y^2)\frac {dy}{dx}=2y\frac {dy}{dx}$

And now for the last little bit:

$\frac {d}{dx} (y^2 = c - x^2) \implies 2y\frac {dy}{dx} = -2x$

Is that so different from

$\frac {d}{dx} (x^2 + y^2 = c)\\ \frac {d}{dx} (x^2) + \frac {d}{dx} (y^2) = \frac {d}{dx} c \\ 2x + 2y\frac {dy}{dx} = 0\\ \frac{dy}{dx} = -\frac {x}{y}$

Does this help?

Doug M
  • 57,877
  • Please, please, please do not write $dg/df$. – Ted Shifrin Aug 17 '16 at 21:36
  • @TedShifrin why not? – Doug M Aug 17 '16 at 21:36
  • Because $g$ is not a function of the variable $f$. – Ted Shifrin Aug 18 '16 at 01:15
  • In the example above? Sure it is. It is a composition. g(f(x)) – Doug M Aug 18 '16 at 01:20
  • No, that's not what function means. You mean $\dfrac{dg}{dx}(f(x))$, since you gave $g$ as a function of $x$ to start with. It would be far clearer to give $g(u)=u^2$ and write $\dfrac{dg}{du}\big|_{u=f(x)}$. – Ted Shifrin Aug 18 '16 at 01:24
  • What do you see as the diference between what I wrote and what is says here "The chain rule may be written, in Leibniz's notation, in the following way. We consider z to be a function of the variable y, which is itself a function of x (y and z are therefore dependent variables), and so, z becomes a function of x as well: $ {\frac {dz}{dx}}={\frac {dz}{dy}}\cdot {\frac {dy}{dx}}$. https://en.wikipedia.org/wiki/Chain_rule in my composition $(g\circ f)(x), g$ has become a function of $f.$ and $f$ is a function of $x$ – Doug M Aug 18 '16 at 01:33
  • I'm not going to have an hour-long pedagogical debate with you here. $f$ is a function, not a variable. – Ted Shifrin Aug 18 '16 at 01:38
0

When you differentiate, you differentiate with respect to a variable. As you remember, a derivative $dx/dt$ essentially means how much does x change when t is changed by an extremely small amount.

Recall the chain rule, which is the rule for differentiating composite functions: $$ \frac{d}{dx}f(g(x)) = f'(g(x))g'(x) $$

In this case, you're differentiating with respect to $x$.

So for the $x^2$ term you can view this as the composition of these two functions $f(x) = x^2$ and $g(x) = x$. Applying the chain rule, you get $$ \frac{d}{dx}x^2 = \frac{d}{dx}x^2(\frac{d}{dx}x) = 2x $$

Now we get to the $y^2$ term. For this, your functions are $f(x) = x^2$ and $g(x) = y$. Again, applying the chain rule gives $$ \frac{d}{dx}y^2 = \frac{d}{dx}x^2(\frac{d}{dx}y) = 2x(y') $$

We have no information on the relationship between y and x, so all we can write is $\frac{dy}{dx}$ or $y'$ for short.

Samasambo
  • 351