I have problem with this example so if somebody can explain how I can solve it or how I can simplify o write $f(x)$ function it will be great!
Find Gaussian formula in form:
$\int^{1}_{-1}|x|\cdot f(x) dx=w_0\cdot f(x_0)$
and with that formula solve next integral:
$\int^{1}_{-1}|x|\cdot \sin(x) dx$
I will probably be able to solve but I really don't know what to do with $\sin(x)$, because we only do exaples of this kind:
$\int \sqrt x f(x)dx=w_0\cdot f(x_0)$ to solve $\int x^2dx$ so in that case I know that I should write $f(x)$ as $x^k$ but here in case with $\sin(x)$ or any other function I'm in front of wall and don't have any idea.
I would be really happy if somebody have time to write this down also for other functions not only for $\sin(x)$.
Thank you!