List of Integrals of Rational Functions With Proofs

#Calculus
TL;DR
Every rational integral ends in polynomials, logarithms and arctangents. This list of integrals of rational functions groups the standard results by denominator, with derivations, conditions, partial-fraction patterns and verified examples.
BT
Bhanzu TeamLast updated on October 11, 202615 min read

What Is The List Of Integrals Of Rational Functions?

The list of integrals of rational functions is a reference table of antiderivatives for integrands of the form P(x)Q(x)\frac{P(x)}{Q(x)}, where PP and QQ are polynomials and QQ is not the zero polynomial. Such a quotient is a rational function. The anchor entry is

∫dxax+b=1aln⁡∣ax+b∣+C,a≠0,\int \frac{dx}{ax+b} = \frac{1}{a}\ln\lvert ax+b\rvert + C, \qquad a \neq 0,

and the second anchor is ∫dxx2+a2=1aarctan⁡xa+C\int \frac{dx}{x^2+a^2} = \frac{1}{a}\arctan\frac{x}{a} + C. Every other row is one of these two, a power-rule row, or a combination of them reached through algebra.

The symbols used in every table:

Symbol

Meaning

Condition

xx

variable of integration

not a zero of the denominator

aa, bb, cc

constants

a≠0a \neq 0 in linear factors; a>0a > 0 in x2±a2x^2 \pm a^2 rows

nn

exponent

a positive integer; exclusions stated in the row

DD

discriminant b2−4acb^2 - 4ac

decides which quadratic row applies

CC

constant of integration

added to every indefinite integral

This page is the catalogue. For the full lesson on the technique, see integration of rational functions.

How Do You Choose The Right Row For A Rational Integral?

Run three checks in order, and the row picks itself.

  1. Compare degrees. If the degree of PP is at least the degree of QQ, the fraction is improper. Divide first with long division of polynomials, integrate the polynomial part, and keep only the proper remainder.

  2. Factor the denominator completely into linear factors and irreducible quadratics (quadratics with D<0D < 0).

  3. Match each piece. A single factor matches a table row directly; a product of factors goes through partial fractions first.

Two reading rules sit on top. The logarithm rows keep the absolute value, because 1x\frac{1}{x} is defined on both sides of 00. And answers that look different can both be right, since ln⁡∣x−ax+a∣\ln\left\lvert\frac{x-a}{x+a}\right\rvert and −ln⁡∣x+ax−a∣-\ln\left\lvert\frac{x+a}{x-a}\right\rvert are the same function.

What Are The Integrals With Linear Denominators?

A linear denominator gives a logarithm, scaled by 1a\frac{1}{a} for the chain rule. The rows come from integration by substitution with u=ax+bu = ax + b, sometimes after splitting the numerator.

Integral

Result

Condition

How it is derived

∫dxx\int \frac{dx}{x}

ln⁡∣x∣+C\ln\lvert x\rvert + C

x≠0x \neq 0

ddxln⁡∣x∣=1x\frac{d}{dx}\ln\lvert x\rvert = \frac{1}{x}

∫dxx−a\int \frac{dx}{x-a}

ln⁡∣x−a∣+C\ln\lvert x-a\rvert + C

x≠ax \neq a

shift of row 1

∫dxax+b\int \frac{dx}{ax+b}

1aln⁡∣ax+b∣+C\frac{1}{a}\ln\lvert ax+b\rvert + C

a≠0a \neq 0

u=ax+bu = ax+b

∫x,dxax+b\int \frac{x,dx}{ax+b}

xa−ba2ln⁡∣ax+b∣+C\frac{x}{a} - \frac{b}{a^2}\ln\lvert ax+b\rvert + C

a≠0a \neq 0

x=1a(ax+b)−bax = \frac{1}{a}(ax+b) - \frac{b}{a}

∫x2,dxax+b\int \frac{x^2,dx}{ax+b}

(ax+b)22a3−2b(ax+b)a3+b2a3ln⁡∣ax+b∣+C\frac{(ax+b)^2}{2a^3} - \frac{2b(ax+b)}{a^3} + \frac{b^2}{a^3}\ln\lvert ax+b\rvert + C

a≠0a \neq 0

u=ax+bu = ax+b, expand x2x^2

∫cx+dax+b,dx\int \frac{cx+d}{ax+b},dx

cax+ad−bca2ln⁡∣ax+b∣+C\frac{c}{a}x + \frac{ad-bc}{a^2}\ln\lvert ax+b\rvert + C

a≠0a \neq 0

divide, then row 3

∫dxx(ax+b)\int \frac{dx}{x(ax+b)}

1bln⁡∣xax+b∣+C\frac{1}{b}\ln\left\lvert\frac{x}{ax+b}\right\rvert + C

b≠0b \neq 0

partial fractions

∫dxx2(ax+b)\int \frac{dx}{x^2(ax+b)}

−1bx+ab2ln⁡∣ax+bx∣+C-\frac{1}{bx} + \frac{a}{b^2}\ln\left\lvert\frac{ax+b}{x}\right\rvert + C

b≠0b \neq 0

partial fractions, repeated xx

∫dx(x−a)(x−b)\int \frac{dx}{(x-a)(x-b)}

1a−bln⁡∣x−ax−b∣+C\frac{1}{a-b}\ln\left\lvert\frac{x-a}{x-b}\right\rvert + C

a≠ba \neq b

partial fractions

The last three rows are partial fractions already done for you. They save time on homework, and they are also the pattern the general method follows.

What Are The Integrals Of Powers Of (ax+b)(ax+b)?

Powers of a linear factor follow the power rule after u=ax+bu = ax + b, with one exception: the power −1-1, which is the logarithm row above.

Integral

Result

Condition

∫(ax+b)n,dx\int (ax+b)^{n},dx

(ax+b)n+1a(n+1)+C\frac{(ax+b)^{n+1}}{a(n+1)} + C

n≠−1n \neq -1

∫dx(ax+b)2\int \frac{dx}{(ax+b)^2}

−1a(ax+b)+C-\frac{1}{a(ax+b)} + C

a≠0a \neq 0

∫dx(ax+b)n\int \frac{dx}{(ax+b)^{n}}

−1a(n−1)(ax+b)n−1+C-\frac{1}{a(n-1)(ax+b)^{n-1}} + C

n≠1n \neq 1

∫x,dx(ax+b)2\int \frac{x,dx}{(ax+b)^2}

ba2(ax+b)+1a2ln⁡∣ax+b∣+C\frac{b}{a^2(ax+b)} + \frac{1}{a^2}\ln\lvert ax+b\rvert + C

a≠0a \neq 0

∫x(ax+b)n,dx\int x(ax+b)^{n},dx

(ax+b)n+2a2(n+2)−b(ax+b)n+1a2(n+1)+C\frac{(ax+b)^{n+2}}{a^2(n+2)} - \frac{b(ax+b)^{n+1}}{a^2(n+1)} + C

n≠−1,−2n \neq -1, -2

The x(ax+b)2\frac{x}{(ax+b)^2} row is worth deriving once, because it shows how a numerator is rewritten in terms of the denominator. Write x=1a(ax+b)−bax = \frac{1}{a}(ax+b) - \frac{b}{a}, split the fraction into 1a(ax+b)−ba(ax+b)2\frac{1}{a(ax+b)} - \frac{b}{a(ax+b)^2}, and each piece is already in the table.

What Are The Integrals Involving x2+a2x^2 + a^2?

An irreducible x2+a2x^2 + a^2 produces an arctangent when the numerator is a constant and a logarithm when the numerator is a multiple of xx. The arctan row is the derivative of the inverse tangent read backwards: ddxarctan⁡xa=ax2+a2\frac{d}{dx}\arctan\frac{x}{a} = \frac{a}{x^2+a^2}.

Integral

Result

Condition

∫dxx2+a2\int \frac{dx}{x^2+a^2}

1aarctan⁡xa+C\frac{1}{a}\arctan\frac{x}{a} + C

a>0a > 0

∫x,dxx2+a2\int \frac{x,dx}{x^2+a^2}

12ln⁡(x2+a2)+C\frac{1}{2}\ln(x^2+a^2) + C

a>0a > 0

∫x2,dxx2+a2\int \frac{x^2,dx}{x^2+a^2}

x−aarctan⁡xa+Cx - a\arctan\frac{x}{a} + C

a>0a > 0

∫dx(x2+a2)2\int \frac{dx}{(x^2+a^2)^2}

x2a2(x2+a2)+12a3arctan⁡xa+C\frac{x}{2a^2(x^2+a^2)} + \frac{1}{2a^3}\arctan\frac{x}{a} + C

a>0a > 0

∫x,dx(x2+a2)n\int \frac{x,dx}{(x^2+a^2)^{n}}

−12(n−1)(x2+a2)n−1+C-\frac{1}{2(n-1)(x^2+a^2)^{n-1}} + C

n≠1n \neq 1

∫dxx(x2+a2)\int \frac{dx}{x(x^2+a^2)}

12a2ln⁡x2x2+a2+C\frac{1}{2a^2}\ln\frac{x^2}{x^2+a^2} + C

x≠0x \neq 0

A Physics Forums student put the confusion in this family plainly: "I'm completely confused as to how u/u²+1 becomes the log function?" The answer is the numerator. In uu2+1\frac{u}{u^2+1}, the numerator uu is half the derivative of u2+1u^2 + 1, so the substitution z=u2+1z = u^2 + 1 turns it into 12∫dzz\frac{1}{2}\int\frac{dz}{z}, a logarithm. In 1u2+1\frac{1}{u^2+1} there is no such factor, and the result is arctan⁡u\arctan u.

Higher powers use the reduction formula, which lowers the power by one each time:

∫dx(x2+a2)n=x2a2(n−1)(x2+a2)n−1+2n−32a2(n−1)∫dx(x2+a2)n−1,n≥2.\int \frac{dx}{(x^2+a^2)^{n}} = \frac{x}{2a^2(n-1)(x^2+a^2)^{n-1}} + \frac{2n-3}{2a^2(n-1)}\int \frac{dx}{(x^2+a^2)^{n-1}}, \qquad n \geq 2.

It comes from integration by parts on the (n−1)(n-1) case; trigonometric substitution with x=atan⁡θx = a\tan\theta reaches the same results.

What Are The Integrals Involving x2−a2x^2 - a^2?

x2−a2x^2 - a^2 factors as (x−a)(x+a)(x-a)(x+a), so its rows are logarithms of a ratio rather than arctangents. A Collegedunia question asks to "Evaluate the integral ∫dx/(a2−x2)\int dx/(a^2 - x^2)"; partial fractions give 1a2−x2=12a(1a−x+1a+x)\frac{1}{a^2-x^2} = \frac{1}{2a}\left(\frac{1}{a-x} + \frac{1}{a+x}\right), which integrates to the second row below.

Integral

Result

Condition

∫dxx2−a2\int \frac{dx}{x^2-a^2}

12aln⁡∣x−ax+a∣+C\frac{1}{2a}\ln\left\lvert\frac{x-a}{x+a}\right\rvert + C

x≠±ax \neq \pm a

∫dxa2−x2\int \frac{dx}{a^2-x^2}

12aln⁡∣a+xa−x∣+C\frac{1}{2a}\ln\left\lvert\frac{a+x}{a-x}\right\rvert + C

x≠±ax \neq \pm a

∫x,dxx2−a2\int \frac{x,dx}{x^2-a^2}

12ln⁡∣x2−a2∣+C\frac{1}{2}\ln\lvert x^2-a^2\rvert + C

x≠±ax \neq \pm a

∫x2,dxx2−a2\int \frac{x^2,dx}{x^2-a^2}

x+a2ln⁡∣x−ax+a∣+Cx + \frac{a}{2}\ln\left\lvert\frac{x-a}{x+a}\right\rvert + C

x≠±ax \neq \pm a

For ∣x∣<a\lvert x\rvert < a the second row also equals 1aartanh⁡xa\frac{1}{a}\operatorname{artanh}\frac{x}{a}, the inverse hyperbolic function form some textbooks print instead. The two are the same function written two ways.

What Are The Integrals With A General Quadratic Denominator?

For ax2+bx+cax^2 + bx + c, the discriminant D=b2−4acD = b^2 - 4ac decides the row: negative gives an arctangent, positive gives a logarithm, and zero gives a power. Each row comes from completing the square, which rewrites the quadratic as a(x+b2a)2−D4aa\left(x + \frac{b}{2a}\right)^2 - \frac{D}{4a}.

Integral

Result

Condition

∫dxax2+bx+c\int \frac{dx}{ax^2+bx+c}

24ac−b2arctan⁡2ax+b4ac−b2+C\frac{2}{\sqrt{4ac-b^2}}\arctan\frac{2ax+b}{\sqrt{4ac-b^2}} + C

D<0D < 0

∫dxax2+bx+c\int \frac{dx}{ax^2+bx+c}

1Dln⁡∣2ax+b−D2ax+b+D∣+C\frac{1}{\sqrt{D}}\ln\left\lvert\frac{2ax+b-\sqrt{D}}{2ax+b+\sqrt{D}}\right\rvert + C

D>0D > 0

∫dxax2+bx+c\int \frac{dx}{ax^2+bx+c}

−22ax+b+C-\frac{2}{2ax+b} + C

D=0D = 0

∫px+qax2+bx+c,dx\int \frac{px+q}{ax^2+bx+c},dx

p2aln⁡∣ax2+bx+c∣+(q−pb2a)∫dxax2+bx+c\frac{p}{2a}\ln\lvert ax^2+bx+c\rvert + \left(q - \frac{pb}{2a}\right)\int\frac{dx}{ax^2+bx+c}

any DD

∫dxx2+x+1\int \frac{dx}{x^2+x+1}

23arctan⁡2x+13+C\frac{2}{\sqrt{3}}\arctan\frac{2x+1}{\sqrt{3}} + C

D=−3D = -3

The linear-over-quadratic row is the workhorse. Split the numerator into a multiple of the denominator's derivative, 2ax+b2ax + b, plus a constant; the first part gives a logarithm and the constant part goes back to the first three rows.

What Are The Partial Fraction Patterns For Rational Integrals?

Partial fractions rewrite a proper fraction with a factored denominator as a sum of simpler fractions, one family per factor. The Physics Forums thread "Integration of Rational Functions by Partial Fractions" shows the usual first hurdle, an improper fraction, which must be divided before any splitting (it is Example 3 below). The patterns, with the integral each term produces:

Factor in Q(x)Q(x)

Terms it contributes

What each term integrates to

Distinct linear (x−r)(x-r)

Ax−r\frac{A}{x-r}

Aln⁡∣x−r∣A\ln\lvert x-r\rvert

Repeated linear (x−r)k(x-r)^{k}

A1x−r+A2(x−r)2+⋯+Ak(x−r)k\frac{A_1}{x-r} + \frac{A_2}{(x-r)^2} + \cdots + \frac{A_k}{(x-r)^{k}}

A1ln⁡∣x−r∣A_1\ln\lvert x-r\rvert, then −Aj(j−1)(x−r)j−1-\frac{A_j}{(j-1)(x-r)^{j-1}} for j≥2j \geq 2

Irreducible quadratic x2+px+qx^2+px+q

Bx+Ex2+px+q\frac{Bx+E}{x^2+px+q}

a logarithm plus an arctangent

Repeated irreducible (x2+px+q)k(x^2+px+q)^{k}

B1x+E1x2+px+q+⋯+Bkx+Ek(x2+px+q)k\frac{B_1x+E_1}{x^2+px+q} + \cdots + \frac{B_kx+E_k}{(x^2+px+q)^{k}}

logarithm, arctangent and the reduction formula

The constants come from multiplying through by Q(x)Q(x) and either substituting the roots (the cover-up shortcut for distinct linear factors) or matching coefficients. The algebra side is covered in partial fractions; the calculus side, with more worked cases, is integration by partial fractions.

Two cubic and quartic rows show the patterns in action:

Integral

Result

∫dxx3+1\int \frac{dx}{x^3+1}

13ln⁡∣x+1∣−16ln⁡(x2−x+1)+13arctan⁡2x−13+C\frac{1}{3}\ln\lvert x+1\rvert - \frac{1}{6}\ln(x^2-x+1) + \frac{1}{\sqrt{3}}\arctan\frac{2x-1}{\sqrt{3}} + C

∫dxx3−1\int \frac{dx}{x^3-1}

13ln⁡∣x−1∣−16ln⁡(x2+x+1)−13arctan⁡2x+13+C\frac{1}{3}\ln\lvert x-1\rvert - \frac{1}{6}\ln(x^2+x+1) - \frac{1}{\sqrt{3}}\arctan\frac{2x+1}{\sqrt{3}} + C

∫dxx4+1\int \frac{dx}{x^4+1}

142ln⁡x2+2x+1x2−2x+1+122(arctan⁡(2x+1)+arctan⁡(2x−1))+C\frac{1}{4\sqrt{2}}\ln\frac{x^2+\sqrt{2}x+1}{x^2-\sqrt{2}x+1} + \frac{1}{2\sqrt{2}}\big(\arctan(\sqrt{2}x+1) + \arctan(\sqrt{2}x-1)\big) + C

The x4+1x^4 + 1 row exists only because x4+1=(x2+2x+1)(x2−2x+1)x^4 + 1 = (x^2 + \sqrt{2}x + 1)(x^2 - \sqrt{2}x + 1), the factorization Leibniz missed.

What Are The Standard Definite Integrals Of Rational Functions?

Definite rational integrals are evaluated from the rows above, with one caution: the interval must not contain a zero of the denominator, or the integral is improper and may diverge.

Definite integral

Value

Approximate

∫01dx1+x2\int_{0}^{1} \frac{dx}{1+x^2}

π4\frac{\pi}{4}

0.78540.7854

∫0∞dx1+x2\int_{0}^{\infty} \frac{dx}{1+x^2}

π2\frac{\pi}{2}

1.57081.5708

∫−∞∞dxx2+a2\int_{-\infty}^{\infty} \frac{dx}{x^2+a^2}

πa\frac{\pi}{a}, a>0a > 0

∫0∞dx(x2+a2)2\int_{0}^{\infty} \frac{dx}{(x^2+a^2)^2}

π4a3\frac{\pi}{4a^3}, a>0a > 0

∫0∞dx1+x3\int_{0}^{\infty} \frac{dx}{1+x^3}

2π33\frac{2\pi}{3\sqrt{3}}

1.20921.2092

∫0∞dx1+x4\int_{0}^{\infty} \frac{dx}{1+x^4}

π22\frac{\pi}{2\sqrt{2}}

1.11071.1107

∫01dx1+x\int_{0}^{1} \frac{dx}{1+x}

ln⁡2\ln 2

0.69310.6931

∫01x,dx1+x2\int_{0}^{1} \frac{x,dx}{1+x^2}

12ln⁡2\frac{1}{2}\ln 2

0.34660.3466

∫23dxx2−1\int_{2}^{3} \frac{dx}{x^2-1}

12ln⁡32\frac{1}{2}\ln\frac{3}{2}

0.20270.2027

The first row is a small surprise worth keeping: a rational integral equals π4\frac{\pi}{4}, which is why arctan⁡\arctan turns up in formulas for π\pi. The infinite-limit rows are improper integrals that converge because the denominator grows at least like x2x^2.

Examples Of Integrals Of Rational Functions

Example 1

Use the list to find ∫32x+5,dx\int \frac{3}{2x+5},dx.

Match the row ∫dxax+b\int \frac{dx}{ax+b} with a=2a = 2 and b=5b = 5:

∫32x+5,dx=3⋅12ln⁡∣2x+5∣+C\int \frac{3}{2x+5},dx = 3 \cdot \frac{1}{2}\ln\lvert 2x+5\rvert + C

=32ln⁡∣2x+5∣+C= \frac{3}{2}\ln\lvert 2x+5\rvert + C

Final answer: 32ln⁡∣2x+5∣+C\frac{3}{2}\ln\lvert 2x+5\rvert + C

Example 2

Find ∫dxx2+4\int \frac{dx}{x^2+4}.

The first instinct reads "one over something" and reaches for the logarithm:

Attempt: ∫dxx2+4=ln⁡∣x2+4∣+C\text{Attempt: } \int \frac{dx}{x^2+4} = \ln\lvert x^2+4\rvert + C

Differentiate the attempt to check it:

ddxln⁡(x2+4)=2xx2+4\frac{d}{dx}\ln(x^2+4) = \frac{2x}{x^2+4}

That is not the integrand; the factor 2x2x appears from nowhere. The logarithm row needs the numerator to be the derivative of the denominator, and here the numerator is the constant 11. With x2+a2x^2 + a^2 and a=2a = 2, the arctangent row applies:

∫dxx2+4=12arctan⁡x2+C\int \frac{dx}{x^2+4} = \frac{1}{2}\arctan\frac{x}{2} + C

Check: ddx[12arctan⁡x2]=12⋅2x2+4=1x2+4\frac{d}{dx}\left[\frac{1}{2}\arctan\frac{x}{2}\right] = \frac{1}{2} \cdot \frac{2}{x^2+4} = \frac{1}{x^2+4}.

Final answer: 12arctan⁡x2+C\frac{1}{2}\arctan\frac{x}{2} + C

Example 3

Evaluate ∫x3+36x2+36,dx\int \frac{x^3+36}{x^2+36},dx (the problem from the Physics Forums thread).

The fraction is improper, so divide first:

x3+36x2+36=x−36x−36x2+36\frac{x^3+36}{x^2+36} = x - \frac{36x - 36}{x^2+36}

=x−36xx2+36+36x2+36= x - \frac{36x}{x^2+36} + \frac{36}{x^2+36}

Integrate each piece with its row (a=6a = 6):

∫x,dx−36⋅12ln⁡(x2+36)+36⋅16arctan⁡x6\int x,dx - 36 \cdot \frac{1}{2}\ln(x^2+36) + 36 \cdot \frac{1}{6}\arctan\frac{x}{6}

=x22−18ln⁡(x2+36)+6arctan⁡x6+C= \frac{x^2}{2} - 18\ln(x^2+36) + 6\arctan\frac{x}{6} + C

Final answer: x22−18ln⁡(x2+36)+6arctan⁡x6+C\frac{x^2}{2} - 18\ln(x^2+36) + 6\arctan\frac{x}{6} + C

Example 4

Find ∫x2+2x−1x3−x,dx\int \frac{x^2+2x-1}{x^3-x},dx.

Factor completely: x3−x=x(x−1)(x+1)x^3 - x = x(x-1)(x+1). Set up distinct linear partial fractions:

x2+2x−1x(x−1)(x+1)=Ax+Bx−1+Ex+1\frac{x^2+2x-1}{x(x-1)(x+1)} = \frac{A}{x} + \frac{B}{x-1} + \frac{E}{x+1}

Cover-up at each root: x=0x = 0 gives A=−1(−1)(1)=1A = \frac{-1}{(-1)(1)} = 1; x=1x = 1 gives B=2(1)(2)=1B = \frac{2}{(1)(2)} = 1; x=−1x = -1 gives E=−2(−1)(−2)=−1E = \frac{-2}{(-1)(-2)} = -1.

∫(1x+1x−1−1x+1)dx=ln⁡∣x∣+ln⁡∣x−1∣−ln⁡∣x+1∣+C\int \left(\frac{1}{x} + \frac{1}{x-1} - \frac{1}{x+1}\right)dx = \ln\lvert x\rvert + \ln\lvert x-1\rvert - \ln\lvert x+1\rvert + C

Final answer: ln⁡∣x(x−1)x+1∣+C\ln\left\lvert\frac{x(x-1)}{x+1}\right\rvert + C

Example 5

Find ∫5x+1(x−1)2(x+2),dx\int \frac{5x+1}{(x-1)^2(x+2)},dx.

A repeated factor needs one term per power:

5x+1(x−1)2(x+2)=Ax−1+B(x−1)2+Ex+2\frac{5x+1}{(x-1)^2(x+2)} = \frac{A}{x-1} + \frac{B}{(x-1)^2} + \frac{E}{x+2}

Cover-up gives B=63=2B = \frac{6}{3} = 2 at x=1x = 1 and E=−99=−1E = \frac{-9}{9} = -1 at x=−2x = -2. Comparing the x2x^2 coefficients, A+E=0A + E = 0, so A=1A = 1.

∫(1x−1+2(x−1)2−1x+2)dx=ln⁡∣x−1∣−2x−1−ln⁡∣x+2∣+C\int \left(\frac{1}{x-1} + \frac{2}{(x-1)^2} - \frac{1}{x+2}\right)dx = \ln\lvert x-1\rvert - \frac{2}{x-1} - \ln\lvert x+2\rvert + C

Final answer: ln⁡∣x−1x+2∣−2x−1+C\ln\left\lvert\frac{x-1}{x+2}\right\rvert - \frac{2}{x-1} + C

Example 6

Evaluate ∫01x2+2x+3(x+1)(x2+1),dx\int_{0}^{1} \frac{x^2+2x+3}{(x+1)(x^2+1)},dx.

Split with one linear and one irreducible quadratic term:

x2+2x+3(x+1)(x2+1)=Ax+1+Bx+Ex2+1\frac{x^2+2x+3}{(x+1)(x^2+1)} = \frac{A}{x+1} + \frac{Bx+E}{x^2+1}

At x=−1x = -1: A=22=1A = \frac{2}{2} = 1. Then x2+2x+3−(x2+1)=2x+2x^2 + 2x + 3 - (x^2 + 1) = 2x + 2, so (Bx+E)(x+1)=2(x+1)(Bx + E)(x+1) = 2(x+1) and B=0B = 0, E=2E = 2.

∫01(1x+1+2x2+1)dx=[ln⁡∣x+1∣+2arctan⁡x]01\int_{0}^{1} \left(\frac{1}{x+1} + \frac{2}{x^2+1}\right)dx = \Big[\ln\lvert x+1\rvert + 2\arctan x\Big]_{0}^{1}

=ln⁡2+2⋅π4=ln⁡2+π2= \ln 2 + 2 \cdot \frac{\pi}{4} = \ln 2 + \frac{\pi}{2}

Final answer: ln⁡2+π2≈2.2639\ln 2 + \frac{\pi}{2} \approx 2.2639

Why Does Every Rational Function Have A Formula For Its Integral?

Every rational function integrates to polynomials, logarithms and arctangents because every real polynomial factors into real linear and irreducible quadratic pieces. That is a consequence of the fundamental theorem of algebra, and it is the reason the tables on this page are complete rather than a sample.

  • Factoring guarantees the split. Once Q(x)Q(x) is factored, partial fractions always exist, and each term is one of the four patterns above.

  • Each pattern has a row. Linear terms give logarithms and powers; quadratic terms give a logarithm, an arctangent and, if repeated, the reduction formula.

  • The boundary is sharp. Put a rational function under a square root and this guarantee disappears, which is why ∫dx1−x4\int \frac{dx}{\sqrt{1-x^4}} has no elementary formula while ∫dx1−x4\int \frac{dx}{1-x^4} does.

Where Do Rational Integrals Show Up In Real Life?

Rational integrals appear whenever a rate is a ratio of polynomials, which happens most often when a growth or reaction rate depends on two competing amounts.

  • Population limits. The logistic model dPdt=kP(1−PK)\frac{dP}{dt} = kP\left(1 - \frac{P}{K}\right) is solved by integrating 1P(K−P)\frac{1}{P(K-P)}, a partial-fraction row from the linear table.

  • Chemistry. A reaction whose rate is proportional to the product of two concentrations leads to ∫dx(a−x)(b−x)\int \frac{dx}{(a-x)(b-x)}, the last row of the linear table.

  • Control engineering. Engineers invert Laplace transforms of circuit and controller responses by splitting rational functions into partial fractions, term by term.

  • Projectile motion with drag. A falling object with air resistance proportional to v2v^2 leads to ∫dvg−kv2\int \frac{dv}{g - kv^2}, an a2−x2a^2 - x^2 row.

Rational Integrals: Where Things Go Sideways

Mistake 1: Writing A Logarithm For Every Reciprocal

Where it slips in: Integrals like 1x2+4\frac{1}{x^2+4} or 1x2+x+1\frac{1}{x^2+x+1}, right after a page of 1ax+b\frac{1}{ax+b} practice.

Don't do this: Writing ∫dxx2+4=ln⁡∣x2+4∣+C\int \frac{dx}{x^2+4} = \ln\lvert x^2+4\rvert + C.

The correct way: Use the logarithm only when the numerator is the derivative of the denominator; a constant over an irreducible quadratic gives an arctangent.

The memorizer learns "one over something gives a log" as a slogan, and the slogan is exactly what fails here. The habit that fixes it is to ask what the derivative of the denominator is before writing any logarithm.

Mistake 2: Skipping Long Division

Where it slips in: Improper fractions such as x3+36x2+36\frac{x^3+36}{x^2+36} or x2+1x2−1\frac{x^2+1}{x^2-1}.

Don't do this: Setting up x2+1x2−1=Ax−1+Bx+1\frac{x^2+1}{x^2-1} = \frac{A}{x-1} + \frac{B}{x+1} straight away.

The correct way: Divide first: x2+1x2−1=1+2x2−1\frac{x^2+1}{x^2-1} = 1 + \frac{2}{x^2-1}, then split only the proper remainder.

The rusher sets up partial fractions at once, solves for AA and BB, and ends with an answer that differentiates to the wrong function. The missing piece is always the polynomial part of the division.

Mistake 3: Splitting Before Factoring Completely

Where it slips in: Denominators like x3−xx^3 - x left as x(x2−1)x(x^2 - 1), or x4+1x^4 + 1 assumed to be irreducible.

Don't do this: Writing Bx+Ex2−1\frac{Bx+E}{x^2-1} as if x2−1x^2 - 1 were irreducible.

The correct way: Factor until every quadratic has D<0D < 0: x2−1=(x−1)(x+1)x^2 - 1 = (x-1)(x+1), and even x4+1x^4 + 1 splits into two real quadratics.

Mistake 4: Integrating Across A Zero Of The Denominator

Where it slips in: Definite integrals such as ∫−11dxx2\int_{-1}^{1} \frac{dx}{x^2}, where x=0x = 0 sits inside the interval.

Don't do this: Computing [−1x]−11=−2\left[-\frac{1}{x}\right]_{-1}^{1} = -2, a negative area for a positive integrand.

The correct way: Split at the zero and treat each piece as an improper integral; here both pieces diverge, so the integral diverges.

Mistake 3 has a famous real-world version. In 1702, Leibniz, one of the two inventors of calculus, stated that x4+a4x^4 + a^4 could not be factored into real linear and quadratic pieces, which would have put some rational integrals out of reach. Decades later Euler wrote down the factorization, as recorded in the history of the fundamental theorem of algebra.

Practice Problems On The List Of Integrals Of Rational Functions

  1. Find ∫dxx2+9\int \frac{dx}{x^2+9}.

  2. Find ∫dxx2−9\int \frac{dx}{x^2-9}.

  3. Find ∫2x+1x2+x−6,dx\int \frac{2x+1}{x^2+x-6},dx.

  4. Find ∫x(x+1)2,dx\int \frac{x}{(x+1)^2},dx.

  5. Find ∫dxx2+2x+5\int \frac{dx}{x^2+2x+5}.

  6. Evaluate ∫01dx(x+1)(x+2)\int_{0}^{1} \frac{dx}{(x+1)(x+2)}.

Answer to Question 1: 13arctan⁡x3+C\frac{1}{3}\arctan\frac{x}{3} + C

Answer to Question 2: 16ln⁡∣x−3x+3∣+C\frac{1}{6}\ln\left\lvert\frac{x-3}{x+3}\right\rvert + C

Answer to Question 3: ln⁡∣x2+x−6∣+C\ln\lvert x^2+x-6\rvert + C

Answer to Question 4: ln⁡∣x+1∣+1x+1+C\ln\lvert x+1\rvert + \frac{1}{x+1} + C

Answer to Question 5: 12arctan⁡x+12+C\frac{1}{2}\arctan\frac{x+1}{2} + C

Answer to Question 6: ln⁡43≈0.2877\ln\frac{4}{3} \approx 0.2877

Key Takeaways

  • The list of integrals of rational functions reduces to polynomials, logarithms and arctangents.

  • Divide first when the fraction is improper, then factor the denominator completely.

  • A numerator that is the denominator's derivative gives a logarithm; a constant over an irreducible quadratic gives an arctangent.

  • The discriminant decides between the arctangent, logarithm and power rows for a general quadratic.

  • Never integrate straight across a zero of the denominator.

Your Next Step With Rational Integrals

Work through practice problems 1 to 6; if a logarithm answer refuses to differentiate back, return to "What Are The Integrals Involving x^2 + a^2?" and check the numerator first. Want a live Bhanzu trainer to help you with partial fractions? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the integration of rational functions by partial fractions?
It is the method of rewriting a proper rational function as a sum of simpler fractions, one family per factor of the denominator, and integrating each term with a logarithm, power or arctangent row. Improper fractions are divided first.
What is the simplest way to evaluate the integral 1/(1+x^3) dx?
Factor 1+x3=(x+1)(x2−x+1)1 + x^3 = (x+1)(x^2-x+1) and use partial fractions: 11+x3=13(x+1)−x−23(x2−x+1)\frac{1}{1+x^3} = \frac{1}{3(x+1)} - \frac{x-2}{3(x^2-x+1)}. The result is 13ln⁡∣x+1∣−16ln⁡(x2−x+1)+13arctan⁡2x−13+C\frac{1}{3}\ln\lvert x+1\rvert - \frac{1}{6}\ln(x^2-x+1) + \frac{1}{\sqrt{3}}\arctan\frac{2x-1}{\sqrt{3}} + C, the row given in the partial-fraction section.
How do you evaluate the integral ∫2/(1 - x - x^2) dx?
Complete the square: 1−x−x2=54−(x+12)21 - x - x^2 = \frac{5}{4} - \left(x + \frac{1}{2}\right)^2, which is an a2−u2a^2 - u^2 row with a=52a = \frac{\sqrt{5}}{2}. The answer is 25ln⁡∣5+2x+15−2x−1∣+C\frac{2}{\sqrt{5}}\ln\left\lvert\frac{\sqrt{5}+2x+1}{\sqrt{5}-2x-1}\right\rvert + C.
What is the value of ∫dx/(x(x^2 + a^2)) in the list of integrals of rational functions?
12a2ln⁡x2x2+a2+C\frac{1}{2a^2}\ln\frac{x^2}{x^2+a^2} + C, from 1x(x2+a2)=1a2(1x−xx2+a2)\frac{1}{x(x^2+a^2)} = \frac{1}{a^2}\left(\frac{1}{x} - \frac{x}{x^2+a^2}\right).
Find the value of ∫1/(x^2 + a^2) dx from the list of integrals of rational functions.
1aarctan⁡xa+C\frac{1}{a}\arctan\frac{x}{a} + C for a>0a > 0. We used it with a=2a = 2 in Example 2.
How do you solve (x^2+1)/(x^2-1) dx using partial fractions, can you split it directly?
No. The fraction is improper, so divide first: x2+1x2−1=1+2x2−1=1+1x−1−1x+1\frac{x^2+1}{x^2-1} = 1 + \frac{2}{x^2-1} = 1 + \frac{1}{x-1} - \frac{1}{x+1}. The integral is x+ln⁡∣x−1x+1∣+Cx + \ln\left\lvert\frac{x-1}{x+1}\right\rvert + C.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →