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 towards ∞ or -∞.

In fact, the function may have more than one vertical asymptote in the interval of integration.

Because of all these possibilities for bad behavior, we recommend graphing functions and looking at their formulas before trying to integrate. Be on the lookout for bad behavior! You want to catch all the places where the function is badly-behaved.
To evaluate this type of improper integral, the first thing we have to do is figure out where the function is badly behaved. Then we can write the improper integral as the limit it really is, work out the integral inside the limit, and finally evaluate the limit.
Badly-Behaved at One Endpoint
We'll start with improper integrals where the function is badly behaved at one limit of integration, but nowhere else.

Every other improper integral with a badly-behaved function can be broken down into integrals like this.
Convergence and Divergence
There's weird stuff going on again. If we take p > 1, the integral

diverges. If we take p < 1, the integral converges. This is the opposite of what happened with the other type of improper integral.
To take an example, on the interval [0,1] the area between
and the x-axis is infinite but the area between
and the x-axis is finite. The graphs don't even look that different. It's perfectly normal if this makes your brain bend a little.
When talking about things "converging" or "diverging," make sure you say whether you're talking about a function or an integral. The function
diverges as x approaches 0. However, the integral

converges. This means we can have a function diverge but a closely associated improper integral diverge. It's also possible for both the function and an improper integral to diverge. The function
diverges as x approaches 0, and so does its improper integral

Badly-Behaved in the Middle
If a function is badly-behaved in between its limits of integration, we split the improper integral into two pieces. We do this by making a new endpoint at the value of x where the function is badly-behaved. Suppose that

is an improper integral because f has a vertical asymptote at x = b:

Then we split the integral into two new improper integrals:

The function f is badly behaved at just one limit of integration for each of these improper integrals.
When we do this, it's important to remember that

are both improper integrals, and thus are both limits. Both of these limits must exist in order for

to exist. Said another way, if either

diverges, then

diverges also.
There's both good news and bad news here. The good news is that if we find one of the new improper integrals diverges, we're done with the problem. The bad news is that if both of the new improper integrals converge, we have to work out both of them! This is the same good news / bad news we got for the other type of integral.
Practice:
Determine whether 
converges or diverges. If it converges, find its value. Graph the region whose area is represented by this integral. | |
By looking at the function or its graph we can see that is badly behaved at the lower limit of integration, x = 0. This means when we rewrite the integral as a limit we need to change the lower limit of integration. 
We know how to work out this integral. 
Since ln b approaches -∞ as b approaches 0 from the right, this limit does not exist. The integral 
diverges. The area of this region is infinite. As we mentioned before, you should be careful with your notation. For these improper integrals, we have one thing to add to that discussion. When we write out the improper integrals as limits, we need to use one-sided limits. In the case of the integral 
we had a one-sided limit as b approached 0 from the right. If the function were badly behaved at the right endpoint of integration, we would have a one-sided limit with b approaching the endpoint from the left. | |
Determine whether 
converges or diverges. If it converges, find its value. Graph the region whose weighted area is represented by this integral. | |
On this interval, is badly behaved at the upper limit of integration.
This means
when we rewrite the integral as a limit we need to change the upper limit of integration, and use a one-sided limit with b approaching 0 from the left. 
We work out the integral as before: 
This limit diverges, and so the original integral diverges also. This area is infinite. | |
Determine whether 
converges or diverges. | |
This function has an asymptote at 0: This means we have to split up the improper integral: 
Since we already know that 
diverges, the original integral diverges also. Here's the wrong way to find 
We pretend it's a normal definite integral: 
We'll say again: this is wrong. This is not a definite integral; it's a weird improper integral that we can't evaluate without doing weird limit stuff. Before doing any integral, graph your function and check for bad behavior! | |
Determine whether the integral converges or diverges. Indicate on a graph the region whose weighted area is given by the integral. If the integral converges, find its value.

Answer
This function is badly behaved at the upper limit of integration x = 0. We write the improper integral as a limit, work out the integral, then evaluate the limit.

This integral diverges, since
approaches ∞ as b approaches 0. That means the area of this region is infinite.
Determine whether the integral converges or diverges. Indicate on a graph the region whose weighted area is given by the integral. If the integral converges, find its value.

Answer
This function is badly behaved at x = 0, which is the lower limit of integration. We write out the improper integral as the limit it is, then evaluate:

As b approaches 0, the quantity b.6 also approaches 0. So the integral converges to
.

Determine whether the integral converges or diverges. Indicate on a graph the region whose weighted area is given by the integral. If the integral converges, find its value.

Answer
This function is badly behaved at x = 1, which is the lower limit of integration. We write the improper integral as the appropriate limit and work out the integral:

As b approaches 1 the quantity (b – 1)1/2 approaches 0. The integral converges to 2.
Determine whether the integral converges or diverges. Indicate on a graph the region whose weighted area is given by the integral. If the integral converges, find its value.
for p > 1
Answer
This integral is badly behaved at x = 0. We worked out the antiderivative of
in another problem.

Since the quantity p – 1 is positive, as b approaches 0 the quantity bp – 1 will also approach 0. Then the fraction

will approach ∞. The limit does not exist, so the integral

diverges.
Determine whether the integral converges or diverges. Indicate on a graph the region whose weighted area is given by the integral. If the integral converges, find its value.
for p < 1
Answer
This integral is also badly behaved at x = 0. Most of the work is the same as in the previous problem. We don't need to change anything until we get to this step:

At this point, since p < 1, the exponent p – 1 is negative. As b approaches 0 the quantity bp – 1 will approach ∞, and so the term

will approach 0. The limit converges to

Since p < 1 the quantity
is positive, which is reassuring since the area between
and the x-axis on (0,1] is all above the x-axis.
Determine whether each statement is true or false. Explain your answers.
If
does not exist, then

must diverge.
Answer
False. Take the graph of
on the interval [-1,0). This graph is the graph of
reflected over the y-axis.
Then
does not exist and
converges.
If
does not exist, then

must converge.
Answer
False. If we take the graph of
on the interval [-1,0), then
does not exist and

diverges.
Determine whether the integral converges or diverges, and find its value if it converges.

Answer
This function is definitely weird at 0. We break up the integral into two pieces, splitting the interval at x = 0:

Let's integrate the one with non-negative limits of integration first, since this integral looks more likely to diverge and save us work.

As b approaches 0 the quantity
approaches ∞, which means e1/b approaches ∞ also. This integral diverges, which means the original integral diverges. We don't have to bother with the other integral.
Determine whether the integral converges or diverges, and find its value if it converges.

Answer
This function is weird at x = 1. So we split the integral at x = 1.

Let's start with the right-most integral. When x is in the interval (1,2] the quantity x – 1 is positive, so we can drop the absolute value signs in the denominator.

As b approaches 1, the quantity b – 1 approaches 0 and so the quantity 2((b) – 1)1/2 approaches 0 also. This means we have a convergent integral:

Now for the other integral. Since x – 1 is negative when 0 < x < 1, we can get rid of the absolute value signs in the denominator by writing
|x – 1| = -(x – 1) = 1 – x.
We have to use substitution to find the antiderivative, since x has a coefficient of -1.

As b approaches 1, the quantity 2(1 – (b))1/2 approaches 0, so we're left with

Putting everything together, we see that our original integral converges:
