原式=[(x-1)(3x²+9x+7)-(x+1)(2x²-4x+3)-(x³+x+1)]/(x²-1)
=[(3x³+6x²-2x-7)-(2x³-2x²-x+3)-(x³+x+1)]/(x²-1)
=(8x²-2x-11)/(x²-1)