What Went Wrong with My Integration by Parts?

Click For Summary

Homework Help Overview

The discussion revolves around the integration of the function \( \int_{0}^{\pi} x^2 \cos x \, dx \) using integration by parts. Participants are examining the steps taken in the integration process and identifying where errors may have occurred.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the initial setup of integration by parts, questioning the correctness of the second integration step. There is a suggestion to apply integration by parts again to the resulting integral, and some participants express uncertainty about the approach taken.

Discussion Status

The discussion is active, with participants providing feedback on each other's attempts and clarifying the steps involved in integration by parts. Some guidance has been offered regarding the need to reapply integration by parts, and there is an exploration of different variable assignments for the integration process.

Contextual Notes

Participants are working under the constraints of a homework assignment, which may limit the amount of information they can share or the methods they can use. There is an emphasis on verifying each other's work and understanding the reasoning behind the integration steps.

paperclip
Messages
32
Reaction score
0
Hello there. I feel like this isn't the right answer, but I'd like some verification as to where exactly I went wrong! 1. Homework Statement is [tex]\int_{0}^{pi}x^2cos x dx[/tex]

3. The Attempt at a Solution went something like this:
[tex]u=x^2 dv=cos x dx <br /> du=2x dx v=\int_{0}^{pi}cos x dx= sin x[/tex]

The integral was then:
[tex]\int_{0)^{pi}x^2cos x dx= x^2 sin x\right]_{0}^{pi}-\int_{0}^{pi}sin x 2x dx[/tex]

to solve:

[tex]=x^2 sin x + cos x x^2[/tex]
[tex]=pi^2 sin pi + cos 0 o^2[/tex]
[tex]9.87 times 0=1+0[/tex]
[tex]=1[/tex]

Thanks for all your help in advance! :smile:





 
Last edited:
Physics news on Phys.org
paperclip said:
Hello there. I feel like this isn't the right answer, but I'd like some verification as to where exactly I went wrong! 1. Homework Statement is [tex]\int_{0}^{pi}x^2cos x dx[/tex]

3. The Attempt at a Solution went something like this:
[tex]u=x^2 \hspace{5mm} dv=cos x dx \hspace{5mm}<br /> du=2x dx \hspace{5mm} v=\int_{0}^{pi}cos x dx= sin x[/tex]

The integral was then:
[tex]\int_{0}^{pi}x^2cos x dx= \left[x^2 sin x\right]_{0}^{\pi}-\int_{0}^{\pi}sin x 2x dx[/tex]

to solve:

[tex]=x^2 sin x + cos x x^2[/tex]
[tex]=\pi^2 sin pi + cos 0 o^2[/tex]
[tex]9.87 \times 0=1+0[/tex]
[tex]=1[/tex]

Thanks for all your help in advance! :smile:






Ive just cleaned up your tex so I can check your work.
 
From here: [tex]\int_{0}^{\pi}x^2cos x dx= \left[x^2 sin x\right]_{0}^{\pi}-\int_{0}^{\pi}sin x 2x dx[/tex]

You need to apply integration by parts again to the second term on the RHS. I don't quite know what you've done in your original post.
 
You started just fine:

[tex]\int x^2 \cos x\,dx = x^2\sin x - \int \sin x\,2x\,dx[/tex]

You're problem is the second integration:

[tex]\int \sin x\,2x\,dx \ne -\cos x\,x^2[/tex]
 
Do I need to integrate by parts again?
[tex]\int \sin x\,2x,dx=2/int,x,sinx,dx[/tex]
so
[tex]= \left[x^2 sin x\right]_{0}^{\pi}-2\int_{0}^{\pi}xsin x dx[/tex]
is this right?
 
No :(

[tex]\int \sin x 2x dx[/tex].
u=sin x, dv = 2x dx
du=cos x dx, v=x^2

Subbing these straight into integration by parts it should be
[tex]\sin (x) \cdot x^2 - \int x^2 \cos x dx[/tex].

Hmm Isnt that interesting, your original integral appeared again, how could this help i wonder :P
 
Actually I did it wrong, you should be able to see why the way I did it doesn't help.

instead, in integration by parts, let u=2x and dv= sin x dx
that way, du= 2 dx, and v= -cos x, which gives us
[tex]-2x\cos x + 2\int \cos x dx[/tex].
The integral in that is just 2 sin x, so the solution to your original integral is easy from here.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
4
Views
3K