I am a little confused by one of the primary steps taken to prove this useful rule.
We know that$$\frac{d}{dx}[f(x)g(x)]= \lim_{h\to0} \frac{f(x+h)g(x+h)-f(x)g(x)}{h}.$$
This is where i am confused. Looking at this equation there is not much if anything we can do. So how i was taught this proof, we would add
$-g(x+h)f(x)+g(x+h)f(x)$ to the numerator in order to manipulate it, then simplify it to get the product rule, but what confuses me is how $-g(x+h)f(x)+g(x+h)f(x)$ was put into the fraction in the first place, multipication? and also why that specific set was chosen to be added(appart from the fact that adding a sum and difference value wont change the total value of the original equation). Was it because whoever was playing around with this knew it would simplify neatly?
Thanks
Given the derivative of $f(x)\cdot g(x)$, you get this with the limit definition of the derivative as you mentioned:
$$\lim_{h\to0} {f(x+h)g(x+h)-f(x)g(x) \over h}$$
Which you can manipulate by subtracting and adding $f(x+h)g(x)$ because that does not change the overall value of the expression, because subtracting then adding the same thing results in zero:
$$\lim_{h\to0} {f(x+h)g(x+h)-f(x)g(x) \over h} = \lim_{h\to0} {f(x+h)g(x+h)-f(x+h)g(x)+f(x+h)g(x)-f(x)g(x) \over h}$$
And then you can split the single limit into two:
$$\lim_{h\to0} {f(x+h)g(x+h)-f(x+h)g(x) \over h} + \lim_{h\to0} {f(x+h)g(x)-f(x)g(x) \over h}$$
Then factor:
$$\lim_{h\to0} {f(x+h)(g(x+h)-g(x)) \over h} + \lim_{h\to0} {g(x)(f(x+h)-f(x)) \over h}$$
Which then you can rewrite and evaluate:
$$\lim_{h\to0} f(x+h){g(x+h)-g(x) \over h} + \lim_{h\to0} g(x){f(x+h)-f(x) \over h}=f(x)g'(x)+g(x)f'(x)$$