Solve $\int\limits_{0}^{\infty}\frac{\sin(x)}{xe^x} \ dx.$ I want to solve this using Fourier theory and Plancharels theorem. This theorem states that:

Plancharels Theorem: For any $f\in L^2(\mathbb{R}), \ \widehat{f}\in L^2(\mathbb{R}).$ Moreover,
  $$\langle\widehat{f},\widehat{g}\rangle=2\pi\langle f,g \rangle,$$ and
  thus  $$||\widehat{f}||^2_{L^2}=2\pi||f||^2,$$ $\forall \ f,g\in
 L^2(\mathbb{R}).$

The set of functions denoted by $L^2(\mathbb{R})$ is a Hilbert space with scalarprouduct
$$\langle f,g \rangle=\int_{\mathbb{R}}f(x)g(x) \ dx,\  \text{if} \ g,f\in\mathbb{R},$$
thus the first line in Plancharels can be rewritten as
$$\int_{\mathbb{R}}\hat{f}(x)\hat{g}(x) \ dx = 2\pi\int_{\mathbb{R}}f(x)g(x) \ dx.$$
But unfortunately our integral of concern is not over $\mathbb{R}$, to ammend this we can extend the integral to $\mathbb{R}$ by writing
$$\int_{0}^{\infty}=\frac{\sin(x)}{xe^{x}} \ dx = \frac{1}{2}\int_{\mathbb{R}}\frac{\sin(x)}{xe^{|x|}} \ dx = \frac{1}{2}\int_{\mathbb{R}}\frac{\sin(x)}{x} e^{-|x| \ dx}.$$
This is where I get stuck. In the notes it says the following in order to proceed:
Using the Plancharel trick, we can replace those functions (which I assume are $\sin(x)/x$ and $e^{-|x|})$ by the Fourier transforms:
$$\frac{1}{2}\int_{\mathbb{R}}\frac{\sin(x)}{x}e^{-|x|} \ dx =\frac{1}{4\pi}\int_{\mathbb{R}}\pi\chi_{(-1,1)}(x)\frac{2}{x^2+1} \ dx = \frac{1}{2}\int_{-1}^{1}\frac{1}{x^2+1} \ dx...$$
Can someone explain what has happened here? I don't see the $\chi-$ function mentioned anywhere in the notes and how to apply it. But reading online it seems to be some sort of indicator function which I'm not familiar with. Any help is greatly appreciated. 
 A: $$I=\int_0^\infty\frac{\sin(x)}{xe^x}dx=\int_0^\infty\sum_{n=0}^\infty\frac{(-1)^nx^{2n}e^{-x}}{(2n+1)!}dx=\sum_{n=0}^\infty\frac{(-1)^n}{(2n+1)!}\int_0^\infty x^{2n}e^{-x}dx=\sum_{n=0}^\infty\frac{(-1)^n(2n)!}{(2n+1)!}=\sum_{n=0}^\infty\frac{(-1)^n}{2n+1}$$
A: Well, if you're trying to find out the integral (the question is too technical for me, I'm sorry and this is too long for a comment) we can do that. Let's define:
$$\mathcal{I}:=\int_0^\infty\frac{\sin\left(x\right)}{x\cdot\exp\left(x\right)}\space\text{d}x\tag1$$
Using the 'evaluating integrals over the positive real axis' property of the Laplace transform, we can write:
$$\mathcal{I}=\int_0^\infty\mathcal{L}_x\left[\frac{\sin\left(x\right)}{x}\right]_{\left(\text{s}\right)}\cdot\mathcal{L}_x^{-1}\left[\frac{1}{\exp\left(x\right)}\right]_{\left(\text{s}\right)}\space\text{ds}\tag2$$
Finding those Laplace transforms (they are not hard to show), we get:
$$\mathcal{I}=\int_0^\infty\arctan\left(\frac{1}{\text{s}}\right)\cdot\delta\left(\text{s}-1\right)\space\text{ds}\tag3$$
Using the following property:
$$\int_0^\infty\text{y}\left(x\right)\cdot\delta\left(x-1\right)\space\text{d}x=\text{y}\left(1\right)\tag4$$
Gives:
$$\mathcal{I}=\arctan\left(\frac{1}{1}\right)=\frac{\pi}{4}\tag5$$
A: $\newcommand{\bbx}[1]{\,\bbox[15px,border:1px groove navy]{\displaystyle{#1}}\,}
 \newcommand{\braces}[1]{\left\lbrace\,{#1}\,\right\rbrace}
 \newcommand{\bracks}[1]{\left\lbrack\,{#1}\,\right\rbrack}
 \newcommand{\dd}{\mathrm{d}}
 \newcommand{\ds}[1]{\displaystyle{#1}}
 \newcommand{\expo}[1]{\,\mathrm{e}^{#1}\,}
 \newcommand{\ic}{\mathrm{i}}
 \newcommand{\mc}[1]{\mathcal{#1}}
 \newcommand{\mrm}[1]{\mathrm{#1}}
 \newcommand{\pars}[1]{\left(\,{#1}\,\right)}
 \newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}}
 \newcommand{\root}[2][]{\,\sqrt[#1]{\,{#2}\,}\,}
 \newcommand{\totald}[3][]{\frac{\mathrm{d}^{#1} #2}{\mathrm{d} #3^{#1}}}
 \newcommand{\verts}[1]{\left\vert\,{#1}\,\right\vert}$
\begin{align}
\int_{0}^{\infty}{\sin\pars{x} \over x\expo{x}}\,\dd x & =
\int_{0}^{\infty}\expo{-x}\pars{{1 \over 2}\int_{-1}^{1}\expo{\ic kx}
\dd k}\,\dd x =
{1 \over 2}\int_{-1}^{1}\int_{0}^{\infty}\expo{-\pars{1 - \ic k}x}
\dd x\,\dd k
\\[5mm] & =
{1 \over 2}\int_{-1}^{1}{\dd k \over 1 - \ic k} =
{1 \over 2}\int_{-1}^{1}{\dd k \over 1 + k^{2}} =
\int_{0}^{1}{\dd k \over k^{2} + 1} = \arctan\pars{1}
\\[5mm] & = \bbx{\pi \over 4}
\end{align}
