Back to homeMathematics · High School Year 3 · Physics-Math · Change subject
Start for free
Prep 3 Tech · Mathematics
Integrals · Antiderivatives

Integration of Rational Functions

Before you start, make sure you know: Factoring polynomials (High School Year 2 (semesters 3 and 4))
Before you start, make sure you know: Operations with algebraic fractions (High School Year 2 (semesters 3 and 4))

An app on Ximena's phone records the rate at which a server's storage fills up: $v(t)=\dfrac{4}{t+1}$ GB per minute. How do you get the total amount of data stored? You need to find an antiderivative of a fraction. And if the rate were $\dfrac{4t+10}{t^2+4t+13}$, what would be needed? On this page you learn the strategy: turn the fraction into pieces that are in the table, and use another method (by parts) when the integrand is a product.

The Basic Pieces: Logarithm and Arctangent

Two integrals from the table are the foundation of this whole section.

When the numerator is the derivative of the denominator (or a constant multiple of it), the integral is a logarithm. When the denominator is a sum $x^2+a^2$ and the numerator is constant, it is an arctangent.

Practice★☆☆Not started
A group of young engineers is monitoring the data flow of a server. The rate of growth of the stored data (in GB/min) is given by the function $v(t) = \frac{4}{t + 1}$,…

A group of young engineers is monitoring the data flow of a server. The rate of growth of the stored data (in GB/min) is given by the function $v(t) = \frac{4}{t + 1}$, where $t$ is the time in minutes. Find the general expression for the data storage function $S(t)$.

4 2 1 3 0 t (min) v(t) (GB/min) t S(t) v(t) = 4/(t+1)
Solve
Practice★☆☆Not started
Calculate the following indefinite integral, observing that the numerator is, or can easily be transformed into, the derivative of the denominator: $$\int \frac{2x +…

Calculate the following indefinite integral, observing that the numerator is, or can easily be transformed into, the derivative of the denominator:

$$\int \frac{2x + 3}{x^2 + 3x + 10} \, dx$$
Solve
Practice★☆☆Not started
Determine the indefinite integral of the following function, whose form corresponds to an arctangent-type antiderivative: $$\int \frac{3}{x^2 + 16} \, dx$$

Determine the indefinite integral of the following function, whose form corresponds to an arctangent-type antiderivative:

$$\int \frac{3}{x^2 + 16} \, dx$$
Solve

If the Degree of the Numerator Is Not Smaller: Divide First

Diagram of polynomial division P(x)/Q(x) = C(x) + R(x)/Q(x), separating the integrable polynomial part from the remainder whose degree is less than the denominator's. P(x) Q(x) = C(x) + R(x) Q(x) polynomial,immediate grado(R) <grado(Q)
Practice★☆☆Not started
Find the antiderivative of the function $g(x)$ by first adjusting the numerator to obtain an integer part and a fractional part: $$g(x) = \frac{x + 5}{x + 1}$$

Find the antiderivative of the function $g(x)$ by first adjusting the numerator to obtain an integer part and a fractional part:

$$g(x) = \frac{x + 5}{x + 1}$$ ? x = −1 y = 1 x y 0 (0, 5) (−5, 0) g(x) = (x+5)/(x+1) g(x) = ? + ?/(x+1) ∫ g(x) dx = ?
Solve
Practice★★★Not started
A market study analyses the growth rate of sales for a new model of electric scooter. The function describing the rate of change of sales (in hundreds of units per…

A market study analyses the growth rate of sales for a new model of electric scooter. The function describing the rate of change of sales (in hundreds of units per month) is given by:

$f(x) = \dfrac{x^2 + 2x + 3}{x + 1}$

Where $x$ is the time in months. Calculate the family of total sales functions $F(x)$ by finding the antiderivative of this function. (Note: Perform polynomial division first).

1 3 5 7 3 6 y = x + 1 Time x (months) Rate f(x) f(x) F(x) = ∫f(x)dx Total Sales
Solve
Practice★★★Not started
Calculate the antiderivative of the function $f(x) = \dfrac{x^4 + x^3 - 2}{x^3 - x^2}$ that passes through the point $P(2, 5)$. Note that, due to the degrees of the…

Calculate the antiderivative of the function $f(x) = \dfrac{x^4 + x^3 - 2}{x^3 - x^2}$ that passes through the point $P(2, 5)$. Note that, due to the degrees of the polynomials, you must first perform polynomial division and then decompose the remaining fraction taking into account the presence of repeated real roots.

x y F(x) + C₁ F(x) + C₂ F(x) P(2, 5) 2 5
Solve

Simple Real Roots: One Fraction for Each

Practice★☆☆Not started
Decompose the integrand into partial fractions to calculate the integral of this rational function with simple real roots in the denominator: $$\int \frac{1}{x^2 - 9} \,…

Decompose the integrand into partial fractions to calculate the integral of this rational function with simple real roots in the denominator:

$$\int \frac{1}{x^2 - 9} \, dx$$
Solve
Practice★★★Not started
Determine the integral of the following rational function by first decomposing it into a sum of simpler fractions: $\displaystyle \int \dfrac{x + 7}{x^2 + 4x + 3} \, dx$

Determine the integral of the following rational function by first decomposing it into a sum of simpler fractions:

$\displaystyle \int \dfrac{x + 7}{x^2 + 4x + 3} \, dx$

x + 7 x² + 4x + 3 = x + 7 (x + 1) (x + 3) = A x + 1 + B x + 3
Solve

Repeated Real Roots: One Fraction for Each Power

A double root (x−a)² produces two fractions: A₁/(x−a), which integrates to a logarithm, and A₂/(x−a)², which integrates to a power. (x−a)² double root A₁/(x−a) A₂/(x−a)² integrates to A₁ ln(x−a), with absolute value integrates to −A₂/(x−a)
Practice★★★Not started
Calculate the indefinite integral of the following rational function by decomposing it into partial fractions, given that its denominator has a double real root:…

Calculate the indefinite integral of the following rational function by decomposing it into partial fractions, given that its denominator has a double real root:

$\displaystyle \int \dfrac{5x - 2}{x^2 - 4x + 4} \, dx$

Solve
Practice★★★Not started
Determine the values of the parameters $A$, $B$ and $C$ so that the following equality holds and, subsequently, calculate the antiderivative of $f(x)$ that is zero at…

Determine the values of the parameters $A$, $B$ and $C$ so that the following equality holds and, subsequently, calculate the antiderivative of $f(x)$ that is zero at $x=0$:

$$\int \frac{x^2 + 5x + 2}{(x+1)^2(x-2)} \, dx = \int \left( \frac{A}{x+1} + \frac{B}{(x+1)^2} + \frac{C}{x-2} \right) \, dx$$ x = −1 x = 2 1 2 −1 1 −1 x y f(x) f(0)=−1 f(x) = A/(x+1) + B/(x+1)² + C/(x-2) A = ? , B = ? , C = ? ∫ f(x)dx = F(x) , F(0) = 0
Solve
Practice★★★Not started
We want to find a function $F(x)$ whose derivative is $f(x) = \dfrac{x^2 - 3x + 2}{(x+1)^3}$. Find this function knowing that its graph passes through the point…

We want to find a function $F(x)$ whose derivative is $f(x) = \dfrac{x^2 - 3x + 2}{(x+1)^3}$. Find this function knowing that its graph passes through the point $(0, 2)$. This problem requires the use of partial fractions with real roots of multiplicity three.

Solve

Complex Roots: An Arctangent Appears

Practice★★★Not started
In arctangent-type integrals, it is sometimes necessary to manipulate the denominator. Find the following antiderivative by completing the square in the denominator so…

In arctangent-type integrals, it is sometimes necessary to manipulate the denominator. Find the following antiderivative by completing the square in the denominator so that it takes the form $\int \frac{u'}{1+u^2} dx$:

$\displaystyle \int \dfrac{3}{x^2 + 2x + 5} \, dx$

Solve
Practice★★★Not started
A team of engineers is monitoring the flow of coolant in a thermal power plant. The rate of change of the volume of liquid with respect to time $t$ is given by the…

A team of engineers is monitoring the flow of coolant in a thermal power plant. The rate of change of the volume of liquid with respect to time $t$ is given by the function $v(t) = \dfrac{4t + 10}{t^2 + 4t + 13}$. Find the expression for the total volume $V(t)$ knowing that at the initial instant ($t=0$) the tank contained $100$ liters.

Note: Observe that the denominator has no real roots, so the solution will combine a natural logarithm and an arctangent.

COOLANT TANK t = 0 V(0) = 100 L t > 0 V(t) = ? v(t) = 4t + 10 t² + 4t + 13
Solve
Practice★★★Not started
Determine the indefinite integral of the function $g(x) = \dfrac{1}{x^4 - 1}$. To solve this exercise, you must fully factorise the denominator over the real numbers and…

Determine the indefinite integral of the function $g(x) = \dfrac{1}{x^4 - 1}$. To solve this exercise, you must fully factorise the denominator over the real numbers and decompose the fraction into a sum containing terms with simple real roots and a term with complex roots yielding an arctangent form.

Solve

The Complete Strategy

With any rational function, always follow this order:

  1. Compare the degrees. If $\text{grado}(P)\ge\text{grado}(Q)$, divide.

  2. Factor $Q(x)$ (synthetic division or Ruffini's rule, grouping, the quadratic formula).

  3. Set up one fraction for each simple root, one for each power of a repeated root, and $\dfrac{Mx+N}{\text{quadratic}}$ for each irreducible factor.

  4. Find the constants: substitute the roots or equate coefficients.

  5. Integrate each piece.

Practice★★☆Not started
A team of engineers is analysing the discharge rate of a new drone prototype's battery. They have determined that the function representing the rate of change of the…

A team of engineers is analysing the discharge rate of a new drone prototype's battery. They have determined that the function representing the rate of change of the charge (in mAh per minute) is given by $f(t) = 3t^2 - \frac{4}{t+1} + \sqrt{t}$, where $t$ is the time in minutes.

Find the total charge function $F(t)$, knowing that at the initial moment ($t = 0$) the drone's charge was $2500$ mAh.

Solve
Practice★★★Not started
Calculate the indefinite integral $\displaystyle \int \frac{3x^2 + 1}{x^3 + x^2 + x + 1} \, dx$. To do this, note that the denominator can be factorised using Ruffini's…

Calculate the indefinite integral $\displaystyle \int \frac{3x^2 + 1}{x^3 + x^2 + x + 1} \, dx$.

To do this, note that the denominator can be factorised using Ruffini's rule or by grouping terms, resulting in the product of a linear factor and an irreducible quadratic factor.

Solve
Practice★★★Not started
It is known that the gradient of the tangent line to a curve at any point $(x, y)$ is given by the expression $m = \dfrac{x^3 + x^2}{x^2 + 1}$. Find the equation of this…

It is known that the gradient of the tangent line to a curve at any point $(x, y)$ is given by the expression $m = \dfrac{x^3 + x^2}{x^2 + 1}$. Find the equation of this curve, knowing that it passes through the point $(0, 1)$.

Solve

Integration by Parts

Some integrals are products that can't be simplified with the methods above, such as $\int x\,e^x\,dx$ or $\int \ln x\,dx$.

Choosing $u$ well is the key. Take as $u$ the function that appears first in the ILATE rule (in some books, ALPES):

Order of the ILATE rule for choosing u: inverse trigonometric, logarithmic, algebraic, trigonometric, exponential. Choose as u the one that appears first. Iinverse trig. Llogarithms Aalgebraic Ttrigonom. Eexponential u (first) dv (last)

What's left is $dv$, and it must be easy to integrate.

Practice★☆☆Not started
Use the integration by parts method to solve the following integral. Remember to choose $u$ and $dv$ appropriately following the mnemonic rule ALPES:…

Use the integration by parts method to solve the following integral. Remember to choose $u$ and $dv$ appropriately following the mnemonic rule ALPES:

$\displaystyle \int x \times e^x dx$

Solve
Practice★☆☆Not started
Solve the following integral using the integration by parts method: $\displaystyle \int (x + 2) \times \cos(x) dx$

Solve the following integral using the integration by parts method:

$\displaystyle \int (x + 2) \times \cos(x) dx$

∫ (x + 2) · cos(x) dx u = x + 2 Differentiate du = dx dv = cos(x) dx Integrate v = sin(x) ∫ u dv = u · v - ∫ v du
Solve
Practice★☆☆Not started
Find the antiderivative of the natural logarithm function using the integration by parts method, taking $u = \ln(x)$ and $dv = dx$: $\displaystyle \int \ln(x) dx$

Find the antiderivative of the natural logarithm function using the integration by parts method, taking $u = \ln(x)$ and $dv = dx$:

$\displaystyle \int \ln(x) dx$

Solve

Repeated Integration by Parts

Sometimes, after integrating by parts, the remaining integral also needs parts. Apply the formula again; each time the degree of the algebraic part drops by one.

Practice★★☆Not started
An electronics components company estimates that its marginal cost (the cost of producing an additional unit) follows the function $C'(x) = x \times \ln(x)$, where $x$…

An electronics components company estimates that its marginal cost (the cost of producing an additional unit) follows the function $C'(x) = x \times \ln(x)$, where $x$ is the number of thousands of units produced.

Determine the total cost function $C(x)$ knowing that the fixed costs (cost when $x = 1$, in this simplified model) are $10$ thousand pesos.

units (thousands) C'(x) C'(x) = x·ln(x) ∫ x·ln(x) dx 0 1 C(1)=10 x
Solve
Practice★★☆Not started
Find the antiderivative of the function $g(x) = x^2 \times \cos(x)$ that passes through the origin. You will need to apply the integration by parts method twice in…

Find the antiderivative of the function $g(x) = x^2 \times \cos(x)$ that passes through the origin. You will need to apply the integration by parts method twice in succession.

Solve

Cyclic Integrals

With $e^{ax}\operatorname{sen}(bx)$ or $e^{ax}\cos(bx)$ the degree never drops: after two rounds of parts, the original integral reappears. That is not a failure: you solve for it.

Practice★★☆Not started
Find the indefinite integral $\int e^{2x} \times \sin(x) \, dx$. This type of integral is called "cyclic". Apply the method of integration by parts until the original…

Find the indefinite integral $\int e^{2x} \times \sin(x) \, dx$.

This type of integral is called "cyclic". Apply the method of integration by parts until the original integral appears again and solve for its value.

Solve
Practice★☆☆Not started
In the study of alternating current electrical circuits, the current intensity $i(t)$ in amperes is usually modelled using functions combining exponential and…

In the study of alternating current electrical circuits, the current intensity $i(t)$ in amperes is usually modelled using functions combining exponential and trigonometric functions. Suppose the rate of change of the charge on a capacitor is given by the function:

$$f(t) = e^{-2t} \times \cos(3t)$$

Find the set of all antiderivatives $F(t)$ associated with this current using the method of integration by parts. Keep in mind that this type of integral is solved using the "iteration" or "cyclic" method.

? e⁻²ᵗ -e⁻²ᵗ t f(t) 1 2 3 1 −1 f(t) = e⁻²ᵗ·cos(3t) F(t) = ∫ f(t) dt = ? Method: By parts (Cyclic)
Solve

Finding the Constants

Each integration introduces a constant. To fix it you need a condition.

  • If you are given a point on the function, substitute into $F(x)$ and solve for $C$.

  • If you are given the second derivative, integrate twice: one constant at each step, and two conditions.

  • If $f'$ is defined piecewise, integrate each branch and require that $F$ be continuous at the junction point.

Practice★☆☆Not started
An object moves along a straight line with a time-dependent acceleration defined by $a(t) = \ln(t+1)$. If at the initial moment ($t=0$) the object was at rest and at the…

An object moves along a straight line with a time-dependent acceleration defined by $a(t) = \ln(t+1)$. If at the initial moment ($t=0$) the object was at rest and at the position $s=10$ meters, determine the position equation $s(t)$ at any moment $t$.

Note: Remember that velocity is the integral of acceleration and position is the integral of velocity. Both integrals require the use of the integration by parts method.

Solve
Practice★☆☆Not started
Find the analytical expression of a function $f(x)$ such that its second derivative is $f''(x) = x \times \operatorname{sen}(x)$, knowing that the tangent line to the…

Find the analytical expression of a function $f(x)$ such that its second derivative is $f''(x) = x \times \operatorname{sen}(x)$, knowing that the tangent line to the curve at the origin is the x-axis itself.

X Y f(x) (0,0) Tangent line y = 0 Conditions: f(0) = 0 f'(0) = 0
Solve
Practice★☆☆Not started
Find the function $f(x)$ that satisfies the condition of being continuous across the entire domain of definition of its branches, knowing that its derivative is given…

Find the function $f(x)$ that satisfies the condition of being continuous across the entire domain of definition of its branches, knowing that its derivative is given by:

$$f'(x) = \begin{cases} \frac{1}{x^2+1} & \text{if } x \leq 0 \\ x \times e^x & \text{if } x > 0 \end{cases}$$

and that $f(1) = 1$. You must integrate the second branch by parts and determine the value of the constants of integration to ensure continuity at $x = 0$.

Solve

Summary

Back to the beginning: with $v(t)=\dfrac{4}{t+1}$ the total storage is $S(t)=4\ln|t+1|+C$, and with $v(t)=\dfrac{4t+10}{t^2+4t+13}$ you would get a logarithm plus an arctangent.

See all the exercises in this section