What's the indefinite integral formula?

Click For Summary

Homework Help Overview

The discussion revolves around evaluating the integral ∫x^2 sin(πx) dx, focusing on the application of integration by parts. Participants are exploring the complexities introduced by the presence of π in the integral.

Discussion Character

  • Mathematical reasoning, Problem interpretation, Assumption checking

Approaches and Questions Raised

  • Participants discuss the integration by parts method, with attempts to define u and dv. There are questions about the impact of π on the integration process and whether substituting π with a numerical approximation would simplify the problem. Some participants express confusion regarding the integration of cos(πx) and the resulting coefficients.

Discussion Status

Several participants have shared their attempts and results, with some noting discrepancies between their answers and those provided in the textbook. There is an ongoing exploration of the correct coefficients and the necessity of dividing by π during integration. While some clarity has been reached regarding the integration process, no consensus on the final answer has been established.

Contextual Notes

Participants are working under the constraints of homework rules, which may limit the extent of guidance they can seek. The discussion reflects a mix of understanding and confusion regarding the integration of functions involving π.

afcwestwarrior
Messages
453
Reaction score
0

Homework Statement


evaluate the integral
∫x^2 sinpi x dx


Homework Equations


∫u dv= uv - ∫v du
integration by parts formula






The Attempt at a Solution


u=x^2 dv= sin pi x dx
du = 2x v = -cos pi x dx ? the pi is giving me trouble
 
Physics news on Phys.org
afcwestwarrior said:

The Attempt at a Solution


u=x^2 dv= sin pi x dx
du = 2x v = -cos pi x dx ? the pi is giving me trouble


Why?
Would using 3.14 instead of pi would help?

Sorry, I am not used to this type of Int by parts. I make
d/dx (f(x)) = .. equation and integrate

But, seems like you having trouble integrating cos(pi*x)?
 
i figured it out already
 
my answer is -1/pi cos pi x + 1/pi 2x sin pi x - 2(1/pi) -cos pi x +c
but in the back of the book the answer is - 1/pi cos pi x + 2/pi^2 sin pi x + 2/pi^3 cos pi x +c
 
afcwestwarrior said:
my answer is -1/pi cos pi x + 1/pi 2x sin pi x - 2(1/pi) -cos pi x +c
but in the back of the book the answer is - 1/pi cos pi x + 2/pi^2 sin pi x + 2/pi^3 cos pi x +c

possible that you can write out the solution?

I hate to simplify and compare but this is what I got with MATLAB if you want confirm it with book:

>> int('x^2*sin(pi*x)','x')

ans =

1/pi^3*(-pi^2*x^2*cos(pi*x)+2*cos(pi*x)+2*pi*x*sin(pi*x))
 
Last edited:
here's me work

u=x^2 dv= sin pi x
du = 2x v = 1/pi -cos pi x dx

x^2 (1/pi) (-cos pi x) -∫2x (1/pi) -cos pi x dx or - (1/pi) x^2 (cos pi x) + (1/pi) ∫2x cos pi x dx

u=2x dv= (1/pi) cos pi x
du=2 v= (1/pi) sin pi x

(1/pi) ∫2x cos pi x dx= 2x (1/pi) sin pi x - ∫ 2(1/pi) sin pi x dx
plug this equation to the other one and you get


(1/pi) x^2 (cos pi x) + (2/pi) x sin pi x + 2/pi cos pi x + c
 
afcwestwarrior said:
(1/pi) x^2 (cos pi x) + (2/pi) x sin pi x + 2/pi cos pi x + c

You are forgetting to divide by pi when you substitute (you are multiplying by 2 but forgetting about pi as it is 2/pi?)
and second problem is you should have cos(pi*x)/pi^2 but you have cos(pi*x)/pi

Only seems to be coefficient problem, everything else looks good!
 
afcwestwarrior said:
my answer is
-1/pi cos pi x + 1/pi 2x sin pi x - 2(1/pi) -cos pi x +c
but in the back of the book the answer is
- 1/pi cos pi x + 2/pi^2 sin pi x + 2/pi^3 cos pi x +c​

Hi afcwestwarrior! :smile:

(have a pi: π :smile:)

The only difference is that you have 1/π everywhere, but the answer has 1/π2 or 1/π3

that's because each time you integrate a function of (πx), you must divide by π …

two integrations π2, three integrations π3. :wink:
 
Ok, so your saying that i have to divide by pi each time i integrate a function of nx.
 
  • #10
so if that pi were a 5, then i'd have to divide by 5 each time right
 
  • #11
I get it now thanks.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
2K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
9
Views
2K