Tag Archives: integration

Integration by Partial Fractions Problems

This page contains solutions to the following problems

$$\int \! \frac{1}{x \left( M – x \right) } \, dx$$
$$\int \! \frac{1}{ \left( ax + b \right) \left( cx + d \right) } \, dx$$
$$\int \! \frac{ \left( kx + l \right) }{ \left( ax + b \right) \left( cx + d \right) } \ dx$$

\( \displaystyle \int \! \frac{1}{x \left( M – x \right) } \ dx \)

Begin by decomposing the integrand.

$$ \frac{1}{x \left( M – x \right) } = \frac{A}{ x } + \frac{B}{ M – x } $$

Multiply through by \( x \left( M – x \right) \)

$$ 1 = A \left( M – x \right) + B x $$

If \( x = M \) then \( B = \frac{1}{ M } \)

If \( x = 0 \) then \( A = \frac{1}{ M } \)

therefore,

$$ \int \! \frac{1}{x \left( M – x \right) } \, dx = \frac{1}{M} \int \! \frac{1}{ x } \, dx + \frac{1}{M} \int \! \frac{1}{ M – x } \, dx $$
$$ \int \! \frac{1}{x \left( M – x \right) } = \frac{1}{M} \ln \left| x \right| – \frac{1}{M} \ln \left| M – x \right| + C = \frac{1}{M} \ln \left| \frac{x}{M – x} \right| + C$$

\( \displaystyle \int \! \frac{1}{ \left( ax + b \right) \left( cx + d \right) } \, dx \)

Decompose the integrand

$$ \frac{1}{ \left( ax + b \right) \left( cx + d \right) } = \frac{A}{ \left( ax + b \right)} \frac{B}{ \left( cx + d \right) }$$

Multiply through by \( \left( ax + b \right) \left( cx + d \right) \)

$$ 1 = A \left( cx + d \right) + B \left( ax + b \right) $$

If \( x = – \frac{d}{c} \), then \( 1 = B \left( a \left( -\frac{d}{c} \right) + b \right) \) yielding

$$ B = \frac{c}{ bc – ad } $$

Simimlarly,

If \( x = – \frac{b}{a} \), then \( 1 = A \left( c \left( -\frac{b}{a} \right) + d \right) \) and

$$ A = \frac{a}{ ad – bc } $$

substituting

$$ \int \! \frac{1}{ \left( ax + b \right) \left( cx + d \right) } \, dx = \frac{a}{ ad – bc } \int \! \frac{1}{ \left( ax + b \right) } \, dx + \frac{c}{ bc – ad } \int \! \frac{1}{ \left( cx + d \right) } \, dx $$

\( p = a x + b \ \ \ \ \ \ dp = a \ dx \)

\( q = c x + d \ \ \ \ \ \ dq = c \ dx \)

$$ \int \! \frac{1}{ \left( ax + b \right) \left( cx + d \right) } \, dx = \frac{a}{ ad – bc } \frac{1}{a} \int \! \frac{1}{ p } \, dx + \frac{c}{ bc – ad } \frac{1}{c} \int \! \frac{1}{ q } \, dx $$
$$ \int \! \frac{1}{ \left( ax + b \right) \left( cx + d \right) } \ dx = \frac{1}{ ad – bc } \ln \left( ax + b \right) + \frac{1}{bc – ad} \ln \left( c x + d \right) + C = \frac{1}{ad-bc} \ln \left( \frac{ a x + b }{ c x + d } \right) + C $$

\( \displaystyle \int \! \frac{ \left( kx + l \right) }{ \left( ax + b \right) \left( cx + d \right) } \ dx \)

\( \frac{ k x + l }{ \left( ax + b \right) \left( cx + d \right) } = \frac{A}{ \left( ax + b \right)} \frac{B}{ \left( cx + d \right) }\)

\( k x + l = A \left( cx + d \right) + B \left( ax + b \right) \)

\( x = – \frac{d}{c} \)

\( k \left( – \frac{d}{c} \right) + l = B \left( a \left( -\frac{d}{c} \right) + b \right) \)

\( B = \frac{ c l – d k }{ bc – ad } \)

\( x = – \frac{b}{a} \)

\( k \left( – \frac{b}{a} \right) + l = A \left( c \left( -\frac{b}{a} \right) + d \right) \)

\( A = \frac{ a l – k b }{ ad – bc } \)

\( \int \! \frac{ \left( kx + l \right) }{ \left( ax + b \right) \left( cx + d \right) } \ dx = \frac{ a l – k b }{ ad – bc } \int \! \frac{1}{ a x + b } \ dx + \frac{ c l – d k }{ bc – ad } \int \! \frac{1}{ c x + d } \ dx \)

\( p = a x + b \ \ \ \ \ \ dp = a \ dx \)

\( q = c x + d \ \ \ \ \ \ dq = c \ dx \)

\( \int \! \frac{ k x + l }{ \left( ax + b \right) \left( cx + d \right) } \ dx = \frac{a l – k b}{ ad – bc } \frac{1}{a} \int \! \frac{1}{ p } \ dx + \frac{ c l – d k }{ bc – ad } \frac{1}{c} \int \! \frac{1}{ q } \ dx \)

\( \int \! \frac{ k x + l}{ \left( ax + b \right) \left( cx + d \right) } \ dx = \frac{a l – k b}{ a^2 d – abc } \ln \! \left( ax + b \right) + \frac{ c l – d k}{bc^2 – acd} \ln \! \left( c x + d \right) + C = \frac{ a l – k b}{ a^2 d – abc } \ln \! \left( ax + b \right) + \frac{ d k – c l }{acd – bc^2} \ln \! \left( c x + d \right) + C \)

Integration by Parts Problems

$$ \int \! u \ dv = uv \ – \int \! v \ du$$

\( \int \! \ln x \ dx \)

\( u = \ln x \ \ \ \ \ \ du = \frac{1}{x} \ dx \)

\( dv = dx \ \ \ \ \ \ v = x \)

\( \int \! \ln x \ dx = x \ln x – \int \! x \frac{1}{x} \ dx \)

\( \int \! \ln x \ dx = x \ln x – x + C \)

 

\( \int \! x \ln x \ dx \)

\( u = \ln x \ \ \ \ \ \ du = \frac{1}{x} \ dx \)

\( dv = x \ dx \ \ \ \ \ \ v = \frac{x^2}{2}\)

\( \int \! x \ln x \ dx = \frac{x^2}{2} \ln x – \int \! \frac{x^2}{2} \frac{1}{x} \ dx \)

\( \int \! x \ln x \ dx = \frac{x^2}{2} \ln x – \frac{x^2}{4} + C \)

 

\( \int \! \sin^{-1} x \ dx \)

\( u = \sin^{-1} x \ \ \ \ \ \ du = \frac{1}{\sqrt{1 – x^2}} \ dx\)

\( dv = dx \ \ \ \ \ \ v = x \)

\( \int \! \sin^{-1} x \ dx = x \sin^{-1} x – \int \! x \frac{1}{ \sqrt{1 – x^2 }} \ dx\)

\( \int \! \frac{x}{ \sqrt{1 – x^2 }} \ dx\)

\( t = 1 – x^2 \ \ \ \ \ \ – \frac{1}{2} \ dt = x \ dx\)

\( – \int \! \frac{1}{ 2 \sqrt{ t }} \ dt = – \sqrt{ t } + C\)

\( \int \! \sin^{-1} x \ dx = x \sin^{-1} x – \int \! x \frac{1}{ \sqrt{1 – x^2 }} \ dx = x \sin^{-1} x + \sqrt{ 1 – x^2 } + C \)

 

\( \int \! x e^{ x } \ dx \)

\( u = x \ \ \ \ \ \ du = dx \)

\( dv = e^{x} \ dx \ \ \ \ \ \ v = e^{x}\)

\( \int \! x e^{ x } \ dx = x e^{x} – \int \! e^{x} \ dx = x e^{x} – e^{x} + C\)

 

\( \int \! e^{ \sqrt{x} } \ dx \)

\( t = \sqrt{x} \ \ \ \ \ \ dt = \frac{1}{2 \sqrt{ x }} \ dx\)

\( 2 t \ dt = dx \)

\( \int \! 2 t e^{ t } \ dt \)

\( u = 2 t \ \ \ \ \ \ du = 2 \ dt \)

\( dv = e^{t} \ dt \ \ \ \ \ \ v = e^{t}\)

\( \int \! 2 t e^{ t } \ dt = 2 t e^{t} – \int \! 2 e^{t} \ dt = 2 t e^{t} – 2 e^{t} + K\)

\( \int \! e^{ \sqrt{x} } \ dx = 2 \sqrt{ x } e^{ \sqrt{ x } } -2 e^{ \sqrt{ x } } + C\)

 

\( \int \! e^{ x } \sin x \ dx \)

\( u = \sin x \ \ \ \ \ \ dv = e^{ x } \ dx\)

\( du = \cos x \ dx \ \ \ \ \ \ v = e^{ x } \)

\( \int \! e^{ x } \sin x \ dx = e^{ x } \sin x – \int \! e^{ x } \cos x \ dx \)

\( s = \cos x \ \ \ \ \ \ ds = – \sin x \ dx \)

\( dt = e^{x} \ dx \ \ \ \ \ \ t = e^{x}\)

\( \int \! e^{ x } \sin x \ dx = e^{ x } \sin x – \left( e^{ x } \cos x – \int \! – e^{ x } \sin x \ dx \right)\)

\( \int \! e^{ x } \sin x \ dx = e^{ x } \sin x – e^{ x } \cos x – \int \! e^{ x } \sin x \ dx \)

\( \int \! e^{ x } \sin x \ dx = \frac{1}{2} \left( e^{ x } \sin x – e^{ x } \cos x \right) + C \)

Determining Integrability

Let \( f : \left[ a, \ b \right] \rightarrow \mathbb{R} \) be a bounded function. \( f \) is integrable on \( \left[ a, \ b \right] \) if and only if for any \( \epsilon > 0 \) there exists some partition \( R \) of \( \left[ a, \ b \right] \) such that

$$U \! \left( f, \ R \right) – L \! \left( f, \ R \right) < \epsilon$$

To prove this statement each of the following conditional statements must be true.
If \( f \) is integrable then for every \( \epsilon > 0 \) there exists some partition \( R \) of \( \left[ a, \ b \right] \) such that \(U \! \left( f, \ R \right) – L \! \left( f, \ R \right) < \epsilon\).
If for every \( \epsilon > 0 \) there exists some partition \( R \) of \( \left[ a, \ b \right] \) such that \(U \! \left( f, \ R \right) – L \! \left( f, \ R \right) < \epsilon\) then \(f\) is integrable.

To prove the first statement assume \(f\) is integrable. Therefore, it is the case that

$$\int_a^b f = \overline{ \int_a^b } f = \underline{ \int_a^b } f = \inf_Q U \! \left( f, \ Q \right) = \sup_P L \! \left( f, \ P \right)$$

By using the theorem of infimum and supremum respectively it is true that

$$U \! \left( f, \ Q \right) \lt \int_a^b f + \frac{ \epsilon}{2}$$
$$L \! \left( f, \ P \right) \gt \int_a^b f – \frac{ \epsilon}{2}$$

If \(R = P \cup Q\) then \(L \left( f, \ P \right) \le L \left( f, \ R \right) \le U \left( f, \ R \right) \le U \left( f, \ Q \right)\) and it is true

$$U \! \left( f, \ R \right) \le U \! \left( f, \ Q \right) \lt \int_a^b f + \frac{ \epsilon}{2}$$
$$L \! \left( f, \ R \right) \ge L \! \left( f, \ P \right) \gt \int_a^b f – \frac{ \epsilon}{2}$$

subtracting

$$U \! \left( f, \ R \right) – L \! \left( f, \ R \right) \lt \int_a^b f + \frac{ \epsilon}{2} – \left( \int_a^b f – \frac{ \epsilon}{2} \right) = \epsilon$$

To prove the second statement assume \( \epsilon \gt 0 \) and \( U \! \left( f, \ R \right) – L \! \left( f, \ R \right) \lt \epsilon \). Moreover, by definition

$$\underline{ \int_a^b } f \le \overline{ \int_a^b } f$$
$$U \! \left( f, \ R \right) \ge \overline{ \int_a^b } f$$
$$L \! \left( f, \ R \right) \le \underline{ \int_a^b } f$$

subtracting

$$0 \le \overline{ \int_a^b } f – \underline{ \int_a^b } f \le U \! \left( f, \ R \right) – L \! \left( f, \ R \right) \lt \epsilon$$

Since \( \epsilon \) is arbitrary it is the case that

$$\overline{ \int_a^b } f = \underline{ \int_a^b } f$$

thus, \( f \) is integrable.

Darboux Integral

Since the Completeness Property demands

$$L \left( f, \ P \right) \le \sup_P L \left( f, \ P \right) \le \inf_Q U \left( f, \ Q \right) \le U \left( f, \ Q \right)$$

the following definition for the Darboux Integral can be given. If \( f : \left[ a, \ b \right] \rightarrow \mathbb{R} \) is a bounded function then the Upper Darboux Integral is

$$\overline{ \int_a^b } f = \inf_Q U \left( f, \ Q \right)$$

Similarly, the Lower Darboux Integral is

$$\underline{ \int_a^b } f = \sup_P L \left( f, \ P \right)$$

Moreover, by definition

$$\underline{ \int_a^b } f \le \overline{ \int_a^b } f$$

Let \( f : \left[ a, \ b \right] \rightarrow \mathbb{R} \) be a bounded function on \( \left[ a, \ b \right] \). If

$$\overline{ \int_a^b } f = \underline{ \int_a^b } f$$

then the Darboux integral is

$$\int_a^b f = \overline{ \int_a^b } f = \underline{ \int_a^b } f$$

It is the case that \( f \) is Riemann integrable. Skip to the section on Riemann Sums for further discussion.

Comparing Upper & Lower Darboux Sums

If \( f : \left[ a, \ b \right] \rightarrow \mathbb{R} \) is a bounded function then for any partition \(P\) of \( \left[ a, \ b \right] \) by definition

$$m = \inf_{\left[ a, \ b \right]} f \left( x \right)$$
$$m_i = \inf_{\left[ x_{i-1}, \ x_i \right]} f \left( x \right)$$
$$M_i = \sup_{\left[ x_{i-1}, \ x_i \right]} f \left( x \right)$$
$$M = \sup_{\left[ a, \ b \right]} f \left( x \right)$$

and

$$m \le m_i \le M_i \le M$$

So by definition

$$m \left( b – a \right) \le L \left( f, \ P \right) \le U \left( f, \ P \right) \le M \left( b – a \right)$$

The above result suggests that \(P\) could be the refinement of some other partition. Consider the notion that the Lower & Upper Darboux Sums are defined using different partitions. Let

$$L \left( f, \ P \right)$$
$$U \left( f, \ Q \right)$$

Is it the case that \(L \left( f, \ P \right) \le U \left( f, \ Q \right)\)? If so then it is the case that any Upper Darboux sum is an upper bound for the set of all Lower Darboux sums. Similarly, any Lower Darboux sum will be a lower bound for the set of Upper Darboux sums.

Consider a refinement of both \( P \) and \( Q \), namely, \( R = P \cup Q \). Since any refinement \( R \) of \( P \) yields

$$L \left( f, \ P \right) \le L \left( f, \ R \right)$$

Since any refinement \( R \) of \( Q \) yields

$$U \left( f, \ R \right) \le U \left( f, \ Q \right)$$

Therefore, it is true that

$$L \left( f, \ P \right) \le L \left( f, \ R \right) \le U \left( f, \ R \right) \le U \left( f, \ Q \right)$$

Moreover, the Completeness Property of the Real Numbers states that every nonempty set of real numbers bounded above must have a least upper bound. Similarly, every nonempty set of real numbers that is bounded below must have a greatest lower bound. Let

$$A = \sup_P L \left( f, \ P \right)$$

and

$$B = \inf_Q U \left( f, \ Q \right)$$

Therefore, it must be the case that

$$L \left( f, \ P \right) \le A \le B \le U \left( f, \ Q \right)$$

Lower Darboux Sum

If \( f : \left[ a, \ b \right] \rightarrow \mathbb{R} \) is a bounded function then for an arbitrary partition of \(\left[ a, \ b \right]\) let

$$m = \inf_{\left[ a, \ b \right]} f \left( x \right)$$

and

$$m_i = \inf_{\left[ x_i, \ x_{i-1} \right]} f \left( x \right)$$

The Lower Darboux sum is defined as

$$L \left( f, \ P \right) = \sum_{i=1}^n m_i \left( x_i – x_{i-1} \right)$$

Note that \(f\) needs to be defined on \(\left[ a, \ b \right]\) but it does not have to be continuous. The following diagrams illustrate possible Lower Darboux sums. The diagrams should be understood as representative but not as definitive.

graphics coming soon

Notice that if \(P\) is any partition of \( \left[ a, \ b \right] \) then \( m \left( b-a \right) \le L \left( f, \ P \right) \). By definition \( m \le m_i \) therefore,

$$m \sum_{i=1}^n \left( x_i – x_{i-1} \right) = \sum_{i=1}^n m \left( x_i – x_{i-1} \right) \le \sum_{i=1}^n m_i \left( x_i – x_{i-1} \right)$$

it is the case that

$$\sum_{i=1}^n \left( x_i – x_{i-1} \right) = \left( x_1 – x_0 \right) + \left( x_2 – x_1 \right) + \left( x_3 – x_2 \right) + \dots + \left( x_{n-1} – x_{n-2} \right) + \left( x_n – x_{n-1} \right) = \left( x_n – x_0 \right) = \left( b – a \right)$$

therefore, \( m \left( b-a \right) \le L \left( f, \ P \right) \) as claimed.

If the partition \( P \) of the above graphics are refined to a partition \( R \) then

graphics coming soon

From the above diagrams it seems reasonable to suggest \( L \left( f, \ P \right) \le L \left( f, \ R \right) \).

Consider an arbitrary interval in \( P \), \( \left[ x_{i-1}, \ x_i \right] \) refined into \( \left[ x_{i-1}, \ t \right] \cup \left[ t, \ x_i \right] \). Let

$$m_{t^{-}} = \inf_{\left[ x_{i-1}, \ t \right]} f \left( x \right)$$
$$m_{t^{+}} = \inf_{\left[ t, \ x_i \right]} f \left( x \right)$$

By definition

$$m_i \le m_{t^{-}}$$
$$m_i \le m_{t^{+}}$$

The area of the refinement of is

$$m_i \left( x_i – x_{i-1} \right) = m_i \left( t – x_{i-1} \right) + m_i \left( x_i – t \right) \le m_{t^{-}} \left( t – x_{i-1} \right) + m_{t^{+}} \left( x_i – t \right)$$

Hence, reasoning inductively it is indeed true that

$$L \left( f, \ P \right) \le L \left( f, \ R \right)$$

Upper Darboux Sum

If \( f : \left[ a, \ b \right] \rightarrow \mathbb{R} \) is a bounded function then for an arbitrary partition of \(\left[ a, \ b \right]\) let

$$M = \sup_{\left[ a, \ b \right]} f \left( x \right)$$

and

$$M_i = \sup_{\left[ x_{i-1}, \ x_i \right]} f \left( x \right)$$

The Upper Darboux sum is defined as

$$U \left( f, \ P \right) = \sum_{i=1}^n M_i \left( x_i – x_{i-1} \right)$$

Note that \(f\) needs to be defined on \(\left[ a, \ b \right]\) but it does not have to be continuous. The following diagrams illustrate possible Upper Darboux sums. The diagrams should be understood as representative but not as definitive.

graphics coming soon

Notice that if \(P\) is any partition of \( \left[ a, \ b \right] \) then \( U \left( f, \ P \right) \le M \left( b-a \right) \). By definition \( M_i \le M \) therefore,

$$\sum_{i=1}^n M_i \left( x_i – x_{i-1} \right) \le \sum_{i=1}^n M \left( x_i – x_{i-1} \right) = M \sum_{i=1}^n \left( x_i – x_{i-1} \right)$$

it is the case that

$$\sum_{i=1}^n \left( x_i – x_{i-1} \right) = \left( x_1 – x_0 \right) + \left( x_2 – x_1 \right) + \left( x_3 – x_2 \right) + \dots + \left( x_{n-1} – x_{n-2} \right) + \left( x_n – x_{n-1} \right) = \left( x_n – x_0 \right) = \left( b – a \right)$$

therefore, \( U \left( f, \ P \right) \le M \left( b-a \right) \) as claimed.

If the partition \( P \) of the above graphics are refined to a partition \( R \) then

graphics coming soon

From the above diagrams it seems reasonable to suggest \( U \left( f, \ R \right) \le U \left( f, \ P \right) \).

Consider an arbitrary interval in \( P \), \( \left[ x_{i-1}, \ x_i \right] \) refined into \( \left[ x_{i-1}, \ t \right] \cup \left[ t, \ x_i \right] \). Let

$$M_{t^{-}} = \sup_{\left[ x_{i-1}, \ t \right]} f \left( x \right)$$
$$M_{t^{+}} = \sup_{\left[ t, \ x_i \right]} f \left( x \right)$$

By definition

$$M_{t^{-}} \le M_i$$
$$M_{t^{+}} \le M_i$$

The area of the refinement is

$$M_{t^{-}} \left( t – x_{i-1} \right) + M_{t^{+}} \left( x_i – t \right) \le M_i \left( t – x_{i-1} \right) + M_i \left( x_i – t \right) = M_i \left( x_i – x_{i-1} \right)$$

Hence, reasoning inductively it is indeed true that

$$U \left( f, \ R \right) \le U \left( f, \ P \right)$$