3. Decomposition of quadratic functions into a product