ĐKXĐ: \(x\notin\left\{-3;1\right\}\)
Ta có: \(\frac{4}{x^2+2x-3}=\frac{2x-5}{x+3}-\frac{2x}{x-1}\)
\(\Leftrightarrow\frac{\left(2x-5\right)\left(x-1\right)}{\left(x+3\right)\left(x-1\right)}-\frac{2x\left(x+3\right)}{\left(x-1\right)\left(x+3\right)}=\frac{4}{\left(x-1\right)\left(x+3\right)}\)
Suy ra: \(\left(2x-5\right)\left(x-1\right)-2x\left(x+3\right)=4\)
\(\Leftrightarrow2x^2-2x-5x+5-2x^2-6x=4\)
\(\Leftrightarrow-13x+5=4\)
\(\Leftrightarrow-13x=4-5=-1\)
hay \(x=\frac{1}{13}\)(nhận)
Vậy: \(S=\left\{\frac{1}{13}\right\}\)