Firstly, by analytically integrate, I mean, is there an integration rule to solve this as opposed to numerical analyses (such as trapezoidtrapezoidal, gaussGauss-legendreLegendre or simpsonsSimpson's rules)?
I have a function $f(x) = x*lognormal(mu, sigma, x)$. Mu$\newcommand{\rd}{\mathrm{d}}f(x) = x g(x; \mu, \sigma)$ where $$ g(x; \mu, \sigma) = \frac{1}{\sigma x \sqrt{2\pi}} e^{-\frac{1}{2\sigma^2}(\log(x) - \mu)^2} $$ is the probability density function of a lognormal distribution with parameters $\mu$ and sigma remain constant$\sigma$. Below, while x variesI'll abbreviate the notation to $g(x)$ and use $G(x)$ for the cumulative distribution function.
I need to integrate f(x) over a positive range (a, b).calculate the integral $$ \int_{a}^{b} f(x) \,\rd x \>. $$
Currently, I'm doing this with numerical analysesintegration using the gaussGauss-legendreLegendre method. Because I need to run this a large number of times, performance is important. Before I look into optimizing the numerical analyses/other pieces, I would like to know if there are any integration rules to solve this.
I tried applying the integration by parts-by-parts rule, and I got to this, where I'm stuck again -,
$\int udv = uv - \int(vdu)$$\int u \,\mathrm{d}v = u v - \int v \mathrm{d}u$.
$u=x => du = dx$$u=x \implies \rd u = \rd x$
$dv = lognormal(x)dx => v = lognormalCDF(x)$$\rd v = g(x) \rd x \implies v = G(x)$
$uv - \int vdx = x*lognormalCDF(x) - \int lognormalCDF(x)dx$$u v - \int v \rd x = x G(x) - \int G(x) \rd x$
I'm stuck, as I can't evaluate the $\int lognormalCDF(x)dx$$\int G(x) \rd x$.
This is for a software package I'm building.