What is the quotient when (3x3−1) is divided by (x2+1)?