I created this proof of the chainrule. Being a (relative) beginner at math I have a few questions.
- Is the proof below correct? I was especially in doubt about the use of $h$ on both sides.
- Is the (Langrange?) notation correct this way?
- How to write the same proof using Leibniz's notation? I wrestled writing this proof in Leibniz notation, because what would in that case be the meaning of $dg$? Is it $g(x+h)-g(x)$ or $k$ or $h$?
To be proved:
If $f(u)$ is differentiable at $u=g(x)$, and $g(x)$ is differentiable at $x$ then:
$$f(g(x))'\stackrel{?}{=}f'(g(x))g'(x)$$ Or similarly $$\lim \limits_{h \to 0}\frac{f(g(x+h))-f(g(x))}{h}\stackrel{?}{=}\lim \limits_{k \to 0}\frac{f(g(x)+k)-f(g(x))}{k}\lim \limits_{h \to 0}\frac{g(x+h)-g(x)}{h}$$
Case 1: if $h$ has a value such that $g(x+h)=g(x)$ then: $$\lim \limits_{h \to 0}\frac{f(g(x+h))-f(g(x))}{h}=0$$ And $$\lim \limits_{k \to 0}\frac{f(g(x)+k)-f(g(x))}{k}\lim \limits_{h \to 0}\frac{g(x+h)-g(x)}{h}=0$$
Both sides of the equation to prove equal zero, therefore the equation holds in this case.
Case 2: if $h$ has a value such that $g(x+h)\ne g(x)$ then:
We multiply the lefthandside by $\frac{g(x+h)-g(x)}{g(x+h)-g(x)}$ $$\lim \limits_{h \to 0}\frac{f(g(x+h))-f(g(x))}{h}=\lim \limits_{h \to 0}\frac{f(g(x+h))-f(g(x))}{g(x+h)-g(x)}\lim \limits_{h \to 0}\frac{g(x+h)-g(x)}{h}$$ Taking $$u=g(x)$$ $$k=g(x+h)-g(x)$$ We get $$\lim \limits_{h \to 0}\frac{f(g(x+h))-f(g(x))}{h}=\lim \limits_{h \to 0}\frac{f(u+k)-f(u)}{k}\lim \limits_{h \to 0}\frac{g(x+h)-g(x)}{h}$$ And as $h\to 0, k\to 0$, therefore $$\lim \limits_{h \to 0}\frac{f(g(x+h))-f(g(x))}{h}=\lim \limits_{k \to 0}\frac{f(u+k)-f(u)}{k}\lim \limits_{h \to 0}\frac{g(x+h)-g(x)}{h}$$ Thus $$f(g(x))'=f'(u)g'(x)=f'(g(x))g'(x) \tag*{$\blacksquare$}$$
One thing that's worth learning is the notation for the composition of $f$ and $g.$ We use $f\circ g$ to denote this function. I.e., $(f\circ g)(x) = f(g(x)).$
In your To be proved, we can use this notation. You wrote $f(g(x))' = f'(g(x))g'(x).$ The problem with this is that on the left you have $'$ followed by blank space, whereas on the right the $'$ symbols are followed by further notation. It's an inconsistency that can be corrected by writing
$$(f\circ g)'(x)=f'(g(x))g'(x).$$
On your paragraph that starts "Or similarly": You have
$$\lim \limits_{h \to 0}\frac{f(g(x+h))-f(g(x))}{h}$$ $$=\lim \limits_{k \to 0}\frac{f(g(x)+k)-f(g(x))}{k}\cdot\lim \limits_{h \to 0}\frac{g(x+h)-g(x)}{h}.$$
That is fine. You asked about having $h$ on both sides, but that is no problem whatsoever. In fact you could replace $k$ by $h$ on the right. The variable $h$ is called a "dummy variable", meaning any symbol could be used there (except for the symbols that already have meaning, like $x.$)
That's the small stuff. Others have pointed out the big mistakes, where you divide the proof into two cases: i) There is an $h\ne 0$ such that $g(x+h)-g(x) =0,$ and ii) There is an $h\ne 0$ such that $g(x+h)-g(x) \ne 0.$ Huge problem here: a few values of $h$ cannot tell you anything about about a limiting process, where we are letting $h\to 0$ through infinitely many values.
A better division into cases is this: case i) $g'(x)=0;$ case ii) $g'(x)\ne 0.$ How would the proofs go in these cases?
Proof for case i): Observe the following: There is a constant $C$ such that
$$|f(y)-f(g(x))|\le C|y-g(x)|$$
for all $y$ sufficiently close to $g(x).$ This follows from the existence of $f'(g(x)).$ Thus for small $h\ne 0,$
$$\left |\frac{f(g(x+h))-f(g(x))}{h} \right | \le C\frac{|g(x+h))-g(x)|}{|h|} \to C\cdot |g'(x)|=0.$$
Thus $(f\circ g)'(x) = 0,$ which is exactly what we want in this case.
Proof for case ii): This is the easy case. We need only observe that $g'(x)\ne 0$ implies $g(x+h)-g(x)\ne 0$ for all small nonzero $h.$ For such $h$ we can do what all beginners crave to do:
$$\frac{f(g(x+h))-f(g(x))}{h} = \frac{f(g(x+h))-f(g(x))}{g(x+h)-g(x)}\frac{g(x+h)-g(x)}{h} \to f'(g(x))g'(x).$$
I've been brief in these proofs. Please ask if you have questions.