which of the following rational functions is graphed below

Answer:
D
Step-by-step explanation:
Since the asymptotes (the dotted lines) are at -2 and 0, this means the denominator must have factors which solve to x = -2 and 0. The factors are x+2 and x. This leaves only A and D as options. The U shape in the middle comes from the numerator and should be 1. This means D is the option.