The graph IS correct. But give a look at the scale on the vertical axis... Problem is that for x=10, is huge, so that we can't even distinguish (which would be the value for x=-10, approx.) from 0.

"Solution" is to adjust the extent of the values x is assumed to take: choose x1=-10:.1:5 instead, for instance.