5. Integral Calculus

Integration By Parts

Integration by Parts

Imagine students is trying to find an integral like $\int x e^x \, dx$ or $\int x\ln x \, dx$. These are not simple power-rule problems, and substitution does not always make them easier. That is where integration by parts comes in. It is a powerful method in Integral Calculus for integrals that involve a product of two functions. 📘

In this lesson, students will learn:

  • what integration by parts means and where it comes from,
  • how to choose the parts of an integral wisely,
  • how to solve standard problems step by step,
  • how the method connects to antiderivatives, definite integrals, and substitution,
  • and why this technique is important in engineering mathematics. ⚙️

Integration by parts is one of the core tools in calculus because many real engineering formulas involve products of functions, such as displacement times force, time times exponential growth, or distance times trigonometric behavior. Learning this method helps students handle integrals that would otherwise stay stuck.

What Integration by Parts Means

Integration by parts comes from the product rule for differentiation. The product rule says that if $u$ and $v$ are functions of $x$, then

$$\frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx}.$$

If we rewrite this in differential form, we get

$$d(uv)=u\,dv+v\,du.$$

Now integrate both sides:

$$\int d(uv)=\int u\,dv+\int v\,du.$$

Since $\int d(uv)=uv$, we rearrange to get the integration by parts formula:

$$\int u\,dv=uv-\int v\,du.$$

This is the main identity students will use. It turns one difficult integral into another one that is hopefully easier. The trick is not just to apply the formula, but to choose $u$ and $dv$ well.

A useful way to think about it is this: one part of the product is chosen to become simpler when differentiated, and the other part is chosen so that it is easy to integrate. This is why the method works well for expressions like $x e^x$, $x\sin x$, or $x\ln x$.

A common guideline for choosing $u$ is to pick the function that becomes simpler after differentiation. For example:

  • polynomial terms like $x$ or $x^2$ simplify when differentiated,
  • logarithmic terms like $\ln x$ become simpler,
  • inverse trigonometric terms often simplify nicely.

The remaining part is chosen as $dv$ so it can be integrated easily. This is part of engineering mathematics reasoning: students is not just calculating, but also making strategic choices.

The Formula in Action

Let us solve a classic example:

$$\int x e^x \, dx.$$

Choose

$$u=x, \quad dv=e^x\,dx.$$

Then

$$du=dx, \quad v=e^x.$$

Apply the formula:

$$\int x e^x \, dx = x e^x - \int e^x \, dx.$$

Now integrate the remaining term:

$$\int e^x \, dx=e^x.$$

So the answer is

$$\int x e^x \, dx = x e^x - e^x + C.$$

We can also factor it:

$$\int x e^x \, dx = e^x(x-1)+C.$$

This example shows the basic workflow:

  1. identify the product,
  2. choose $u$ and $dv$,
  3. compute $du$ and $v$,
  4. substitute into $\int u\,dv=uv-\int v\,du$,
  5. simplify.

Now consider a trigonometric example:

$$\int x\sin x \, dx.$$

Choose

$$u=x, \quad dv=\sin x\,dx.$$

Then

$$du=dx, \quad v=-\cos x.$$

So

$$\int x\sin x \, dx = -x\cos x + \int \cos x \, dx.$$

Since

$$\int \cos x \, dx=\sin x,$$

the final result is

$$\int x\sin x \, dx = -x\cos x + \sin x + C.$$

The sign changes matter a lot here, so students should always check whether the derivative or antiderivative introduces a minus sign.

Choosing $u$ and $dv$ Wisely

The most important decision in integration by parts is selecting $u$ and $dv$. A poor choice can make the new integral harder than the original. A good choice makes the problem simpler.

A common memory aid is the order of preference for $u$:

  • inverse trigonometric functions,
  • logarithmic functions,
  • algebraic functions,
  • trigonometric functions,
  • exponential functions.

This helps students choose a function that becomes easier after differentiation. For example, in $\int x\ln x\,dx$, choosing $u=\ln x$ and $dv=x\,dx$ is usually not ideal because integrating $x$ is easy, but differentiating $\ln x$ is also easy, so both choices are possible. However, choosing

$$u=\ln x, \quad dv=x\,dx$$

works well because

$$du=\frac{1}{x}\,dx, \quad v=\frac{x^2}{2}.$$

Then

$$\int x\ln x\,dx = \frac{x^2}{2}\ln x - \int \frac{x^2}{2}\cdot \frac{1}{x}\,dx.$$

This simplifies to

$$\int x\ln x\,dx = \frac{x^2}{2}\ln x - \frac{1}{2}\int x\,dx.$$

Now integrate:

$$\int x\,dx=\frac{x^2}{2}.$$

So

$$\int x\ln x\,dx = \frac{x^2}{2}\ln x - \frac{x^2}{4} + C.$$

This example shows how integration by parts often works best when one piece gets simpler after differentiation.

Another important point is that some integrals may require applying integration by parts more than once. For example, for

$$\int x^2 e^x\,dx,$$

one round of integration by parts reduces the power of $x$, and repeated use eventually removes it completely. That repeated reduction is a common engineering technique because polynomial factors often disappear after enough differentiation.

Definite Integrals and Integration by Parts

Integration by parts also works for definite integrals. The formula becomes

$$\int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du.$$

This is extremely useful because the boundary term $\Big[uv\Big]_a^b$ is evaluated at the endpoints.

Let us compute

$$\int_0^1 x e^x \, dx.$$

From the earlier example, we know that

$$\int x e^x \, dx = x e^x - e^x + C.$$

Using the definite form directly:

Choose

$$u=x, \quad dv=e^x\,dx,$$

so

$$du=dx, \quad v=e^x.$$

Then

$$\int_0^1 x e^x \, dx = \Big[x e^x\Big]_0^1 - \int_0^1 e^x \, dx.$$

Now evaluate each part:

$$\Big[x e^x\Big]_0^1 = 1\cdot e^1 - 0\cdot e^0 = e,$$

and

$$\int_0^1 e^x \, dx = \Big[e^x\Big]_0^1 = e-1.$$

So

$$\int_0^1 x e^x \, dx = e-(e-1)=1.$$

Definite integrals are common in engineering because they often represent accumulated quantities such as work, charge, or total displacement. Integration by parts helps when the integrand is a product of factors that vary in different ways over the interval.

How It Fits Into Integral Calculus

Integration by parts is part of a larger toolkit in Integral Calculus. The main categories students has learned or will learn include:

  • antiderivatives,
  • definite integrals,
  • substitution,
  • integration by parts.

These methods solve different kinds of integrals. Substitution is often used when an integral has a function inside a function and the derivative of the inside part appears nearby. Integration by parts is used when the integrand is a product of functions.

For example:

  • $\int (2x)\cos(x^2)\,dx$ is a strong candidate for substitution because the inner function is $x^2$ and its derivative $2x$ is present.
  • $\int x\cos x\,dx$ is a strong candidate for integration by parts because it is a product of $x$ and $\cos x$.

This shows how the method fits into the broader structure of Integral Calculus. students must first recognize the form of the integrand before choosing a technique.

Integration by parts also supports more advanced topics, such as repeated integration, reduction formulas, and evaluation of integrals that appear in physics and engineering models. For example, logarithmic and exponential terms often show up in heat transfer, vibration analysis, and signal processing. The method gives students a reliable way to simplify those expressions step by step. 📊

Conclusion

Integration by parts is a foundational method in Integral Calculus that comes directly from the product rule. Its formula,

$$\int u\,dv=uv-\int v\,du,$$

turns a product integral into a new integral that is often easier to solve. The main skill is choosing $u$ and $dv$ wisely so that differentiation simplifies one part and integration handles the other.

For engineering mathematics, this method is especially valuable because many practical integrals involve products of functions. Whether students is finding an area-related quantity, an accumulated effect, or solving a model from physics or engineering, integration by parts is a key technique that connects algebra, differentiation, and integration into one powerful procedure. ✅

Study Notes

  • Integration by parts comes from the product rule for differentiation.
  • The main formula is $$\int u\,dv=uv-\int v\,du.$$
  • Choose $u$ to be the part that becomes simpler when differentiated.
  • Choose $dv$ to be the part that is easy to integrate.
  • It works well for products like $x e^x$, $x\sin x$, and $x\ln x$.
  • For definite integrals, use $$\int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du.$$
  • Substitution is usually better for composite functions; integration by parts is usually better for products.
  • The method is important in engineering mathematics because it helps solve real-world accumulated quantities and models.
  • Always check signs carefully, especially with trigonometric functions.
  • Some problems need integration by parts more than once.

Practice Quiz

5 questions to test your understanding