If g(x) is a factor of f(x), then the remainder will be zero that is g(x) = 0.
g(x) = x – 7 = 0, then x = 7
Remainder = f(7)
Now,
f(7) = (7)3 – 6(7)2 – 19 x 7 + 84
= 343 – 294 – 133 + 84
= 343 + 84 – 294 – 133
= 0
Therefore, g(x) is a factor of f(x).