Skip to main content

Integration by Parts

For continuously differentiable u,vu,v on [a,b][a,b], integrate (uv)′=u′v+uv′(uv)'=u'v+uv' and rearrange:

∫abu(x)v′(x) dx=[u(x)v(x)]ab−∫abv(x)u′(x) dx.\int_a^b u(x)v'(x)\,dx=[u(x)v(x)]_a^b-\int_a^b v(x)u'(x)\,dx.

Choose uu so differentiation simplifies it and dvdv so it has an accessible antiderivative. The new integral should be easier; the rule is an identity, not a guarantee of progress. In the first example, differentiating xx removes the polynomial factor. In the logarithm example, write the integrand as ln⁡x⋅1\ln x\cdot1.

For the quadratic substitutions below take a,b>0a,b>0 and choose an angle branch before removing absolute values. For sine and tangent substitutions use −π/2<θ<π/2-\pi/2<\theta<\pi/2. For the secant substitution on x>a/bx>a/b, use 0<θ<π/20<\theta<\pi/2; the negative-xx branch must be handled separately. In the worked sine example the real domain is 0<∣x∣<2/30<|x|<2/3 and θ=arcsin⁡(3x/2)\theta=\arcsin(3x/2) ensures cos⁡θ>0\cos\theta>0. The cotangent relation also holds for negative xx by cot⁡θ=cos⁡θ/sin⁡θ\cot\theta=\cos\theta/\sin\theta, not by assigning a negative side length to a triangle.

For partial fractions, divide polynomials first if the numerator degree is not smaller. Factor over the reals; quadratic factors in the table must be irreducible (b2−4ac<0b^2-4ac<0). Each repeated factor needs all powers up to its multiplicity. The worked rational example is valid separately on x<1x<1 and x>1x>1.

Integration by Parts​

Integration by parts is a technique based on the product rule for differentiation. The formula is:

∫udv=uv−∫vdu\int u dv = uv - \int v du

The choice of uu and dvdv is crucial, and differentiating uu and integrating dvdv gives us dudu and vv, respectively.

Example I​

∫xe−x dx\int x e^{-x} \, dx

Let u=xu = x which implies du=dxdu = dx. Choose dv=e−xdxdv = e^{-x} dx then v=−e−xv = -e^{-x}.

By the integration by parts formula ∫u dv=uv−∫v du\int u \, dv = uv - \int v \, du, we get:

∫xe−x dx=uv−∫v du\int x e^{-x} \, dx = uv - \int v \, du ∫xe−x dx=−xe−x−∫−e−x dx\int x e^{-x} \, dx = -x e^{-x} - \int -e^{-x} \, dx

Since ∫−e−x dx=e−x\int -e^{-x}\,dx=e^{-x}, subtracting that integral gives:

∫xe−x dx=−xe−x−e−x+C=−(x+1)e−x+C\int x e^{-x} \, dx = -x e^{-x} - e^{-x} + C = -(x+1)e^{-x}+C

Where CC is the constant of integration.

Example II​

∫35ln⁡(x) dx\int_{3}^{5} \ln(x) \, dx

Let u=ln⁡(x)u = \ln(x) which implies du=1xdxdu = \frac{1}{x}dx. Choose dv=dxdv = dx then v=xv = x.

Using the integration by parts formula ∫abu dv=uv∣ab−∫abv du\int_{a}^{b} u \, dv = uv \bigg|_{a}^{b} - \int_{a}^{b} v \, du, we obtain:

∫35ln⁡(x) dx=xln⁡(x)∣35−∫35x 1x dx\int_{3}^{5} \ln(x) \, dx = x\ln(x) \bigg|_{3}^{5} - \int_{3}^{5} x \, \frac{1}{x} \, dx

Simplifying the integral ∫35x 1x dx\int_{3}^{5} x \, \frac{1}{x} \, dx to ∫35dx\int_{3}^{5} dx, we have:

∫35ln⁡(x) dx=xln⁡(x)∣35−∫35dx\int_{3}^{5} \ln(x) \, dx = x\ln(x) \bigg|_{3}^{5} - \int_{3}^{5} dx ∫35ln⁡(x) dx=xln⁡(x)∣35−x∣35\int_{3}^{5} \ln(x) \, dx = x\ln(x) \bigg|_{3}^{5} - x \bigg|_{3}^{5}

Subtracting 5−35 - 3 from 5ln⁡(5)−3ln⁡(3)5\ln(5) - 3\ln(3), the final result is:

∫35ln⁡(x) dx=5ln⁡(5)−3ln⁡(3)−(5−3)\int_{3}^{5} \ln(x) \, dx = 5\ln(5) - 3\ln(3) - (5 - 3) ∫35ln⁡(x) dx=5ln⁡(5)−3ln⁡(3)−2\int_{3}^{5} \ln(x) \, dx = 5\ln(5) - 3\ln(3) - 2

Trigonometric Substitutions in Integration​

Substitutions Based on Quadratic Form​

Case 1: a2−b2x2\sqrt{a^2 - b^2x^2}​

  • Substitution: x=absin⁡(θ)x = \frac{a}{b} \sin(\theta)
  • Identity: cos⁡2(θ)=1−sin⁡2(θ)\cos^2(\theta) = 1 - \sin^2(\theta)

Case 2: b2x2−a2\sqrt{b^2x^2 - a^2}​

  • Substitution: x=absec⁡(θ)x = \frac{a}{b} \sec(\theta)
  • Identity: tan⁡2(θ)=sec⁡2(θ)−1\tan^2(\theta) = \sec^2(\theta) - 1

Case 3: a2+b2x2\sqrt{a^2 + b^2x^2}​

  • Substitution: x=abtan⁡(θ)x = \frac{a}{b} \tan(\theta)
  • Identity: sec⁡2(θ)=1+tan⁡2(θ)\sec^2(\theta) = 1 + \tan^2(\theta)

Example​

∫16x24−9x2 dx\int \frac{16}{x^2 \sqrt{4-9x^2}} \, dx

Let x=23sin⁡(θ)x = \frac{2}{3} \sin(\theta) which implies dx=23cos⁡(θ)dθdx = \frac{2}{3}\cos(\theta)d\theta.

4−9x2=4−4sin⁡2(θ)=4cos⁡2(θ)=2∣cos⁡(θ)∣\sqrt{4-9x^2}=\sqrt{4-4\sin^2(\theta)}=\sqrt{4\cos^2(\theta)}= 2 \mid \cos(\theta) \mid

In this case we have 4−9x2=2cos⁡(θ)\sqrt{4-9x^2} = 2\cos(\theta)

∫16x24−9x2 dx=∫16(23sin⁡(θ))2⋅2cos⁡(θ)⋅23cos⁡(θ) dθ=∫12sin⁡2(θ) dθ \int \frac{16}{x^2 \sqrt{4-9x^2}} \, dx = \int \frac{16}{\left(\frac{2}{3}\sin(\theta)\right)^2 \cdot 2\cos(\theta)} \cdot \frac{2}{3}\cos(\theta) \, d\theta = \int \frac{12}{\sin^2(\theta)} \, d\theta ∫16(23sin⁡(θ))2⋅2cos⁡(θ)⋅23cos⁡(θ) dθ=∫12csc⁡2(θ) dθ\int \frac{16}{\left(\frac{2}{3}\sin(\theta)\right)^2 \cdot 2\cos(\theta)} \cdot \frac{2}{3}\cos(\theta) \, d\theta = \int 12 \csc^2(\theta) \, d\theta

This simplification uses the identity sin⁡2(θ)+cos⁡2(θ)=1\sin^2(\theta) + \cos^2(\theta) = 1 and the definition of csc⁡(θ)=1sin⁡(θ)\csc(\theta) = \frac{1}{\sin(\theta)}.

The antiderivative of csc⁡2(θ)\csc^2(\theta) is −cot⁡(θ)- \cot(\theta). So, the evaluation is:

∫12csc⁡2(θ) dθ=−12cot⁡(θ)+C\int 12 \csc^2(\theta) \, d\theta = -12 \cot(\theta) + C

Using Right Triangle Trigonometry​

To convert back to xx, we use the right triangle relation where sin⁡(θ)=3x2\sin(\theta) = \frac{3x}{2} from the original substitution.

The triangle formed by the substitution suggests that:

cot⁡(θ)=4−9x23x\cot(\theta) = \frac{\sqrt{4 - 9x^2}}{3x}

Final Integral in terms of X​

Substituting cot⁡(θ)\cot(\theta) back into the integral expression:

−12cot⁡(θ)+C=−44−9x21x+C-12 \cot(\theta) + C = -4\sqrt{4 - 9x^2} \frac{1}{x} + C

Thus, the final antiderivative in terms of xx is:

∫16x24−9x2 dx=−44−9x2x+C\int \frac{16}{x^2 \sqrt{4 - 9x^2}} \, dx = -4 \frac{\sqrt{4 - 9x^2}}{x} + C
Reference right triangle with hypotenuse a, opposite side x, and adjacent side equal to the square root of a squared minus x squared.Open full-size image

Match the labels to the worked substitution: replace the figure’s a by 2 and its x by 3x. For 0 < x < 2/3, the adjacent side is √(4 − 9x²), so cot θ is adjacent divided by opposite. For negative x, use the signed trigonometric identity already stated above rather than negative side lengths. Access for free at OpenStax.

Partial Fraction Decomposition for Integration​

Concept​

Partial fractions is a technique used to simplify the integration of rational expressions, P(x)Q(x)\frac{P(x)}{Q(x)}, where the degree of P(x)P(x) is less than the degree of Q(x)Q(x).

Steps for Decomposition​

  1. Factor the denominator Q(x)Q(x) as completely as possible.
  2. Write down a partial fraction for each factor in Q(x)Q(x) using constants to represent the numerators.
  3. Solve for the constants by clearing the denominators and equating coefficients for corresponding powers of xx.

Table for Decomposition​

Factor of Q(x)Q(x)Term in Partial Fraction Decomposition (P.F.D)
ax+bax + bAax+b\frac{A}{ax + b}
ax2+bx+cax^2 + bx + cAx+Bax2+bx+c\frac{Ax + B}{ax^2 + bx + c}
(ax+b)k(ax + b)^kA1ax+b+A2(ax+b)2+⋯+Ak(ax+b)k\frac{A_1}{ax + b} + \frac{A_2}{(ax + b)^2} + \cdots + \frac{A_k}{(ax + b)^k}
(ax2+bx+c)k(ax^2 + bx + c)^kA1x+B1ax2+bx+c+⋯+Akx+Bk(ax2+bx+c)k\frac{A_1x + B_1}{ax^2 + bx + c} + \cdots + \frac{A_kx + B_k}{(ax^2 + bx + c)^k}

Example of Integration Using Partial Fraction​

∫7x2+13x(x−1)(x2+4) dx\int \frac{7x^2 + 13x}{(x - 1)(x^2 + 4)} \, dx

Partial Fraction Decomposition​

To decompose the function, assume it can be written as the sum of fractions:

7x2+13x(x−1)(x2+4)=Ax−1+Bx+Cx2+4\frac{7x^2 + 13x}{(x - 1)(x^2 + 4)} = \frac{A}{x - 1} + \frac{Bx + C}{x^2 + 4}

Where AA, BB, and CC are constants to be determined.

Finding Constants​

Multiply both sides by the common denominator (x−1)(x2+4)(x - 1)(x^2 + 4) and equate the numerators:

7x2+13x=A(x2+4)+(Bx+C)(x−1)7x^2 + 13x = A(x^2 + 4) + (Bx + C)(x - 1)

Expanding the right side and collecting like terms gives:

7x2+13x=(A+B)x2+(C−B)x+4A−C7x^2 + 13x = (A + B)x^2 + (C - B)x + 4A - C

Setting Coefficients Equal​

Match the coefficients of corresponding powers of xx from both sides of the equation:

x2:A+B=7x:C−B=13Constant:4A−C=0\begin{align*} x^2: & \quad A + B = 7 \\ x: & \quad C - B = 13 \\ \text{Constant}: & \quad 4A - C = 0 \end{align*}

Solving the System of Equations​

Solve this system of linear equations to find the values of AA, BB, and CC:

A=4B=3C=16\begin{align*} A & = 4 \\ B & = 3 \\ C & = 16 \end{align*}

Rewriting the Integral​

Substitute the values of AA, BB, and CC back into the partial fractions:

∫4x−1+3x+16x2+4 dx\int \frac{4}{x - 1} + \frac{3x + 16}{x^2 + 4} \, dx

Integrating Each Term​

  1. For 4x−1\frac{4}{x - 1}, the antiderivative is 4ln⁡∣x−1∣4 \ln|x - 1|.
  2. For 3xx2+4\frac{3x}{x^2 + 4}, use substitution u=x2+4u = x^2 + 4 to find the antiderivative 32ln⁡∣x2+4∣\frac{3}{2} \ln|x^2 + 4|.
  3. For 16x2+4\frac{16}{x^2 + 4}, recognize it as the derivative of 8tan⁡−1(x2)8\tan^{-1}\left(\frac{x}{2}\right) because ddx[tan⁡−1(x2)]=2x2+4\frac{d}{dx}\left[\tan^{-1}\left(\frac{x}{2}\right)\right] = \frac{2}{x^2 + 4}.

Final Answer​

Combine all antiderivatives and add the constant of integration to get the final solution:

∫7x2+13x(x−1)(x2+4) dx=4ln⁡∣x−1∣+32ln⁡∣x2+4∣+8tan⁡−1(x2)+C\int \frac{7x^2 + 13x}{(x - 1)(x^2 + 4)} \, dx = 4 \ln|x - 1| + \frac{3}{2} \ln|x^2 + 4| + 8\tan^{-1}\left(\frac{x}{2}\right) + C
Explore connectionsOpen network