consider $$f(x)=\frac{1}{2x-4}$$
The derivative should be $\displaystyle -\frac{1}{2(2x-4)^2}$ However I get $\displaystyle -\frac{2}{(2x-4)^2}$
my workflow: $$\begin{array}{} f'(x)&= &(2x-4)^{-1} \\ &=&-1(2)(2x-4)^{-2} \\ &=&-2(2x-4)^{-2} \end{array}$$
So why does the -2 multiply the denominator and not the numerator? After all, $\displaystyle 2\frac{1}{2}$ is 1 not $\displaystyle \frac{1}{4}$. I feel like I'm missing the obvious.
Thanks all.