Understanding the Chain Rule Proof: Explained with Examples

  • Context: Undergrad 
  • Thread starter Thread starter Дьявол
  • Start date Start date
  • Tags Tags
    Chain Chain rule Proof
Click For Summary

Discussion Overview

The discussion revolves around the chain rule in calculus, specifically its proof and application. Participants explore the notation and reasoning behind the chain rule, address misunderstandings, and analyze a flawed proof related to the chain rule.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions the validity of the expression (f \circ g)'(x) = f'(g(x)) g'(x) and expresses confusion over the notation used.
  • Another participant attempts to clarify that the notation f'(g(x)) on both sides of the equation is not equivalent, suggesting that the confusion arises from the notation itself.
  • Some participants discuss a flawed proof of the chain rule, noting that while it arrives at the correct formula, the reasoning presented is nonsensical and does not constitute a proper proof.
  • Examples are provided to illustrate how the chain rule works, including a specific function f(x) = (3x^2 + 6x - 9)^2, and the steps to differentiate it using the chain rule.
  • There is a debate over the ambiguity of the notation f'(u(x)), with some arguing it should be interpreted as df/du, while others maintain that it can lead to confusion regarding the variable of differentiation.
  • Participants discuss the importance of using consistent notation to avoid misunderstandings, particularly in the context of derivatives and the chain rule.
  • One participant expresses gratitude for the clarification received, while still seeking further understanding of the notation involved.
  • Another participant questions a specific calculation related to the derivative, suggesting a potential error in the simplification process.

Areas of Agreement / Disagreement

Participants express differing views on the clarity and correctness of the notation used in the context of the chain rule. While some agree on the fundamental principles of the chain rule, there is no consensus on the interpretation of certain notations and the validity of the flawed proof discussed.

Contextual Notes

Limitations in understanding arise from the use of ambiguous notation and the assumptions made about the functions involved. The discussion highlights the need for clarity in mathematical expressions, particularly when dealing with derivatives.

Дьявол
Messages
365
Reaction score
0
Hello! I got one question for you.

How come that (f \circ g)'(x) = f'(g(x)) g'(x) ?

Since (f \circ g)'(x)=f(g(x))' , f'(g(x))=f'(g(x)) g'(x). And now we can rewrite the equation like 1=g'(x)

I don't understand that part.

Also I don't understand why the flawed proof of the chain rule is incorrect?

y'=\lim_{dx \rightarrow 0}\frac {dy}{dx} = \lim_{dx \rightarrow 0}\frac {dy} {du} \cdot\frac {du}{dx}=\lim_{du \rightarrow 0}\frac {dy}{du} \cdot \lim_{dx \rightarrow 0}\frac {du}{dx}=f'(u)\cdot u'(x)

Thanks in advance.

Regards.
 
Physics news on Phys.org
Дьявол said:
Hello!
Hi Dyawol.

Дьявол said:
How come that (f \circ g)'(x) = f'(g(x)) g'(x) ?
That's precisely what the chain rule says, I will prove it below for you.

Дьявол said:
Since (f \circ g)'(x)=f(g(x))' , f'(g(x))=f'(g(x)) g'(x). And now we can rewrite the equation like 1=g'(x)

I don't understand that part.
I don't really understand either... what are you trying to do here? Your notation is confusing you, the f'(g(x)) on the left hand side is not the same as that on the right hand side...

Дьявол said:
Also I don't understand why the flawed proof of the chain rule is incorrect?

y'=\lim_{dx \rightarrow 0}\frac {dy}{dx} = \lim_{dx \rightarrow 0}\frac {dy} {du} \cdot\frac {du}{dx}=\lim_{du \rightarrow 0}\frac {dy}{du} \cdot \lim_{dx \rightarrow 0}\frac {du}{dx}=f'(u)\cdot u'(x)

Thanks in advance.

Regards.
Well actually it gives the correct formula (y' = f'(u) u'(x)) assuming y(x) = f(u(x)), although what is written down is nonsense.
y' = \frac{dy}{dx} = \frac{dy}{du} \frac{du}{dx}
is correct but I don't see what the limits are doing there, and actually it is just another way of writing f'(u) u'(x); so there is no proof here, you are just stating the chain rule.

Perhaps it is helpful to first consider an example of how the chain rule works. Suppose you have
f(x) = (3x^2 + 6x - 9)^2
and you are asked for f'(x).
Then you note that you don't know how to do this derivative (after going through your familiar list of derivatives of elementary functions, product rule and quotient rule) but that it looks a lot like a quadratic function. If you set u = u(x) = 3x^2 + 6x - 9 then you can simply write f(x) = f(u(x)) = u(x)^2, which we usually in a slight shorthand / notational abuse write as f(u(x)) = u^2 or f(x) = u^2 (which is slightly confusing perhaps, because it is not clear that there is still an x involved). Now this we know how to differentiate: the derivative of u^2 is just 2 u. So we would write
\frac{df}{du} = 2u
to indicate that if u were the variable we were interested in, the derivative of f would be 2u. But we don't want df/du, we want df/dx. The chain rule tells us, that what we wanted to calculate, df/dx, is given by
\frac{df}{dx} = \frac{df}{du} \cdot \frac{du}{dx},
i.e. we still have to multiply 2u by the derivative of u with x as the variable. Recalling that u was 3x^2 + 6x - 9, we can apply our standard repertoire of derivation tricks and get
\frac{du}{dx} = 6 x + 6

So, putting it all together, the answer we wanted it
f'(x) = \frac{df}{dx} = \frac{df}{du} \frac{du}{dx} = (2u) \cdot (6x + 6)
where we now have to write u back in terms of x:
f'(x) = (3x^2 + 6x - 9) \cdot (6x + 6)
which you could simplify to
f'(x) = 18(x^2 + 2x - 3)(x + 6).

Do you understand now the derivations with respect to x and u, and the notation
\frac{df}{du} \text{ and } \frac{df}{dx}?
Then you have to get used to the "mathematical" shorthand, where we usually write f'(x) if we mean df/du, u'(x) for du/dx; we can make up notations like f'(u) for df/du but I urge you to use the d.../d... notation, because f'(u(x)) is very ambiguous (this is what was confusing you in the first post: does the prime in f'(u(x)) indicate derivation with respect to u or x? That is, do you mean df/dx or df/du here?)
 
CompuChip said:
f'(u(x)) is very ambiguous (this is what was confusing you in the first post: does the prime in f'(u(x)) indicate derivation with respect to u or x? That is, do you mean df/dx or df/du here?)
I disagree with this. f'(u(x)) can only mean df/du, since the prime is on f. If you differentiate with respect to x, the function you're taking the derivative of isn't f. It's f\circ u, so you must write (f\circ u)'(x) (or \frac{d}{dx}f(u(x)) )
 
Last edited:
CompuChip said:
Hi Dyawol.


That's precisely what the chain rule says, I will prove it below for you.


I don't really understand either... what are you trying to do here? Your notation is confusing you, the f'(g(x)) on the left hand side is not the same as that on the right hand side...


Well actually it gives the correct formula (y' = f'(u) u'(x)) assuming y(x) = f(u(x)), although what is written down is nonsense.
y' = \frac{dy}{dx} = \frac{dy}{du} \frac{du}{dx}
is correct but I don't see what the limits are doing there, and actually it is just another way of writing f'(u) u'(x); so there is no proof here, you are just stating the chain rule.

Perhaps it is helpful to first consider an example of how the chain rule works. Suppose you have
f(x) = (3x^2 + 6x - 9)^2
and you are asked for f'(x).
Then you note that you don't know how to do this derivative (after going through your familiar list of derivatives of elementary functions, product rule and quotient rule) but that it looks a lot like a quadratic function. If you set u = u(x) = 3x^2 + 6x - 9 then you can simply write f(x) = f(u(x)) = u(x)^2, which we usually in a slight shorthand / notational abuse write as f(u(x)) = u^2 or f(x) = u^2 (which is slightly confusing perhaps, because it is not clear that there is still an x involved). Now this we know how to differentiate: the derivative of u^2 is just 2 u. So we would write
\frac{df}{du} = 2u
to indicate that if u were the variable we were interested in, the derivative of f would be 2u. But we don't want df/du, we want df/dx. The chain rule tells us, that what we wanted to calculate, df/dx, is given by
\frac{df}{dx} = \frac{df}{du} \cdot \frac{du}{dx},
i.e. we still have to multiply 2u by the derivative of u with x as the variable. Recalling that u was 3x^2 + 6x - 9, we can apply our standard repertoire of derivation tricks and get
\frac{du}{dx} = 6 x + 6

So, putting it all together, the answer we wanted it
f'(x) = \frac{df}{dx} = \frac{df}{du} \frac{du}{dx} = (2u) \cdot (6x + 6)
where we now have to write u back in terms of x:
f'(x) = (3x^2 + 6x - 9) \cdot (6x + 6)
which you could simplify to
f'(x) = 18(x^2 + 2x - 3)(x + 6).

Do you understand now the derivations with respect to x and u, and the notation
\frac{df}{du} \text{ and } \frac{df}{dx}?
Then you have to get used to the "mathematical" shorthand, where we usually write f'(x) if we mean df/du, u'(x) for du/dx; we can make up notations like f'(u) for df/du but I urge you to use the d.../d... notation, because f'(u(x)) is very ambiguous (this is what was confusing you in the first post: does the prime in f'(u(x)) indicate derivation with respect to u or x? That is, do you mean df/dx or df/du here?)
Thank you very much for the help CompuChip. It really helped me understand what it mean.

But I didn't understand one thing (the notation one), since f o g (x) = f(g(x))
So (f o g) ' (x) would probably mean f(g(x))'. Am I right?

< where we usually write f'(x) if we mean df/du

I think that you thought about f'(x)=df/dx

Also I think that you missed to multiply by 2, since there is 2u. So it would be f&#039;(x) = 36(x^2 + 2x - 3)(x + 6)

Thanks again for the help.

Regards.
 
Why do you have x + 6, if anything it should be x + 1 if you are taking the 6 out.
 
Дьявол said:
But I didn't understand one thing (the notation one), since f o g (x) = f(g(x))
So (f o g) ' (x) would probably mean f(g(x))'. Am I right?
You're right, assuming that what you mean by f(g(x))' is the value at x of the derivative of the function that takes any number y in the domain of g to f(g(y)). But you should never write f(g(x))'. The prime symbol should only appear on a function, and f(g(x)) is not a function. It's a number. The function that you have in mind can be written as x\mapsto f(g(x)) or f\circ g.

The derivative of that function can be written as (f\circ g)&#039;(x) or \frac{d}{dx}f(g(x)). Note that the dx in the denominator tells us that the function we're taking the derivative of is f\circ g. If we had been interested in the derivative of f at the point g(x), we would have written it as f&#039;(g(x)) or \frac{d}{dg}f(g(x)).
 
Last edited:
See also #4 and the beginning of #3 in this thread for more about differentials.
 
I don't see what's the problem here:
f(g(x))'=df/dx=(df/dg)(dg/dx)

The way you prove it is by looking at [f(g(x+h))-f(g(x))/(g(x+h)-g(x))][(g(x+h)-g(x))/h], where h->0.
 
  • #10
I'm not sure if you're talking to me or the OP, but the issue in this thread isn't just how to prove it, but to understand why you can't prove it just by canceling differentials in the expression

\frac{df}{dx}=\frac{df}{dg}\frac{dg}{dx}
 
  • #11
You can't just cancel differentials because dg may in fact be 0, in which case the above is nonsensical. Thus the use of differentials is only a heuristic, not a proof.
 
  • #12
shaggymoods said:
You can't just cancel differentials because dg may in fact be 0, in which case the above is nonsensical. Thus the use of differentials is only a heuristic, not a proof.

\lim_{\delta x \rightarrow dx}\frac{\delta y}{\delta u}\frac{\delta u}{\delta x}=\lim_{\delta x \rightarrow dx}\frac{\delta y}{\delta x}=\frac{dy}{dx}
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K