Given the weight function
$w: (-\infty, \infty) \rightarrow \Bbb R$,
$w(x) = e^{-|x|}$,
I need to show that
$\int_{-\infty}^{\infty} w(x) dx = 2$.
Unfortunately, I still have a lack of understanding about what the weight function actually is. I believe that this should work by Gauss quadrature somehow, but I don't know how to apply it.
Any kind of help is appreciated.