The task is to designate $a, b, x$ and $y$ such that the $Q$ is precise numerical integration for polynomials of the degree $\leq3$ $$Q(f)=af(x)+bf(y)$$ $$\int_{0}^{\infty} f(x)e^{-x^2/2} dx$$ Of course i can create a set of equations by substituting $f(x)$ with $1, x, x^2$ and $x^3$ and calculate it, which by the way I have already done with a little help of wolframalpha, but I know that it can be done in a tricky way using interpolation polynomial, maybe it has something to do with Hermites polynomial? Will be glad to get any way to solve it other than calculating this set of equations! :)
Mistakably i calculated it wrong, the result is very very ugly!
I don't see a simple relationship with Gauss-Hermite quadrature because the zeros of the Hermite polynomials are rational, but here the roots are not. The orthogonal (monic) polynomials are $$\begin{align}\pi_0(x)&=1\\ \pi_1(x)&=x-\sqrt\frac2{\pi}\\ \pi_2(x)&=x^2-\frac{\sqrt{\frac{\pi}2}}{\frac{\pi}2-1}x+\frac{2-\frac{\pi}2}{\frac{\pi}2-1}\end{align}$$ We can solve by the quadratic formula to get $\pi_2(x_1)=\pi_2(x_2)=0$ for the nodes, and since $$\int_0^{\infty}(\pi_1(x))^2e^{-x^2/2}dx=\sqrt{\frac{\pi}2}-\sqrt{\frac2{\pi}}$$ for monic polynomials the formula for the weights gives us $$w_i=\frac{\sqrt{\frac{\pi}2}-\sqrt{\frac2{\pi}}}{\left(2x_i-\frac{\sqrt{\frac{\pi}2}}{\frac{\pi}2-1}\right)\left(x_i-\sqrt\frac2{\pi}\right)}$$ Since the weights end up looking ugly, I just wrote up a program that conputes the nodes and weights and then checks the formula for polynomials of degree $\le3$.
Output was: