\(A=\dfrac{x^2+2x-3}{x+3}=\dfrac{x^2+3x-x-3}{x+3}=\dfrac{\left(x+3\right)\left(x-1\right)}{x+3}=x-1\)
\(A=\dfrac{x^2+2x-3}{x+3}=\dfrac{x^2-x+3x-3}{x+3}=\dfrac{x\left(x-1\right)+3\left(x-1\right)}{x+3}=\dfrac{\left(x-1\right)\left(x+3\right)}{x+3}=x-1\)