The quadratic invariant in this case becomes