How can the error function be used to solve this integral?

  • Context: Graduate 
  • Thread starter Thread starter astralmeme
  • Start date Start date
  • Tags Tags
    Convolution Gaussian
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 5K views
astralmeme
Messages
2
Reaction score
0
Greetings,

I am a computer scientist revisiting integration after a long time. I am stuck with this simple-looking integral that's turning out to be quite painful (to me). I was wondering if one of you could help.

The goal is to solve the integral

[tex] \int_{0}^{\infty} e^{-(x - t)^2/2 \sigma^2} x^n\ dx . [/tex]

Note that this is the convolution of the Gaussian centered around 0 with the function that equals $x^n$ for $x > 0$, and 0 elsewhere (modulo scaling).

In particular, I would be interested in seeing any relationship with the integral

[tex] \int_{-\infty}^{\infty} e^{-(x - t)^2/2 \sigma^2} x^n\ dx . [/tex]

which I have worked out.

Any suggestions?

Thanks in advance,
Swar
 
Physics news on Phys.org
If n is odd, that can be done by letting [itex]u= -(x-\mu)^2/(2\sigma^2)[/itex]. If x is even, try integration by parts, letting [itex]u= x^{n-1}[/itex], [itex]dv= xe^{-(x-\mu)^2/(2\sigma^2)}[/itex] to reduce it to n odd.
 
astralmeme said:
Greetings,

I am a computer scientist revisiting integration after a long time. I am stuck with this simple-looking integral that's turning out to be quite painful (to me). I was wondering if one of you could help.

The goal is to solve the integral

[tex] \int_{0}^{\infty} e^{-(x - t)^2/2 \sigma^2} x^n\ dx . [/tex]

Note that this is the convolution of the Gaussian centered around 0 with the function that equals $x^n$ for $x > 0$, and 0 elsewhere (modulo scaling).

In particular, I would be interested in seeing any relationship with the integral

[tex] \int_{-\infty}^{\infty} e^{-(x - t)^2/2 \sigma^2} x^n\ dx . [/tex]

which I have worked out.

Any suggestions?

Thanks in advance,
Swar

As long as t is not 0, the best you can do is express the integral in terms of the error function.
 
Regarding error function, that is my guess too, but can you tell me what exactly would need be done?

I apologize if the question is obvious.


Swar
 
astralmeme said:
Regarding error function, that is my guess too, but can you tell me what exactly would need be done?

I apologize if the question is obvious.


Swar
What I would do is first let u=x-t. Then xn becomes (u+t)n.
Expand the polynomial in u and then by succesive itegration by parts, get all the terms to a 0 exponent for u, which will be proportional to erf(t).