We have x2 + y2 = 25, let's call that equation (1)
and we can call x + y = 7 equation (2).
From equation (2) we can subtract y from both sides to get x = 7 - y, and substitute our new "x" into equation (1)!
We will get: (7 - y)2 + y2 = 25, we can expand (7 - y)2 by the property (a - b)2 = a2 - 2ab + b2,
so (7 - y)2 = 49 - 14y + y2
So now we have
49 - 14y + y2 + y2 = 25
Combining our y2's we get 49 - 14y + 2y2 = 25, now we can subtract 25 from both sides and get
24 - 14y + y2 = 0
We rearrange by decreasing degrees, and our equation will now look like this:
2y2 - 14y + 24 = 0.
It is important here to notice that all our coefficients are even, so we can factor out a 2! This is important because, even though it is not necessary, quadratic equations are easier to solve when the leading coefficient is 1.
So now we have 2(y2 - 7y + 12) = 0, and since 0 is divisible by 2, we divide both sides by 2 and get the following:
y2 - 7y + 12 = 0.
Now all we need to find is 2 numbers whose product is 12 and sum is equal to -7, so -3 and -4 work, making our quadratic factored into: (y - 3)(y - 4) = 0 giving us y = 3 or y = 4.
Alternatively, or if no 2 numbers are easily found, we can use the quadratic formula which states if we have a quadratic formula in the form of ax2 + bx + c = 0, where a, b and c are real numbers and x is our variable, our solutions for x are in the form of: x = (-b +/- sqrt(b2 - 4ac))/2a, so in our case we get y = (7+/- sqrt(49 - 48))/2 so y = (7 + 1)/2 or (7 - 1)/2, giving us y = 3 or y = 4, same answer as before!
Using our new y-values and plugging them back into equation (2) we have x = 7 - y.
For y = 3: x = 7 - 3, so x = 4.
For y = 4: x = 7 - 4, so x = 3.
To make sure of our work we can plug our values back into equations (1) and (2) to see if they work!
42 + 32 = 16 + 9 = 25, this works.
and 4 + 3 = 7, this works as well!
Similarly we get 32 + 42 = 9 + 16 = 25, and 3 + 4 =7, so our solutions work.
Doug C.
Desmos confirmation: desmos.com/calculator/ddigdzk1ij04/26/25