I want to find the formula for the Gauss quadrature that integrate the Integral $\int_{-1}^1f(x)\sqrt{|x|^3}\, dx$ exactly for every cubic polynomial $f$.
$$$$
What exactly do we have to do here?
Is $\sqrt{|x|^3}$ the weighting function?
If yes, it s not a standard weighting function, for example $w=1$ or $w=\frac{1}{\sqrt{1-x^2}}$ where we know which polynomials we have to take to get the points?
What do we have to in this case wehre we have a general weighting function?
The formalism is explained here. So, you need to find the set of orthogonal polynomials where the inner product is defined using the weight function. Applying the Gram-Schmidt procedure and working with monic polynomials (i.e. the coefficient of the highest power of x is set equal to 1) yields the 3 term recurrence relation given at the end of this section.
In your case the weight function is $|x|^{3/2}$, and this yields the orthogonal polynomials:
$$ \begin{split} p(0,x) &= &1\\ p(1,x) &= &x\\ p(2,x)& = -&\frac{5}{9} + x^2\\ p(3,x)& = -&\frac{9}{13}x + x^3\\ p(4,x)& = &\frac{45}{221} - \frac{18}{17} x^2 + x^4\\ p(5,x)& = &\frac{39}{119} x -\frac{26}{21} x^3 + x^5 \end{split} $$
If you use $p(n,x)$, then the abscissa $x_i$ are the roots of $p(n,x)$, and the weight $w_i$ for $x_i$ is given by:
$$w_{i} = \frac{\int_{-1}^{1}|x|^{3/2}p(n-1,x)^{2}dx}{p'(n,x_{i})p(n-1,x_{i})}$$
This formula is derived in this section. Note that the $a_k = 1$ here as we're using monic polynomials. To get an exact result for every cubic polynomial, using the abscissa and weights derived from $p(2,x)$ suffices. An n-point Gaussian quadrature will be exact when integrating a 2n-1 th degree polynomial. So, if you use $p(5,x)$, you'll get a quadrature rule that yields exact results for polynomials up to 9th degree. And note that the roots of $p(5,x)$ have simple expressions.