You tried that already.
\(\displaystyle \int{2*x*e^{x^{2}}-\frac{2}{x}}\,dx = \int{2*x*e^{x^{2}}}\,dx-\int{\frac{2}{x}}\,dx\)
You have the first piece. Your task now is the second piece.
\(\displaystyle \int{\frac{2}{x}}\,dx = 2*\int{\frac{1}{x}}\,dx\)
How are those bells sounding?
Please don't say '2'.