I proved that the linear span of $\{e^{-n x}\}_{n\in\mathbb N}$ is dense in $L^2((0,\infty))$ (see below).
Question: Given $f\in L^2((0,\infty))$, can I find "expansion coefficients" $f_n$ such that $$f(x) = \sum_{n\in\mathbb N} f_ne^{-n x} ?$$
Proof of density: Using the Stone-Weierstrass theorem for locally compact Hausdorff space, the linear span of $\{e^{-n x}\}_{n\in\mathbb N}$ is dense in $C_0((0,\infty))$, the space of continuous functions vanishing at infinity. Since $C_0((0,\infty))$ is dense in $L^2((0,\infty))$, we prove the result.
Note: After very nice comments, the question is simplified.