Simplify (5ab^2-4ab+7a^2b)(ab)^-1