By the previous discussion, every element of g must be zero. So:
g = 0 = (0, 0, 0)T
The dot product is distributive with respect to vector addition:
a · (b + c) = a · b + a · c
This looks reasonable, but be careful that you understand what it says. In particular, the "+" on either side of "=" mean different things.