as x -> -2 from the left , the denominator (x+2) approaches a small negative value ... (-1)/(small negative) = large positive value

as x -> -2 from the right , the denominator (x+2) approaches a small positive value ... (-1)/(small positive) = large negative value