Differentiate (3q^2 + 2q + 1)/(q(q+1)) with respect to q