(3x-1) (x+4)
-------------- - ---------
(x2+2x-3) (x2-9)
Both denominators factor:
(3x-1) (x+4)
-------------- - -------------
(x+3)(x-1) (x+3)(x-3)
-------------- - -------------
(x+3)(x-1) (x+3)(x-3)
Now put both rational expressions over a common denominator, (x+3)(x-3)(x-1):
(3x-1)(x-3) - (x+4)(x-1)
-------------------------------
(x+3)(x-3)(x-1)
Multiply out the numerator and combine like terms:
3x2-9x-x+3-x2+x-4x+4
-------------------------------
(x+3)(x-3)(x-1)
2x2-13x-7
--------------------
(x+3)(x-3)(x-1)
The numerator factors:
(2x+1)(x-7)
-------------------
(x+3)(x-3)(x-1)