I'm asked to investigate this integral,
$$\int_0^3 \frac{1}{(1-x)^2}\,\mathrm{d}x$$
I get -3/2, but the integrand has a discontinuity at $x=1$, so I can't just integrate it. What is the answer? And why do things go wrong when integrating over a discontinuity?
Also what about $$\int_{-1}^{1} \frac{1}{x}\,\mathrm{d}x$$
When evaluated it gives 0, but this is correct since the areas cancel.