Improper integrals with badly-behaved functions are deceptive.
They look like normal definite integrals
,
but somewhere in the interval from a to b, possibly at one of the endpoints, there will be a vertical asymptote where the function f tends...