Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here i'm asking again. This time is about Chain Rule:

Apply the chain rule to calculate: $\frac{\partial^2 f}{\partial x^2} $

$\ f=f(x,g(x,y)) $

I have a trouble in the the first member of F becouse I don't know how to write correctly.

if x was another fuction like h(x,y), then $\ f=f(h(x,y),g(x,y)) $ i write:

$$\frac{\partial f}{\partial x} = \frac{\partial f}{\partial h}\frac{\partial h}{\partial x} + \frac{\partial f}{\partial g}\frac{\partial g}{\partial x} $$

but no. how to write correctly

$\frac{\partial^2 f}{\partial x^2} $ where $\ f=f(x,g(x,y)) $

Sorry for my bad english.

share|cite|improve this question
Do you mean $\frac{\partial^2 f}{\partial x^2}$ instead of $\frac{\partial f^2}{\partial x^2}$? Because the latter doesn't make a lot of sense. – Javier Apr 25 '13 at 2:22
@JavierBadia Yes! Thanks! – Argentino2013 Apr 25 '13 at 2:38

You can use total differential concept such as (by skipping dy) $$df(x,g(x,y))=\frac{\partial f}{\partial x}dx+\frac{\partial f}{\partial g}\frac{\partial g}{\partial x}dx$$ $$\Rightarrow \frac{d f}{d x}=\frac{\partial f}{\partial x}+\frac{\partial f}{\partial g}\frac{\partial g}{\partial x}$$ and for second order $$d^2f(x,g(x,y))=\frac{\partial^2 f}{\partial x^2}(dx)^2+\frac{\partial^2 f}{\partial g^2}\bigg(\frac{\partial g}{\partial x}dx\bigg)^2+\frac{\partial f}{\partial g}\frac{\partial^2 g}{\partial x^2}(dx)^2$$ $$\Rightarrow \frac{d^2 f}{d x^2}=\frac{\partial^2 f}{\partial x^2}+\frac{\partial^2 f}{\partial g^2}\bigg(\frac{\partial g}{\partial x}\bigg)^2+\frac{\partial f}{\partial g}\frac{\partial^2 g}{\partial x^2}$$

share|cite|improve this answer

You know the formula for $f = f(h(x,y),g(x,y))$. Simply replace $h(x,y) = x$ and you should be done.

share|cite|improve this answer
Yes, but i think that this is not correct: $$\frac{\partial f}{\partial x} = \frac{\partial f}{\partial x}\frac{\partial x}{\partial x} + \frac{\partial f}{\partial g}\frac{\partial g}{\partial x} $$ – Argentino2013 Apr 25 '13 at 2:39
may be this? $$\frac{\partial f}{\partial x} = \frac{\partial f}{\partial x} + \frac{\partial f}{\partial g}\frac{\partial g}{\partial x} $$ then, $$\frac{\partial f}{\partial x} = 1 + \frac{\partial f}{\partial g}\frac{\partial g}{\partial x} $$ – Argentino2013 Apr 25 '13 at 2:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.