SOLUTION: If x^2+xy+y^2=p and x^2-xy+y^2=q, find (x-y)^2 in terms of pq.Please show me step by step.

Algebra ->  Polynomials-and-rational-expressions -> SOLUTION: If x^2+xy+y^2=p and x^2-xy+y^2=q, find (x-y)^2 in terms of pq.Please show me step by step.      Log On


   



Question 603260: If x^2+xy+y^2=p and x^2-xy+y^2=q, find (x-y)^2 in terms of pq.Please show me step by step.
Answer by htmentor(1343) About Me  (Show Source):
You can put this solution on YOUR website!
Expand (x-y)^2 = x^2 - 2xy + y^2
If we add the equations we get:
2x^2 + 2y^2 = p+q -> x^2 + y^2 = (p+q)/2
Now subtract the 1st equation from the 2nd:
-2xy = q-p
Now add these two results together:
x^2 - 2xy + y^2 = (p+q)/2 + (q-p) = (3q-p)/2