Evaluating the integral, correct?

  • Thread starter Thread starter Zack88
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Homework Help Overview

The discussion revolves around evaluating the integral of the form \(\int x^2 \cos(mx) \, dx\), which involves integration by parts. Participants are exploring the steps and reasoning involved in this integration process.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss using integration by parts multiple times and question the correctness of terms in their evaluations. Some express confusion about the setup of the integral and the differentiation of constants involved in the process.

Discussion Status

There is an ongoing exploration of the integration steps, with some participants providing guidance on how to approach the problem using integration by parts. Multiple interpretations of the integral and its components are being discussed, but there is no explicit consensus on the final solution.

Contextual Notes

Some participants mention typographical errors in their posts, which may affect clarity. There is also a reference to the need for careful handling of constants during integration, as well as the potential for confusion when revisiting previous steps in the integration process.

Zack88
Messages
62
Reaction score
0

Homework Statement



Evaluate the integral

\int x^2 \cos mx dx

Homework Equations

Evaluating the integral, correct?

The Attempt at a Solution



u = x^2
du = 2x
dv = \cos mx
v= \frac {\sin mx }{m}

(x^2)(sin mx / m) - [integral] (sin mx / m)(2x)

(x^2)(sin mx / m) - 2 [integral] (sin mx / m) (x)

[My final answer:] (x^2)(sin mx / m) + 2 (cos mx / m) + c
 
Last edited:
Physics news on Phys.org
I believe you lost a term in evaluating the second term integral in this:

(x^2)(sin mx / m) - 2 [integral] (sin mx / m) (x) .

If you differentiate your final result,

(x^2)(sin mx / m) + 2 (cos mx / m) + c ,

you don't cancel out the additional terms beyond the original integrand...
 
i heard that i should do parts with xsinmx / m, should i do that?
 
Zack88 said:
i heard that i should do parts with xsinmx / m, should i do that?

Yes, you'll need to do that. In general, integration of functions defined by polynomials times sin kx, cos kx, or e^kx need multiple stages of integration by parts.
 
ok with doing parts again confuses me since i have xsinmx /m. The u should it be m? but then what is the derivative of m?
 
Zack88 said:
ok with doing parts again confuses me since i have xsinmx /m. The u should it be m? but then what is the derivative of m?

The 'm' is a constant, so that will not be involved in the integration. Make the integral
(1/m) · integral[ x sin(mx) ] dx . Now u = x and dv = sin(mx) dx . You can append the multiplicative constant (1/m) afterwards...
 
ok so now I have

x^2/m sinmx + 2/m [integral] xsinmx

u = x
du = dx

dv = sin mx
v = 1/m cos mx

and now I am lost
 
Ok let's start from scratch.

I=\int x^2\cos{mx}dx

u=x^2
du=2xdx

dV=\cos{mx}dx
V=\frac{1}{m}\sin{mx}

I=\frac{x^2}{m}\sin{mx}-\frac{2}{m}\int x\sin{mx}dx

Now we have to do Parts again.

u=x
du=dx

dV=\sin{mx}dx
V=\frac{-1}{m}\cos{mx}

I=\frac{x^2}{m}\sin{mx}-\frac{2}{m}\left(\frac{-x}{m}\cos{mx}+\frac{1}{m}\int\cos{mx}dx\right)

Now you can easily evaluate this Integral!
 
Last edited:
  • #10
Ok, I'm officially done typing! Sorry about that, had too many typographical errors.
 
  • #11
I=\frac{x^2}{m}\sin{mx}-\frac{2}{m}\left(\frac{-x}{m}\cos{mx}+\int\cos{mx}dx\right)
ok where did the last \int\cos{mx}dx\right) come from
 
  • #12
Zack88 said:
I=\frac{x^2}{m}\sin{mx}-\frac{2}{m}\left(\frac{-x}{m}\cos{mx}+\int\cos{mx}dx\right)
ok where did the last \int\cos{mx}dx\right) come from
By doing Parts again to evaluate ...

\int x\sin{mx}dx
 
  • #13
ok i see now, thank you, sad part is I am not done with this question and i have one more just like it :(
 
Last edited:
  • #14
Zack88 said:
ok i see now, thank you, sad part is I am not done with this question and i have one more just like it :(
Post it and we'll work on it step by step.
 
  • #15
[integral] e^-x cos 2x dx

u = e^-x
du = -e^-x

dv = cos 2x
v = sin 2x / 2
 
  • #17
I=\int e^{-x}\cos{2x}dx

u=e^{-x}
du=-e^{-x}dx

dV=\cos{2x}dx
V=\frac{1}{2}\sin{2x}

I=\frac{1}{2}e^{-x}\sin{2x}+\frac{1}{2}\int e^{-x}\sin{2x}dx

Ok done typing. Evaluate your current Integral, notice that your Original Integral reappears? Just move it to the left then divide by the constant and you're done!
 
Last edited:
  • #18
ok so \frac{1}{2}\int e^{-x}\sin{2x}dx turns into -1/2e^-xcos2x + c?
 
Last edited:
  • #19
You're supposed to have "2" Parts just like any Integration by Parts.

What is the other term?
 
  • #20
so i don't take the integral just yet? i do another integration by parts?
 
  • #21
Zack88 said:
so i don't take the integral just yet? i do another integration by parts?
Evaluate \frac{1}{2}\int e^{-x}\sin{2x}dx how you normally would.
 
  • #22
u = e^-x
du = -e^-x

dv = sin 2x
v= -1/2 cos 2x
 
  • #23
Yes, so now you've solved it?
 
  • #24
not quite, I am not sure how to put it all together I know i'll have 1/2e^-xsin2x but I am not sure how to put in the new u, du, dv, and v
 
  • #25
Zack88 said:
not quite, I am not sure how to put it all together I know i'll have 1/2e^-xsin2x but I am not sure how to put in the new u, du, dv, and v
Look at what I did in post 9.
 
  • #26
ok I am not done yet but have so far...

1/2e^-xsin2x + 1/2 (1/2 e^-x cos2 x

and that is where i stopped i didnt understand how you got + 1/m [integra] cosmx for post 9
 
  • #27
By Parts.

uV-\int Vdu
 
  • #28
lol sorry i saw (\frac{-x}{m}\cos{mx}+\frac{1}{m}\int\cos{mx}dx\right) as two different things
 
  • #29
so now i have 1/2 e^-x sin 2x + 1/2 (1/2 e^-x cos 2x + [integral] 1/2 e^-x cos 2x)
 
Last edited:
  • #30
so now do I finally take the integral (no more parts) to come out with the final answer?
 

Similar threads

Replies
1
Views
1K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
5
Views
2K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
2K