a) \(B=\frac{1}{x+3}+\frac{x}{x-1}-\frac{4x}{x^2+2x-3}=\frac{x-1}{x^2+2x-3}+\frac{x^2+3x}{x^2+2x-3}-\frac{4x}{x^2+2x-3}\)
\(\Leftrightarrow B=\frac{x-1+x^2+3x-4x}{x^2+2x-3}=\frac{x^2-1}{x^2+2x+1-4}=\frac{\left(x-1\right)\left(x+1\right)}{\left(x+1\right)^2-2^2}\)
\(\Leftrightarrow B=\frac{\left(x-1\right)\left(x+1\right)}{\left(x-1\right)\left(x+3\right)}=\frac{x+1}{x+3}\)
b) \(\frac{A-1}{B}=\frac{\frac{x-1}{x+3}-1}{\frac{x+1}{x+3}}=\frac{\frac{-4}{x+3}}{\frac{x+1}{x+3}}=\frac{-4}{x+1}\le\frac{1}{2}\Leftrightarrow-8\le x+1\Leftrightarrow x\ge-9\)