In this activity, we will take a look at a rather tricky improper integral.

Perhaps you have lain awake at night, thinking it is impossible to calculate . After all, we typically evaluate improper integrals by first computing a proper integral and then taking limits. That strategy uses the Second Fundamental Theorem of Calculus, but there is no closed-form expression for . Thankfully, we have other methods at our disposal. But we’ll need to proceed with finesse since we don’t have the heavy machinery of multivariable calculus.
Let’s first define a few functions that will help us out. The first function looks relevant, but it’s not clear yet how the other ones will help us. Still, let’s move on by exploring .

Next, let’s find . We can find the derivative of using the First Fundamental Theorem of CalculusSecond Fundamental Theorem of CalculusThird Fundamental Theorem of CalculusFundamental Theorem of AlgebraFundamental Theorem of Riemannian Geometry . Now even though the limits of integration in don’t depend on , the integrand does. So to evaluate , you may simply pull the derivative (with respect to ) inside and treat like a constant.

Try to simplify the answer above to get where the last change has been made to trigger your desire to integrate by substitution. So we set , so that .
We shouldn’t forget about our limits of integration! When , . When , .
Putting it all together, we get But is just a dummy variable, so doesn’t that second integral look a lot like ? In other words, . That means our function is constant; it’s always . That’s a shock! So on one hand, On the other hand, But This means We may solve to get And finally, since is an even function, You may sleep soundly tonight.