Newton (iterative) method to solve a diophantine equation

Click For Summary
SUMMARY

The discussion focuses on applying the Newton iterative method to solve the Diophantine equation \(Nx^2 - y^2 = 1\). It highlights that the equation can yield both integer and non-integer solutions, with the classical theory of binary quadratic forms providing valuable insights. The Pell's Equation, \(X^2 - NY^2 = \pm 1\), is central to the discussion, particularly noting that solutions exist under specific conditions, such as when \(N\) is composed of primes congruent to 1 modulo 4. The conversation emphasizes the complexity of finding solutions and the infinite nature of potential solutions once one is identified.

PREREQUISITES
  • Understanding of Diophantine equations, specifically Pell's Equation.
  • Familiarity with Newton's method for numerical approximation.
  • Knowledge of binary quadratic forms and their properties.
  • Basic concepts of modular arithmetic, particularly modulo 4 and 8.
NEXT STEPS
  • Research the properties of Pell's Equation and its solutions.
  • Study the application of Newton's method in solving nonlinear equations.
  • Explore binary quadratic forms and their relevance in number theory.
  • Investigate modular arithmetic and its implications for integer solutions.
USEFUL FOR

Mathematicians, number theorists, and students interested in solving Diophantine equations, as well as those exploring numerical methods for approximating solutions to complex equations.

Karlisbad
Messages
127
Reaction score
0
My question is..how could we use Newton method (or other iterative method ) to solve:

Nx^2 -y^2=1 ?? :confused: :confused:

The main problem i see is that the equation before could have some "non-integer" solutions note that (1) can be put in the form:

\sqrt(Nx^2 -1)=y
 
Physics news on Phys.org
Jose, or whatever psuedonym they force you to post under these days, please, can I ask you to just think for *one second* before posting asinine garbage like this? There exist *uncountably* many soultions to this problem. Numerical solutions cannot distinguish between the integer and non-integer solutions. The classical (hundreds of years old) theory of binary quadratic forms might be of interest. It is a subject that every mathematician has forgotten more about than you will ever learn.
 
The equation in integers X^2-NY^2=+/- 1 is known as the Pell's Equation which had little to do with Pell, but was first understood by Fermat.

A solution to X^2-NY^2=-1 is possible when N is composed of primes congruent to 1 Modulo 4. However, it is also true for N=2. (Thus a solution can be found for N=5, 2^2-5*1^2=-1.) If one solution can be found, in general there are an infinite number of solutions.

The exact answer for cases to the -1 where 2^n is a factor of N is rather tricky and I note from Wolfram. http://mathworld.wolfram.com/PellEquation.html:

"..and that cannot be doubly even (i.e., divisible by 4).
However, (the above) conditions are not sufficient for a solution to exist, as demonstrated by the equation , X^2-34Y^2=-1 which has no solutions in integers (Nagell 1951, pp. 201 and 204)."

However, the equation X^2-20Y^2=1 is satisifed by X=9, Y=2. This comes about because if we have a solution to X^2-NY^2=-1. Then we can "look down the road" and look at this equation:

(X^2+NY^2)^2-N(2XY)^2 which when expanding and collecting terms reduces to X^4-2N(XY)^2 +N^2Y^4=(X^2-NY^2)^2 =(-1)^2=1.

But the term -N(2XY)^2 =-4N(XY)^2 so that we have an N that has been multipled by 4, however we are solving for the plus 1.
 
Last edited by a moderator:
robert Ihnot said:
The equation in integers X^2-NY^2=+/- 1 is known as the Pell's Equation which had little to do with Pell, but was first understood by Fermat.

A solution to X^2-NY^2=-1 is possible when N is composed of primes congruent to 1 Modulo 4. However, it is also true for N=2. (Thus a solution can be found for N=5, 2^2-5*1^2=-1.) If one solution can be found, in general there are an infinite number of solutions.

The exact answer for cases to the -1 where 2^n is a factor of N is rather tricky and I note from Wolfram. http://mathworld.wolfram.com/PellEquation.html:

"..and that cannot be doubly even (i.e., divisible by 4).
However, (the above) conditions are not sufficient for a solution to exist, as demonstrated by the equation , X^2-34Y^2=-1 which has no solutions in integers (Nagell 1951, pp. 201 and 204)."

However, the equation X^2-20Y^2=1 is satisifed by X=9, Y=2. This comes about because if we have a solution to X^2-NY^2=-1. Then we can "look down the road" and look at this equation:

(X^2+NY^2)^2-N(2XY)^2 which when expanding and collecting terms reduces to X^4-2N(XY)^2 +N^2Y^4=(X^2-NY^2)^2 =(-1)^2=1.

But the term -N(2XY)^2 =-4N(XY)^2 so that we have an N that has been multipled by 4, however we are solving for the plus 1.

Also if X^2-4pY^2=-1, then X^2==-1 (Mod 4), but this is not possible for even squares and all odd squares are congruent to 1 mod 4 and mod 8.
 
Last edited by a moderator:
Karlisbad said:
My question is..how could we use Newton method (or other iterative method ) to solve:

Nx^2 -y^2=1 ?? :confused: :confused:

The main problem i see is that the equation before could have some "non-integer" solutions note that (1) can be put in the form:

\sqrt(Nx^2 -1)=y

Taking your approach Karlisbad, suppose N is a perfect sqaure say N = M^2 then

y^2 = (Mx-1)(Mx+1)

Since Mx-1 and Mx+1 are coprime each must be a perfect square to satisfy the equation that of course is impossible since their difference is 2 whereas the difference of any two consecutive squares is greater than that (2x+1)

Consider, let M be the largest square integer less than N, and K^2 = M.

y^2+1 = Nx^2

This is the same thing as saying

y^2+1 = \sum_{i=1}^{N}x^2

Parametrize y as y = x + k

(x+k)^2+1 = = k^2x^2 + 2xk + k^2 +1= \sum_{i=1}^{N}x^2

Suppose N > k^2 we have

(N-k^2)x^2 - 2xk -k^2-1 = 0

Nx^2 - k^2x^2 = k^2 + 2xk + 1

Let x = 1 and we get

N - k^2 = (k+1)^2

N = (k+1)^2 + k^2

A very long way to say that if x = 1 then you are looking for

y^2+1 = N, but for any integer y you can easily find N.

Let x = 2 and you get y^2 = 4N-1

NO solutions because 3*3 =1 mod 4

Let x = 3 you get y^2 = 9N-1

So do this

(sx^2+r)^2 = x^2N-1

s^2x^4 + 2rsx^2+r^2 = Nx^2-1

r^2 = -1 mod x^2

which means that x^2-1 is a perfect square which is false for x>1. It expects this x^2-1 = t^2 , (x+t)(x-t)=1 in integers that is only satisfied buy x =1, t=0
 
Playdo: Taking your approach Karlisbad, suppose N is a perfect sqaure say N = M^2 then

If N was a perfect square we would have the form u^2-v^2 =1. Giving the trivial solution u=1, v=0.
 
I am studying the mathematical formalism behind non-commutative geometry approach to quantum gravity. I was reading about Hopf algebras and their Drinfeld twist with a specific example of the Moyal-Weyl twist defined as F=exp(-iλ/2θ^(μν)∂_μ⊗∂_ν) where λ is a constant parametar and θ antisymmetric constant tensor. {∂_μ} is the basis of the tangent vector space over the underlying spacetime Now, from my understanding the enveloping algebra which appears in the definition of the Hopf algebra...

Similar threads

  • · Replies 2 ·
Replies
2
Views
687
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K