The integration methods presented so far are considered “standard,” meaning every calculus student should know them. This section will discuss a few additional methods, some more common than others. One such method is the Leibniz integral rule for “differentiation under the integral sign.”[1] This powerful and useful method is best explained with a simple example.
Recall from Section 5.4 that
for any constant \(\alpha \ne 0\). This antiderivative involves the variable \(x\) and the constant \(\alpha\). The idea behind the Leibniz rule is to reverse those roles: view \(\alpha\) as the variable and \(x\) as a constant. The antiderivative is then seen as a function of \(\alpha\), and so its derivative can be taken with respect to \(\alpha\). The big leap that this method makes is to move the differentiation operation inside the integral:[2]
However, differentiating the right side of formula (6.14) shows that
Thus,
which can be verified via integration by parts with the tabular method:
What was actually done in the above example? A known integral,
was differentiated with respect to \(\alpha\) via the Leibniz rule to produce a new integral,
with the constant \(\alpha\) treated temporarily—only during the differentiation—as a variable. In general, that is how the Leibniz rule is used. Typically this means if you want to evaluate a certain integral with the Leibniz rule, then you “work backwards” to figure out which integral you need to differentiate with respect to some constant (e.g. \(\alpha\)) in the integrand.
Example 6.24
Use the Leibniz rule to evaluate \(~\displaystyle\int \frac{\dx}{(1 + x^2)^2}~\).
Solution: By formula (5.4) in Section 5.4,
for any constant \(a > 0\). So differentiate both sides with respect to \(a\):
That general formula is useful in itself. In particular, for \(a=1\),
which agrees with the result from Example 6.17 in Section 6.3.
Notice that there was no generic constant (e.g. \(a\) or \(\alpha\)) in the
statement of the problem. When that happens, you will need to figure out where
the constant should be in order to use the Leibniz rule.
You can also use differentiation under the integral sign to evaluate definite integrals.
Example 6.25
Show that \(~\displaystyle\int_0^{\infty} e^{-x^2} \,\dx ~=~ \tfrac{1}{2}\sqrt{\pi}~\).
Solution: Let \(I = \int_0^{\infty} e^{-x^2} \,\dx\). The integral is convergent, since by Exercise 11 in Section 4.4, for all \(x\)
implies \(I\) is convergent by the Comparison Test, since \(\int_0^{\infty} \frac{1}{1 + x^2}\,\dx\) is convergent (and equals \(\tfrac{1}{2}\pi\)) by Example 5.32 in Section 5.5. For \(\alpha \ge 0\), define
Then clearly \(\phi(0) = 0\), and differentiating under the integral sign shows
The substitution \(y = \alpha x\), so that \(\dy = \alpha\,\dx\), shows \(\phi(\alpha)\) can be written as
Also, for \(\alpha > 0\),
However, by the Fundamental Theorem of Calculus.
Thus,
which is the desired result.
One immediate consequence of Example 6.25 is that
since \(e^{-x^2}\) is an even function. The following example shows another consequence, as well as how useful substitutions can be in writing integrals in a different form.
Example 6.26
Show that the Gamma function \(\Gamma\,(t)\) can be written as
and that \(\Gamma\,\left(\tfrac{1}{2}\right) ~=~ \sqrt{\pi}\).
Solution: Let \(x = y^2\), so that \(\dx = 2y\;\dy\). Then \(x=0~\Rightarrow~y=0~\) and \(x=\infty~\Rightarrow~y=\infty\), so
In this form, with the help of Example 6.25 it is now easy to evaluate \(\Gamma\,\left(\tfrac{1}{2}\right)\):
A function closely related to the Gamma function is the Beta function \(B(x,y)\), defined by:
It can be shown that[3]
Example 6.27
Show that the Beta function \(B(x,y)\) can be written as
Solution: Let \(u=\frac{t}{1-t}\), so that \(t=\frac{u}{1+u}\), \(1-t=\frac{1}{1+u}\), and \(\dt = \frac{\du}{(1+u)^2}\). Then \(t=0~\Rightarrow~u=0\) and \(t=1~\Rightarrow~u=\infty\), so
Another application of substitutions in integrals is in the evaluation of fractional derivatives. Recall from Section 1.6 that the zero-th derivative of a function is just the function itself, and that derivatives of order \(n\) are well-defined for integer values \(n \ge 1\). It turns out that derivatives of fractional orders (e.g. \(n=\frac{1}{2}\)) can be defined, with the Riemann-Louiville definition being the most common:
Definition 6.1
For all \(0 < \alpha < 1\), the fractional derivative of order \(\alpha\) of a function \(f(x)\) is
Example 6.28
Calculate \(~\dfrac{d^{1/2}}{\dx^{1/2}}\,(x)~\).
Solution: Here \(\alpha = \frac{1}{2}\) and \(f(x)=x\), so that
since \(\Gamma\,\left(\tfrac{1}{2}\right) ~=~ \sqrt{\pi}\) by Example 6.26. Use the substitution \(u=\sqrt{x-t}\), so that \(t=x-u^2\) and \(\dt=-2u\,\du\). Then \(t=0~\Rightarrow~u=\sqrt{x}~\) and \(t=x~\Rightarrow~u=0\), so
Part of the motivation for creating fractional derivatives was to find if it were possible to take two “half” derivatives to form a “whole” derivative:
It is left as an exercise to show that the above relation does hold for the function \(f(x) = x\). Derivatives with fractional order \(0 < \alpha < 1\) and integer order \(n \ge 1\) can be combined by taking the derivative of integer order first:[4]
Recall from Section 6.3 that the trigonometric substitution \(x=r\,\cos\,\theta\)—or its sister substitution \(x=r\,\sin\,\theta\)—was motivated by trying to find the area of a circle of radius \(r\). To simplify matters, let \(r=1\) so that points on the unit circle can be identified with the angle \(\theta\) via that substitution, with \(\theta\) as shown in Figure 6.5.1(a) below.
Figure 6.5.1(b) shows a different identification of points on the unit circle—by slope. This will be the basis for a half-angle substitution for evaluating certain integrals.
Let \(A\) be the point \((-1,0)\), then for any other point \(P\) on the unit circle draw a line from \(A\) through \(P\) until it intersects the line \(x=1\), as shown in Figure 6.5.2 below:
From geometry you know that the inscribed angle that the line \(\overline{AP}\) makes with the \(x\)-axis is half the measure of the central angle \(\theta\). So the slope of \(\overline{AP}\) is the tangent of that angle: \(\tan\,\frac{1}{2}\theta = \frac{t}{1} = t\), which is measured along the \(y\)-axis and can take any real value. Each point on the unit circle—except \(A\)—can be identified with that slope \(t\). Figure 6.5.2 shows only positive slopes—reflect the picture about the \(x\)-axis for negative slopes. The figure shows that
so that by the double-angle identities for sine and cosine,
and
Since \(\theta = 2\,\tan^{-1} \,t\), then
Below is a summary of the substitution:
The half-angle substitution thus turns rational functions of \(\sin\,\theta\) and \(\cos\,\theta\) into rational functions of \(t\), which can be integrated using partial fractions or another method.
Example 6.29
Evaluate \(~\displaystyle\int \frac{\dtheta}{1 \;+\; \sin\,\theta \;+\; \cos\,\theta} \).
Solution: Using \(t = \tan\,\tfrac{1}{2}\theta\), the denominator of the integrand is
so that
Example 6.30
Evaluate \(~\displaystyle\int \frac{\dtheta}{3\,\sin\,\theta \;+\; 4\,\cos\,\theta}~\).
Solution: Using \(t = \tan\,\tfrac{1}{2}\theta\), the integral becomes
where
Thus,
By the half-angle substitution \(t = \tan\,\tfrac{1}{2}\theta\),
which yields the useful half-angle identities:[5]
Theorem 6.7
Example 6.31
Evaluate \(~\displaystyle\int \frac{\sin\,\theta}{1 \;+\; \cos\,\theta}\,\dtheta~\).
Solution: Though you could use the half-angle substitution \(t = \tan\,\tfrac{1}{2}\theta\), it is easier to use the half-angle identity (6.18) directly, since
by formula (6.11) in Section 6.3.
A
For Exercises 1-12, evaluate the given integral.
4
\(\displaystyle\int \frac{1 \;-\; 2\,\cos\,\theta}{\sin\,\theta}\;\dtheta\)
\(\displaystyle\int \frac{\dtheta}{3 \;-\; 5\,\sin\,\theta}\)
\(\displaystyle\int \frac{\dtheta}{2 \;-\; \sin\,\theta}\)
\(\displaystyle\int \frac{\dtheta}{4 \;+\; \sin\,\theta}\)
4
\(\displaystyle\int \frac{\sin\,\theta}{2 \;-\; \sin\,\theta}\;\dtheta\)
\(\displaystyle\int \frac{\dtheta}{5 \;-\; 3\,\cos\,\theta}\)
\(\displaystyle\int \frac{\dtheta}{1 \;+\; \sin\,\theta \;-\; \cos\,\theta}\)
\(\displaystyle\int \frac{\dtheta}{1 \;-\; \sin\,\theta \;+\; \cos\,\theta}\)
4
\(\displaystyle\int \frac{\cot\,\theta}{1 \;+\; \sin\,\theta}\;\dtheta\)
\(\displaystyle\int \frac{1 \;-\; \cos\,\theta}{3\,\sin\,\theta}\;\dtheta\)
\(\displaystyle\int_{-\infty}^{\infty} e^{-x^2/2}\,\dx\)
\(\displaystyle\int_{-\infty}^{\infty} x^2 \,e^{-x^6}\,\dx\)
Consider the integral \(~\displaystyle\int \frac{\sin\,\theta}{1 \;+\; \cos\,\theta}\,\dtheta~\) from Example 6.31.
Evaluate the integral using the substitution \(u=1 + \cos\,\theta\).
Evaluate the integral using the half-angle substitution \(t = \tan\,\tfrac{1}{2}\theta\).
Show that the answers from parts (a) and (b) are equivalent to the result from Example 6.31.
B
[r]
Evaluate the integral \(~\displaystyle\int \frac{\dtheta}{3\,\sin\,\theta \;+\; 4\,\cos\,\theta}~\) from Example 6.30 by noting that
\begin{align*} \int \frac{\dtheta}{3\,\sin\,\theta \;+\; 4\,\cos\,\theta} ~&=~ \int \frac{\dtheta}{5\,\left(\frac{3}{5}\,\sin\,\theta \;+\; \frac{4}{5}\,\cos\,\theta\right)}\\[5pt] &=~ \int \frac{\dtheta}{5\,\left(\cos\,\phi\;\sin\,\theta \;+\; \sin\,\phi\;\cos\,\theta\right)}\\[5pt] &=~ \int \frac{\dtheta}{5\,\sin\,(\theta + \phi)} ~=~ \frac{1}{5}\,\int \csc\,(\theta + \phi)~\dtheta \end{align*}by the sine addition formula, where \(\phi\) is the angle in the right triangle shown above. Complete the integration and show that your answer is equivalent to the result from Example 6.30.
Show directly from the definition of the Beta function that \(B(x,y) = B(y,x)\) for all \(x > 0\) and \(y > 0\).
Show that the Beta function \(B(x,y)\) can be written as
\[ B(x,y) ~=~ \int_0^{\pi/2} 2\,\sin^{2x-1}(\theta)~\cos^{2y-1}(\theta)~\dtheta \qquad\text{for all $x > 0$ and $y > 0$.} \]Use Exercise 16 and formula (6.16) to show that
\[ \int_0^{\pi/2} \sin^{m}\theta~\cos^{n}\theta~\dtheta ~=~ \frac{\Gamma\,\left(\dfrac{m+1}{2}\right) \; \Gamma\,\left(\dfrac{n+1}{2}\right)}{2\,\Gamma\,\left(\dfrac{m+n}{2} + 1\right)} \qquad\text{for all $m > -1$ and $n > -1$.} \]Use Exercise 28 from Section 6.1, as well as Exercise 17 above, to show that for \(m=1\), \(2\), \(3\), \(\ldots\),
\[ \int_0^{\pi/2} \sin^{2m}\theta~\dtheta ~=~ \frac{\sqrt{\pi}\;\Gamma\,\left(m + \frac{1}{2}\right)}{2\,(m!)} \qquad\text{and}\qquad \int_0^{\pi/2} \sin^{2m+1}\theta~\dtheta ~=~ \frac{\sqrt{\pi}\;(m!)}{2\,\Gamma\,\left(m + \frac{3}{2}\right)} ~. \]2
Show that \(~\displaystyle\int_0^{\infty} \dfrac{\ln\,x}{1 + x^2}\,\dx ~=~ 0\).
Show that \(~\displaystyle\int_0^{\infty} \dfrac{x^a}{a^x}\,\dx ~=~ \dfrac{\Gamma\,(a+1)}{(\ln\,a)^{a+1}}~\) for \(a > 1\).
Use the result from Example 6.28 to show that
\[ \frac{d^{1/2}}{\dx^{1/2}}\,\left(\frac{d^{1/2}}{\dx^{1/2}}\,(x)\right) ~=~ 1 ~=~ \ddx\,(x) ~. \]2
Calculate \(~\dfrac{d^{1/2}}{\dx^{1/2}}\,(c)~\) for all constants \(c\).
Calculate \(~\dfrac{d^{1/3}}{\dx^{1/3}}\,(x)~\).
Show that \(~\displaystyle\int_0^1 \dfrac{1}{\sqrt{1 - x^n}}\,\dx ~=~ \tfrac{1}{n}\,B\left(\tfrac{1}{n},\tfrac{1}{2}\right)~\) for \(n \ge 1\).
Show that the Gamma function \(\Gamma\,(t)\) can be written as
\[ \Gamma\,(t) ~=~ p^t\,\int_0^{\infty} u^{t-1} \,e^{-pu}~\du \quad\text{for all $t > 0$ and $p > 0$.} \]Show that the Gamma function \(\Gamma\,(t)\) can be written as
\[ \Gamma\,(t) ~=~ \int_0^1 \left(\ln\,\left(\frac{1}{u}\right)\right)^{t-1}\,\du \quad\text{for all $t > 0$.} \]Using the result from Exercise 27 in Section 6.1 that
\[ \int e^{ax}\,\cos\,bx~\dx ~=~ \frac{e^{ax}\,(a\,\cos\,bx ~+~ b\,\sin\,bx)}{a^2 + b^2} \]for all constants \(a\) and \(b \ne 0\), differentiate under the integral sign to show that for all \(\alpha > 0\)
\[ \int_0^{\infty} x\,e^{-x} \sin\,\alpha x~\dx ~=~ \frac{2 \alpha}{(1 + \alpha^2)^2} ~. \]
C
Use the Leibniz rule and formula (6.8) from Section 6.3 to show that for all \(a > 0\),
\[ \int \frac{\dx}{\sqrt{a^2 + x^2}} ~=~ \ln\;\Abs{x + \sqrt{a^2 + x^2}\,} ~+~ C ~. \]Use Example 6.27 to show that the Beta function satisfies the relation
\[ B(x,1-x) ~=~ \int_0^1 \,\frac{t^{-x} \;+\; t^{x-1}}{1 + t}\,\dt \quad\text{for all $0 < x < 1$.} \](Hint: First use a substitution to show that \(\displaystyle\int_0^{\infty} \dfrac{u^{x-1}}{1 + u}\,\du = \displaystyle\int_0^{\infty} \dfrac{t^{-x}}{1 + t}\,\dt\).)
Show that for all \(a > -1\),
\[ \int_0^{\pi/2} \frac{\dtheta}{1 \;+\; a\,\sin^2 \theta} ~=~ \frac{\pi}{2\,\sqrt{1+a}} ~. \]
- The renowned physicist Richard Feynman (1918-1988) famously lamented that the technique was no longer being taught. See p.72 in Feynman, R.P., Surely You’re Joking, Mr. Feynman!, New York: Bantam Books, 1986. ↩
- It can be proved that this is valid when the derivative of the integrand is a continuous function of \(\alpha\), which will always be the case in this book. See pp.121-122 in Sokolnikoff, I.S., Advanced Calculus, New York: McGraw-Hill Book Company, Inc., 1939. ↩
- See p.18-19 in Rainville, E.D., Special Functions, New York: Chelsea Publishing Company, 1971. ↩
- For more details about fractional derivatives, as well as examples of their applications in physics and engineering, see Oldham, K.B. and J. Spanier, The Fractional Calculus, New York: Academic Press, 1974. ↩
- For a different derivation, see pp.79-80 in Corral, M., Trigonometry, http://mecmath.net/trig/, 2009. ↩
Half-angle substitution: The substitution \(t = \tan\,\tfrac{1}{2}\theta\) yields: