What Formula Determines the Squares Producing a Specific Difference?

AI Thread Summary
The discussion centers on finding a formula to determine pairs of squares that produce a specific difference, exemplified by the equation x^2 - y^2 = 21. It is established that this difference can be expressed as the product of two factors, where x+y and x-y equal those factors. The key formula derived is x = (a+b)/2 and y = (a-b)/2, where a and b are factors of the difference. The solutions must yield integer values for x and y to be valid. This approach effectively identifies pairs of integers whose squares differ by a specified amount.
jimjones
Messages
8
Reaction score
0
Hello,

Sorry if this is in the wrong forum, I wasn't sure so I just picked General. Is there a formula to determine the squares that will produce a given difference. For example x^2 - y^2 = 21. From a little experimentation it seems that for odd numbers the problem can be solved with this formula: x = (o+1)/2, y= x - 1. So 11^2 - 10^2 = 21. But I know also that 5^2 - 2^2 = 21. Is there a formula that will produce that result?

Thanks
 
Mathematics news on Phys.org
Hello, Jim,
as you possibly know, x^2 - y^2 = (x+y)(x-y). So you're looking for two factors of your number (21) which not only multiply to 21, but which can also be constructed as the sum and difference of two other numbers. In your examples, 11+10=21 multiplied by 11-10=1 equals 21, and also 5+2=7 times 5-2=3 is 21.

If you call a and b those two factors, such that ab=21, (where, for our discussion, a will be the largest and b the smallest), you look for solutions of the system of equations
x + y = a
x - y = b
whose solutions are x=(a+b)/2, y=(a-b)/2. As long as these fractions turn out to be integers, you have a winning pair.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top