A rational function is a quotient of polynomials:
∫R(x)dx=∫Q(x)P(x)dx,degP=m,degQ=n.
The methods below hold only if m<n. Only n=1 and n=2 are treated in detail.
ax2+bx+c=a(x−x1)(x−x2) with x1,2=2a−b±Δ. Partial fractions: there exist unique A,B∈R with
ax2+bx+ca0+a1x=a1[x−x1A+x−x2B],I=a1[Alog∣x−x1∣+Blog∣x−x2∣]+k.
Finding A, B. Bring the right side to a common denominator:
x−x1A+x−x2B=(x−x1)(x−x2)(A+B)x−(Ax2+Bx1)
and equate the numerator to a0+a1x. By the identity principle for polynomials (equal for every x iff coefficients of equal powers are equal), equate the coefficients of x and the constant terms: a system in A, B.
Example.∫2x2−5x+22x+1dx. Δ=25−16=9, x1,2=45±3=2,21, so 2x2−5x+2=2(x−2)(x−21) and
2x2−5x+22x+1=21[x−2A+x−21B]=2(x−2)(x−21)(A+B)x−21A−2B.
Coefficients of x: A+B=2; constants: −21A−2B=1. With B=2−A: 23A=5, A=310, B=−34:
I=35log∣x−2∣−32logx−21+k.Shortcut: the identity A(x−x2)+B(x−x1)= numerator holds for everyx; x=x1 eliminates B, x=x2 eliminates A. Here x=2 gives 23A=5 and x=21 gives −23B=2.
Δ=0: a double root
ax2+bx+c=a(x−x1)2, x1=−2ab. Put y=x−x1 (x=y+x1, dy=dx): the integral splits into ∫ydy and ∫y2dy=−y1.
Example.∫4x2+4x+12x−1dx: 4x2+4x+1=4(x+21)2; with y=x+21, x=y−21:
41∫y22(y−21)−1dy=41∫[y2−y22]dy=21logx+21+2(x+21)1+k.
Δ<0: no real roots
The denominator never vanishes. Aim for denominator x2+1:
∫x2+1dx=arctanx+k,∫x2+1xdx=21log(x2+1)+k.
Constant numerator: completing the square. Take a=1: I1=∫x2+bx+cdx, Δ=b2−4c<0. Add and subtract 4b2:
x2+bx+c=(x+2b)2+=−Δ/4>044c−b2=(x+2b)2+R2,R=2−Δ.
Factor out R2 and substitute y=R1(x+2b), dy=R1dx:
I1=R1∫y2+1dy=R1arctan(Rx+2b)+k.
Special case: ∫x2+R2dx=R1arctanRx+k.
Numerator of degree 1. Write a0+a1x=A(2x+b)+B, with A=2a1, B=a0−Ab. Then
I=A∫x2+bx+c2x+bdx+BI1=Alog(x2+bx+c)+BI1
(no absolute value: the denominator is always positive).
Degree of numerator ≥ degree of denominator: division
If m≥n, divide: P=DQ+R with degR<n, so
∫QPdx=∫Ddx+∫QRdx.Example.3x4−2x3+1=(3x2−2x−3)(x2+1)+(2x+4), so
∫x2+13x4−2x3+1dx=x3−x2−3x+log(x2+1)+4arctanx+k.
Often division is unnecessary: add and subtract in the numerator, e.g. x2−42x2+1=x2−42(x2−4)+9=2+x2−49.
Denominator of degree n>2 (outline)
Q factors into linear factors (x−x1)k1 (one per real root, with multiplicity) and quadratic factors with Δ<0. With m<n the fraction splits into partial fractions: for each (x−x1)k1 a term (x−x1)k1A0+A1x+⋯+Ak1−1xk1−1, for each quadratic factor (with h1=1) a term x2+p1x+q1Bx+C; there are n unknown constants in all, found by the identity principle.
Example.x3−3x2+x−3=x2(x−3)+(x−3)=(x−3)(x2+1), so (x−3)(x2+1)1=x−3A+x2+1Bx+C.
Summary (rational functions)
Denominator
Method
Typical result
ax+b
y=ax+b
log∣ax+b∣
Δ>0
partial fractions
sum of two logarithms
Δ=0
y=x−x1
logarithm +x−x11
Δ<0
numerator A(2x+b)+B, complete the square
logarithm + arctangent
degP≥degQ
polynomial division
polynomial + cases above
degQ>2
factor Q, partial fractions
logarithms, arctangents, powers
Integrals reducible to rational functions
Here R(⋅) denotes a rational function of the expression in brackets. With the right substitution the integral becomes ∫R(y)dy.
1. ∫R(f(x))f′(x)dx=∫R(y)dy, y=f(x). Example.∫(1+x2)[arctan2x+2arctanx+3]dx: 1+x21 is the derivative of arctanx; with y=arctanx it becomes ∫y2+2y+3dy, rational with 4Δ=1−3<0.
2. ∫R(ex)dx and ∫R(ax)dx.y=ex, dy=exdx, so dx=ydy:
∫R(ex)dx=∫yR(y)dy.
With base a>0, a=1: y=ax, dx=ylogady. Example.∫2x−1dx=∫2x(2x−1)2xdx; with y=2x, 2xdx=log2dy, it becomes log21∫y(y−1)dy: partial fractions with Δ>0.
3. Functions of ex and e−x. For ∫aex+be−x+cdx, ∫coshxdx, ∫sinhxdx multiply numerator and denominator by ex (so e−x disappears):
∫ae2x+cex+bexdx=∫ay2+cy+bdy,y=ex.Example.∫coshxdx=2∫e2x+1exdx=2∫y2+1dy=2arctan(ex)+k.
4. ∫R(sinx,cosx)dx: t=tan2x.t=tan2x⟺x=2arctant(−π<x<π),dx=1+t22dt,sinx=1+t22t,cosx=1+t21−t2,tanx=1−t22t.Origin:sinx=sin22x+cos22x2sin2xcos2x; dividing by cos22x gives t2+12t. Likewise cosx=cos22x+sin22xcos22x−sin22x=1+t21−t2.
The method always works for these functions but often leads to high-degree rationals: use it only on simple integrals. Split first and try simpler substitutions (y=sinx or y=cosx if the derivative appears): in ∫sinx3+2cosxdx=3∫sinxdx+2∫sinxcosxdx the first piece uses t=tan2x and the second y=sinx.
Integral
Substitution
dx becomes
∫R(f(x))f′(x)dx
y=f(x)
f′(x)dx=dy
∫R(ex)dx
y=ex
ydy
∫R(ax)dx
y=ax
ylogady
functions of ex, e−x
multiply by ex, then y=ex
ydy
∫R(sinx,cosx)dx
t=tan2x
1+t22dt
Common mistakes
Forgetting the factor a in ax2+bx+c=a(x−x1)(x−x2).
Applying these methods when degP≥degQ: divide first.
Sign errors in the system for A, B: check with x=x1, x=x2.
Substituting y=ex and leaving dx: it must become ydy.
Using t=tan2x on an interval containing ±π, where tan2x is undefined; and not looking for simpler substitutions first.
Versione ripasso
∫QP with degP=m<degQ=n; if m≥n divide: P=DQ+R, ∫QP=∫D+∫QR (or rewrite the numerator: x2−42x2+1=2+x2−49).
Degree 1.∫ax+ba0=aa0log∣ax+b∣.
Degree 2, Δ=b2−4ac.
Δ>0: a(x−x1)(x−x2)a0+a1x=a1[x−x1A+x−x2B]; ∫=a1[Alog∣x−x1∣+Blog∣x−x2∣]. Find A, B by equating coefficients or setting x=x1, x=x2. Example: ∫2x2−5x+22x+1=35log∣x−2∣−32log∣x−21∣+k.
Δ=0: y=x−x1; split into ∫ydy and ∫y2dy=−y1. Example: ∫4x2+4x+12x−1=21log∣x+21∣+2(x+21)1.
Degree >2. Factor Q into (x−x1)k and quadratics with Δ<0; partial fractions, e.g. (x−3)(x2+1)1=x−3A+x2+1Bx+C. Constants by the identity principle.
Example with division.∫x2+13x4−2x3+1=x3−x2−3x+log(x2+1)+4arctanx+k.
Reducing substitutions.
∫R(f(x))f′(x)dx: y=f(x).
∫R(ex)dx: y=ex, dx=ydy; ax: dx=ylogady.
Functions of ex, e−x: multiply by ex; e.g. ∫coshxdx=2arctan(ex).
R(sinx,cosx): t=tan2x, dx=1+t22dt, sinx=1+t22t, cosx=1+t21−t2; e.g. ∫sinxdx=log∣tan2x∣. Only for simple integrals; prefer y=sinx or y=cosx when possible; invalid across ±π.
Typical mistakes. Missing factor a; skipping division; sign errors in A, B; leaving dx unconverted; t=tan2x over ±π.