representation of quadratic algebra