factor (sin^2x+6sinx+5)/(sinx^2x-1)