translate the sum of the squares of a and b