a) ĐK: $x \neq 1,-3$. Ta có
$\dfrac{2x+5}{x+3} + 1 = \dfrac{4}{x^2 +2x - 3} - \dfrac{3x-1}{1-x}$
$<-> \dfrac{2x+5}{x+3} + 1 = \dfrac{4}{(x-1)(x+3)} + \dfrac{3x-1}{x-1}$
$<-> (2x+5)(x-1) + (x+3)(x-1) = 4 + (3x-1)(x+3)$
$<-> 2x^2 +3x - 5 + x^2 +2x - 3 = 4 + 3x^2 +8x - 3$
$<-> 3x = -9$
$<-> x = -3$
Vậy $x = -3$
b) ĐK: $x \neq -3$. Ptrinh trở thành
$x^2(x^2 + 6x + 9) + 9x^2 = 40(x^2 + 6x + 9)$
$<-> x^4 + 6x^3 -22x^2 -240x - 360 = 0$
$<-> (x-6)(x^3 +12x^2 + 50x +60) = 0$
$<-> (x-6)(x+2)(x^2 +10x +30) = 0$
Lại có
$x^2 + 10x + 30 = (x+5)^2 + 5 \geq 5 > 0$ với mọi $x$ nên ta có
$(x-6)(x+2) = 0$
Vậy $x = 6$ hoặc $x = -2$.