Definitions:
Let $$\phi(x) = \frac{1}{\sqrt{2\pi}} e^{-\frac{1}{2}x^2} $$ be the standard normal probability density function (pdf) and $$ \Phi(x) = \int_{-\infty}^x \phi(t) dt = \frac{1}{2}\left[ 1 + \text{erf}\left(\frac{x}{\sqrt{2}} \right) \right] $$ be its cumulative distribution function (cdf).
Problem:
For a side project I am dealing with, as an intermediate step of an algorithm I need to solve definite integrals of the following form:
$$ \int_{-\infty}^{\infty} x^p \phi\left(x\right) \Phi(a + b x) dx $$
for $p = 0,1,2$.
For $p = 0$ and $p = 1$, the solutions are listed on this Wikipedia page. They are:
$$ \int_{-\infty}^{\infty} \phi\left(x\right) \Phi(a + b x) dx = \Phi\left(\frac{a}{t} \right) $$ $$ \int_{-\infty}^{\infty} x \phi\left(x\right) \Phi(a + b x) dx = \frac{b}{t} \phi\left(\frac{a}{t} \right) $$ with $t = \sqrt{1 + b^2}$.
Questions:
- What is the solution for $p = 2$?
- More in general, what is the simplest approach to solve these integrals?