It is equal,
f(x)= x + x + x + x (x times) = x * x
Now,
f'(x) = (d/dx x) * x + x * (d/dx x)
f'(x) = 1 * x + x * 1
f'(x) = x + x = 2x = g'(x)