Suppose you have $w(x)= 1/\sqrt{x}$ as your weight function, and the integration of the form $\int_0^1 f(x) w(x) dx$. I am tasked with creating a quadrature of exactness 3. So I know I need a polynomial with degree $n=2$, and that I need to map the interval to the interval $[-1,1]$.
So far, I think I need to use a Lagrange polynomial degree two, so I decided to use $p_2(x)=x^2 -1/3$. I can remap it as follows:
$$\int_0^1 f(x) \, dx =\int_{-1}^1 f\left( \frac{t + 1}{2} \right) \frac{1}{2} \, dt$$
The error term then should be $$\frac{f^{(4)}(\xi)}{4!} \int_0^1 p_2^2(x) w(x) \, dx$$
And this is the point where I get stuck. So I have the polynomial $p_2$, and I know how to remap it to the right interval, but how do I go on from here to construct the quadrature?