Resposta:
# x = (a ^ 2-b ^ 2) / (a ^ 2 + b ^ 2) # i # y = (2ab-a ^ 2-b ^ 2) / (a ^ 2 + b ^ 2) #
Explicació:
# a * (ax + per) + 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) #
Tan, # a * (a ^ 2-b ^ 2) / (a ^ 2 + b ^ 2) + per = a-b
# a * (a ^ 2-b ^ 2) + per * (a ^ 2 + b ^ 2) = (a-b) * (a ^ 2 + b ^ 2) #
# a ^ 3-ab ^ 2 + (a ^ 2 + b ^ 2) * per = a ^ 3 + ab ^ 2-a ^ 2 * b-b ^ 3 #
# (a ^ 2 + b ^ 2) * per = 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) #