Let f:R→R:f(x)=x+2 and g:R−{2}→R:g(x)=x2−4x−2
Show that f≠g. Re-define f and g such that f = g
We have, dom (f)=R and dom (g)=R−{2}
Since dom (f)≠dom (g), so we have f≠g.
For every real number x≠2, we have
g(x)=x2−4x−2=(x−2)(x+2)(x−2)=(x+2) [∵(x−2)≠0].
Thus, f(x)=g(x) for all xϵR−{2}
∴ f = g only when, they are re-defined as under.
f:R−{2}→R:f(x)=x+2 and g:R−{2}→R:g(x)=x2−4x−2