I mean if you want to be technical about it,
Let g(x) = x/x × f(x), h(x) = 1 × f(x) = f(x)
g = h iff f is undefined for 0
For all x where g is defined, f(x) = g(x) = h(x)