Lesson Video: Integration by Parts | Nagwa Lesson Video: Integration by Parts | Nagwa

Lesson Video: Integration by Parts Mathematics • Third Year of Secondary School

In this video, we will learn how to use integration by parts to find the integral of a product of functions.

18:38

Video Transcript

Integration by Parts

In this video, we will learn how to use integration by parts to find the integral of a product of two functions. We’ll do this by reversing the product rule for derivatives and by using the fact that integration gives us the most general antiderivative of a function.

So, let’s start by recalling what the product rule for differentiation tells us. It tells us if we have two differentiable functions 𝑓 of π‘₯ and 𝑔 of π‘₯, then the derivative of 𝑓 of π‘₯ multiplied by 𝑔 of π‘₯ with respect to π‘₯ is equal to 𝑓 prime of π‘₯ times 𝑔 of π‘₯ plus 𝑓 of π‘₯ multiplied by 𝑔 prime of π‘₯. And this rule helps us differentiate the product of two functions. We need to reverse this rule to get an equivalent rule in terms of integration. This will help us integrate the product of two functions.

We can do this by noting 𝑓 of π‘₯ multiplied by 𝑔 of π‘₯ is an antiderivative of the right-hand side of the equation: 𝑓 prime of π‘₯ times 𝑔 of π‘₯ plus 𝑓 of π‘₯ times 𝑔 prime of π‘₯. And now, since integration gives us the most general antiderivative of a function, we can rewrite this as an integral result. We get the indefinite integral of 𝑓 prime of π‘₯ times 𝑔 of π‘₯ plus 𝑓 of π‘₯ times 𝑔 prime of π‘₯ with respect to π‘₯ is 𝑓 of π‘₯ multiplied by 𝑔 of π‘₯.

However, we can’t yet use this result to evaluate the integral of a product of two functions because our integrand contains two terms. But let’s instead take the integral of each term in the integrand separately. This gives us the indefinite integral of 𝑓 prime of π‘₯ times 𝑔 of π‘₯ with respect to π‘₯ plus the indefinite integral of 𝑓 of π‘₯ times 𝑔 prime of π‘₯ with respect to π‘₯ is equal to 𝑓 of π‘₯ multiplied by 𝑔 of π‘₯.

We can now find an equation for the product of two functions by rearranging to make this the subject. This then gives us that the indefinite integral of 𝑓 of π‘₯ times 𝑔 prime of π‘₯ with respect to π‘₯ is equal to 𝑓 of π‘₯ multiplied by 𝑔 of π‘₯ minus the indefinite integral of 𝑓 prime of π‘₯ times 𝑔 of π‘₯ with respect to π‘₯. And this is called the integration by parts method.

And at first, we might notice something interesting. We want to use this method to evaluate the integral of the product of two functions. However, in our formula, we’re using the integration of the product of two functions. And so it might not seem that this formula will be useful. However, we can see we’re differentiating a different function inside of our integrand. And as we’ll see, being able to differentiate one of the factors of our integrand often makes the integral easier to evaluate.

And before we move on to some examples, it’s also worth noting the integration by parts formula is often written in Leibniz’s notation. However, this time, we’ll call our original functions 𝑒 of π‘₯ and 𝑣 of π‘₯. This gives us the indefinite integral of 𝑒 times d𝑣 by dπ‘₯ with respect to π‘₯ is equal to 𝑒 times 𝑣 minus the indefinite integral of 𝑣 multiplied by d𝑒 by dπ‘₯ with respect to π‘₯. Let’s now see an example of applying integration by parts to evaluate the integral of a product of two functions.

Use integration by parts to evaluate the indefinite integral of π‘₯ times the sin of π‘₯ with respect to π‘₯.

In this question, we are asked to evaluate the indefinite integral of the product of two functions: an algebraic function π‘₯ and a trigonometric function sin of π‘₯. And this should hint to us that we could try using integration by parts to evaluate this integral, even if we were not told to use this method in the question. So, let’s start by recalling the formula for integration by parts.

It tells us the indefinite integral of 𝑒 times d𝑣 by dπ‘₯ with respect to π‘₯ is equal to 𝑒 times 𝑣 minus the indefinite integral of 𝑣 multiplied by d𝑒 by dπ‘₯ with respect to π‘₯. To apply this to evaluate our integral, we’re going to need to choose which of the factors in our integrand needs to be 𝑒 and which one should be d𝑣 by dπ‘₯. So, we need to determine how we’re going to choose which factor will be 𝑒 and which will be d𝑣 by dπ‘₯.

To do this, we need to know when we’re using this formula, the most difficult part of this expression to evaluate is the integral. So, we want to choose our functions to make this integral as easy to evaluate as possible. And usually, we want to do this by choosing 𝑒 which makes d𝑒 by dπ‘₯ simpler. However, sometimes, we need to choose our function 𝑒 such that it cancels when multiplied by part of 𝑣. In either case, let’s look at our functions π‘₯ and sin of π‘₯.

We know when we differentiate π‘₯, its degree will decrease. However, if we were to differentiate the sin of π‘₯, we would just get another trigonometric function. This would not be any simpler. So, we’ll set our function 𝑒 to be equal to π‘₯ and d𝑣 by dπ‘₯ to be equal to the sin of π‘₯. Now, to apply integration by parts, we’re going to need to find an expression for d𝑒 by dπ‘₯ and 𝑣.

So, let’s start by finding d𝑒 by dπ‘₯. That’s the derivative of π‘₯ with respect to π‘₯, which is just equal to one. We also want to find an expression for 𝑣 from d𝑣 by dπ‘₯. And we can recall 𝑣 will be an antiderivative of this function. So, we know that 𝑣 is going to be equal to the indefinite integral of the sin of π‘₯ with respect to π‘₯, which we can recall is negative the cos of π‘₯ plus the constant of integration. However, we don’t need to add a constant of integration in this case.

To see this, consider what would happen if we replace 𝑣 by 𝑣 plus 𝐢 in our integration by parts formula. In the first term, we would get 𝑒 multiplied by the constant of integration 𝐢. However, in our second term, we get 𝐢 times d𝑒 by dπ‘₯. Negative the integral of this is negative 𝑒 time 𝐢, so these two terms cancel. So, it’s another case of constants of integration canceling, so we don’t need to include this constant.

Let’s now substitute our expressions for 𝑒, 𝑣, d𝑒 by dπ‘₯, and d𝑣 by dπ‘₯ into our integration by parts formula. We get the indefinite integral of π‘₯ times the sin of π‘₯ with respect to π‘₯ is equal to π‘₯ times negative the cos of π‘₯ minus the indefinite integral of negative cos of π‘₯ multiplied by one with respect to π‘₯. The first term simplifies to give us negative π‘₯ times the cos of π‘₯. And in our second term, we take out the factor of negative one. This means we add the indefinite integral of the cos of π‘₯ with respect to π‘₯.

Now, all that’s left to do is evaluate this indefinite integral. We know that the sin of π‘₯ is an antiderivative of cos of π‘₯. So, the indefinite integral of cos of π‘₯ is sin of π‘₯ plus the constant of integration 𝐢. Therefore, we were able to show the indefinite integral of π‘₯ times the sin of π‘₯ with respect to π‘₯ is negative π‘₯ cos of π‘₯ plus sin of π‘₯ plus 𝐢. And it is worth noting we can check our answer by differentiating it with respect to π‘₯ and checking we get π‘₯ multiplied by the sin of π‘₯.

In our next example, we’re going to use integration by parts to evaluate the integral of the natural logarithm function.

Integrate the natural logarithm of π‘₯ with respect to π‘₯ by parts using 𝑒 is equal to the natural logarithm of π‘₯ and d𝑣 is equal to dπ‘₯.

In this question, we want to evaluate an indefinite integral by using integration by parts. We can do this by first recalling integration by parts tells us the indefinite integral of 𝑒 times d𝑣 by dπ‘₯ with respect to π‘₯ is equal to 𝑒 times 𝑣 minus the indefinite integral of 𝑣 multiplied by d𝑒 by dπ‘₯ with respect to π‘₯.

Usually when we’re using integration by parts, we first need to determine which function we set as 𝑒 and which one we set as d𝑣 by dπ‘₯. However, we’re already told this information in the question. We’re told to set 𝑒 equal to natural logarithm of π‘₯. And we’re told in terms of differentials, d𝑣 is equal to dπ‘₯. This means that d𝑣 by dπ‘₯ is equal to one. We can then see if we set 𝑒 equal to the natural logarithm of π‘₯ and d𝑣 by dπ‘₯ equal to one, then in our integration by parts formula we get the indefinite integral of the natural logarithm of π‘₯ with respect to π‘₯.

So to apply this, we’re going to need to find expressions for 𝑣 and d𝑒 by dπ‘₯. Let’s start by differentiating 𝑒 with respect to π‘₯. That’s the derivative of the natural logarithm with respect to π‘₯, which we know is the reciprocal function d𝑒 by dπ‘₯ is one over π‘₯. Since d𝑣 by dπ‘₯ is equal to one, the derivative of 𝑣 with respect to π‘₯ is equal to one. In other words, 𝑣 is an antiderivative of one. And we know the derivative of π‘₯ with respect to π‘₯ is one, so we’ll set 𝑣 equal to π‘₯.

Now, we just substitute all of these expressions into our integration by parts formula. We get the indefinite integral of the natural logarithm of π‘₯ with respect to π‘₯ is equal to π‘₯ times the natural logarithm of π‘₯ minus the indefinite integral of π‘₯ multiplied by one over π‘₯ with respect to π‘₯. And we can simplify this; π‘₯ multiplied by one over π‘₯ is just equal to one. So, we’re just left with π‘₯ times the natural logarithm of π‘₯ minus the indefinite integral of one with respect to π‘₯. And we can evaluate this integral. It’s equal to π‘₯ plus the constant of integration 𝐢.

Therefore, we were able to show the indefinite integral of the natural logarithm of π‘₯ with respect to π‘₯ is equal to π‘₯ times the natural logarithm of π‘₯ minus π‘₯ plus 𝐢. And integration by parts was really useful for helping us evaluate this integral because the derivative of the natural logarithm of π‘₯ is a much simpler expression than its integral.

Thus far, when we’ve used integration by parts, we’ve either been given our function d𝑒 and d𝑣 by dπ‘₯ or we’ve needed to choose them ourselves. And it’s quite difficult to choose these functions ourselves since it’s not always obvious which function to choose as 𝑒. But there is one method we can use to help us choose our function 𝑒; it’s called the LIATE method. And this tells us to choose our function 𝑒 based on which of five possible types of functions appears first in our integrand.

The L stands for logarithmic, the I stands for inverse trigonometric functions, the A stands for algebraic, the T stands for trigonometric, and finally the E stands for exponential. We just choose our function 𝑒 based on which of these five functions appears first in our integrand. And it is worth noting the LIATE method does not always give us the best function 𝑒. However, it does usually work. Let’s now see an example of applying the LIATE method to evaluate an integral by parts.

Determine the indefinite integral of three π‘₯ plus four all squared times 𝑒 to the power of π‘₯ with respect to π‘₯.

In this question, we are asked to evaluate the indefinite integral of the product of two functions. So, we’re going to attempt to do this by using integration by parts. And we can recall integration by parts tells us the indefinite integral of 𝑒 times d𝑣 by dπ‘₯ with respect to π‘₯ is equal to 𝑒 times 𝑣 minus the indefinite integral of 𝑣 multiplied by d𝑒 by dπ‘₯ with respect to π‘₯.

So now, we need to choose our functions 𝑒 and d𝑣 by dπ‘₯. And we’re going to choose our function 𝑒 by using the LIATE method. We check our integrand for each of the five types of functions in turn to determine our function 𝑒. First, we start with logarithmic functions. We can see there’s no logarithmic function in our integrand. So, we move on to the next type of function, inverse trig. Once again, we can see there’s no inverse trigonometric functions in our integrand. So, we’ll move on to the third type of function, algebraic, and we can see that three π‘₯ plus four all squared is a polynomial. So, it’s an algebraic function. So, we’ll set 𝑒 to be three π‘₯ plus four all squared. And this means d𝑣 by dπ‘₯ is going to be equal to the remaining factor 𝑒 to the π‘₯.

Now, to apply integration by parts, we’re going to need to find expressions for d𝑒 by dπ‘₯ and 𝑣. Let’s start with d𝑒 by dπ‘₯. We’re going to want to differentiate 𝑒 with respect to π‘₯. And there’s a few different ways of doing this. For example, 𝑒 is the composition of functions, so we could do this by using the chain rule. However, our outer exponent is only two. So, it’s probably easier to just distribute two over our parentheses. We get nine π‘₯ squared plus 24π‘₯ plus 16. This then allows us to differentiate this term by term by using the power rule for differentiation. We get d𝑒 by dπ‘₯ is equal to 18π‘₯ plus 24.

Let’s now find 𝑣. We can see that d𝑣 by dπ‘₯ is equal to 𝑒 the π‘₯. So, 𝑣 is going to be an antiderivative of 𝑒 to the π‘₯. 𝑣 is equal to the indefinite integral of 𝑒 to the π‘₯ with respect to π‘₯. And we know this is equal to 𝑒 to the power of π‘₯ plus the constant of integration. However, we don’t need the constant of integration in this case, we can now substitute these expressions into our integration by parts formula. We get the indefinite integral of three π‘₯ plus four all squared times 𝑒 to the power of π‘₯ with respect to π‘₯ is equal to three π‘₯ plus four squared times 𝑒 to the power of π‘₯ minus the indefinite integral of 𝑒 to the power of π‘₯ multiplied by 18π‘₯ plus 24 with respect to π‘₯.

And at this stage, we might be worried we’ve chosen the wrong function 𝑒 since we’ve ended up with the integral of a product of two functions. However, we can notice something interesting. If we differentiate 18π‘₯ plus 24 with respect to π‘₯, we’ll get a constant. So, we can evaluate this integral by applying integration by parts a second time. To do this, let’s start by clearing some space and then choose our function 𝑒. We’ll do this once again by using the LIATE method. We can see there’s no logarithmic functions and no inverse trigonometric functions. However, there is an algebraic function.

So, we’ll set 𝑒 to be 18π‘₯ plus 24 and d𝑣 by dπ‘₯ to be 𝑒 to the power of π‘₯. We now want to find d𝑒 by dπ‘₯ and 𝑣. Since 𝑒 is a linear function, its derivative is the coefficient of π‘₯. d𝑒 by dπ‘₯ is 18. And 𝑣 is an antiderivative of 𝑒 to the power of π‘₯. 𝑣 is just 𝑒 to the power of π‘₯. We can now substitute these values into our integration by parts formula to evaluate the second indefinite integral. This then gives us three π‘₯ plus four squared times 𝑒 to the power of π‘₯ minus 18π‘₯ plus 24 times 𝑒 to the power of π‘₯ minus the indefinite integral of 𝑒 to the power of π‘₯ times 18 with respect to π‘₯. And we can simplify this.

First, we can distribute the negative over our parentheses, which gives us the following. Next, we can take 18 out of our integral. Now, we can evaluate our final indefinite integral. The indefinite integral of 𝑒 to the power of π‘₯ with respect to π‘₯ is 𝑒 to the power of π‘₯ plus the constant of integration, which then leaves us with the following expression.

Now we could leave our answer like this. However, we can also notice all three of these terms share a factor of 𝑒 to the power of π‘₯. So, if we take out the shared factor of 𝑒 to the power of π‘₯, we get the following expression, and we can simplify the algebraic expression inside of our parentheses. And if we were to do this, we would get our final answer. The indefinite integral of three π‘₯ plus four all squared times 𝑒 to the power of π‘₯ with respect to π‘₯ is equal to 𝑒 to the power of π‘₯ times nine π‘₯ squared plus six π‘₯ plus 10 plus the constant of integration 𝐢.

Let’s now see an example of using indefinite integration to evaluate the integral of the product of a trigonometric function and an exponential function.

By setting 𝑒 equal to 𝑒 to the power of π‘₯ and d𝑣 equal to cos of π‘₯ dπ‘₯, evaluate the indefinite integral of 𝑒 to the power of π‘₯ multiplied by the cos of π‘₯ with respect to π‘₯ by integrating by parts.

In this question, we are asked to evaluate an indefinite integral by using integration by parts. And we can recall integration by parts tells us the indefinite integral of 𝑒 times d𝑣 by dπ‘₯ with respect to π‘₯ is equal to 𝑒 times 𝑣 minus the indefinite integral of 𝑣 multiplied by d𝑒 by dπ‘₯ with respect to π‘₯. And at this point, we usually need to choose our functions 𝑒 and d𝑣 by dπ‘₯ to apply integration by parts. However, we’re told what to choose in the question.

We’re told to choose 𝑒 equal to 𝑒 to the power of π‘₯. And we’re told in terms of differentials, d𝑣 is equal to cos of π‘₯ dπ‘₯. This is equivalent to saying that d𝑣 by dπ‘₯ is equal to cos of π‘₯. So, 𝑒 is 𝑒 to the power of π‘₯, and d𝑣 by dπ‘₯ is cos of π‘₯. We need to use these to determine d𝑒 by dπ‘₯ and 𝑣. First, d𝑒 by dπ‘₯ is the derivative of 𝑒 to the power of π‘₯ with respect to π‘₯, which is just equal to itself.

Next, 𝑣 is the indefinite integral of the cos of π‘₯ with respect to π‘₯. That’s the sin of π‘₯ plus the constant of integration. However, in this case, we don’t need the constant. We can now substitute these expressions into our integration by parts formula. This then gives us 𝑒 to the power of π‘₯ multiplied by the sin of π‘₯ minus the indefinite integral of the sin of π‘₯ times 𝑒 to the power of π‘₯ with respect to π‘₯.

And at this point, we might be worried. We’ve not made our indefinite integral any easier to evaluate by using this integration by parts. Integrating sin of π‘₯ times 𝑒 to the power of π‘₯ is just as difficult as integrating 𝑒 to the power of π‘₯ times the cos of π‘₯. However, we can notice something interesting if we try and evaluate this integral by using integration by parts. If we once again set our function 𝑒 to be the exponential function 𝑒 to the power of π‘₯ and our function d𝑣 by dπ‘₯ to be the trigonometric function sin π‘₯, then 𝑒 will be 𝑒 to the power of π‘₯ and 𝑣 is going to be negative cos of π‘₯.

So, this indefinite integral ends up being the indefinite integral of 𝑒 to the power of π‘₯ times cos of π‘₯ with respect to π‘₯. This is the integral we’re trying to evaluate, and we’ll be able to use this to evaluate our integral. So, let’s start by setting 𝑒 equal to 𝑒 to the power of π‘₯ and d𝑣 by dπ‘₯ equal to the sin of π‘₯. We differentiate 𝑒 with respect to π‘₯. We get d𝑒 by dπ‘₯ is equal to 𝑒 to the power of π‘₯. And the indefinite integral of the sin of π‘₯ with respect to π‘₯ is negative the cos of π‘₯ plus 𝐢. So, 𝑣 is negative cos of π‘₯.

We can now substitute these expressions into our integration by parts formula to evaluate the indefinite integral. This then gives us 𝑒 to the π‘₯ times sin π‘₯ minus 𝑒 to the π‘₯ multiplied by negative cos of π‘₯ minus the indefinite integral of negative cos of π‘₯ times 𝑒 to the power of π‘₯ with respect to π‘₯. And we can then simplify this. Let’s start by distributing the negative over our parentheses and rearranging. This gives us 𝑒 to the π‘₯ times sin π‘₯ plus 𝑒 to the π‘₯ times cos of π‘₯ minus the indefinite integral of 𝑒 to the π‘₯ multiplied by cos of π‘₯ with respect to π‘₯.

But this integral is exactly the same as the integral we have on the left-hand side of the equation. So, let’s add the indefinite integral of 𝑒 to the power of π‘₯ times the cos of π‘₯ with respect to π‘₯ to both sides of the equation. This gives us two times the indefinite integral of 𝑒 to the power of π‘₯ times cos of π‘₯ with respect to π‘₯ is equal to 𝑒 to the power of π‘₯ times sin π‘₯ plus 𝑒 to the power of π‘₯ times cos of π‘₯ plus the constant of integration 𝐢.

And it is worth reiterating we do need to add a constant of integration here. We can now solve for the integral by dividing both sides of the equation through by one-half. And of course, dividing our constant of integration by two will still leave us with a constant. So, we’ll just call this 𝐢. This then gives us our final answer. The indefinite integral of 𝑒 to the power of π‘₯ multiplied by the cos of π‘₯ with respect to π‘₯ is equal to one-half times 𝑒 to the π‘₯ sin π‘₯ plus 𝑒 to the π‘₯ cos of π‘₯ plus the constant of integration 𝐢.

Let’s now go over the key points of this video. First, we showed that integration by parts is the corresponding rule for the product rule. In other words, if we consider the product rule in terms of indefinite integration, we get integration by parts. In particular, in terms of Leibniz’s notation, integration by parts tells us the indefinite integral of 𝑒 times d𝑣 by dπ‘₯ with respect to π‘₯ is equal to 𝑒 times 𝑣 minus the indefinite integral of 𝑣 multiplied by d𝑒 by dπ‘₯ with respect to π‘₯.

And we saw that in general it’s a good idea to choose our function 𝑒 so that when we differentiate it, we make our second integral as easy as possible to evaluate. And we also saw one method of choosing our function 𝑒 by using the LIATE acronym. We choose 𝑒 to be the first function in this list of five which appears in our integrand. However, it is worth noting the LIATE acronym does not always give us the best function 𝑒, so we should always be careful of this.

Finally, it’s also worth noting we saw we could integrate certain functions, such as the natural logarithm of π‘₯, by using integration by parts. We just write it as one times the natural logarithm of π‘₯ and then apply integration by parts. And finally, we saw that sometimes we need to apply integration by parts multiple times to evaluate the indefinite integral.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy