Notice that the graph has two vertical asymptotes at x= - 1 and x=3, also when x tends to 3 the graph tends to infinity, and the function has x=1 as a double root, therefore the function has to have the following form ( not yet the exact function):
Now, to compute the value of k we use the y-intercept,
Finally, the equation for the function graphed is: