If the function f(fx) = x3 + 2×2 + qx – 6 is divisible by…