ait.abd
- 24
- 0
I want to calculate [itex]\int_a^b \frac{1}{\sqrt{2 \pi \sigma^2}} e^{(-(x-\mu)/\sigma^2)} log_2 (1 + e^{-x}) dx[/itex]
The discussion revolves around the calculation of a specific integral involving a normal variable, specifically the expected value of a function of a normal variable. The integral is expressed in terms of parameters \(a\), \(b\), \(\mu\), and \(\sigma\), and participants explore methods for evaluating it, including numerical techniques and potential approximations.
Participants generally agree that the integral does not have a closed form solution in elementary functions and that numerical techniques are necessary. However, there are competing views on the potential for approximations and the validity of certain mathematical approaches, indicating that the discussion remains unresolved.
Participants express uncertainty regarding the convergence of series expansions and the appropriateness of various mathematical techniques for evaluating the integral. There is also a noted dependence on the parameters involved, particularly \(\sigma\), which affects the behavior of the integral.
D H said:You'll need to use numerical techniques. The above integral doesn't have a closed form solution in the elementary functions.
ait.abd said:can any approximation be made?
chiro said:Hey ait.abd and welcome to the forums.
Numerical techniques are ones that give approximate answers in general. You can supply parameters to get a good enough approximation (like for example a number good enough to say 4 decimal places) for the better implementations.
If you are unsure, just use a common package for numerical calculation.
You should probably try searching online for a numeric integrator Java applet, or go to www.wolframalpha.com and enter in your expression to get an approximate answer.
ait.abd said:Thanks chiro. But, wolfram online integrator doesn't work for this expression as it tries to compute the exact expression. I can perform numerical integration but I want answer in terms of $a$ and $b$. Numerical integration will calculate the answer for a particular $a$ and $b$.
I suspect that that may have been a typo. Even if it is a typo, it doesn't help. Either way ( exp(-x2) vs exp(-x) ), this function is not integrable in the elementary functions. Since it's not an integral that is widely used, it's dubious that someone has come up with a nifty way to evaluate it.To ait.abd: You need to learn how to do numerical integration sometime. If this is the right integral, that sometime is now.HallsofIvy said:The integral in the original post does NOT involve [itex]e^{-x^2}[/itex]. It is, rather, of the form [itex]e^{-x}[/itex].