Yes, that looks correct! Great job on finding a solution.

  • Thread starter Heimdall
  • Start date
  • Tags
    Integral
In summary, the physicist is trying to calculate the integral I\left(x\right) = \int_{-\infty}^{+\infty} e^{-\alpha v^2}Erf\left(v+A\left(x\right)\right) dv. However, he is having difficulty splitting the integral into two integrals and substituting the geometric series. He thinks it would be helpful to consider the integral I\left(x\right) = \int_{-\infty}^{+\infty} e^{-\alpha v^2}Erf\left(v+A\left(x\right)\right), which is for the physicist that
  • #1
Heimdall
42
0
Hi,

I'm trying to calculate this integral :

[tex]\int_{-\infty}^{+\infty} e^{-\alpha x^2} tanh\left(x - \beta\right) dx[/tex]

[tex]\alpha,\beta[/tex] being independant of x.

Would somebody know how to do that ?

Thanks :)
 
Physics news on Phys.org
  • #2
I don't know how to avoid the use of series, but this would be something with them:

Split the integral into two integrals, one over [tex]]-\infty,\beta][/tex], and one over [tex][\beta,\infty[[/tex]. Then substitute the geometric series

[tex]
\frac{1}{e^{x-\beta} + e^{-(x-\beta)}} = \frac{1}{e^{-(x-\beta)}}\sum_{n=0}^{\infty} (-1)^n e^{2n(x-\beta)},\quad\quad\quad x<\beta
[/tex]

and

[tex]
\frac{1}{e^{x-\beta} + e^{-(x-\beta)}} = \frac{1}{e^{x-\beta}}\sum_{n=0}^{\infty} (-1)^n e^{-2n(x-\beta)},\quad\quad\quad x>\beta.
[/tex]

If I looked this right, now you should get such series for the integrand, that you know how to integrate each term in the series. Of course there's lot of work to be carried out, and in the end the result is in a form of series, so this is not the most desirable way to get the result... I'll be waiting eagerly to see if somebody has better ideas.

edit: oh no. I made one mistake. It is simple to integrate symmetric Gaussian peak over a domain [tex]]-\infty, 0][/tex] or [tex][0,\infty[[/tex], but actually splitting the integral of the original problem at [tex]\beta[/tex] results is something more difficult. I don't think my idea is working. But it could work if [tex]\beta=0[/tex].

edit edit: On the other hand, if [tex]\beta=0[/tex], then it is clear that the integral is zero, so actually I didn't help in anything :biggrin:
 
Last edited:
  • #3
Hi,

thanks for trying :)

I think it would be helpful to rather consider this integral :

[tex]\int_{-\infty}^{+\infty} e^{-\alpha x^2}Erf\left(x - \beta\right)[/tex]

Which is for the physicist that I am quite the same object..Edit :

Well in fact the real object I would like to evaluate is :

[tex]I\left(x\right) = \int_{-\infty}^{+\infty} e^{-\alpha v^2}Erf\left(v - A\left(x\right)\right) dv[/tex]

Edit bis :

I could add that :

[tex]A\left(x\right) = Ln\left(cosh\left(x\right)\right)[/tex] But I think it doesn't matter what A(x) is to evaluate the integral..
 
Last edited:
  • #4
Another strategy would be to try to use calculus of residues. It should be simple to integrate

[tex]
\int\limits_{\gamma} e^{-\alpha z^2} \textrm{tanh}(z-\beta) dz
[/tex]

over any closed path, using the poles

[tex]
\frac{1}{e^{z-\beta} + e^{-(z-\beta)}} \;=\; \frac{(-1)^n}{2}\frac{1}{z - (\beta + (\frac{1}{2} + n)\pi i)} \;+\; O\big(z - (\beta + (\frac{1}{2} + n)\pi i)\big),
\quad\quad\quad n\in\mathbb{Z}
[/tex]

This alone doesn't yet solve the problem though, because one has to find out a way to deal with the arcs at infinity.
 
  • #5
All right, here is a solution to my problem. As I said, to me [tex]Erf(x)[/tex] has the same behavior as [tex]tanh(x)[/tex], and it is indeed easier to integrate. Tell me if you agree :

[tex]I\left(A(x)\right) = \int_{-\infty}^{+\infty} e^{-\alpha v^2} Erf\left(v+A\left(x\right)\right)dv[/tex]
is now the integral I'm looking to calculate.

First I can calculate the derivative acording to [tex]A(x)[/tex] :

[tex]I'\left(A(x)\right) =\frac{2}{\sqrt{\pi}} \int_{-\infty}^{+\infty} e^{-\alpha v^2}\frac{d}{dA}\left(\int_0^{v+A} e^{-t^2}dt\right) dv[/tex]

[tex]I'\left(A(x)\right)=\frac{2}{\sqrt{\pi}} \int_{-\infty}^{+\infty} e^{-\alpha v^2}e^{-\left(v+A\right)} dv[/tex]

this leads to :

[tex]I'\left(A(x)\right)= \frac{2e^{-\frac{\alpha}{\alpha+1}A(x)^2}}{\sqrt{\alpha+1}}[/tex]Now integrating from 0 to A(x) gives :

[tex]I\left(A(x)\right) = \sqrt{\frac{\pi}{\alpha}}Erf\left(\frac{a}{a+1}A\left(x\right)\right)[/tex]do you think that's correct ?
 
Last edited:

FAQ: Yes, that looks correct! Great job on finding a solution.

What is an integral?

An integral is a mathematical concept that represents the accumulation of a quantity over an interval. It is used to find the area under a curve or the total value of a function over a given range.

What is the function of tanh*gaussian?

The function of tanh*gaussian is a combination of the hyperbolic tangent function (tanh) and a Gaussian function. It is commonly used in statistics and signal processing to model the shape of certain data sets.

How is the integral of tanh*gaussian calculated?

The integral of tanh*gaussian can be calculated using various methods such as integration by parts or substitution. It is a complex integral that often requires advanced mathematical techniques to solve.

What are the applications of the integral of tanh*gaussian?

The integral of tanh*gaussian has many applications in fields such as physics, engineering, and finance. It is used in areas where modeling and analyzing data sets with a characteristic shape is necessary.

Are there any real-life examples of the integral of tanh*gaussian?

Yes, the integral of tanh*gaussian can be seen in various real-life phenomena, such as the spread of diseases in a population, the distribution of stock prices, and the shape of certain physical systems. It is also commonly used in image processing and machine learning algorithms.

Similar threads

Replies
7
Views
1K
Replies
12
Views
2K
Replies
1
Views
2K
Replies
1
Views
1K
Replies
4
Views
2K
Replies
3
Views
2K
Back
Top