Using a quadratic to perform multiplication