After applying synthetic division twice and factoring the resulting quadratic polynomial, we can conclude that the complete factorization of the function

is

. Please check the step by step solution in the first image, and the graph of the function in the second one.