So say y is a product of functions of x. For convenience, let us suppose
$y = (2x²+1) . (x+2)$
If I were to differentiate this with respect to x, I could probably use this:
$If, Y = U.V$
$→ dY/dX = U.dV + V.dU$
For U and V being functions of X
Now, doing it for the chosen example,
$y = (2x²+1) . (x+2)$
$→ dy/dx = (2x²+1)(1) + (x+2)(4x) = 6x² + 8x + 1$
And my question is, if I multiply these out first, and then take the derivative, as in:
$y = 2x³ + 4x² + x + 3$
$→ dy/dx = 6x² + 8x + 1$
Why do I get the same answer? I mean from the "basics" of derivative, we ignore really small quantities, but in these two cases, aren't the two quantities we're ignoring different for each of them?
Now I know this should make sense algebraically that I didn't change anything so I get the same answer, but why doesn't that intuit me? Is there any kind of proof or derivation (in literal sense, and not calculus derivative) that can show this out happening for a general case?
I tried to prove it and ended up deriving the formula for derivative of functions in product form. But as for the "multiply-first" kind, I could not generalize it. Any help would be thanked.
When taking derivative of a product we have two options.
First option is ignoring the product rule of differentiation and just multiply first and differentiate the result. This is reasonable for simple cases such as $$ y = (2x²+1) . (x+2)$$ and of course we get the correct answer $$dy/dx = 6x² + 8x + 1.$$
The second method is to apply the product rule to get derivative of the same function. We have to come up with the same answer if the product rule is to provide us with the correct result. We are not ignoring anything, we are simply using a theorem which has been proved and it saves time and effort in many cases.
You will get the same result because you are taking derivative of the same function.
You will enjoy looking at a proof of the product rule in a calculus text to really believe that it works fine.