Not Every Integral Yields
to Substitution
You have already mastered substitution — the technique that "un-does" the chain rule. But what about integrals like $\int x e^x\,dx$ or $\int x \ln x\,dx$? These are products of two different types of functions, and no substitution will untangle them.
Integration by parts is the answer. It is used everywhere in applications: computing present values of income streams, solving differential equations that model population growth, and evaluating probabilities in statistics. Master this technique and a whole new class of real-world problems opens up.
Integration by Parts:
The Product Rule in Reverse
You know the product rule for differentiation. Integration by parts is what you get when you integrate both sides of it.
If $u$ and $v$ are differentiable functions of $x$, then:
$$\int u\,dv = uv - \int v\,du$$
Equivalently: $\int f(x)g'(x)\,dx = f(x)g(x) - \int g(x)f'(x)\,dx$
How to Use
Integration by Parts
Split the integrand into two parts: one you call u, one you call dv. The choice matters — u should become simpler when differentiated, and dv should be easy to integrate.
Differentiate u to get du. Integrate dv to get v (no +C needed yet). Organise these in a small table: u on top-left, dv top-right, du bottom-left, v bottom-right.
Substitute into ∫u dv = uv − ∫v du. The new integral ∫v du should be simpler than the original.
Evaluate ∫v du. Add +C only at the very end of the entire calculation, not after each step.
Logarithmic → Inverse trig → Algebraic (polynomials) → Trigonometric → Exponential
Choose u from the first category present. The remaining factor becomes dv.
See the Formula in Action
Select any example below to see exactly how u, dv, du, and v are assigned, and how the formula is applied step by step.
Integration by Parts
— Fully Worked
Example 1 — $\int xe^{2x}\,dx$
A straightforward product of a polynomial and an exponential.
Example 2 — $\int x^2\ln x\,dx$
A polynomial multiplied by a logarithm — logarithm always goes to u by LIATE.
Example 3 — $\int x^3 e^{x^2}\,dx$ (Substitution First!)
A case where you first do a substitution, then integration by parts.
Example 4 — $\int x^3 \ln^2 x\,dx$ (IBP Twice — Power meets Log²!)
A higher-degree polynomial paired with $\ln^2 x$ forces two full rounds of IBP with careful fraction tracking.
Example 5 — $\int (\ln x)^2\,dx$
Write $\int (\ln x)^2\cdot 1\,dx$ and use the LIATE trick.
Consider $\int x^2 e^{x^3}\,dx$. You can solve it two ways:
Method 1 (Substitution): Let $u=x^3$, $du=3x^2\,dx$, so $x^2\,dx=\frac{du}{3}$. Then $\int x^2 e^{x^3}\,dx = \frac{1}{3}\int e^u\,du = \frac{e^{x^3}}{3}+C$. ✓ Easy!
Method 2 (IBP): $u=e^{x^3}$, $dv=x^2\,dx$, $du=3x^2e^{x^3}\,dx$, $v=\frac{x^3}{3}$. Then $\int x^2 e^{x^3}\,dx = \frac{x^3}{3}e^{x^3} - \int x^3 e^{x^3}\,dx$... which is harder than what we started with! ✗ IBP makes it worse.
The lesson: always try substitution first. If the integrand has a composite function with its derivative present (here $x^2$ is the derivative of $x^3$), substitution is the natural choice. IBP is for products where substitution won't simplify things.
Now consider $\int x\sqrt{x+5}\,dx$. Here both methods work cleanly — a great example to compare them side by side.
Method 1 (Substitution): Let $u = x+5$, so $x = u-5$ and $du = dx$.
$$\int x\sqrt{x+5}\,dx = \int (u-5)\sqrt{u}\,du = \int\!\left(u^{3/2} - 5u^{1/2}\right)du$$
$$= \frac{2}{5}u^{5/2} - \frac{10}{3}u^{3/2} + C = \frac{2}{5}(x+5)^{5/2} - \frac{10}{3}(x+5)^{3/2} + C$$
Method 2 (IBP): $u=x$, $dv=\sqrt{x+5}\,dx$, $du=dx$, $v=\frac{2}{3}(x+5)^{3/2}$.
$$\int x\sqrt{x+5}\,dx = \frac{2x}{3}(x+5)^{3/2} - \frac{2}{3}\int(x+5)^{3/2}\,dx$$
$$= \frac{2x}{3}(x+5)^{3/2} - \frac{2}{3}\cdot\frac{2}{5}(x+5)^{5/2} + C$$
$$= \frac{2x}{3}(x+5)^{3/2} - \frac{4}{15}(x+5)^{5/2} + C$$
Both answers are equivalent — you can verify by factoring out $(x+5)^{3/2}$. The lesson: when both methods work, substitution is usually shorter. IBP is powerful but requires more steps. Always choose the method that minimises algebra!
Applying IBP to
Definite Integrals
For definite integrals, apply IBP and then evaluate at the limits:
$$\int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du$$
Example 6 — $\int_0^1 xe^x\,dx$
Example 7 — $\int_1^e x\ln x\,dx$
Example 8 — Area Under $y = xe^{-x}$ on $[0, 3]$
Find the area of the region bounded by $y = xe^{-x}$, the $x$-axis, $x=0$, and $x=3$.
Example 9 — Area Under $y = x\ln x$ on $[1, e]$
Find $\int_1^e x\ln x\,dx$ and interpret geometrically as the area under $y=x\ln x$ from $x=1$ to $x=e$.
When One Round of IBP
Is Not Enough
Sometimes after the first round of IBP, the new integral $\int v\,du$ still requires IBP again. This is common when the polynomial factor has degree 2 or higher.
Example 10 — $\int x^2 e^x\,dx$ (IBP Applied Twice)
Example 11 — $\int x^2\sin x\,dx$ (IBP Twice)
Example 12 — $\int x^3\ln x\,dx$ (Single IBP)
Despite the higher power, only one IBP is needed because the logarithm differentiates to a simple fraction.
Integration by Parts
in Business & Economics
Example 13 — Present Value with Growing Income Rate
A Lahore-based tech startup generates income at the rate $f(t) = 200{,}000t$ PKR/year (revenue grows linearly). The annual interest rate is $r = 0.10$ compounded continuously. Find the present value of this income stream over $T = 3$ years.
Example 14 — Total Revenue from Marginal Revenue
A company's marginal revenue is $R'(x) = x\ln(x+1)$ PKR (hundred) per unit. Find the total revenue from selling the first 4 units.
Example 15 — Future Value with Linearly Growing Deposits
A Karachi factory deposits money continuously into an account at rate $f(t) = 50{,}000(1+t)$ PKR/year (deposits grow with time). The account earns $r = 8\%$ continuously. Find the future value after 2 years.
Example 16 — Consumer's Surplus with Logarithmic Demand
The demand for a commodity is $D(q) = 10\ln(q+1) + 20$ PKR/unit, and the market price is set at $p_0 = D(4) = 10\ln 5 + 20 \approx 36.09$ PKR. Find the consumers' surplus.
Example 17 — Net Profit with Advertising Spending
A company spends on advertising so that the rate of change of profit is $P'(t) = te^{0.5t}$ (PKR lakhs per month). Find the total increase in profit over the first 4 months.
When IBP and Substitution
Are Not Enough
Most integrals in social and managerial sciences can be handled by substitution and integration by parts. But occasionally you encounter forms that require a lookup table. The key skill is recognising which form in the table your integral matches, and making the correct identification of the constants $a$, $b$, and $u$.
Using the Table — Worked Examples
Example 18 — $\int\dfrac{1}{x(3+2x)}\,dx$
Match to Form 6: $\int\dfrac{du}{u(a+bu)} = \dfrac{1}{a}\ln\left|\dfrac{u}{a+bu}\right|+C$
Example 19 — $\int\dfrac{1}{\sqrt{4x^2-9}}\,dx$
Match to Form 20: $\int\frac{du}{\sqrt{u^2-a^2}} = \ln|u+\sqrt{u^2-a^2}|+C$
Example 20 — $\int\dfrac{x}{(3+2x)^2}\,dx$
Match to Form 3 with $a=3$, $b=2$, $u=x$.
Example 21 — $\int x^3\ln x\,dx$ via Table
Match to Form 25 with $n=3$: $\int u^n\ln u\,du = \frac{u^{n+1}}{n+1}\left(\ln u - \frac{1}{n+1}\right)+C$
Logistic Growth:
When Growth Has a Ceiling
Simple exponential growth $\frac{dQ}{dt}=kQ$ says a population grows forever at the same rate — clearly unrealistic. The logistic model adds a carrying capacity $M$: growth slows as the population approaches $M$, and stops entirely once it reaches it.
Logistic equations model: the spread of COVID-19 in Pakistan, the adoption of new technology, the growth of a new business up to market saturation, and population dynamics of fish in a lake.
A quantity $Q(t)$ satisfies the logistic equation if:
$$\frac{dQ}{dt} = kQ(M-Q)$$
where $k > 0$ is the growth rate constant and $M > 0$ is the carrying capacity (the maximum possible value of $Q$).
Solution: Separate variables and use partial fractions + Form 16 from the table $\int\frac{du}{a^2-u^2}$.
$$Q(t) = \frac{M}{1+Ae^{-kMt}}, \quad A = \frac{M-Q_0}{Q_0}$$
where $Q_0 = Q(0)$ is the initial value.
Example 22 — Solving a Logistic Equation
Solve $\frac{dQ}{dt} = 0.02Q(100-Q)$ with $Q(0)=10$.
Example 23 — Spread of Information in a Company
A company has 500 employees. A rumour spreads at rate $\frac{dQ}{dt} = 0.001Q(500-Q)$, where $Q$ is the number of people who have heard it. Initially 5 employees know. Find $Q(t)$ and determine when 250 employees will have heard it.
Example 24 — Market Saturation of a New Product
A new mobile app in Pakistan has a potential market of $M = 2{,}000{,}000$ users. Market research suggests the spread follows $\frac{dQ}{dt} = 0.0000008\,Q(2{,}000{,}000 - Q)$, with $Q(0) = 500$ initial users. Find the number of users after 12 months.