You did not make a mistake when you said it was undefined. Since there is a division by zero when we plug in x = 2, we find E(x) for values of x near 2 from the left side and the right side. Find E(x) for values such as 1.9, 1.99, etc.. and 2.1, 2.01, etc.. You can see that it converges to some value. This is the .