# Differentiating a Polynomial in brackets.

I have the question below:

My question here is as you can see I have dropped the power of two down in-front of the bracket and reduced the power. Is this way of solving the question incorrect? I have a feeling what I should of done is expand the brackets and then differentiate the individual variables?

Why can I not use the chain rule on this?

• This is in no way a differential equation. – Captain Lama Mar 6 '16 at 18:33

Following the chain rule for $h(x)=f(x)^2$ we have $h'(x)=2f'(x)f(x)$. Hence this equals $2f(x)$ only if $f'(x)=1$, i.e., $f(x)$ is of the form $x+c$. However, here you have $f(x)=-x+c$. Long story short, if you do expand the expression, you should see that the correct result is indeed significantly (pun!) different.
• You can use the chain rule, but you have to use it correctly. With $f(x)=20-x$ we have $f'(x)=-1$, so $h'(x)=2f'(x)f(x)=2\cdot(-1)\cdot (20-x)$. – Hagen von Eitzen Mar 6 '16 at 18:47