Notice that if you differentiate the equation:
$$f(x) = e^{2x} + 2xe^{2x} + e^{-x}*f(x)$$
$$f(x)(1 - e^{-x}) = e^{2x} + 2xe^{2x}$$
$$f(x) = \frac{e^{2x} + 2xe^{2x}}{1 - e^{-x}}$$
Notice that if you differentiate the equation:
$$f(x) = e^{2x} + 2xe^{2x} + e^{-x}*f(x)$$
$$f(x)(1 - e^{-x}) = e^{2x} + 2xe^{2x}$$
$$f(x) = \frac{e^{2x} + 2xe^{2x}}{1 - e^{-x}}$$