Notice that the graph passes through the point (-3,0), this means that the function f(x) has a root on x = -3. Then, we can use sintetic division to find the quotient of x+3 with f(x):
notice that on the last row, the last digit is 0, this means that the remainder is 0 and we can write f(x) in the following factored form: