How Do You Solve the Integral of x^2*sin(ax)dx?

  • Context: Undergrad 
  • Thread starter Thread starter Psyc
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around solving the integral of x^2*sin(ax)dx, focusing on integration techniques, particularly integration by parts. Participants share their approaches, challenges, and corrections related to the integration process.

Discussion Character

  • Homework-related
  • Mathematical reasoning
  • Technical explanation

Main Points Raised

  • One participant outlines their initial approach using integration by parts, setting u=x^2 and dv=sin(ax)dx, and expresses confusion at a later step.
  • Another participant confirms the method is correct but points out potential errors with signs and suggests a corrected intermediate result.
  • A third participant emphasizes the importance of double-checking work and provides a checklist for verifying the solution.
  • Further replies highlight the need for careful handling of signs and brackets in the integration process.
  • A participant reports successfully resolving their issues after receiving feedback and presents their final answer, indicating progress in their understanding.

Areas of Agreement / Disagreement

Participants generally agree on the method of integration by parts but express differing views on specific errors and corrections. The discussion remains somewhat unresolved as participants continue to refine their approaches and solutions.

Contextual Notes

Limitations include potential errors in sign handling and distribution, as well as the need for careful verification of intermediate steps in the integration process.

Psyc
Messages
4
Reaction score
0
[SOLVED] Integral of x^2*sin(ax)dx

So, I'm a newb at Integration, especially by parts.

This is what I have
\int x^{2}sin(ax)dx

I set:

u=x^{2} and dv=sin(ax)dx

so I got:

du=2xdx and v=-cos(ax)/a

So then I put everything together

u*v- \int v*du
-x^{2}*\frac{-cos(ax)}{a} - \int \frac{-cos(ax)}{a}*2xdx
-x^{2}*\frac{-cos(ax)}{a} + 2\int \frac{-cos(ax)}{a}*xdx

So that's pretty much where I get lost. I don't know what do do about the second integral.

I tried setting u = 2x and dv = cos(ax)/a * dx and I got

-x^2*cos(ax)/a - 2xsin(ax) - 2cos(ax)
but WebAssign (website where I submit homework) says that's wrong.

This is my first post here. I had some trouble with some other problems that I have so I googled them and most of the search results pointed me here.

So, any suggestions are appreciated.
Thanks
 
Physics news on Phys.org
Hello Psyc, welcome to the forum.

The method you use is indeed the correct one. However you must pay attention to the minus signs. (It might be a typo error). Anyway the intermediate result should read:

-\frac{x^2}{a}cos(ax)+\frac{2}{a}\int {xcos(ax)dx}

The second integral is obtained with the same method as the first one, which you have attempted, but was wrong due to the errors mentioned. You will get the right answer if you write everything down with a bit more care. Give it another try, you are almost at the correct answer.
 
Thanks for noticing that, I think signs are my number one weakness. I tend to look over stuff like that.

I fixed the sign but I don't know if once again I missed something or I'm entering it into the answer box incorrectly.
I've attached a screenshot.

Thanks
 

Attachments

  • Picture 2.png
    Picture 2.png
    7.4 KB · Views: 1,398
A good habit to get into is to always double-check your work. A partial checklist:
  • Do you have a well-formed formula? (Yes, you do)
  • Are the units correct? (not applicable here)
  • Does reverting the answer return the original problem? (No)

In this case, "reverting the answer" means taking the derivative of your answer. The derivative of
-\,\frac{x^2}{a}\cos(ax)+<br /> \frac 2 a\left(\frac x a \sin(ax)-\,\frac 1 a \cos(ax)\right)
with respect to x is
\left(x^2+\frac 2 a\left(\frac 1 a +1\right)\right)\sin(ax)
which is not x^2\sin(ax).
 
Psyc said:
Thanks for noticing that, I think signs are my number one weakness. I tend to look over stuff like that.

I fixed the sign but I don't know if once again I missed something or I'm entering it into the answer box incorrectly.
I've attached a screenshot.

Thanks

You've made the same mistake. Be carefull with the signs,

\int sin(ax) dx = - \frac{cos(ax)}{a}+C

and take care of the brackets as you can see in D H's reply.
Believe me, you're almost there
 
I got someone else to look at it and I was apparently distributing the 2/a incorrectly and some other errors.

I got it all worked out and my answer was
(-x^2/a)*cos(ax)+((2x)/a^2)*sin(ax)+(2/a^3)*cos(ax)

Thanks for all of your help! :)
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
5K
Replies
5
Views
4K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K