Odgovor:
# x = (a ^ 2-b ^ 2) / (a ^ 2 + b ^ 2) # in # y = (2ab-a ^ 2-b ^ 2) / (a ^ 2 + b ^ 2) #
Pojasnilo:
# a * (ax + by) + b * (bx-ay) = a * (a-b) + b * (a-b) #
# a ^ 2 * x + aby + b ^ 2 * x-aby = a ^ 2-ab + ab-b ^ 2 #
# (a ^ 2 + b ^ 2) * x = a ^ 2-b ^ 2 #
# x = (a ^ 2-b ^ 2) / (a ^ 2 + b ^ 2) #
Torej, # a * (a ^ 2-b ^ 2) / (a ^ 2 + b ^ 2) + z = a-b #
# a * (a ^ 2-b ^ 2) + s * (a ^ 2 + b ^ 2) = (a-b) * (a ^ 2 + b ^ 2) #
# a ^ 3-ab ^ 2 + (a ^ 2 + b ^ 2) * z = a ^ 3 + ab ^ 2-a ^ 2 * b-b ^ 3 #
# (a ^ 2 + b ^ 2) * z = 2ab ^ 2-a ^ 2 * b-b ^ 3 #
# y = (2ab ^ 2-a ^ 2 * b-b ^ 3) / b * (a ^ 2 + b ^ 2) #
=# (2ab-a ^ 2-b ^ 2) / (a ^ 2 + b ^ 2) #