Integration of rational function with quadratic denominator: Difference between revisions

From Calculus
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{specific function class integration strategy}}
{{specific function class integration strategy}}


==Outline of method==
==Reduction==


===Reduction to the case where the numerator is constant or linear and the denominator is monic===
===Reduction to the case where the numerator has smaller degree than the denominator===


{{fillin}}
{{further|[[converting a rational function from improper fraction to mixed fraction form]]}}
 
To get to the situation where the numerator has smaller degree than the denominator, we perform a [[Euclidean division]] and hence rewrite the rational function as the sum of a polynomial and a rational function that is in ''proper fraction'' form, i.e., the numerator has smaller degree than the denominator. The polynomial summand is integrated termwise using the [[integration rule for power functions]]. We are thus reduced to handling the proper fraction. But remember to add back the antiderivative for the polynomial to your final answer!
 
===Reduction to the monic denominator case===
 
If the leading coefficient (i.e., the coefficient on the highest degree term) in the denominator is not 1, the leading coefficient can be pulled out as a constant factor from the denominator and hence out of the integration. We can thus carry out an integration with a leading coefficient of 1 for the denominator polynomial (such a polynomial is termed a monic polynomial). But remember to keep that constant on the outside and multiply it to get your final answer!
 
==Indefinite integration for proper fraction with monic denominator==
 
===Summary of cases===
 
We assume that we have performed the reductions outlined above. Thus, We consider an integration of the form:
 
<math>\int \frac{(Ax + B) \, dx}{x^2 + px + q}</math>
 
Note that <math>A,B,p,q</math> are arbitrary constants. They may be zero or nonzero.
 
{| class="sortable" border="1"
! Sign of discriminant <math>p^2 - 4q</math> !! Qualitative description of case !! Antiderivative (we omit the +C for space reasons)!! Functions whose linear combination gives antiderivative (depend ''only'' on denominator) !! Description of new constants in terms of <math>p,q</math>
|-
| positive || denominator has distinct roots <math>\alpha_1, \alpha_2</math><br>factors as <br><math>\! (x - \alpha_1)(x - \alpha_2)</math> || <math>\frac{A\alpha_1 + B}{\alpha_1 - \alpha_2} \ln|x - \alpha_1| + \frac{A\alpha_2 + B}{\alpha_2 - \alpha_1}\ln|x - \alpha_2|</math> || <math>\! \ln|x - \alpha_1|</math><br><math>\! \ln|x - \alpha_2|</math> || <math>\! \alpha_1 = \frac{-p - \sqrt{p^2 - 4q}}{2}</math><br><math>\alpha_2 = \frac{-p + \sqrt{p^2 - 4q}}{2}</math>
|-
| zero || denominator has repeated root <math>\sigma</math><br>factors as <br><math>\! (x - \sigma)^2</math> || <math>A\ln|x - \sigma| - \frac{A\sigma + B}{x - \sigma}</math> || <math>\! \ln|x - \sigma|</math><br><math>\! \frac{1}{x - \sigma}</math> || <math>\! \sigma = -p/2</math>
|-
| negative || denominator is of the form <br><math>\! (x - \beta)^2 + \gamma^2</math><br>with <math>\gamma > 0</math> || <math>\frac{A}{2}\ln((x - \beta)^2 + \gamma^2) + \frac{A\beta + B}{\gamma} \arctan\left(\frac{x - \beta}{\gamma}\right)</math> || <math>\! \ln((x - \beta)^2 + \gamma^2)</math><br><math>\arctan\left(\frac{x - \beta}{\gamma}\right)</math> || <math>\! \beta = \frac{-p}{2}</math><br><math>\gamma = \sqrt{q - (p^2/4)}</math>
|}


===Case that the denominator has distinct linear factors===
===Case that the denominator has distinct linear factors===
Line 19: Line 45:
Note that <math>\alpha_1</math> and <matH>\alpha_2</math> can be determined from the [[quadratic formula]] for the roots of a quadratic polynomial. Specifically, if the polynomial in the denominator is <math>x^2 + px + q</math>, we have:
Note that <math>\alpha_1</math> and <matH>\alpha_2</math> can be determined from the [[quadratic formula]] for the roots of a quadratic polynomial. Specifically, if the polynomial in the denominator is <math>x^2 + px + q</math>, we have:


<math>\alpha_1 = \frac{-p + \sqrt{p^2 - 4q}}{2}, \qquad \alpha_2 = \frac{-p - \sqrt{p^2 - 4q}}{2}</math>
<math>\alpha_1 = \frac{-p - \sqrt{p^2 - 4q}}{2}, \qquad \alpha_2 = \frac{-p + \sqrt{p^2 - 4q}}{2}</math>


Here are the details of how the formula is obtained:
Here are the details of how the formula is obtained:
Line 55: Line 81:
{{quotation|'''UPSHOT''': The antiderivative in this case is a constant divided by the linear factor plus a constant times the natural logarithm of the linear factor.}}
{{quotation|'''UPSHOT''': The antiderivative in this case is a constant divided by the linear factor plus a constant times the natural logarithm of the linear factor.}}


{{fillin}}
The integration formula is:
 
<math>\int \frac{Ax + B}{(x - \sigma)^2} \, dx = A\ln|x - \sigma| - \frac{A\sigma + B}{x - \sigma} + C</math>
 
If the denominator is of the form <math>x^2 + px + q</math>, then this case arises iff <math>p^2 = 4q</math> and we have <math>\sigma = -p/2</math>.
 
Here's how the formula is obtained: <toggledisplay>
 
We rewrite the integrand as:
 
<math>\frac{A(x - \sigma) + B + A\sigma}{(x - \sigma)^2}</math>
 
It now gets split as:
 
<math>\frac{A}{x - \sigma} + \frac{A\sigma + B}{(x - \sigma)^2}</math>
 
We now integrate term-wise.
 
</toggledisplay>


===Case that the denominator has negative discriminant===
===Case that the denominator has negative discriminant===
Line 63: Line 107:
We have:
We have:


<math>\int \frac{Ax + B}{(x - \beta)^2 + \gamma^2} \, dx = \frac{A}{2}\ln((x - \beta)^2 + \gammma^2) + \frac{B + A\beta}{\gamma} \arctan\left(\frac{x - \beta}{\gamma}\right) + C</math>
<math>\int \frac{Ax + B}{(x - \beta)^2 + \gamma^2} \, dx = \frac{A}{2}\ln((x - \beta)^2 + \gamma^2) + \frac{A\beta + B}{\gamma} \arctan\left(\frac{x - \beta}{\gamma}\right) + C</math>
 
Given a denominator in the form <math>x^2 + px + q</math>, it can be rewritten as <math>(x - \beta)^2 + \gamma^2</math> where:
 
<math>\beta = \frac{-p}{2}, \qquad \gamma = \sqrt{q - (p^2/4)}</math>
 
Here's how the formula is obtained: <toggledisplay>
 
We want to rewrite the numerator as a linear combination of 1 and the derivative of the denominator:
 
<math>Ax + B = c_1.(2(x - \beta)) + c_2.1</math>
 
Simplifying, we get:
 
<math>2c_1 = A, \qquad -2c_1\beta + c_2 = B</math>
 
We thus get <math>c_1 = A/2, c_2 = A\beta + B</math>.
 
Plugging these back in, we get:
 
<math>\int \frac{Ax + B}{(x - \beta)^2 + \gamma^2} \, dx = c_1 \int \frac{2(x - \beta) \, dx}{(x - \beta)^2 + \gamma^2} + c_2 \int \frac{dx}{(x - \beta)^2 + \gamma^2} = \frac{A}{2} \int \frac{2(x - \beta) \, dx}{(x - \beta)^2 + \gamma^2}  + (B + A\beta)\int \frac{dx}{(x - \beta)^2 + \gamma^2}</math>
 
The first integral on the right side has the <math>g'/g</math> form and the second is an <math>\arctan</math> integration.</toggledisplay>
 
==Definite integration==
 
We discuss here only the reduced case that we deal with for the indefinite integration.
 
===Case that the denominator has distinct linear factors===
 
Using the same notation as for the indefinite integration, we have an integration of the form:
 
<math>\! \frac{(Ax + B) \, dx}{(x - \alpha_1)(x - \alpha_2)}</math>
 
The antiderivative is:
 
<math>\frac{A\alpha_1 + B}{\alpha_1 - \alpha_2} \ln|x - \alpha_1| + \frac{A\alpha_2 + B}{\alpha_2 - \alpha_1}\ln|x - \alpha_2| + C</math>
 
where, if the quadratic in the denominator originally is <math>x^2 + px + q</math>:
 
<math>\alpha_1 = \frac{-p - \sqrt{p^2 - 4q}}{2}, \qquad \alpha_2 = \frac{-p + \sqrt{p^2 - 4q}}{2}</math>
 
The integrand is not defined at the points <math>\alpha_1, \alpha_2</math>. In fact, the domain of the function is a union of three separate open intervals: <math>(-\infty,\alpha_1)</math>, <math>(\alpha_1,\alpha_2)</math>, and <math>(\alpha_2,\infty)</math>.
 
A ''generic'' antiderivative for the function across all the intervals may have different values for the constant <math>C</math> on each interval.
 
Moreover, we can drop the absolute value signs and be specific about the inputs to the <math>\ln</math>s within each interval:
 
{| class="sortable" border="1"
! Interval !! Antiderivative on the interval
|-
| <math>(-\infty,\alpha_1)</math> || <math>\frac{A\alpha_1 + B}{\alpha_1 - \alpha_2} \ln(\alpha_1 - x) + \frac{A\alpha_2 + B}{\alpha_2 - \alpha_1}\ln(\alpha_2 - x) + C</math>
|-
| <math>\! (\alpha_1,\alpha_2)</math> || <math>\frac{A\alpha_1 + B}{\alpha_1 - \alpha_2} \ln(x - \alpha_1) + \frac{A\alpha_2 + B}{\alpha_2 - \alpha_1}\ln(\alpha_2 - x) + C</math>
|-
| <math>(\alpha_2,\infty)</math> || <math>\frac{A\alpha_1 + B}{\alpha_1 - \alpha_2} \ln(x - \alpha_1) + \frac{A\alpha_2 + B}{\alpha_2 - \alpha_1}\ln(x - \alpha_2) + C</math>
|}
 
The integral can be computed to give a finite numerical value on any interval ''properly'' contained ''completely'' within one of these intervals. We now address the question of whether we can compute ''improper'' integrals, i.e., integrals where one of the limits is one of the values <math>-\infty,\alpha_1,\alpha_2,\infty</math>.
 
The answer is as follows:
 
* An improper integral extending to <math>\alpha_1</math> will be finite ''only'' if <math>A\alpha_1 + B = 0</math>. Note that if that were the case, the rational function would not have been in a reduced form, i.e., there would have been a common factor between the numerator and denominator. In fact, in this case, the original rational function would have a ''removable'' discontinuity at <math>\alpha_1</math>.
* An improper integral extending to <math>\alpha_2</math> will be finite ''only'' if <math>A\alpha_2 + B = 0</math>. Note that if that were the case, the rational function would not have been in a reduced form, i.e., there would have been a common factor between the numerator and denominator. In fact, in this case, the original rational function would have a ''removable'' discontinuity at <math>\alpha_1</math>.
* An improper integral extending to <math>-\infty</math> will be finite ''only'' if <math>A = 0</math>, so the numerator is constant. This agrees with the [[degree difference test]]. For the antiderivative given above, the limiting value at <math>-\infty</math> is 0.
* An improper integral extending to <math>+\infty</math> will be finite ''only'' if <math>A = 0</math>, so the numerator is constant. This agrees with the [[degree difference test]]. For the antiderivative given above, the limiting value at <math>+\infty</math> is 0.
 
===Case that the denominator has repeated linear factors===
 
Using the same notation as for the indefinite integration, we are trying to do the integration:
 
<math>\! \int \frac{Ax + B \, dx}{(x - \sigma)^2}</math>
 
The antiderivative is:
 
<math>\! A \ln|x - \sigma| - \frac{A\sigma + B}{x - \sigma} + C</math>
 
where <math>C</math> is an arbitrary constant. Further, if the denominator was originally <math>x^2 + px + q</math>, then <math>\sigma = -p/2</math> and <math>p^2 = 4q</math>.
 
The domain of the integrand is all real numbers except <math>\sigma</math>. Thus, it is a union of the open intervals <math>(-\infty,\sigma)</math> and <math>(\sigma,\infty)</math>. On each of the intervals, we can determine unambiguously the sign of <math>x - \sigma</math>, so we can write the antiderivative more unambiguously:
 
{| class="sortable" border="1"
! Interval !! Antiderivative on the interval
|-
| <math>\! (-\infty,\sigma)</math> || <math>\! A \ln(\sigma - x) - \frac{A\sigma + B}{x - \sigma} + C</math>
|-
| <math>\! (\sigma,\infty)</math> || <math>\! A \ln(x - \sigma) - \frac{A\sigma + B}{x - \sigma} + C</math>
|}
 
Thus, for any interval properly contained completely within one of the two pieces, we can compute the definite integral using the above. We now consider the question of improper integrals, i.e., integrals where one of the endpoints of integration is among <math>-\infty, \sigma, \infty</math>:
 
* <math>\sigma</math> is not permissible as an endpoint in any circumstance, i.e., any improper integral ending at <math>\sigma</math> will be infinite.
* <math>-\infty</math> as an endpoint gives a finite integral iff <math>A = 0</math>. This agrees with the [[degree difference test]]. The limit of the antiderivative above at <math>-\infty</math> is 0.
* <math>+\infty</math> as an endpoint gives a finite integral iff <math>A = 0</math>. This agrees with the [[degree difference test]]. The limit of the antiderivative above at <math>+\infty</math> is 0.
 
===Case that the denominator has negative discriminant===
 
We are trying to do the integration:
 
<math>\int \frac{Ax + B}{(x - \beta)^2 + \gamma^2} \, dx</math>
 
The antiderivative is:
 
<math>\! \frac{A}{2}\ln((x - \beta)^2 + \gamma^2) + \frac{A\beta + B}{\gamma} \arctan\left(\frac{x - \beta}{\gamma}\right) + C</math>


Given a denominator in the form <math>x^2 + px + q</math>, it can be rewritten as <math>(x - \beta)^2 + \gamma^2</math> where:
Given a denominator in the form <math>x^2 + px + q</math>, it can be rewritten as <math>(x - \beta)^2 + \gamma^2</math> where:


<math>\beta = \frac{-p}{2}, \qquad \gamma = \sqrt{q - (p^2/4)}</math>
<math>\beta = \frac{-p}{2}, \qquad \gamma = \sqrt{q - (p^2/4)}</math>
The integrand, and also its antiderivative, are defined for all real numbers. In particular, it makes sense to take the definite integral over any finite interval and get a finite answer. We now consider the improper integrals:
* <math>-\infty</math> is permissible as an endpoint for integration iff <math>A = 0</math>. This agrees with the [[degree difference test]]. In that case, the limit of the antiderivative above is <math>-B\pi/(2\gamma)</math>.
* <math>+\infty</math> is permissible as an endpoint for integration iff <math>A = 0</math>. This agrees with the [[degree difference test]]. In that case, the limit of the antiderivative above is <math>B\pi/(2\gamma)</math>.
In particular, if <math>A = 0</math>, we can integrate the function over the entire real line and get a finite answer. That answer is <math>B\pi/\gamma</math>.
==Examples==
===Reduced case examples===
Consider the integration problem:
<math>\int \frac{x \, dx}{x^2 + x + 1}</math>
Here's how we would do it directly in terms of the formula: <toggledisplay>We have <math>A = 1, B = 0, p = 1, q = 1</math>.
We note that this is already in the proper fraction form with monic denominator. The first goal is to determine which of the three cases it falls into. Here, <math>p = 1, q = 1</math> so the discriminant is <math>1^2 - 4(1) = -3 < 0</math>. In other words, the quadratic does not factorize but can be written as a sum of squares.
Specifically, here <math>\beta = -1/2</math> and <math>\gamma = \sqrt{3}/2</math>. Plugging into the formula, we get:
<math>\frac{1}{2}\ln(x^2 + x + 1) + \frac{(-1/2) + 0}{\sqrt{3}/2}\arctan\left(\frac{x - (-1/2)}{\sqrt{3}/2}\right) + C</math>
Simplifying, we get:
<math>\frac{1}{2}\ln(x^2 + x + 1) - \frac{1}{\sqrt{3}}\arctan\left(\frac{2x + 1}{\sqrt{3}}\right) + C</math></toggledisplay>
Alternatively, instead of directly using the formula, we can retrace the steps of its derivation to obtain the antiderivative: <toggledisplay>{{fillin}}</toggledisplay>
==Partial fractions and linear algebra interpretation==
===Reduced form case===
{{fillin}} -- something goes in here about the choice of basis functions for partial functions, corresponding antiderivatives, dealing with two-dimensional vector space in all three cases, but the choice of basis functions we use differs in the different cases.
===General case===
{{fillin}} -- something about the answer being a polynomial + something for the reduced form case.
==Repeated antidifferentiation==
The strategies used above can be applied to calculate higher antiderivatives of rational functions with quadratic denominator. The key idea, which is used to prove the more general observation that [[rational functions can be repeatedly integrated within elementarily expressible functions]], is the following corollary of [[integration by parts]], obtained by taking 1 as the part to integrate in the left side outer integration:
<math>\int \left(\int f(x) \, dx\right) 1 \, dx = x \int f(x) \, dx - \int xf(x) \, dx</math>
The key thing to note here is that since <math>f</math> has a quadratic denominator, so does <math>xf(x)</math>. In particular:
Integrating <math>f</math> twice <math>\equiv</math> Integrating both <math>f</math> and <math>xf(x)</math>, both of which are rational functions with quadratic denominator.
Similarly,
Integrating <math>f</math> <math>k</math> times <math>\equiv</math> Integrating the rational functions <math>f(x), xf(x), \dots x^{k-1}f(x)</math>
In particular, what this means is that the generic expression for the <math>k^{th}</math> antiderivative is a polynomial plus a linear combination of the two antiderivative basis functions that depend ''only'' on the denominator.
==Variational analysis==
Consider an integration of the form:
<math>\int_v^w \frac{(Ax + B) \, dx}{x^2 + px + q}</math>
where <math>v</math> and <math>w</math> are fixed real numbers independent of <math>x</math>. Now, suppose we choose to vary one of the four numbers <math>A,B,p,q</math> keeping the others fixed. Then, the value of the resulting definite integral becomes a function of the one variable that we are changing.

Latest revision as of 21:05, 16 December 2011

Template:Specific function class integration strategy

Reduction

Reduction to the case where the numerator has smaller degree than the denominator

For further information, refer: converting a rational function from improper fraction to mixed fraction form

To get to the situation where the numerator has smaller degree than the denominator, we perform a Euclidean division and hence rewrite the rational function as the sum of a polynomial and a rational function that is in proper fraction form, i.e., the numerator has smaller degree than the denominator. The polynomial summand is integrated termwise using the integration rule for power functions. We are thus reduced to handling the proper fraction. But remember to add back the antiderivative for the polynomial to your final answer!

Reduction to the monic denominator case

If the leading coefficient (i.e., the coefficient on the highest degree term) in the denominator is not 1, the leading coefficient can be pulled out as a constant factor from the denominator and hence out of the integration. We can thus carry out an integration with a leading coefficient of 1 for the denominator polynomial (such a polynomial is termed a monic polynomial). But remember to keep that constant on the outside and multiply it to get your final answer!

Indefinite integration for proper fraction with monic denominator

Summary of cases

We assume that we have performed the reductions outlined above. Thus, We consider an integration of the form:

Note that are arbitrary constants. They may be zero or nonzero.

Sign of discriminant Qualitative description of case Antiderivative (we omit the +C for space reasons) Functions whose linear combination gives antiderivative (depend only on denominator) Description of new constants in terms of
positive denominator has distinct roots
factors as


zero denominator has repeated root
factors as

negative denominator is of the form

with


Case that the denominator has distinct linear factors

UPSHOT: The antiderivative in this case is expressible as a linear combination with constant coefficients of the natural logarithms of the absolute values of the linear factors.

This falls under the general case of integration of rational function whose denominator has distinct linear factors

The integration formula is:

Note that and can be determined from the quadratic formula for the roots of a quadratic polynomial. Specifically, if the polynomial in the denominator is , we have:

Here are the details of how the formula is obtained:

[SHOW MORE]

Case that the denominator has repeated linear factors

UPSHOT: The antiderivative in this case is a constant divided by the linear factor plus a constant times the natural logarithm of the linear factor.

The integration formula is:

If the denominator is of the form , then this case arises iff and we have .

Here's how the formula is obtained: [SHOW MORE]

Case that the denominator has negative discriminant

UPSHOT: The antiderivative in this case is a constant times an arc tangent function plus a constant times the natural logarithm of the absolute value of the quadratic.

We have:

Given a denominator in the form , it can be rewritten as where:

Here's how the formula is obtained: [SHOW MORE]

Definite integration

We discuss here only the reduced case that we deal with for the indefinite integration.

Case that the denominator has distinct linear factors

Using the same notation as for the indefinite integration, we have an integration of the form:

The antiderivative is:

where, if the quadratic in the denominator originally is :

The integrand is not defined at the points . In fact, the domain of the function is a union of three separate open intervals: , , and .

A generic antiderivative for the function across all the intervals may have different values for the constant on each interval.

Moreover, we can drop the absolute value signs and be specific about the inputs to the s within each interval:

Interval Antiderivative on the interval

The integral can be computed to give a finite numerical value on any interval properly contained completely within one of these intervals. We now address the question of whether we can compute improper integrals, i.e., integrals where one of the limits is one of the values .

The answer is as follows:

  • An improper integral extending to will be finite only if . Note that if that were the case, the rational function would not have been in a reduced form, i.e., there would have been a common factor between the numerator and denominator. In fact, in this case, the original rational function would have a removable discontinuity at .
  • An improper integral extending to will be finite only if . Note that if that were the case, the rational function would not have been in a reduced form, i.e., there would have been a common factor between the numerator and denominator. In fact, in this case, the original rational function would have a removable discontinuity at .
  • An improper integral extending to will be finite only if , so the numerator is constant. This agrees with the degree difference test. For the antiderivative given above, the limiting value at is 0.
  • An improper integral extending to will be finite only if , so the numerator is constant. This agrees with the degree difference test. For the antiderivative given above, the limiting value at is 0.

Case that the denominator has repeated linear factors

Using the same notation as for the indefinite integration, we are trying to do the integration:

The antiderivative is:

where is an arbitrary constant. Further, if the denominator was originally , then and .

The domain of the integrand is all real numbers except . Thus, it is a union of the open intervals and . On each of the intervals, we can determine unambiguously the sign of , so we can write the antiderivative more unambiguously:

Interval Antiderivative on the interval

Thus, for any interval properly contained completely within one of the two pieces, we can compute the definite integral using the above. We now consider the question of improper integrals, i.e., integrals where one of the endpoints of integration is among :

  • is not permissible as an endpoint in any circumstance, i.e., any improper integral ending at will be infinite.
  • as an endpoint gives a finite integral iff . This agrees with the degree difference test. The limit of the antiderivative above at is 0.
  • as an endpoint gives a finite integral iff . This agrees with the degree difference test. The limit of the antiderivative above at is 0.

Case that the denominator has negative discriminant

We are trying to do the integration:

The antiderivative is:

Given a denominator in the form , it can be rewritten as where:

The integrand, and also its antiderivative, are defined for all real numbers. In particular, it makes sense to take the definite integral over any finite interval and get a finite answer. We now consider the improper integrals:

  • is permissible as an endpoint for integration iff . This agrees with the degree difference test. In that case, the limit of the antiderivative above is .
  • is permissible as an endpoint for integration iff . This agrees with the degree difference test. In that case, the limit of the antiderivative above is .

In particular, if , we can integrate the function over the entire real line and get a finite answer. That answer is .

Examples

Reduced case examples

Consider the integration problem:

Here's how we would do it directly in terms of the formula: [SHOW MORE]

Alternatively, instead of directly using the formula, we can retrace the steps of its derivation to obtain the antiderivative: [SHOW MORE]

Partial fractions and linear algebra interpretation

Reduced form case

Fill this in later -- something goes in here about the choice of basis functions for partial functions, corresponding antiderivatives, dealing with two-dimensional vector space in all three cases, but the choice of basis functions we use differs in the different cases.

General case

Fill this in later -- something about the answer being a polynomial + something for the reduced form case.

Repeated antidifferentiation

The strategies used above can be applied to calculate higher antiderivatives of rational functions with quadratic denominator. The key idea, which is used to prove the more general observation that rational functions can be repeatedly integrated within elementarily expressible functions, is the following corollary of integration by parts, obtained by taking 1 as the part to integrate in the left side outer integration:

The key thing to note here is that since has a quadratic denominator, so does . In particular:

Integrating twice Integrating both and , both of which are rational functions with quadratic denominator.

Similarly,

Integrating times Integrating the rational functions

In particular, what this means is that the generic expression for the antiderivative is a polynomial plus a linear combination of the two antiderivative basis functions that depend only on the denominator.

Variational analysis

Consider an integration of the form:

where and are fixed real numbers independent of . Now, suppose we choose to vary one of the four numbers keeping the others fixed. Then, the value of the resulting definite integral becomes a function of the one variable that we are changing.