Let $f(x)= \frac{2 x}{4 x + 2}$. Then according to the definition of derivative
$f'(x) = \lim_{t\to x}$
(Your answer above will involve the variables $t$ and $x$.)
Taking the limit of this fractional expression gives us
$f'(x) =$