I need to find the derivative of this function:
$f(x)=x^2(x-2)^4$
I have gone about this two ways:
- Chain Rule inside a Power Rule
$$f(x)=x^2(x-2)^4$$ (I found the derivative of $(x-2)^4$ using the chain rule.) $$f'(x)=(x^2)(4)(x-2)^3(1)+(x-2)^4(2x)$$ $$f'(x)=4x^2(x-2)^3+2x(x-2)^4$$
- Power Rule only
$$f(x)=x^2(x-2)^4$$ $$f'(x)=(x^2)(4(x-2)^3)+(x-2)^4(2x)$$ $$f'(x)=4x^2(x-2)^3+2x(x-2)^4$$
My calculator gives me the same answer that I get in method 2. However the textbook says the answer to this problem is $2x(x-2)^3(3x-2)$
So, assuming the textbook is correct (it better be), what are my calculator and I doing wrong? Also, why does the using the chain rule inside of the power rule produce a different result? I only ask the second question because I was under the impression that the chain rule was just another shortcut for finding derivatives.
Both terms in $4x^2(x-2)^3+2x(x-2)^4$ are multiples of $2x$ and $(x-2)^3$. So factor them out: $$ 4x^2(x-2)^3+2x(x-2)^4 = 2x(x-2)^3[2x+(x-2)] = 2x(x-2)^3(3x-2) $$