# Question Video: Integration by Parts Mathematics • Higher Education

Use integration by parts to find the exact value of ∫_(0) ^(π/4) 𝑥² sin 2𝑥 𝑑𝑥.

06:40

### Video Transcript

Use integration by parts to find the exact value of the integral of 𝑥 squared sin two 𝑥 𝑑𝑥 between zero and 𝜋 by four.

Integration by parts uses the formula that the integral of 𝑢𝑣 dash is equal to 𝑢𝑣 minus the integral of 𝑣𝑢 dash, where 𝑢 dash is the differential of 𝑢, and 𝑣 dash is the differential of 𝑣. Our first step is to split our initial expression 𝑥 squared sin two 𝑥 into 𝑢 and 𝑣 dash. We will let 𝑢 equal 𝑥 squared and 𝑣 dash equals sin two 𝑥.

To work out an expression for 𝑢 dash, we need to differentiate 𝑥 squared. 𝑥 squared differentiated is two 𝑥. To work out an expression for 𝑣, we need to integrate sin two 𝑥, as integration is the opposite of differentiation. The integral of sin two 𝑥 is equal to negative cos two 𝑥 over two. Multiplying 𝑥 squared by negative cos two 𝑥 over two gives us negative 𝑥 squared cos two 𝑥 over two. Multiplying two 𝑥 by negative cos two 𝑥 over two gives us negative two 𝑥 cos two 𝑥 over two.

As we have two negative signs, this could be simplified to negative 𝑥 squared cos two 𝑥 over two plus the integral of two 𝑥 cos two 𝑥 divided by two. We can also cancel the twos after the integration sign, by dividing the numerator and denominator by two. We now need to try and integrate 𝑥 cos two 𝑥. We can integrate this expression using parts once again.

We will let 𝑢 equal 𝑥 and 𝑣 dash equal cos two 𝑥. Differentiating 𝑥 gives us one. Therefore, 𝑢 dash is equal to one. Integrating cos two 𝑥 gives us sin two 𝑥 over two. Multiplying 𝑢 and 𝑣, 𝑥 and sin two 𝑥 over two, give us 𝑥 sin two 𝑥 over two. Multiplying 𝑢 dash and 𝑣 gives us sin two 𝑥 over two. We are now left with negative 𝑥 squared cos two 𝑥 over two plus 𝑥 sin two 𝑥 over two minus the integral of sin two 𝑥 over two.

Integrating the third term, sin two 𝑥 over two, gives us negative cos two 𝑥 over four. Once again, our two negative sins can turn into a positive. This means that the integral of 𝑥 squared sin two 𝑥 is equal to negative 𝑥 squared cos two 𝑥 over two plus 𝑥 sin two 𝑥 over two plus cos two 𝑥 over four. Our final step is to substitute our two limits, 𝜋 by four and zero, and subtract the two answers.

Firstly, let’s substitute 𝑥 equals 𝜋 by four. Before starting, it’s worth noting that our trigonometrical functions are cos two 𝑥 and sin two 𝑥. Therefore, we need to calculate cos of two 𝜋 by four and sin of two 𝜋 by four. Two 𝜋 by four radians is the same as 𝜋 by two radians. And 𝜋 by two radians is equal to 90 degrees. We know from our trig graphs that cos of 90 is equal to zero. Therefore, cos of 𝜋 by two radians must also equal zero.

The sin of 90 degrees is equal to one. Therefore, the sin of 𝜋 by two radians is also equal to one. As cos of 𝜋 by two is equal to zero, we know that the first and third terms in our expression will be equal to zero when 𝑥 is equal to 𝜋 by four. The only term that will give us a value is 𝑥 sin two 𝑥 over two. As 𝑥 is equal to 𝜋 by four and sin of two 𝑥 is equal to one, this term gives us 𝜋 by four multiplied by one divided by two. This is equal to 𝜋 by eight, as 𝜋 by four divided by two is equal to 𝜋 by eight. When 𝑥 is equal to 𝜋 by four, the integral of 𝑥 squared sin two 𝑥 equals 𝜋 by eight.

We also need to consider the lower limit when 𝑥 is equal to zero. Once again, from our trig graphs, we know that cos of zero is equal to one and sin of zero is equal to zero. This means that the middle term 𝑥 sin two 𝑥 over two will be equal to zero. It is possible that the first and third term will have nonzero values, as cos of two 𝑥 is equal to one.

The first term negative 𝑥 squared cos two 𝑥 over two also has an 𝑥 term. And as 𝑥 is equal to zero, this whole term will also equal zero. Therefore, the only nonzero term is cos of two 𝑥 over four. We already know that cos two 𝑥 is equal to one. Therefore, cos two 𝑥 over four is equal to one-quarter. As we have worked out exact values for the upper and lower limit, we can now say that the integral of 𝑥 squared sin two 𝑥 between zero and 𝜋 by four is 𝜋 by eight minus one-quarter.