How can I check if there is a solution?

  • Context: MHB 
  • Thread starter Thread starter evinda
  • Start date Start date
Click For Summary

Discussion Overview

The discussion centers on the equation $x^2 = -1$ in the context of $\mathbb{Z}_2$ and its solutions. Participants explore the existence of solutions in modular arithmetic, specifically for $p=2$ and higher powers of 2, while addressing related concepts such as quadratic residues and Hensel's lemma.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Mathematical reasoning

Main Points Raised

  • Some participants assert that $x^2 = -1$ has a solution in $\mathbb{Z}_2$, specifically noting that $1^2 = 1 = -1$ in this context.
  • Others clarify that the equation can be simplified to $x^2 = 1 \pmod{2}$, which has solutions, particularly $x=1$.
  • Some participants question the interpretation of $\mathbb{Z}_2$, discussing whether it refers to 2-adic integers or the cyclic group of order 2.
  • A participant proposes checking all elements of $\mathbb{Z}_2$ to find solutions, concluding that $x=1$ is the only solution.
  • Concerns are raised about the application of Hensel's lemma, with participants noting that the derivative of $x^2 + 1$ vanishes modulo 2, preventing its application.
  • It is stated that $-1 = 3$ is not a quadratic residue modulo $2^2$, leading to the conclusion that there are no solutions for $x^2 = -1 \pmod{2^2}$.
  • Some participants discuss the implications of the lack of solutions modulo $2^2$ for higher powers, suggesting that if there are no solutions modulo $2^2$, there will also be none for $2^3$.

Areas of Agreement / Disagreement

Participants generally agree that $x^2 = -1$ has a solution in $\mathbb{Z}_2$, specifically $x=1$. However, there is disagreement regarding the existence of solutions for higher powers of 2, with some asserting there are none and others discussing the implications of Hensel's lemma.

Contextual Notes

The discussion reveals limitations in understanding the application of Hensel's lemma and the interpretation of quadratic residues in modular arithmetic, particularly for $p=2$ and its powers. There is also uncertainty regarding the definitions and properties of $\mathbb{Z}_2$ versus 2-adic integers.

evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Wave)

I want to check if the equation $x^2=-1$ in $\mathbb{Z}_2$ has a solution.

$$x^2 \equiv -1 \pmod 2 \Rightarrow x^2 \equiv 1 \pmod 2$$

$$\forall p>2: \left ( \frac{1}{p}\right)=1, \text{ so there is a solution.}$$

But, what happens for $p=2$? How can I check if there is a solution?
 
Physics news on Phys.org
evinda said:
Hello! (Wave)

I want to check if the equation $x^2=-1$ in $\mathbb{Z}_2$ has a solution.

$$x^2 \equiv -1 \pmod 2 \Rightarrow x^2 \equiv 1 \pmod 2$$

$$\forall p>2: \left ( \frac{1}{p}\right)=1, \text{ so there is a solution.}$$

But, what happens for $p=2$? How can I check if there is a solution?

Hi evinda,

Since $1^2 = 1 = -1$ in $\Bbb Z_2$, the equation $x^2 = -1$ has a solution in $\Bbb Z_2$. The Legendre symbol calculation you've made does not relate to the existence of solutions to $x^2 = -1$ over $\Bbb Z_2$.
 
Euge said:
Hi evinda,

Since $1^2 = 1 = -1$ in $\Bbb Z_2$, the equation $x^2 = -1$ has a solution in $\Bbb Z_2$. The Legendre symbol calculation you've made does not relate to the existence of solutions to $x^2 = -1$ over $\Bbb Z_2$.

A ok.. We see that a solution is $x=1$, but how can we prove it? (Thinking)
 
It's already done; the equations $1^2 = 1 = -1$ show directly that $x^2 = -1$ has a solution at $x = 1$.
 
What you have to understand is that there is essentially no class called "-1 modulo 2". Under modulo 2 identifications, it's already identified with the set 1 modulo 2 of $\Bbb N$.

So your equation is essentially $x^2 = 1$ modulo 2, which clearly has solutions ($x = 1$) and the whole solution set itself is 1 modulo 2 as you can see.
 
Goodness. By $\Bbb Z_2$ you don't mean 2-adic integers, do you?
 
mathbalarka said:
Goodness. By $\Bbb Z_2$ you don't mean 2-adic integers, do you?

If so, what is the difference? (Worried)
 
Surely 2-adic integers are not isomorphic to cyclic group of order 2! Please clarify what you mean, $\Bbb Z_2$ or $\mathbf{Z}_2$.
 
mathbalarka said:
Surely 2-adic integers are not isomorphic to cyclic group of order 2! Please clarify what you mean, $\Bbb Z_2$ or $\mathbf{Z}_2$.

Now I saw that the equation is also written like that: $x^2 \equiv -1 \pmod 2$..

So, $\mathbb{Z}_2$ is meant, right?

Can I justify that $1$ is the only solution like that?

The only number that satisfies $(a,2)=1$ in $\mathbb{Z}_2$ is the number $1$.
This number satisfies also the equation $x^2 \equiv 1 \pmod 2$, therefore it is the only solution.

(Thinking)
 
  • #10
evinda said:
Can I justify that $1$ is the only solution like that?

I'm not an algebraist but in my opinion the point is that $\mathbb{Z}_2$ is a finite set hence to show that the equation $x^2=-1$ has a solution in $\mathbb{Z}_2$ you just can plug in the elements of $\mathbb{Z}_2$ successively and check if they satisfy the equation which is only true for $x=1$. Therefore $x=1$ is the only solution in $\mathbb{Z}_2$.
 
Last edited:
  • #11
Siron said:
I'm not an algebraist but in my opinion the point is that $\mathbb{Z}_2$ is a finite set hence to show that the equation $x^2=-1$ has a solution in $\mathbb{Z}_2$ you just can plug in the elements of $\mathbb{Z}_2$ successively and check if they satisfy the equation which is only true for $x=1$. Therefore $x=1$ is the only solution in $\mathbb{Z}_2$.

So, can I justify it like that?

$$x^2 \equiv -1 \pmod 2 \Rightarrow x^2 \equiv 1 \pmod 2$$

$$\mathbb{Z}_2=\{0,1 \}$$

For $x=0: x^2 \equiv 1 \pmod 2 \Rightarrow 0 \equiv 1 \pmod 2$, that does not stand.

For $x=1: x^2 \equiv 1 \pmod 2 \Rightarrow 1 \equiv 1 \pmod 2$, that is true.

Therefore, the only solution of the equation is $x=2$.
 
  • #12
Yes, that's it. You can verify like that if $x = 0 \pmod 2$ then $x^2 \not = 1 \pmod 2$ and if $x = 1 \pmod 2$ then $x^2 = 1 \pmod 2$. Thus $x = 1 \pmod 2$ is the only solution to $x^2 = -1 = 1 \pmod 2$
 
  • #13
mathbalarka said:
Yes, that's it. You can verify like that if $x = 0 \pmod 2$ then $x^2 \not = 1 \pmod 2$ and if $x = 1 \pmod 2$ then $x^2 = 1 \pmod 2$. Thus $x = 1 \pmod 2$ is the only solution to $x^2 = -1 = 1 \pmod 2$

Nice, thank you very much! (Smile)

The exercise asks to find the first three positions of the solution, that means that we are looking for a solution $\pmod 2$, one solution $\pmod{2^2}$ and one $\pmod {2^3}$.

That's what I have tried:

$$x_0=1$$

We are looking for a $x_1 \in \mathbb{Z}$ such that:$$x_1^2 \equiv -1 \pmod {2^2} \text{ such that } x_1 \equiv 1 \pmod 2$$

$$x_1 \equiv 1 \pmod 2 \Rightarrow 2 \mid x_1-1 \Rightarrow \exists a_1 \in \mathbb{Z} \text{ such that } x_1=1+2a_1$$

$$x_1^2+1=(1+2a_1)^2+1 \equiv 2 \pmod {2^2}$$

So: $x_1^2+1 \equiv 0 \pmod{2^2} \Leftrightarrow 2 \equiv 0 \pmod {2^2}$, that is a contradiction.Is it right or have I done something wrong? (Thinking)
 
  • #14
$-1 = 3$ is not a quadratic residue modulo $2^2 = 4$. There is no solution to $x^2 = -1 \pmod {2^2}$.
 
  • #15
mathbalarka said:
$-1 = 3$ is not a quadratic residue modulo $2^2 = 4$. There is no solution to $x^2 = -1 \pmod {2^2}$.

So, can we not apply the Hensel Lifting Lemma in this case? (Thinking)
 
  • #16
Derivative of $x^2 + 1$ vanishes modulo $2$. It's not possible to apply Hensel's lemma in this case, yes.
 
  • #17
mathbalarka said:
Derivative of $x^2 + 1$ vanishes modulo $2$. It's not possible to apply Hensel's lemma in this case, yes.

You mean at the first position of the solution? (Thinking)
 
  • #18
Not sure what you mean by that. How would you state Hensel's lemma? If I haven't forgotten all the elementary number theory I did, I trust nonvanishing of $f'(x)$ modulo $p$ is an essential condition.
 
  • #19
mathbalarka said:
Not sure what you mean by that. How would you state Hensel's lemma? If I haven't forgotten all the elementary number theory I did, I trust nonvanishing of $f'(x)$ modulo $p$ is an essential condition.

We haven't done the theory in class, the prof explained it to us, using an example.. So, in this case, there is just the first postion of the solution? :confused:
 
  • #20
If so, how can it be justified? (Worried)
 
  • #21
Is my justification of the post #13, where I found a contradiction, right? (Thinking)
 
  • #22
I don't know what you're trying to justify, but you have just shown that Hensel's lemma cannot be applied to $x^2 + 1$ modulo $2$. Is that what you wanted to show?
 
  • #23
mathbalarka said:
I don't know what you're trying to justify, but you have just shown that Hensel's lemma cannot be applied to $x^2 + 1$ modulo $2$. Is that what you wanted to show?

I wanted to find a solution $\pmod 2$, a solution $\pmod {2^2}$ and a solution $\pmod {2^3}$.

But, since we get to a contradiction, when we want to apply Hensel's lemma, in order to find a solution $\pmod {2^2}$, that means that the equation $x^2=-1$ has not solutions $\pmod {2^n},n>1$, right? (Thinking)
 
  • #24
Yes, that is correct, $x^2 + 1$ has no solution modulo $2^2$. Hensel's lemma fails in this case (the derivative evaluates to 0 modulo $2^2$)
 
  • #25
mathbalarka said:
Yes, that is correct, $x^2 + 1$ has no solution modulo $2^2$. Hensel's lemma fails in this case (the derivative evaluates to 0 modulo $2^2$)

And from this, we also know that it has no solution $\pmod {2^3}$, right? (Thinking)
 
  • #26
Yes, as having a solution modulo 8 automatically implies existence of a solution modulo 4.
 
  • #27
mathbalarka said:
Yes, as having a solution modulo 8 automatically implies existence of a solution modulo 4.

I understand.. thanks a lot! (Smile)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
1K