Ответ:

Раскроем скобки:

\((x+3)(x-1)=x^2+2x-3\),

\((3x+1)(x-7)=3x^2-20x-7\).

Тогда \(x^2+2x-3-(3x^2-20x-7)=x^2+8x\).

\(-2x^2+22x+4=x^2+8x\)

\(3x^2-14x-4=0\).

По формуле корней:

\(D=(-14)^2-4\cdot3\cdot(-4)=244=4\cdot61\).

\(x=\frac{14\pm2\sqrt{61}}{6}=\frac{7\pm\sqrt{61}}{3}\).

Ответ: \(x=\frac{7+\sqrt{61}}{3};\ x=\frac{7-\\sqrt{61}}{3}\).