How Do You Integrate (x^3)(e^2x)?

  • Thread starter shinkansenfan
  • Start date
  • Tags
    Integrate
In summary: When I use Mathematica for complicated problems I often have to write small programs or give commands that tells Mathematica what to do. Those steps that I put in myself require far more thinking than the steps needed to solve simple integrals by substitution. All that Mathematica is doing for me is to mechanically use certain rules to produce hundreds of pages full of formula, something that would take me more than a lifetime to do by hand. I then use that output to extract the information I want.
  • #1
shinkansenfan
9
0
How to integrate (x^3)(e^2x) ?

Thanks.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
by parts.
 
  • #3
Or by integrating exp(p x) and differentiating the result 3 times w.r.t. the parameter p.

Or by integrating exp(p x) and comptuting the third order Taylor expansion around p = 2.

The last option requires the least number of computations, because Taylor expansions can be obtained by using the standard Taylor expansions for the standard functions, rather than using the general Taylor expansion formula in which you have to repeatedly differentiate the function.
 
  • #4
Thanks very much.
 
  • #5
Or: get a computer to do it for you. Maple, Mathematica, etc,

(Is that a lot different that getting Physics Forums to do it for you?)
 
  • #6
g_edgar said:
Or: get a computer to do it for you. Maple, Mathematica, etc,

(Is that a lot different that getting Physics Forums to do it for you?)

Yes it is, because the whole point of this exercise is to let the student learn how to compute such integrals, not merely to know the answer to this problem. Using Mathematica is ok. for people like me who know all about computing integrals but who need to go on with their work and not waste a lot of time doing integrals themselves.

When I use Mathematica for complicated problems I often have to write small programs or give commands that tells Mathematica what to do. Those steps that I put in myself require far more thinking than the steps needed to solve simple integrals by substitution. All that Mathematica is doing for me is to mechanically use certain rules to produce hundreds of pages full of formula, something that would take me more than a lifetime to do by hand. I then use that output to extract the information I want.
 
  • #7
Dickfore said:
by parts.

So I did this three times and I got something like e^2x[x^3/2-3x^2/4+6x/8-16/6] + C
which sounds reasonable, but then when I tried

\int_{-\infty}^{\infty} x^2 e^{-2 x^2} dx

with integration by parts, I ended up with something like infinity ..?

Michuco
 
  • #8
The integral

[tex]
\int_{-\infty}^{\infty} x^2 e^{-2 x^2} dx
[/tex]

does converge.

Show the steps you've made so we can see where it went wrong.
 
  • #9
Cyosis said:
The integral

[tex]
\int_{-\infty}^{\infty} x^2 e^{-2 x^2} dx
[/tex]

does converge.

Show the steps you've made so we can see where it went wrong.

u = x^2 -> du = 2xdx
dv = e^{2x^2} -> v = \sqrt{\pi/2}

\int ... = x^2\sqrt{\pi/2}|_{-\infty}^\infty -\int_{-\infty}^\infty \sqrt{\pi/2} 2 x dx

The first term looks like zero, and the second doesn't looks like it would converge.
I also tried u=e^{-2x^2} and dv = x^2dx, but then I ran into problem with v.
 
  • #10
You need to put [.tex][./tex] tags around your latex code (without the dots).

Fixing your tex so I can read it.
[tex]
u = x^2 -> du = 2xdx
\;
dv = e^{2x^2} -> v = \sqrt{\pi/2}

\int ... = x^2\sqrt{\pi/2}|_{-\infty}^\infty -\int_{-\infty}^\infty \sqrt{\pi/2} 2 x dx[/tex]

I am not sure what you're doing here, but it is definitely wrong.

[tex]
\begin{align*}
\int_{-\infty}^{\infty} x^2 e^{-2 x^2} dx& =\int_{-\infty}^{\infty} x \left(x e^{-2 x^2}\right) dx
\\
&= -\frac{1}{4}x e^{-2 x^2}|_{-\infty}^\infty+\frac{1}{4} \int_{-\infty}^\infty e^{-2x^2}dx
\end{align*}
[/tex]
 
Last edited:
  • #11
Cyosis said:
You need to put [.tex][./tex] tags around your latex code (without the dots).

Fixing your tex so I can read it.
[tex]
u = x^2 -> du = 2xdx
\;
dv = e^{2x^2} -> v = \sqrt{\pi/2}

\int ... = x^2\sqrt{\pi/2}|_{-\infty}^\infty -\int_{-\infty}^\infty \sqrt{\pi/2} 2 x dx[/tex]

I am not sure what you're doing here, but it is definitely wrong.

[tex]
\begin{align*}
\int_{-\infty}^{\infty} x^2 e^{-2 x^2} dx& =\int_{-\infty}^{\infty} x \left(x e^{-2 x^2}\right) dx
\\
&= -\frac{1}{4}x e^{-2 x^2}|_{-\infty}^\infty+\frac{1}{4} \int_{-\infty}^\infty e^{-2x^2}dx
\end{align*}
[/tex]

I take that by the parenthesis, you define [tex]u=x[/tex] and [tex]dv=xe^{-2x^2}[/tex]? But wouldn't this give [tex]v=0[/tex] with [tex]xe^{-2x^2}[/tex] being an odd function?

Sorry, I am particularly densed today
 
  • #12
Why would v be zero? The primitive of an odd function is not zero. Example: according to you [itex]\int xdx=0[/itex], yet [itex]\int x dx= 1/2 x^2[/itex], which I am sure you know.
 
  • #13
Cyosis said:
Why would v be zero? The primitive of an odd function is not zero. Example: according to you [itex]\int xdx=0[/itex], yet [itex]\int x dx= 1/2 x^2[/itex], which I am sure you know.

I am thinking of
[tex]
\begin{equation*}
v = \int_{-\infty}^{\infty} x e^{-2 x^2} d x = 0
\end{equation*}
[/tex]

Don't I need the definite integral in this step also?
 
  • #14
ibmichuco said:
So I did this three times and I got something like e^2x[x^3/2-3x^2/4+6x/8-16/6] + C
which sounds reasonable, but then when I tried

\int_{-\infty}^{\infty} x^2 e^{-2 x^2} dx

with integration by parts, I ended up with something like infinity ..?

Michuco

That's because you took the lower bound to be [itex]-\infty[/itex] and the exponential function [itex]e^{2x}[/itex] is infinitely large in that limit.
 
  • #15
I am thinking of
[tex]v = \int_{-\infty}^{\infty} x e^{-2 x^2} d x = 0[/tex]

Don't I need the definite integral in this step also?

Sure that integral is zero. However that integral never enters in the solution so I am not sure why you're trying to calculate. It has become clear to me now what you did wrong in post #9 as well. You're using the boundary values to determine v. This is wrong, do not plug in the boundary values until you're done integrating. I really suggest you review integration by parts since it seems you don't understand how it works when limits are involved.
 
Last edited:
  • #16
Cyosis said:
Sure that integral is zero. However that integral never enters in the solution so I am not sure why you're trying to calculate. It has become clear to me now what you did wrong in post #9 as well. You're using the boundary values to determine v. This is wrong, do not plug in the boundary values until you're done integrating. I really suggest you review integration by parts since it seems you don't understand how it works when limits are involved.

My bad. Most of what I have read indicate that you use the boundary in the integration and I thought that also includes the evaluation of v. Thanks for clearing that out. Can you suggest any particular book that helps in evaluating tough(er) integrals. I am trying eventually integrate

[tex]
\int_{-\infty}^\infty(x-a)^n(x-b)^m e^{\alpha(x-c)^2} dx
[/tex]

where [itex]n[/itex] and [itex]m[/itex] are integers. I know the result from Mathematica but would like how to work it out. I tried the simplest one and encountered gamma function.

Again, thanks for you patient explanations
 
  • #17
I got e2x([tex]\frac{1}{2}[/tex]x3-[tex]\frac{3}{2}[/tex]x2-3x-3)
Of course, I did it by hand and have not checked for mistakes.
 
  • #18
My bad. Most of what I have read indicate that you use the boundary in the integration and I thought that also includes the evaluation of v. Thanks for clearing that out. Can you suggest any particular book that helps in evaluating tough(er) integrals. I am trying eventually integrate

LaTeX Code: <BR>\\int_{-\\infty}^\\infty(x-a)^n(x-b)^m e^{\\alpha(x-c)^2} dx<BR>

where LaTeX Code: n and LaTeX Code: m are integers. I know the result from Mathematica but would like how to work it out. I tried the simplest one and encountered gamma function.

Again, thanks for you patient explanations

Have you solved the previous integrals yet? Also I suggest you check what kind of restrictions you need on all the constants in order to have the integral converge.
 

FAQ: How Do You Integrate (x^3)(e^2x)?

What is the general method for integrating (x^3)(e^2x)?

The general method for integrating (x^3)(e^2x) is to use integration by parts, where one part of the integral is differentiated and the other part is integrated. This is represented by the formula ∫u dv = uv - ∫v du.

How do I choose which part to differentiate and which part to integrate?

When using integration by parts, it is important to choose u and dv in a way that simplifies the integral or makes it easier to solve. Generally, we want to choose u as the part that becomes simpler when differentiated, and dv as the part that becomes easier to integrate.

3. Can I use substitution to integrate (x^3)(e^2x) instead?

Yes, it is possible to use substitution to integrate (x^3)(e^2x), but it will result in a more complicated integral than using integration by parts. If you are comfortable with substitution and can find a suitable substitution, then it is a valid method to use.

4. What is the final result of integrating (x^3)(e^2x)?

The final result of integrating (x^3)(e^2x) will be in the form of a constant times x^3e^2x plus an additional term that involves integrating e^2x. The exact form of the result will depend on the method used and the specific choices made during the integration process.

5. Are there any special cases or exceptions when integrating (x^3)(e^2x)?

Yes, there are a few special cases when integrating (x^3)(e^2x). For example, if the integration limits are from 0 to infinity, then the final result will be 0. Additionally, if the integration limits are from -infinity to infinity, then the result will involve an exponential function and cannot be simplified further.

Back
Top