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

  • Context: Undergrad 
  • Thread starter Thread starter shinkansenfan
  • Start date Start date
  • Tags Tags
    Integrate
Click For Summary

Discussion Overview

The thread discusses the integration of the function (x^3)(e^2x), exploring various methods for solving the integral, including integration by parts, Taylor expansions, and computational tools. Participants also delve into related integrals and the convergence of specific integrals involving exponential functions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest using integration by parts as a method for integrating (x^3)(e^2x).
  • Others propose differentiating the integral of exp(px) multiple times or using the third-order Taylor expansion around p = 2 as alternative methods.
  • A participant mentions using computational tools like Maple or Mathematica to perform the integration, emphasizing the importance of learning the process rather than just obtaining the answer.
  • One participant shares their integration attempt, resulting in a complex expression, and raises a concern about the convergence of the integral ∫_{−∞}^{∞} x^2 e^{-2x^2} dx.
  • Another participant asserts that the integral ∫_{−∞}^{∞} x^2 e^{-2x^2} dx does converge and requests to see the steps taken to identify any errors.
  • There is a discussion about the use of boundary values in integration by parts, with some participants clarifying misunderstandings regarding when to apply limits.
  • One participant expresses a desire for book recommendations on evaluating complex integrals and mentions encountering the gamma function in their attempts.

Areas of Agreement / Disagreement

Participants express differing views on the methods of integration and the handling of limits in integration by parts. There is no consensus on the best approach to the original integral or the related convergence issues, indicating multiple competing views remain.

Contextual Notes

Some participants highlight limitations in understanding the application of integration by parts, particularly regarding the use of boundary values. There are also unresolved mathematical steps related to the convergence of specific integrals discussed.

Who May Find This Useful

This discussion may be useful for students and practitioners interested in advanced integration techniques, particularly those involving exponential functions and integration by parts, as well as those seeking to understand the convergence of integrals in mathematical contexts.

shinkansenfan
Messages
9
Reaction score
0
How to integrate (x^3)(e^2x) ?

Thanks.
 
Last edited by a moderator:
Physics news on Phys.org
by parts.
 
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.
 
Thanks very much.
 
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?)
 
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.
 
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
 
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.
 
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<br /> \;<br /> dv = e^{2x^2} -> v = \sqrt{\pi/2}<br /> <br /> \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*}<br /> \int_{-\infty}^{\infty} x^2 e^{-2 x^2} dx& =\int_{-\infty}^{\infty} x \left(x e^{-2 x^2}\right) dx<br /> \\<br /> &= -\frac{1}{4}x e^{-2 x^2}|_{-\infty}^\infty+\frac{1}{4} \int_{-\infty}^\infty e^{-2x^2}dx<br /> \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<br /> \;<br /> dv = e^{2x^2} -> v = \sqrt{\pi/2}<br /> <br /> \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*}<br /> \int_{-\infty}^{\infty} x^2 e^{-2 x^2} dx& =\int_{-\infty}^{\infty} x \left(x e^{-2 x^2}\right) dx<br /> \\<br /> &= -\frac{1}{4}x e^{-2 x^2}|_{-\infty}^\infty+\frac{1}{4} \int_{-\infty}^\infty e^{-2x^2}dx<br /> \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*}<br /> v = \int_{-\infty}^{\infty} x e^{-2 x^2} d x = 0<br /> \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.
 

Similar threads

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