a. Integrate $$\int_0^1\frac{1}{\sqrt[3]{x}}f(x)dx$$ With $4$ sample points: $A_1,A_2,x_1,x_2$
b. Evaluate $$\int_0^1\frac{1}{\sqrt[3]{x}}e^xdx$$
For the first step, we can not use Gauss–Legendre quadrature so we first have to find an orthogonal basis such that:
$$\frac{1}{\sqrt[3]{x}}f(x)=A_1p_1(x_1)+A_2P_2(x_2)$$ where $x_1,x_2$ are root of the orthogonal basis?
The singularity at the origin can be removed through a substitution $$\int_{0}^{1}\frac{1}{\sqrt[3]{x}}f(x)\,dx \stackrel{x\mapsto z^3}{=} \int_{0}^{1}3z f(z^3)\,dz $$ and the numerical evaluation of $\int_{0}^{1}g(z)\,dz$ for $g(z)=3z f(z^3)$ can be performed through standard tools (Simpson's rule, Gaussian quadrature etc.)